/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 300;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 600;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 800;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/estedad@v4.1.0/fonts/webfonts/Estedad-ExtraBold.woff2') format('woff2');
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  direction: rtl;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #e0f7f6 0%, #ffffff 50%, #f0fdf4 100%);
  overflow-x: hidden;
}

/* Background Wrapper */
.background-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.gradient-circle-1 {
  top: 0;
  left: 25%;
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, #30D5C8 0%, transparent 70%);
  opacity: 0.3;
}

.gradient-circle-2 {
  bottom: 0;
  right: 25%;
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, #30D5C8 0%, transparent 70%);
  opacity: 0.2;
}

.gradient-circle-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, #30D5C8 0%, transparent 70%);
  opacity: 0.15;
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 10;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 1px solid rgba(48, 213, 200, 0.3);
  box-shadow: 0 4px 20px rgba(48, 213, 200, 0.1);
  backdrop-filter: blur(12px);
}

.header-content {
  padding: 1rem 1.5rem;
}

.header-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  box-shadow: 0 10px 25px rgba(48, 213, 200, 0.3);
}

.logo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: white;
  position: relative;
  z-index: 10;
}

.main-title {
  font-size: 1.875rem;
  font-weight: 800;
  background: linear-gradient(135deg, #30D5C8 0%, #1a9d93 50%, #30D5C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero-section {
  padding: 5rem 1rem;
}

.hero-content {
  max-width: 1024px;
  text-align: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1f2937;
  margin-bottom: 2.5rem;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  box-shadow: 0 10px 25px rgba(48, 213, 200, 0.3);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-text {
  text-align: right;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.feature-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Pricing Section */
.pricing-section {
  padding: 3rem 1rem 6rem;
}

.pricing-content {
  max-width: 1536px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pricing-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2937 0%, #30D5C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.pricing-description {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  max-width: 1152px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pricing Card */
.pricing-card {
  position: relative;
  height: 100%;
  border-radius: 24px;
  transition: all 0.5s ease;
}

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

.pricing-card-popular {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .pricing-card-popular {
    transform: scale(1.1);
  }
}

.popular-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #30D5C8;
  filter: blur(80px);
  opacity: 0.4;
}

.card-inner {
  position: relative;
  height: 100%;
  padding: 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgba(48, 213, 200, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.pricing-card:hover .card-inner {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card-popular .card-inner {
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  border: 2px solid #30D5C8;
  box-shadow: 0 20px 60px rgba(48, 213, 200, 0.4);
}

/* Badges */
.popular-badge,
.savings-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.popular-badge {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  width: auto;
}

.badge-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: white;
  position: relative;
  z-index: 10;
}

.popular-badge span {
  color: white;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

.savings-badge {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  width: auto;
}

/* Card Content */
.card-header {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.pricing-card-popular .card-header {
  margin-top: 4rem;
}

.card-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
}

.pricing-card-popular .card-title {
  color: white;
}

.card-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  color: #30D5C8;
}

.pricing-card-popular .price-amount {
  color: white;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.pricing-card-popular .price-currency {
  color: rgba(255, 255, 255, 0.9);
}

.card-duration {
  font-weight: 500;
  color: #6b7280;
}

.pricing-card-popular .card-duration {
  color: rgba(255, 255, 255, 0.85);
}

.card-divider {
  height: 1px;
  background: rgba(48, 213, 200, 0.2);
  margin-bottom: 2rem;
}

.pricing-card-popular .card-divider {
  background: rgba(255, 255, 255, 0.3);
}

.card-description {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: center;
  backdrop-filter: blur(4px);
  background: rgba(48, 213, 200, 0.08);
  flex-grow: 1;
}

.pricing-card-popular .card-description {
  background: rgba(255, 255, 255, 0.15);
}

.card-description p {
  font-weight: 500;
  font-size: 15.5px;
  color: #1f2937;
  line-height: 1.8;
}

.pricing-card-popular .card-description p {
  color: rgba(0, 0, 0, 0.95);
}

/* Features */
.card-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.feature-check {
  border-radius: 9999px;
  padding: 0.375rem;
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  box-shadow: 0 10px 25px rgba(48, 213, 200, 0.3);
}

.pricing-card-popular .feature-check {
  background: rgba(255, 255, 255, 0.25);
}

.feature-check svg {
  width: 16px;
  height: 16px;
  color: white;
}

.feature-item span {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
}

.pricing-card-popular .feature-item span {
  color: white;
}

/* Button */
.card-button {
  width: 100%;
  padding: 1.25rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #30D5C8 0%, #20B5A8 100%);
  box-shadow: 0 10px 40px rgba(48, 213, 200, 0.3);
}

.pricing-card-popular .card-button {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-button:hover:not(.loading):not(.active-plan) {
  transform: translateY(-4px);
}

.card-button:disabled {
  cursor: not-allowed;
}

/* Loading state */
.card-button.loading {
  position: relative;
}

.card-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

.pricing-card-popular .card-button.loading::after {
  border-top-color: #30D5C8;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

.card-button.loading .button-text {
  opacity: 0;
}

/* Active plan state */
.card-button.active-plan {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
  cursor: not-allowed;
}

.pricing-card-popular .card-button.active-plan {
  background: #10B981;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.card-button.active-plan .button-text {
  color: white;
}

.button-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-button:hover .button-overlay {
  opacity: 1;
}

.button-text {
  position: relative;
  z-index: 10;
  font-weight: 700;
  font-size: 17px;
  color: white;
}

.pricing-card-popular .button-text {
  color: #30D5C8;
}



/* Toast */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  background: white;
  border: 1px solid rgba(48, 213, 200, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
}

.toast-success {
  border-right: 4px solid #30D5C8;
}

.toast-icon {
  width: 24px;
  height: 24px;
  color: #30D5C8;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  text-align: right;
}

.toast-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: #6b7280;
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.toast-exit {
  animation: slideOut 0.3s ease;
}

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

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .pricing-description {
    font-size: 1rem;
  }

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

  .pricing-card-popular {
    transform: scale(1);
  }

  .pricing-card-popular .card-header {
    margin-top: 1rem;
  }

  .card-inner {
    padding: 1.5rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }

  .card-header {
    margin-bottom: 1.5rem;
  }

  .card-description {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .card-features {
    margin-bottom: 1.5rem;
  }

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