
/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(45, 55, 72, 0.98);
  backdrop-filter: blur(10px);
  color: white;
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 3px solid #667eea;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #feca57;
}

.cookie-consent-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 0;
}

.cookie-consent-text a {
  color: #667eea;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #5a67d8;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cookie-btn-decline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-customize {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.cookie-btn-customize:hover {
  background: #667eea;
  color: white;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-preferences-modal.show {
  display: flex;
}

.cookie-preferences-content {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-preferences-header {
  padding: 25px 25px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.cookie-preferences-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.cookie-preferences-subtitle {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-preferences-body {
  padding: 25px;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #4CAF50;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(26px);
}

.cookie-toggle.disabled .cookie-toggle-slider {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

.cookie-category-description {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-preferences-footer {
  padding: 20px 25px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-actions {
    justify-content: center;
    margin-top: 15px;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .cookie-preferences-content {
    margin: 10px;
    max-height: calc(100vh - 40px);
  }

  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-footer {
    padding: 20px;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.animated-circles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -50px;
  animation-delay: 2s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9em;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 50px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 60px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature p {
  opacity: 0.9;
  line-height: 1.5;
}

.hero-actions {
  margin: 50px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

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

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #feca57;
}

.trust-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn: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;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.btn-google {
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.google-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

.btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 22px 45px;
  font-size: 1.2rem;
}

/* Divider */
.divider-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #666;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider-with-text span {
  padding: 0 15px;
  background: white;
  font-size: 0.9rem;
}

.btn-speak {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.btn-continue {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.btn-continue:hover {
  background: #667eea;
  color: white;
}

.btn-icon, .btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon,
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Demo Section */
.demo-section {
  padding: 100px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: #2d3748;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
}

.demo-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.demo-settings {
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #667eea;
}

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

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setting-label {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
}

.setting-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.demo-story {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 25px 30px;
}

.story-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.story-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

.story-content {
  padding: 30px;
}

.story-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #4a5568;
}

.vocab-word {
  background: linear-gradient(120deg, #667eea20, #667eea10);
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: 2px solid #667eea;
  cursor: help;
  font-weight: 600;
  transition: all 0.3s ease;
}

.vocab-word:hover {
  background: #667eea;
  color: white;
}

.vocabulary-preview {
  background: #f7fafc;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid #e2e8f0;
}

.vocabulary-preview h4 {
  margin-bottom: 15px;
  color: #2d3748;
  font-weight: 600;
}

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

.vocab-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.vocab-item strong {
  color: #667eea;
  font-size: 1.1rem;
}

.pronunciation {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
  margin-left: 10px;
}

.translation {
  margin-top: 5px;
  color: #4a5568;
  font-weight: 500;
}

.foreign-text {
  color: #667eea !important;
  font-weight: bold !important;
  background: linear-gradient(120deg, #667eea20, #667eea10) !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  border-bottom: 2px solid #667eea !important;
  display: inline !important;
}

.message .foreign-text {
  color: #667eea !important;
  font-weight: bold !important;
  background: rgba(102, 126, 234, 0.15) !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  border-bottom: 2px solid #667eea !important;
}

.message.user .foreign-text {
  color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.2) !important;
  border-bottom-color: #ffd700 !important;
}

.story-actions {
  padding: 20px 30px 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

/* Features Section */
.features-section {
  padding: 100px 0;
  background: white;
}

.features-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  color: #2d3748;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #f8fafc;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2d3748;
  font-weight: 600;
}

.feature-card p {
  color: #718096;
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card.trial .pricing-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.pricing-card.gold .pricing-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
  color: #2d3748;
  font-weight: 700;
}

.pricing-price {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.pricing-price .currency {
  font-size: 1.5rem;
  color: #718096;
  margin-top: 8px;
}

.pricing-price .amount {
  font-size: 4rem;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
}

.pricing-price .period {
  font-size: 1.2rem;
  color: #718096;
  margin-top: 20px;
}

.pricing-duration {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #4a5568;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-card.popular .pricing-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.pricing-card.trial .pricing-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.pricing-card.gold .pricing-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.pricing-guarantee {
  margin-top: 60px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.guarantee-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.guarantee-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.guarantee-content h4 {
  margin-bottom: 5px;
  color: #2d3748;
  font-weight: 600;
  font-size: 1.2rem;
}

.guarantee-content p {
  color: #718096;
  margin: 0;
}

/* Subscription Page */
.subscription-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  margin: 20px;
}

.subscription-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
  font-weight: 800;
}

.subscription-header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Subscription Status Card */
.subscription-status-card {
  background: white;
  border-radius: 20px;
  padding: 35px;
  margin: 0 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.subscription-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.status-info {
  flex: 1;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.plan-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.plan-badge.plan-starter {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.plan-badge.plan-basic {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.plan-badge.plan-gold {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

.plan-price {
  font-size: 1.1rem;
  color: #718096;
  font-weight: 500;
}

.status-actions {
  flex-shrink: 0;
}

.cancel-btn {
  background: transparent;
  border: 2px solid #e53e3e;
  color: #e53e3e;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #e53e3e;
  color: white;
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.usage-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

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

.usage-label {
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
}

.usage-numbers {
  color: #2d3748;
  font-weight: 700;
  font-size: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.lessons-progress {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.messages-progress {
  background: linear-gradient(90deg, #4CAF50, #45a049);
}

.emails-progress {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.usage-percentage {
  text-align: right;
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

/* Plans Section */
.plans-section {
  margin: 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card.current-plan {
  border-color: #4CAF50;
  background: linear-gradient(135deg, #f0fff4, #f7fafc);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.current-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-header {
  margin-bottom: 25px;
}

.plan-name {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #2d3748;
  font-weight: 700;
}

.plan-subtitle {
  color: #718096;
  font-size: 0.9rem;
  font-style: italic;
}

.pricing-price {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.pricing-price .currency {
  font-size: 1.5rem;
  color: #718096;
  margin-top: 8px;
}

.pricing-price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
}

.pricing-price .period {
  font-size: 1.1rem;
  color: #718096;
  margin-top: 18px;
}

.plan-features {
  margin: 25px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  color: #4a5568;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

.card-footer {
  margin-top: 25px;
}

.pricing-btn {
  width: 100%;
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.upgrade-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.current-plan-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  cursor: default;
}

.free-plan-btn {
  background: #f8fafc;
  color: #718096;
  border: 2px solid #e2e8f0;
  cursor: default;
}

.pricing-card.starter .upgrade-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.pricing-card.gold .upgrade-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Responsive Design for Subscriptions */
@media (max-width: 768px) {
  .subscription-header {
    margin: 10px;
    padding: 30px 15px;
  }

  .subscription-status-card {
    margin: 10px;
    padding: 20px;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .plans-section {
    margin: 10px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}

/* Blog Preview Section Styles */
.blog-preview-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.blog-preview-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.blog-header-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 80px;
}

.blog-floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  animation: blogFloat 6s ease-in-out infinite;
}

.blog-element-1 {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 10%;
  animation-delay: 0s;
}

.blog-element-2 {
  width: 120px;
  height: 120px;
  top: 20px;
  right: 15%;
  animation-delay: 2s;
}

.blog-element-3 {
  width: 60px;
  height: 60px;
  bottom: -30px;
  left: 80%;
  animation-delay: 4s;
}

@keyframes blogFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.blog-header-content {
  position: relative;
  z-index: 2;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.blog-badge-icon {
  font-size: 1.1rem;
}

.blog-main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #2d3748, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-card-1 { animation-delay: 0.1s; }
.blog-card-2 { animation-delay: 0.2s; }
.blog-card-3 { animation-delay: 0.3s; }

.blog-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-header {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-image-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.blog-image-link {
  display: block;
  height: 100%;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.1);
}

.blog-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card:hover .blog-image-overlay {
  opacity: 1;
}

.blog-placeholder-image {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.blog-placeholder-icon {
  font-size: 4rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.placeholder-category {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
  text-transform: capitalize;
}

/* Image error handling */
.blog-image[src=""],
.blog-image:not([src]) {
  display: none;
}

.similar-article-image[src=""],
.similar-article-image:not([src]) {
  display: none;
}

.blog-post-image[src=""],
.blog-post-image:not([src]) {
  display: none;
}

.blog-card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.blog-category-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.category-historie { background: #fef3c7; color: #92400e; }
.category-ulubione { background: #fce7f3; color: #be185d; }
.category-metody { background: #dbeafe; color: #1e40af; }
.category-memy { background: #dcfce7; color: #166534; }
.category-nauka-języków { background: #e0e7ff; color: #3730a3; }
.category-błędy-przy-nauce { background: #fed7d7; color: #c53030; }
.category-ciekawostki { background: #d1fae5; color: #065f46; }

.blog-date {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.blog-card-title {
  margin-bottom: 15px;
}

.blog-title-link {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-title-link:hover {
  color: #667eea;
}

.blog-card-excerpt {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.blog-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-card-footer {
  margin-top: auto;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  color: #4f46e5;
  gap: 12px;
}

.blog-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover .blog-arrow svg {
  transform: translateX(4px);
}

.blog-cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.blog-view-all-btn {
  display: inline-flex;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.blog-view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  color: white;
}

.blog-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-btn-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.blog-view-all-btn:hover .blog-btn-icon svg {
  transform: translateX(4px);
}

.blog-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.blog-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 8px;
}

.blog-stat-label {
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.blog-empty-state {
  text-align: center;
  padding: 80px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.blog-empty-state h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.blog-empty-state p {
  color: #64748b;
  margin-bottom: 30px;
}

.blog-cta-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

/* Blog Index Page Styles */
.blog-hero-modern {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
}

.blog-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.blog-hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.blog-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 40%; left: 80%; animation-delay: 1.6s; }
.particle-3 { top: 60%; left: 20%; animation-delay: 3.2s; }
.particle-4 { top: 80%; left: 70%; animation-delay: 4.8s; }
.particle-5 { top: 30%; left: 50%; animation-delay: 6.4s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.5; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

.blog-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-badge-icon {
  font-size: 1.2rem;
}

.blog-hero-title {
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  margin-bottom: 10px;
}

.hero-title-accent {
  display: block;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.blog-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.blog-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.blog-main-content {
  min-width: 0;
}

.blog-filters-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.filters-header {
  margin-bottom: 25px;
  text-align: center;
}

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

.filters-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

.blog-filters-form {
  width: 100%;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.filter-group {
  width: 100%;
}

.filter-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.filter-select-wrapper {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

.select-arrow svg {
  width: 20px;
  height: 20px;
}

.filter-submit-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.blog-posts-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-card-1 { animation-delay: 0.1s; }
.post-card-2 { animation-delay: 0.2s; }
.post-card-3 { animation-delay: 0.3s; }

.post-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.post-image-link {
  display: block;
  height: 100%;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post-card:hover .post-image {
  transform: scale(1.08);
}

.post-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post-card:hover .post-image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
}

.overlay-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.overlay-read-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.overlay-read-btn svg {
  width: 16px;
  height: 16px;
}

.post-placeholder-image {
  height: 220px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.placeholder-category {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

.post-content-area {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.post-category-badge {
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.post-date-badge {
  background: #f8fafc;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-title {
  margin-bottom: 15px;
}

.post-title-link {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-title-link:hover {
  color: #667eea;
}

.post-excerpt {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.post-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.post-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.post-footer {
  margin-top: auto;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-read-more:hover {
  color: #4f46e5;
  gap: 12px;
}

.read-more-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.post-read-more:hover .read-more-arrow svg {
  transform: translateX(4px);
}

.blog-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-item:hover {
  background: #f8fafc;
  color: #667eea;
  transform: translateX(5px);
}

.category-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.category-name {
  flex: 1;
}

.category-count {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-bubble {
  background: #f8fafc;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tag-bubble:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newsletter-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.newsletter-card .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-card .card-title {
  color: white;
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  placeholder-color: rgba(255, 255, 255, 0.7);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Responsive Design for Blog */
@media (max-width: 1200px) {
  .blog-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .blog-posts-grid,
  .blog-posts-masonry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-stats,
  .blog-hero-stats {
    gap: 20px;
  }

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

  .filter-submit-btn {
    width: 100%;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Blog Pagination Styles */
.blog-pagination-wrapper {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.blog-pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 20px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
}

.blog-page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #64748b;
  background: transparent;
}

.blog-page-link:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.blog-page-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.blog-first-page,
.blog-last-page,
.blog-prev-page,
.blog-next-page {
  font-size: 0.9rem;
  padding: 8px 16px;
}

.blog-page-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #94a3b8;
  font-weight: 600;
}

.blog-pagination-info {
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* Prevent large arrow artifacts */
.blog-pagination::before,
.blog-pagination::after,
.blog-pagination-wrapper::before,
.blog-pagination-wrapper::after {
  display: none !important;
  content: none !important;
}

/* Ensure proper arrow sizing in pagination links */
.blog-page-link {
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.blog-first-page,
.blog-last-page,
.blog-prev-page,
.blog-next-page {
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  .blog-pagination {
    padding: 15px 20px;
    gap: 5px;
  }

  .blog-page-link,
  .blog-page-current {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .blog-first-page,
  .blog-last-page,
  .blog-prev-page,
  .blog-next-page {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .blog-preview-container,
  .blog-main-container {
    padding: 0 15px;
  }

  .blog-card-content,
  .post-content-area {
    padding: 20px;
  }

  .blog-filters-card {
    padding: 20px;
  }

  .blog-pagination {
    padding: 12px 15px;
  }

  .blog-pagination-wrapper {
    margin-top: 40px;
  }
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation Styling */
.main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .brand-link {
  text-decoration: none;
  color: #667eea;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-brand .brand-link:hover {
  transform: translateY(-1px);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-dashboard-link {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-dashboard-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: 6px;
  background: #f8fafc;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.language-link {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #718096;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 35px;
  text-align: center;
}

.language-link:hover {
  background: #e2e8f0;
  color: #4a5568;
}

.language-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  color: #667eea;
  border: 2px solid transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(102, 126, 234, 0.05);
  color: #5a67d8;
}

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

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.user-avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.user-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-info {
  padding: 20px 20px 15px;
  border-bottom: 1px solid #f1f5f9;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.user-email {
  color: #718096;
  font-size: 0.8rem;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #2d3748;
}

.dropdown-item.logout {
  color: #4a5568;
  margin-top: 8px;
  padding: 12px 20px;
  border: none;
  background: none;
}

.dropdown-item.logout:hover {
  background: #f8fafc;
  color: #2d3748;
}

.dropdown-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* Dashboard Page Improvements */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.dashboard-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 60px 0;
  border-radius: 25px;
  margin: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(100px);
}

.dashboard-hero-content {
  position: relative;
  z-index: 1;
}

.dashboard-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-welcome {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 30px;
}

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

.dashboard-actions .btn {
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
}

/* Subscription Status Section */
.subscription-status-section {
  padding: 40px 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 30px;
}

.subscription-status-card {
  background: white;
  border-radius: 20px;
  padding: 35px;
  margin: 0 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.subscription-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.subscription-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  align-items: start;
}

.plan-info h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.plan-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 15px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.usage-stats h4 {
  color: #2d3748;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.usage-item {
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, #4CAF50, #45a049);
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.plan-actions .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #e2e8f0;
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-outline:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* Recent Lessons Section */
.recent-lessons-section {
  padding: 20px 0 60px;
}

.no-lessons-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.no-lessons-card .feature-card-icon {
  font-size: 4rem;
  margin-bottom: 25px;
}

.no-lessons-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Flash Messages */
.flash-message {
  padding: 15px 20px;
  margin: 20px;
  border-radius: 12px;
  font-weight: 500;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-left: 4px solid;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
  border-color: #4CAF50;
  border-left-color: #4CAF50;
}

.flash-alert {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #e53e3e;
  border-left-color: #e53e3e;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  z-index: 10001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #667eea;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  position: absolute;
  right: 0;
  top: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
  z-index: 10001;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-user-info {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mobile-user-details {
  flex: 1;
}

.mobile-user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 3px;
}

.mobile-user-email {
  color: #718096;
  font-size: 0.85rem;
}

.mobile-dashboard-link {
  padding: 0 20px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-language-switcher {
  padding: 0 20px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-language-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobile-language-link {
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-language-link:hover {
  border-color: #667eea;
  color: #667eea;
}

.mobile-language-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.mobile-menu-actions {
  padding: 0 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.mobile-nav-link.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
  justify-content: center;
  border-bottom: none;
}

.mobile-nav-link.primary:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  color: white;
}

.mobile-nav-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.mobile-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 15px 0;
}

.logout-btn {
  color: #e53e3e !important;
}

.logout-btn:hover {
  color: #e53e3e !important;
  background: rgba(229, 62, 62, 0.1) !important;
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-container {
    padding: 12px 20px;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }

  .nav-center {
    flex: 1;
    order: 0;
    display: flex;
    justify-content: center;
    margin: 0 20px;
  }

  .nav-dashboard-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .mobile-menu {
    display: block;
  }

  .dashboard-hero {
    margin: 20px 10px;
    padding: 40px 20px;
  }

  .subscription-status-card {
    margin: 0 10px 30px;
    padding: 25px 20px;
  }

  .subscription-info {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .dashboard-actions {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Form Styling */
.form-container {
  max-width: 450px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.form-container .form-group {
  position: relative;
}

.form-container .form-group.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #718096;
  z-index: 1;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: white;
}

.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select:hover {
  border-color: #a0aec0;
}

.form-group select option {
  padding: 10px;
  background-color: white;
  color: #2d3748;
}

.form-group select:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Enhanced language select for registration form */
.registration-form .form-group select {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  font-weight: 500;
}

.registration-form .form-group select:focus {
  background-color: white;
  border-color: #667eea;
}

/* Chat Interface */
.chat-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.chat-form {
  margin-top: 20px;
}

.chat-form .form-group {
  margin-bottom: 0;
}

.chat-form textarea {
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.chat-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f8fafc;
}

.message {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 15px;
  max-width: 80%;
}

.message.user {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.message.assistant {
  background: white;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message.assistant:has-text("📧"):has-text("Sent via Email") {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid #0284c7;
  border-color: #0284c7;
}

.message.assistant[data-email="true"] {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid #0284c7;
  border-color: #0284c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    margin: 5px 0;
  }

  .trust-indicators {
    gap: 20px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .story-actions {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .vocab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .guarantee-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 15px;
  }

  .demo-container {
    padding: 0 15px;
  }

  .demo-settings,
  .story-content {
    padding: 20px;
  }

  .feature {
    padding: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-price .amount {
    font-size: 3rem;
  }

  .guarantee-content {
    padding: 20px;
  }
}

/* Compact Subscription Status */
.subscription-status-card.compact {
  padding: 25px;
  margin: 0 20px 30px;
}

.subscription-compact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  align-items: center;
}

.plan-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.plan-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.plan-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.plan-description {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
}

.usage-compact {
  flex: 1;
}

.usage-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .usage-row {
    flex-direction: column;
    gap: 12px;
  }
}

.usage-item-compact {
  flex: 1;
  min-width: 140px;
  background: #f8fafc;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.usage-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.usage-label-compact {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
}

.usage-numbers-compact {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d3748;
}

.progress-bar-compact {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-compact .progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #4CAF50, #45a049);
}

.plan-actions-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.btn-compact {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive for compact layout */
@media (max-width: 968px) {
  .subscription-compact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .plan-header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }

  .usage-row {
    flex-direction: column;
    gap: 15px;
  }

  .plan-actions-compact {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .subscription-status-card.compact {
    margin: 0 10px 20px;
    padding: 20px;
  }

  .usage-row {
    gap: 12px;
  }

  .usage-item-compact {
    padding: 12px;
  }
}

/* Blog Show Page Styles */
.blog-show-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  background: white;
}

.blog-show-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.blog-main-content {
  max-width: 100%;
  min-width: 0;
}

/* Blog Post Header - Centered */
.blog-post-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f1f5f9;
}

.blog-post-meta-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.blog-post-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-intro {
  font-size: 1.3rem;
  color: #4a5568;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* Featured Image - Centered */
.blog-post-image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.blog-post-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post-image:hover {
  transform: scale(1.02);
}

/* Article Content */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  color: #1a202c;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-post-content h1 {
  font-size: 2.2rem;
}

.blog-post-content h2 {
  font-size: 1.8rem;
}

.blog-post-content h3 {
  font-size: 1.4rem;
}

.blog-post-content p {
  margin-bottom: 1.8rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.8rem 0;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.8rem;
}

.blog-post-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 2rem 0;
  font-style: italic;
  color: #4a5568;
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
}

/* Tags Section */
.blog-post-tags-section {
  max-width: 800px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
}

.tags-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
  text-align: center;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.blog-tag {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #4a5568;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Actions */
.blog-actions {
  text-align: center;
  margin-top: 40px;
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Sidebar Styles */
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-item:hover {
  background: #f8fafc;
  color: #667eea;
  transform: translateX(5px);
}

.category-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.category-name {
  flex: 1;
}

.category-count {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-item.active .category-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-bubble {
  background: #f8fafc;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tag-bubble:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newsletter-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.newsletter-card .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-card .card-title {
  color: white;
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Related Articles Section */
.related-articles-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 80px 0;
  margin-top: 80px;
}

.related-articles-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #2d3748, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.related-article-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.related-article-link {
  display: block;
  height: 100%;
}

.related-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-article-card:hover .related-article-image {
  transform: scale(1.08);
}

.related-article-placeholder {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.placeholder-category {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

.related-article-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.related-article-category {
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.related-article-date {
  background: #f8fafc;
  color: #64748b;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.related-article-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.related-article-title:hover {
  color: #667eea;
}

.related-article-excerpt {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.related-article-footer {
  margin-top: auto;
}

.related-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-read-more:hover {
  color: #4f46e5;
  gap: 12px;
}

.read-more-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.related-read-more:hover .read-more-arrow svg {
  transform: translateX(4px);
}

/* Responsive Design for Blog Show */
@media (max-width: 1200px) {
  .blog-show-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .blog-show-container {
    padding: 20px 15px 60px;
  }

  .blog-post-meta-center {
    flex-direction: column;
    gap: 10px;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .blog-post-header {
    text-align: left;
  }

  .blog-post-title {
    text-align: left;
  }

  .blog-post-intro {
    text-align: left;
  }

  .blog-post-image-wrapper {
    text-align: left;
  }

  .tags-title {
    text-align: left;
  }

  .blog-post-tags {
    justify-content: flex-start;
  }
}
