/* aiSanchaya - Main Styles (PRD Specifications) */

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
  margin-top: 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: #1e3a8a;
}

.logo-subtitle a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo-subtitle a:hover {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--neutral-dark);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Ensure login and sign up buttons are visible in header */
.header .nav-actions .btn-secondary,
.header .btn-secondary {
  background: transparent !important;
  color: #F0F0F0 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
}

.header .nav-actions .btn-secondary:hover,
.header .btn-secondary:hover {
  background: white !important;
  color: #2c5aa0 !important;
  border-color: white !important;
}

.header .nav-actions .btn-primary,
.header .btn-primary {
  background: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-image: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  color: white !important;
}

.header .nav-actions .btn-primary:hover,
.header .btn-primary:hover {
  background: #F3F4F6 !important;
  background-image: none !important;
  color: #1E3A8A !important;
}

/* Header logout dropdown */
.header .nav-actions .logout-dropdown,
.app-header .nav-actions .logout-dropdown {
  position: relative;
  display: inline-block;
  z-index: 10000;
}
.header .nav-actions .logout-dropdown-content,
.app-header .nav-actions .logout-dropdown-content {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-image: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-color: #6A11CB !important;
  border: none !important;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4) !important;
  z-index: 10001 !important;
  min-width: 150px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease, max-height 0.2s ease;
}
/* Add invisible bridge to prevent gap */
.header .nav-actions .logout-dropdown-content::before,
.app-header .nav-actions .logout-dropdown-content::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}
.header .nav-actions .logout-dropdown-inner,
.app-header .nav-actions .logout-dropdown-inner {
  background: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-image: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-color: #6A11CB !important;
  border-radius: 10px;
  opacity: 1 !important;
}
.header .nav-actions .logout-dropdown-content a,
.app-header .nav-actions .logout-dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}
.header .nav-actions .logout-dropdown-content a:hover,
.app-header .nav-actions .logout-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}
.header .nav-actions .logout-dropdown:hover .logout-dropdown-content,
.app-header .nav-actions .logout-dropdown:hover .logout-dropdown-content,
.header .nav-actions .logout-dropdown .logout-dropdown-content:hover,
.app-header .nav-actions .logout-dropdown .logout-dropdown-content:hover {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  max-height: 200px !important;
  overflow: visible !important;
  transform: translateY(0) !important;
  background: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-image: linear-gradient(90deg, #6A11CB 0%, #2575FC 100%) !important;
  background-color: #6A11CB !important;
}

.user-greeting {
  color: var(--neutral-dark);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: var(--space-24) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 600px;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: var(--font-size-4xl);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-tagline {
  margin-top: var(--space-8);
}

.hero-tagline p {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-size: var(--font-size-lg);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 500px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-gif {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.carousel-caption {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-4);
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.carousel-caption h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xl);
}

.carousel-caption p {
  color: var(--neutral-mid);
  margin: 0;
  font-size: var(--font-size-sm);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-4);
  pointer-events: none;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: var(--font-size-xl);
  color: var(--primary-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.carousel-indicators {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Apps Section */
.apps-section {
    padding: var(--space-24) 0;
    background: var(--white);
    /* Digisevak section background */
    background: transparent;
}

.apps-section h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--neutral-mid);
  margin-bottom: var(--space-16);
}

.category-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-light);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
    /* Digisevak category card styles */
    background: linear-gradient(145deg, #2A1A40 0%, #150C25 100%);
    border: 1px solid rgba(106, 17, 203, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Orange shimmer animation on hover */
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.category-header {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    background: var(--light-orange);
    transition: background-color var(--transition-fast);
    /* Digisevak category header */
    background: rgba(42, 26, 64, 0.8);
    color: #F0F0F0;
}

.category-header h3 {
    color: #E0BBE4;
}

.category-header:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.category-icon {
  font-size: var(--font-size-2xl);
  margin-right: var(--space-4);
}

.category-header h3 {
  flex: 1;
  margin: 0;
  color: var(--primary-dark);
  font-size: var(--font-size-xl);
  transition: color var(--transition-fast);
}

.category-header:hover h3 {
  color: var(--white);
}

.expand-icon {
  font-size: var(--font-size-lg);
  color: var(--primary);
  transition: all var(--transition-fast);
}

.category-header:hover .expand-icon {
  color: var(--white);
}

.category-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    text-align: center;
    /* Digisevak category banner */
    background: linear-gradient(90deg, #8A2BE2 0%, #4682B4 100%);
}

.category-banner p {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--white);
}

.category-content {
  padding: var(--space-6);
  display: none;
}

.category-content .apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin: 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.app-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--neutral-light);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

/* Orange shimmer animation on hover */
.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.app-card:hover::before {
  left: 100%;
}

.app-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.app-card.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Coming soon cards still get the shimmer animation */
.app-card.coming-soon:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.app-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
  display: block;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Icon animation on card hover */
.app-card:hover .app-icon {
  transform: scale(1.1);
  filter: hue-rotate(30deg) saturate(1.2);
}

.app-card h3,
.app-card h4 {
  margin-bottom: var(--space-4);
  color: var(--primary-dark);
}

.app-card p {
  margin-bottom: var(--space-6);
  color: var(--neutral-mid);
}

.coming-soon-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Pricing Section */
.pricing-section {
    padding: var(--space-24) 0;
    background: var(--neutral-light);
    /* Digisevak pricing section background */
    background: transparent;
}

.pricing-section h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.pricing-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-category {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-light);
    overflow: hidden;
    transition: all var(--transition-slow);
    /* Digisevak pricing category */
    background: linear-gradient(145deg, #2A1A40 0%, #150C25 100%);
    border: 1px solid rgba(106, 17, 203, 0.3);
}

.pricing-category:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pricing-category-header {
    display: flex;
    align-items: center;
    padding: var(--space-6);
    background: var(--light-orange);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    /* Digisevak pricing category header */
    background: rgba(42, 26, 64, 0.8);
    color: #F0F0F0;
}

.pricing-category-header h3 {
    color: #E0BBE4;
}

.pricing-category-header:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.pricing-category-icon {
  font-size: var(--font-size-2xl);
  margin-right: var(--space-4);
}

.pricing-category-header h3 {
  flex: 1;
  margin: 0;
  color: var(--primary-dark);
  font-size: var(--font-size-xl);
  transition: color var(--transition-fast);
}

.pricing-category-header:hover h3 {
  color: var(--white);
}

.pricing-category-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    text-align: center;
    /* Digisevak pricing category banner */
    background: linear-gradient(90deg, #8A2BE2 0%, #4682B4 100%);
}

.pricing-category-banner p {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--white);
}

