/* Keep login form text readable on light backgrounds */
.inline-login-container,
.inline-login-container label,
.inline-login-container a,
.inline-login-container button,
.inline-login-container h2,
.inline-login-container h3,
.inline-login-container p,
.inline-login-container div:not(.error-message):not(.api-error-message) {
  color: var(--color-text-primary, #0f172a);
}

.inline-login-container {
  background-color: var(--color-background-lighter, #5a6d8a);
  border-radius: 16px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  width: 100%;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary, #0f172a);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-header p {
  color: var(--color-text-secondary, #334155);
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-primary, #0f172a);
}

.input-icon {
  color: var(--color-primary, #2ea7ff);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.35);
  color: #000000;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

.form-group input.error {
  border-color: var(--color-error, #ff4d4f);
}

.error-message {
  color: var(--color-error, #ff4d4f);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.checkbox-group label {
  color: var(--color-text-primary, #0f172a);
}

.forgot-password {
  background: none;
  border: none;
  color: var(--color-primary, #2ea7ff);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  transition: all 0.2s ease;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--color-primary);
  color: var(--color-text-contrast);
  border: none;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: var(--color-primary-dark, #0056b3);
  transform: translateY(-2px);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.register-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.register-prompt p {
  color: var(--color-text-secondary, #334155);
  margin: 0;
}

.register-link {
  background: none;
  border: none;
  color: var(--color-primary, #2ea7ff);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.register-link:hover {
  text-decoration: underline;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 3rem;
  color: var(--color-success, #52c41a);
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary, #0f172a);
}

.success-message p {
  color: var(--color-text-secondary, #334155);
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.api-error-message {
  color: var(--color-error, #ff4d4f);
  background-color: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: center;
}

.retry-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--color-primary);
  color: var(--color-text-contrast);
  border: none;
}

.retry-button:hover {
  background-color: var(--color-primary-dark, #0056b3);
  transform: translateY(-2px);
}

/* Forgot Password Form Styles */
.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.forgot-password-form h3 {
  color: var(--color-text-primary, #0f172a);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.forgot-password-form p {
  color: var(--color-text-secondary, #334155);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.forgot-password-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.reset-button,
.back-to-login {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.reset-button {
  background-color: var(--color-primary);
  color: var(--color-text-contrast);
}

.reset-button:hover:not(:disabled) {
  background-color: var(--color-primary-dark, #0056b3);
  transform: translateY(-2px);
}

.reset-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.back-to-login {
  background-color: transparent;
  color: var(--color-text-primary, #0f172a);
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.back-to-login:hover {
  background-color: rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.message {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

.message.success-message {
  color: var(--color-success, #52c41a);
  background-color: rgba(82, 196, 26, 0.1);
  border: 1px solid rgba(82, 196, 26, 0.2);
}

.message.error-message {
  color: var(--color-error, #ff4d4f);
  background-color: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.2);
}

@media (max-width: 576px) {
  .inline-login-container {
    padding: 1.25rem;
    margin-top: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .forgot-password-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .reset-button,
  .back-to-login {
    flex: none;
  }
  
  .login-header {
    margin-bottom: 1.25rem;
  }
  
  .login-header h2 {
    font-size: 1.5rem;
  }
  
  .login-header p {
    font-size: 0.9rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .forgot-password {
    align-self: flex-start;
  }
  
  .login-form {
    gap: 1rem;
  }
  
  .login-button {
    padding: 0.7rem 1.25rem;
  }
  
  .register-prompt {
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.75rem;
  }
}

.login-button-container {
  position: relative;
}

/* Desktop login button */
.login-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #7AC9FF 0%, #AD8CFF 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  box-shadow: 0 5px 15px rgba(90, 185, 254, 0.3);
}

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

/* User menu when logged in */
.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-icon {
  font-size: 1rem;
  color: #5AB9FE;
}

.user-name {
  color: #5AB9FE; /* Added to make username color consistent */
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

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

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(19, 24, 36, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-user-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-user-name {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.dropdown-user-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

.dropdown-campaign-button,
.dropdown-logout-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-campaign-button {
  color: #5AB9FE;
}

.dropdown-logout-button {
  color: #ff6b6b;
}

.dropdown-campaign-button:hover {
  background: rgba(90, 185, 254, 0.1);
}

.dropdown-logout-button:hover {
  background: rgba(255, 99, 99, 0.1);
}

/* Mobile styles */
.mobile-login-button,
.mobile-campaign-button,
.mobile-logout-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-login-button,
.mobile-campaign-button {
  color: #5AB9FE;
}

.mobile-logout-button {
  color: #ff6b6b;
}

.mobile-login-button:hover,
.mobile-campaign-button:hover,
.mobile-logout-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-user-section {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-user-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #5AB9FE; /* Changed to make username color consistent */
  font-size: 1rem;
}

/* Login form popup */
.login-form-popup {
  position: absolute;
  top: calc(100% + 0.75rem);
  
  /* Position is now controlled by inline styles */
  background: rgba(19, 24, 36, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 320px;
  z-index: 1000;
  overflow: auto; /* Changed from hidden to auto to allow scrolling if needed */
  max-width: 90vw; /* Ensure it doesn't exceed viewport width */
  max-height: 80vh; /* Reduced from 90vh to give more margin */
  /* Ensure the popup stays within the viewport on all sides */
  margin-bottom: 10px;
}

/* Mobile responsive styles for login form popup */
@media (max-width: 768px) {
  .login-form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0) !important;
    width: 90%;
    max-width: 350px;
    right: auto;
    max-height: 80vh;
    overflow-y: auto;
    margin: 0;
  }
  
  /* Ensure the popup is fully visible and centered */
  body.rtl .login-form-popup,
  body:not(.rtl) .login-form-popup {
    left: 50% !important;
    right: auto !important;
  }
  
  /* Overlay background for mobile popup */
  .login-form-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* RTL Support */
[dir="rtl"] .login-icon,
[dir="rtl"] .user-icon {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .user-dropdown,
[dir="rtl"] .login-form-popup {
  right: auto;
  left: 0;
}

/* Ensure RTL mobile popup is properly centered */
@media (max-width: 768px) {
  [dir="rtl"] .login-form-popup {
    right: auto;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
  }
}

[dir="rtl"] .dropdown-logout-button,
[dir="rtl"] .dropdown-campaign-button,
[dir="rtl"] .mobile-login-button,
[dir="rtl"] .mobile-campaign-button,
[dir="rtl"] .mobile-logout-button {
  text-align: right;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0; /* Reduced padding to make header more compact */
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px var(--shadow-color);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px var(--shadow-color);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-coin {
  font-weight: 400;
}

.logo-ai {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.desktop-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 1px; /* Minimized margin to make nav items much closer together */
  position: relative; /* For dropdown positioning */
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 4px 6px; /* Minimized padding to make nav items very compact */
  border-radius: 20px;
  font-size: 15px; /* Much smaller font size */
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.1px;
}

.nav-link:hover {
  background-color: rgba(66, 180, 255, 0.1);
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon {
  margin-right: 0.2rem;
  font-size: 0.85rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.2);
  color: var(--secondary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu {
  display: none;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  box-shadow: 0 5px 20px var(--shadow-color);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--card-border);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.4rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-weight: 500;
  font-size: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  font-weight: 600;
}

/* RTL Support */
[dir="rtl"] .header-right {
  flex-direction: row-reverse;
}

/* Dropdown Menu Styles */
.nav-item.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(66, 180, 255, 0.1);
  color: var(--primary-color);
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 5px solid;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

/* Mobile dropdown styles */
.mobile-nav-header {
  background-color: rgba(66, 180, 255, 0.05);
  font-weight: bold;
}

.mobile-nav-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  color: var(--primary-color);
  font-size: 18px;
}

.mobile-nav-subitem {
  background-color: rgba(66, 180, 255, 0.02);
}

.mobile-nav-subitem .mobile-nav-link {
  padding-left: 40px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .logo {
    font-size: 20px;
  }
}

.demo-header-btn {
  background-color: #25D366;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0px 2px 8px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.demo-header-btn:hover {
  background-color: #20ba56;
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .demo-header-btn span {
    display: none;
  }
  .demo-header-btn {
    padding: 8px;
    border-radius: 50%;
  }
}

.hero {
  margin-top: 80px;
  min-height: clamp(280px, 56vh, 620px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('/about.jpg');
  background-size: cover;
  background-position: center 24%;
  background-attachment: scroll;
  overflow: hidden;
  padding: 0 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
  will-change: transform, opacity;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(46, 167, 255, 0.25), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(15, 23, 42, 0.28), transparent 50%);
  z-index: 1;
}

@media (min-width: 1700px) {
  .hero {
    min-height: clamp(320px, 50vh, 720px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.36), rgba(255, 255, 255, 0.12));
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0);
  will-change: opacity;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around; /* Adjusted to space-around or center if only one item */
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Styles for .hero-text-container, .hero-title, .hero-slogan, .hero-subtitle, .hero-cta, .arrow-icon, .hero-registration-form have been moved to HeroText.css */

.coin-animation {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1500px;
  margin-left: 50px;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 20s infinite cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

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

.coin-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}

.coin-front, .coin-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #553c00;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 200, 0, 0.6);
  letter-spacing: -1px;
  font-family: 'Arial', sans-serif;
}

.coin-front {
  background: linear-gradient(135deg, #e6b800 0%, #ffd700 40%, #ffcc00 60%, #e6b800 100%);
  z-index: 2;
  text-transform: uppercase;
}

.coin-circle {
  position: absolute;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  border: 4px solid rgba(173, 137, 0, 0.6);
  box-sizing: border-box;
  opacity: 0.8;
}

.coin-rim {
  position: absolute;
  width: 98%;
  height: 98%;
  border-radius: 50%;
  border: 2px dashed rgba(230, 190, 0, 0.7);
  box-sizing: border-box;
  animation: rotate 60s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.coin-logo, .coin-text {
  font-size: 2.2rem;
  z-index: 5;
  color: #553c00;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  letter-spacing: -0.5px;
  font-weight: 800;
  position: relative;
  text-transform: uppercase;
}

.coin-logo::before, .coin-text::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.highlight {
  color: #b38600;
  font-weight: 900;
}

.coin-edge {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(-15px) rotateX(90deg);
  border-radius: 50%;
  background: #cc9900;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.coin-edge-line {
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: #b38600;
  top: 50%;
  left: 0;
  transform-origin: center;
  transform: translateY(-50%) rotate(calc(var(--i, 0) * 6deg));
}

.coin-edge-line:nth-child(odd) {
  background: #e6b800;
}

@keyframes coin-edge-lines {
  0% { opacity: 0.7; }
  50% { opacity: 0.9; }
  100% { opacity: 0.7; }
}

.coin-edge .coin-edge-line:nth-child(1) { --i: 1; }
.coin-edge .coin-edge-line:nth-child(2) { --i: 2; }
.coin-edge .coin-edge-line:nth-child(3) { --i: 3; }
.coin-edge .coin-edge-line:nth-child(4) { --i: 4; }
.coin-edge .coin-edge-line:nth-child(5) { --i: 5; }
.coin-edge .coin-edge-line:nth-child(6) { --i: 6; }
.coin-edge .coin-edge-line:nth-child(7) { --i: 7; }
.coin-edge .coin-edge-line:nth-child(8) { --i: 8; }
.coin-edge .coin-edge-line:nth-child(9) { --i: 9; }
.coin-edge .coin-edge-line:nth-child(10) { --i: 10; }
.coin-edge .coin-edge-line:nth-child(11) { --i: 11; }
.coin-edge .coin-edge-line:nth-child(12) { --i: 12; }
.coin-edge .coin-edge-line:nth-child(13) { --i: 13; }
.coin-edge .coin-edge-line:nth-child(14) { --i: 14; }
.coin-edge .coin-edge-line:nth-child(15) { --i: 15; }
.coin-edge .coin-edge-line:nth-child(16) { --i: 16; }
.coin-edge .coin-edge-line:nth-child(17) { --i: 17; }
.coin-edge .coin-edge-line:nth-child(18) { --i: 18; }
.coin-edge .coin-edge-line:nth-child(19) { --i: 19; }
.coin-edge .coin-edge-line:nth-child(20) { --i: 20; }
.coin-edge .coin-edge-line:nth-child(21) { --i: 21; }
.coin-edge .coin-edge-line:nth-child(22) { --i: 22; }
.coin-edge .coin-edge-line:nth-child(23) { --i: 23; }
.coin-edge .coin-edge-line:nth-child(24) { --i: 24; }
.coin-edge .coin-edge-line:nth-child(25) { --i: 25; }
.coin-edge .coin-edge-line:nth-child(26) { --i: 26; }
.coin-edge .coin-edge-line:nth-child(27) { --i: 27; }
.coin-edge .coin-edge-line:nth-child(28) { --i: 28; }
.coin-edge .coin-edge-line:nth-child(29) { --i: 29; }
.coin-edge .coin-edge-line:nth-child(30) { --i: 30; }
.coin-edge .coin-edge-line:nth-child(31) { --i: 31; }
.coin-edge .coin-edge-line:nth-child(32) { --i: 32; }
.coin-edge .coin-edge-line:nth-child(33) { --i: 33; }
.coin-edge .coin-edge-line:nth-child(34) { --i: 34; }
.coin-edge .coin-edge-line:nth-child(35) { --i: 35; }
.coin-edge .coin-edge-line:nth-child(36) { --i: 36; }
.coin-edge .coin-edge-line:nth-child(37) { --i: 37; }
.coin-edge .coin-edge-line:nth-child(38) { --i: 38; }
.coin-edge .coin-edge-line:nth-child(39) { --i: 39; }
.coin-edge .coin-edge-line:nth-child(40) { --i: 40; }
.coin-edge .coin-edge-line:nth-child(41) { --i: 41; }
.coin-edge .coin-edge-line:nth-child(42) { --i: 42; }
.coin-edge .coin-edge-line:nth-child(43) { --i: 43; }
.coin-edge .coin-edge-line:nth-child(44) { --i: 44; }
.coin-edge .coin-edge-line:nth-child(45) { --i: 45; }
.coin-edge .coin-edge-line:nth-child(46) { --i: 46; }
.coin-edge .coin-edge-line:nth-child(47) { --i: 47; }
.coin-edge .coin-edge-line:nth-child(48) { --i: 48; }
.coin-edge .coin-edge-line:nth-child(49) { --i: 49; }
.coin-edge .coin-edge-line:nth-child(50) { --i: 50; }
.coin-edge .coin-edge-line:nth-child(51) { --i: 51; }
.coin-edge .coin-edge-line:nth-child(52) { --i: 52; }
.coin-edge .coin-edge-line:nth-child(53) { --i: 53; }
.coin-edge .coin-edge-line:nth-child(54) { --i: 54; }
.coin-edge .coin-edge-line:nth-child(55) { --i: 55; }
.coin-edge .coin-edge-line:nth-child(56) { --i: 56; }
.coin-edge .coin-edge-line:nth-child(57) { --i: 57; }
.coin-edge .coin-edge-line:nth-child(58) { --i: 58; }
.coin-edge .coin-edge-line:nth-child(59) { --i: 59; }
.coin-edge .coin-edge-line:nth-child(60) { --i: 60; }

.coin-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateZ(1px);
}

.coin-star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: transparent;
  transform: rotate(45deg);
}

.coin-star:before, 
.coin-star:after {
  content: "";
  position: absolute;
  background-color: #553c00;
  opacity: 0.6;
}

.coin-star:before {
  width: 12px;
  height: 2px;
  top: 5px;
  left: 0;
}

.coin-star:after {
  width: 2px;
  height: 12px;
  top: 0;
  left: 5px;
}

.star-1 { top: 15%; left: 20%; }
.star-2 { top: 25%; left: 80%; }
.star-3 { top: 80%; left: 15%; }
.star-4 { top: 70%; left: 80%; }
.star-5 { top: 45%; left: 90%; }
.star-6 { top: 10%; left: 40%; }
.star-7 { top: 85%; left: 50%; }
.star-8 { top: 40%; left: 10%; }

.coin-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: shine 8s infinite alternate;
}

@keyframes shine {
  0% { opacity: 0.5; transform: translateX(-25%) translateY(-25%) rotate(0deg); }
  25% { opacity: 0.7; }
  50% { opacity: 0.5; transform: translateX(25%) translateY(25%) rotate(180deg); }
  75% { opacity: 0.3; }
  100% { opacity: 0.5; transform: translateX(-25%) translateY(-25%) rotate(360deg); }
}

.coin-emblem {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 2px solid rgba(102, 51, 0, 0.3);
  transform: translateZ(1px);
  background: radial-gradient(circle at center, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
}

.coin-emblem::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  border: 1px solid rgba(102, 51, 0, 0.2);
  background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0) 70%);
}

.coin-emblem::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(102, 51, 0, 0.1) 0%, rgba(102, 51, 0, 0) 70%);
}

/* 3D Animation */
@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Add slightly slower spin on hover to make it easier to see details */
.coin-animation:hover .coin {
  animation: spin 40s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-text {
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 2px;
}

/* RTL Support */
[dir="rtl"] .hero-cta .arrow-icon {
  margin-left: 0;
  margin-right: 8px;
  transform: rotate(180deg);
}

[dir="rtl"] .hero-cta:hover .arrow-icon {
  transform: rotate(180deg) translateX(5px);
}

/* Responsive styling */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text-container {
    margin-bottom: 50px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-slogan {
    font-size: 1.5rem;
  }
  
  .coin-animation {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    background-position: center 30%;
    min-height: clamp(220px, 42vh, 360px);
    border-radius: 0 0 20px 20px;
  }

  .hero-title {
    font-size: 3rem;
  }
  
  .hero-slogan {
    font-size: 1.3rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 18px;
  }
}

.home-showcase-section {
  position: relative;
  padding: 132px 0 54px;
  background: linear-gradient(140deg, #f8f6f1 0%, #efe9dc 52%, #f8f6f1 100%);
  overflow: hidden;
}

.home-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(28, 79, 92, 0.14), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(197, 140, 62, 0.16), transparent 34%);
  pointer-events: none;
}

.home-showcase-header {
  text-align: center;
  margin-bottom: 42px;
  position: relative;
  z-index: 1;
}

.home-showcase-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0e4250;
  background: rgba(14, 66, 80, 0.14);
  margin-bottom: 14px;
}

.home-showcase-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f2c35;
}

.home-showcase-subtitle {
  margin: 15px auto 0;
  max-width: 780px;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #295361;
}

.home-showcase-marketing {
  text-align: center;
  margin-bottom: 42px;
  position: relative;
  z-index: 1;
}

.home-showcase-marketing-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f2c35;
}

.home-showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.home-showcase-card {
  border: 1px solid rgba(14, 66, 80, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(18, 44, 55, 0.08);
  padding: 24px;
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(18, 44, 55, 0.14);
}

.home-showcase-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-showcase-label {
  border-radius: 999px;
  background: rgba(201, 133, 52, 0.18);
  color: #804910;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.home-showcase-icon {
  color: #0e4250;
  opacity: 0.7;
  font-size: 1rem;
}

.home-showcase-card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: #0f2c35;
}

.home-showcase-card-content {
  margin: 10px 0 0;
  color: #34535d;
  line-height: 1.65;
  word-break: break-word;
}

.home-showcase-card-content a {
  color: #0e4250;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.home-showcase-card-content a:hover {
  color: #804910;
}

.home-showcase-card-content a.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-showcase-card-content a.whatsapp-link:hover {
  background: #1ebe5d;
  color: #fff;
  transform: scale(1.1);
}

.home-showcase-loading,
.home-showcase-error {
  text-align: center;
  padding: 24px 0;
  color: #24505e;
  font-weight: 500;
}

@media (max-width: 768px) {
  .home-showcase-section {
    padding: 84px 0 42px;
  }

  .home-showcase-header {
    margin-bottom: 30px;
  }

  .home-showcase-subtitle {
    font-size: 1rem;
  }
}
.about {
  padding: 100px 0;
  background-color: var(--darker-bg);
  color: var(--text-dark);
  position: relative;
}

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

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 800;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-container {
  width: 100%;
  height: 400px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 10px 20px var(--shadow-color);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.stock-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-stock-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.stock-image-wrapper:hover .about-stock-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.value-tags {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.value-tag {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  animation: fadeInUp 0.8s forwards;
}

.value-tag:hover {
  transform: translateY(-5px);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.value-tag.security {
  background: linear-gradient(135deg, #4481eb, #04befe);
  animation-delay: 0.1s;
}

.value-tag.trust {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  animation-delay: 0.3s;
}

.value-tag.innovation {
  background: linear-gradient(135deg, #fa709a, #fee140);
  animation-delay: 0.5s;
}

.value-tag.community {
  background: linear-gradient(135deg, #8f66ff, #5ab9fe);
  animation-delay: 0.7s;
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--text-medium);
}

.about-mission,
.about-vision {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px var(--shadow-color);
  border: 1px solid var(--card-border);
}

.about-vision {
  /* border styles are now consistent with about-mission */
}

.about-mission:hover,
.about-vision:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-color);
}

.about-mission h3,
.about-vision h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 700;
}

.about-mission p,
.about-vision p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
}

/* RTL Support */
[dir="rtl"] .about-mission,
[dir="rtl"] .about-vision {
  /* borders removed */
}

[dir="rtl"] .block::before {
  right: auto;
  left: -40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-image {
    order: 2;
  }
  
  .about-text {
    order: 1;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 70px 0;
  }
  
  .image-container {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .block {
    width: 50px;
    height: 50px;
  }
  
  .block::before {
    width: 20px;
    right: -20px;
  }
  
  [dir="rtl"] .block::before {
    left: -20px;
  }
}

.features {
  padding: 100px 0;
  background-color: var(--darker-bg);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(66, 180, 255, 0.15), transparent 70%),
              radial-gradient(circle at bottom left, rgba(255, 107, 107, 0.15), transparent 70%),
              radial-gradient(circle at center, rgba(6, 214, 160, 0.1), transparent 60%);
  pointer-events: none;
}

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

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

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.feature-card:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  position: relative;
  background-color: rgba(66, 180, 255, 0.1);
  color: var(--primary-color);
}

.icon-bg {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px dashed var(--accent-color);
  border-radius: 20px;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding-left: 15px;
  border-left: 3px solid var(--secondary-color);
}

.feature-description {
  color: var(--text-medium);
  line-height: 1.6;
  font-size: 1rem;
  flex-grow: 1;
}

.feature-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
  transition: transform 0.3s ease;
  transform: scaleX(0.3);
  transform-origin: left;
}

.feature-card:hover .feature-accent {
  transform: scaleX(1);
}

/* RTL Support */
[dir="rtl"] .feature-accent {
  transform-origin: right;
}

/* Responsive styling */
@media (max-width: 992px) {
  .features {
    padding: 80px 0;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 25px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
  
  .feature-title {
    font-size: 1.3rem;
  }
}

.inline-registration-container {
  
  border-radius: 16px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
  width: 100%;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.registration-header {
  text-align: center;
  margin-bottom: 2rem;
}

.registration-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.registration-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}



.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.input-icon {
  color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

.form-group input.error {
  border-color: var(--color-error, #ff4d4f);
}

.error-message {
  color: var(--color-error, #ff4d4f);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-group label {
  flex: 1;
  font-size: 0.85rem;
}

.checkbox-group label a {
  color: var(--color-primary);
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}

.next-button,
.back-button,
.submit-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-button,
.submit-button {
  background-color: var(--color-primary);
  color: var(--color-text-contrast);
  border: none;
}

.next-button:hover,
.submit-button:hover {
  background-color: var(--color-primary-dark, #0056b3);
  transform: translateY(-2px);
}

.back-button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-secondary);
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.next-button {
  margin-left: auto;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 3rem;
  color: var(--color-success, #52c41a);
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.success-message p {
  color: var(--color-text-secondary);
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.api-error-message {
  color: var(--color-error, #ff4d4f);
  background-color: rgba(255, 77, 79, 0.1);
  border: 1px solid rgba(255, 77, 79, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: center;
}

.retry-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--color-primary);
  color: var(--color-text-contrast);
  border: none;
}

.retry-button:hover {
  background-color: var(--color-primary-dark, #0056b3);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .registration-modal {
    padding: 1.5rem;
    width: 95%;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .next-button,
  .back-button,
  .submit-button {
    width: 100%;
  }
}

.cta {
  position: relative;
  color: white;
  overflow: hidden;
  padding: 100px 0;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.cta-content {
  background: rgba(19, 24, 36, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, #5AB9FE 0%, #8F66FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-join-button {
  background: linear-gradient(90deg, #5AB9FE 0%, #8F66FF 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(90, 185, 254, 0.3);
  transition: all 0.3s ease;
}

.cta-join-button:hover {
  box-shadow: 0 15px 30px rgba(90, 185, 254, 0.4);
}

.arrow-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta-join-button:hover .arrow-icon {
  transform: translateX(5px);
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
}

.cta-bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -250px;
  left: -100px;
  background: linear-gradient(135deg, #5AB9FE 0%, transparent 70%);
  animation: floatShape 15s infinite alternate ease-in-out;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -100px;
  background: linear-gradient(135deg, #8F66FF 0%, transparent 70%);
  animation: floatShape 20s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  width: 300px;
  height: 300px;
  top: 20%;
  right: 10%;
  background: linear-gradient(135deg, #6E8FFF 0%, transparent 70%);
  animation: floatShape 18s infinite alternate ease-in-out;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(30px, 30px) rotate(10deg);
  }
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90, 185, 254, 0.7), rgba(143, 102, 255, 0.7));
  box-shadow: 0 0 10px rgba(90, 185, 254, 0.5);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -100px) scale(0);
    opacity: 0;
  }
}

/* RTL Support */
[dir="rtl"] .arrow-icon {
  margin-left: 0;
  margin-right: 8px;
  transform: rotate(180deg);
}

[dir="rtl"] .cta-join-button:hover .arrow-icon {
  transform: rotate(180deg) translateX(5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cta {
    padding: 70px 0;
  }
  
  .cta-content {
    padding: 40px 25px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .cta-join-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Form container and toggle buttons */
.form-container {
  width: 100%;
  margin-bottom: 1rem;
}

.form-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.toggle-button.active {
  background: linear-gradient(90deg, #5AB9FE 0%, #8F66FF 100%);
  color: white;
  border-color: transparent;
}

.footer {
  background-color: var(--darker-bg);
  color: var(--text-dark);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(66, 180, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom left, rgba(255, 107, 107, 0.08), transparent 60%),
              radial-gradient(circle at center, rgba(6, 214, 160, 0.05), transparent 70%);
  pointer-events: none;
}

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

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

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-coin {
  font-weight: 400;
}

.logo-ai {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav-column {
  min-width: 150px;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

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

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

.footer-links a,
.footer-links button {
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left; /* Ensure button text aligns like links */
  font-family: inherit; /* Ensure button font matches links */
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 5px;
}

/* RTL Support for button padding */
[dir="rtl"] .footer-links button:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.footer-language {
  margin-top: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px var(--shadow-color);
}

/* RTL Support */
[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .footer-nav-column {
    min-width: calc(50% - 20px);
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .footer-nav-column {
    min-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.service-detail-section {
  padding: 80px 0;
  overflow: hidden;
}

.service-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.service-layout.normal {
  flex-direction: row;
}

.service-layout.reverse {
  flex-direction: row-reverse;
}

.service-text-side {
  flex: 1;
}

.service-visual-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.service-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-detail-subtitle {
  font-size: 1.2rem;
  color: #00D09C;
  margin-bottom: 20px;
  font-weight: 600;
}

.service-detail-description {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #d0d0d0;
  margin-bottom: 12px;
}

.benefit-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Visual mockup simulators */
.visual-mockup-card {
  width: 100%;
  max-width: 450px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mockup-header {
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background-color: #EA4335; }
.mockup-dot.yellow { background-color: #FBBC05; }
.mockup-dot.green { background-color: #34A853; }

.mockup-title {
  font-size: 12px;
  color: #707070;
  font-family: monospace;
  margin-right: auto;
  direction: ltr;
}

.mockup-body {
  padding: 24px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Chats */
.chat-simulation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.user {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.bot {
  background-color: rgba(0, 208, 156, 0.08);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border-left: 3px solid #00D09C;
}

/* Call simulation */
.call-simulation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.call-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e0e0e0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.call-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
}

.call-waveform .bar {
  width: 4px;
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

.wave-1 { height: 15px; animation-delay: 0.1s !important; }
.wave-2 { height: 35px; animation-delay: 0.3s !important; }
.wave-3 { height: 25px; animation-delay: 0.2s !important; }
.wave-4 { height: 30px; animation-delay: 0.4s !important; }

@keyframes wave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.call-text {
  font-size: 14px;
  color: #a0a0a0;
  font-style: italic;
  text-align: center;
}

/* Marketing */
.marketing-simulation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.stat-label { color: #808080; }
.stat-val.active { color: #25D366; font-weight: bold; }

.stat-progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.stats-grid {
  display: flex;
  gap: 12px;
}

.stat-card {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card .num {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.stat-card .lbl {
  font-size: 11px;
  color: #808080;
  margin-top: 4px;
}

/* CRM Leads */
.crm-simulation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-lead-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.lead-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.lead-info .phone {
  font-size: 12px;
  color: #808080;
}

.crm-lead-item .badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: bold;
}

.crm-lead-item .badge.new {
  background-color: rgba(234, 67, 53, 0.15);
  color: #EA4335;
}

.crm-lead-item .badge.callback {
  background-color: rgba(0, 208, 156, 0.15);
  color: #00D09C;
}

/* Balance Box */
.balance-simulation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.balance-box {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.balance-lbl {
  font-size: 12px;
  color: #808080;
}

.balance-val {
  font-size: 32px;
  font-weight: bold;
}

.sim-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-btn.recharge {
  color: #ffffff;
}

.sim-btn.history {
  background-color: rgba(255, 255, 255, 0.04);
  color: #d0d0d0;
}

.sim-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 992px) {
  .service-layout {
    flex-direction: column !important;
    gap: 40px;
  }
  .service-detail-section {
    padding: 60px 0;
  }
}