.pricing-category-content {
  padding: var(--space-8);
  display: none;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Compact packs grid for sleeker, smaller pack cards */
.packs-grid.compact {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.packs-grid.compact .pricing-card {
  padding: var(--space-3);
}

.packs-grid.compact .popular-badge {
  top: -8px;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
}

.packs-grid.compact .coins-info {
  margin-bottom: 0;
  padding: var(--space-2) var(--space-3);
}

.packs-grid.compact .coins-icon {
  font-size: var(--font-size-sm);
}

.packs-grid.compact .coins-count {
  font-size: var(--font-size-base);
}

.packs-grid.compact .price {
  margin-bottom: var(--space-4);
}

.packs-grid.compact .currency {
  font-size: var(--font-size-sm);
}

.packs-grid.compact .amount {
  font-size: var(--font-size-2xl);
}

.packs-grid.compact .period {
  font-size: var(--font-size-sm);
}

.packs-grid.compact .features {
  margin-bottom: 0;
}

.packs-grid.compact .features li {
  padding: 0;
  font-size: var(--font-size-sm);
}

.packs-grid.compact .btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.packs-grid.compact .discount-badge {
  font-size: var(--font-size-xs);
  padding: 4px 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 2px solid var(--primary);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  /* Digisevak price card styles */
  background: linear-gradient(145deg, #3A2A50 0%, #1A0D32 100%);
  border: 1px solid rgba(37, 117, 252, 0.4);
  flex: 1 1 400px;
  max-width: 500px;
  text-align: left;
  color: #E0E0E0;
}

.price-card-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #F0F0F0;
}

.price-card-description {
  font-size: 1.1em;
  opacity: 0.8;
  margin-bottom: 0;
}

.price-amount {
  font-size: 1.6em;
  font-weight: bold;
  color: #F0F0F0;
  margin: 0;
}

/* Orange shimmer animation on pricing card hover */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.pricing-card:hover::before {
  left: 100%;
}

/* Remove featured visual emphasis */
.pricing-card.featured {
  transform: none;
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.pricing-card.featured:hover {
  transform: translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.pricing-card h3,
.pricing-card h4 {
  margin-bottom: 0;
  color: var(--primary-dark);
}

.coins-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--success) 0%, #4CAF50 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-weight: var(--font-weight-medium);
}

.coins-icon {
  font-size: var(--font-size-lg);
}

.coins-count {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.coins-period {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.pricing-card.free {
  border: 2px solid var(--success);
}


.price {
  margin-bottom: 0;
}

.currency {
  font-size: var(--font-size-xl);
  color: var(--neutral-mid);
  vertical-align: top;
}

.amount {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-dark);
}

.period {
  font-size: var(--font-size-lg);
  color: var(--neutral-mid);
}

.features {
  list-style: none;
  margin-bottom: 0;
  text-align: left;
  column-count: 1;
  display: flex;
  flex-direction: column;
}

.features li {
  padding: 0;
  color: var(--neutral-mid);
  position: relative;
  padding-left: var(--space-6);
  display: block;
  line-height: 1.5;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.3em;
  color: var(--success);
  font-weight: var(--font-weight-bold);
}

/* Ensure compact cards keep vertical bullets and correct spacing */
.packs-grid.compact .features {
  column-count: 1;
  display: flex;
  flex-direction: column;
}

.packs-grid.compact .features li {
  padding-left: var(--space-7);
  line-height: 1.5;
}

.packs-grid.compact .features li::before {
  top: 0.35em;
}

/* Digisevak plan features */
.plan-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.feature-item {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.checkmark {
  color: #2575FC;
  margin-right: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section a {
  color: var(--neutral-light);
  margin-bottom: var(--space-2);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-mid);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--white);
}

.footer-bottom p {
  color: var(--white) !important;
}

/* App-specific styles */
.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-light);
  padding: var(--space-4) 0;
}

.app-content {
  padding: var(--space-8) 0;
  min-height: calc(100vh - 200px);
}

.tool-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.tool-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.tool-header h1 {
  margin-bottom: var(--space-4);
}

.tool-description {
  color: var(--neutral-mid);
  font-size: var(--font-size-lg);
}

.input-section,
.output-section {
  margin-bottom: var(--space-8);
}

.input-section h3,
.output-section h3 {
  margin-bottom: var(--space-4);
  color: var(--primary-dark);
}

.action-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin: var(--space-8) 0;
  flex-wrap: wrap;
}

.loading {
  display: none;
  text-align: center;
  padding: var(--space-4);
  color: var(--primary);
}

.loading.show {
  display: block;
}

.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--error);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  display: none;
}

.error.show {
  display: block;
}

.success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: var(--success);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  display: none;
}

.success.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .category-content .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
  
  .packs-grid,
  .packs-grid.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-3) 0;
  }
  
  .logo-image {
    height: 50px;
    max-width: 200px;
  }
  
  .logo-subtitle a {
    font-size: 0.6rem;
  }
  
  .nav {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .hero {
    padding: var(--space-12) 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  
  .hero-carousel {
    height: 400px;
    order: -1;
  }
  
  .btn-large {
    width: 100%;
    max-width: 300px;
  }
  
  .apps-section {
    padding: var(--space-12) 0;
  }
  
  .apps-section h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-8);
  }
  
  .category-cards {
    gap: var(--space-6);
  }
  
  .category-header {
    padding: var(--space-4);
    flex-wrap: wrap;
  }
  
  .category-header h3 {
    font-size: var(--font-size-lg);
  }
  
  .category-icon {
    font-size: var(--font-size-xl);
    margin-right: var(--space-3);
  }
  
  .category-content .apps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .app-card {
    padding: var(--space-4);
  }
  
  .app-card h4 {
    font-size: var(--font-size-lg);
  }
  
  .app-card p {
    font-size: var(--font-size-sm);
  }
  
  .pricing-section {
    padding: var(--space-12) 0;
  }
  
  .pricing-section h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }
  
  .pricing-categories {
    gap: var(--space-6);
  }
  
  .pricing-category-header {
    padding: var(--space-4);
  }
  
  .pricing-category-header h3 {
    font-size: var(--font-size-lg);
  }
  
  .packs-grid,
  .packs-grid.compact {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .pricing-card {
    margin-bottom: var(--space-4);
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .tool-container {
    margin: var(--space-4);
    padding: var(--space-6);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-tagline p {
    font-size: var(--font-size-base);
  }
  
  .hero-carousel {
    height: 300px;
  }
  
  .logo-image {
    height: 40px;
    max-width: 150px;
  }
  
  .logo-subtitle a {
    font-size: 0.5rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }
  
  .carousel-caption h3 {
    font-size: var(--font-size-lg);
  }
  
  .carousel-caption p {
    font-size: var(--font-size-xs);
  }
  
  .apps-section h2,
  .pricing-section h2 {
    font-size: var(--font-size-2xl);
  }
  
  .category-header {
    padding: var(--space-3);
  }
  
  .category-header h3 {
    font-size: var(--font-size-base);
  }
  
  .category-icon {
    font-size: var(--font-size-lg);
    margin-right: var(--space-2);
  }
  
  .category-content .apps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .app-card {
    padding: var(--space-3);
  }
  
  .app-card h4 {
    font-size: var(--font-size-base);
  }
  
  .app-card p {
    font-size: var(--font-size-xs);
  }
  
  .pricing-category-header {
    padding: var(--space-3);
  }
  
  .pricing-category-header h3 {
    font-size: var(--font-size-base);
  }
  
  .pricing-card {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  .btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-2);
  }
  
  .hero h1 {
    font-size: var(--font-size-xl);
  }
  
  .apps-section h2,
  .pricing-section h2 {
    font-size: var(--font-size-xl);
  }
  
  .category-header,
  .pricing-category-header {
    padding: var(--space-2);
  }
  
  .app-card,
  .pricing-card {
    padding: var(--space-3);
  }
}