/* Hero Section */
.hero-section {
  position: relative;
  height: 450px;
  overflow: hidden;
  margin: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-lg);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 60, 83, 0.8) 0%,
    rgba(69, 104, 130, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  color: var(--white);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  animation: fadeInUp 1.2s ease;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-card i {
  font-size: 2rem;
  color: var(--accent-beige);
}

.stat-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-info p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Dashboard Content */
.dashboard-content {
  padding: 2rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.content-header h2 {
  font-size: 2rem;
  color: var(--primary-dark);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(69, 104, 130, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(69, 104, 130, 0.4);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.card-body {
  padding: 1.5rem;
}

/* Scrollable card body for transactions when more than 3 */
.card-body:has(.transaction-item:nth-child(4)) {
  max-height: 400px;
  overflow-y: auto;
}

.card-body:has(.transaction-item:nth-child(4))::-webkit-scrollbar {
  width: 6px;
}

.card-body:has(.transaction-item:nth-child(4))::-webkit-scrollbar-track {
  background: var(--light-cream);
  border-radius: 3px;
}

.card-body:has(.transaction-item:nth-child(4))::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}

.card-body:has(.transaction-item:nth-child(4))::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Transaction Item */
.transaction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.transaction-item:hover {
  background: var(--light-cream);
}

.transaction-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.transaction-icon.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.transaction-icon.danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.transaction-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.transaction-name {
  font-weight: 600;
  color: var(--text-dark);
}

.transaction-id {
  font-size: 0.75rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.transaction-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.transaction-amount {
  font-weight: 700;
  font-size: 1.1rem;
}

.transaction-amount.success {
  color: var(--success);
}

.transaction-amount.danger {
  color: var(--danger);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.action-btn {
  background: var(--light-cream);
  border: 2px solid transparent;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--white);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.action-btn i {
  font-size: 1.8rem;
  color: var(--primary-blue);
}

.action-btn span {
  color: var(--text-dark);
  font-weight: 600;
}

/* Section Title */
.section-title {
  margin: 3rem 0 1.5rem 0;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  padding-left: 1rem;
  border-left: 4px solid var(--primary-blue);
}

/* Offer Items */
.offer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--light-cream);
  transition: all 0.3s ease;
}

.offer-item:hover {
  background: var(--accent-beige);
  transform: translateX(5px);
}

.offer-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.offer-details {
  flex: 1;
}

.offer-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.offer-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

.badge-success {
  background: var(--success);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-warning {
  background: var(--warning);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-info {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 1rem;
  background: var(--light-cream);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-item:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-5px);
}

.service-item i {
  font-size: 2rem;
  color: var(--primary-blue);
  transition: color 0.3s ease;
}

.service-item:hover i {
  color: var(--white);
}

.service-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Investment Items */
.investment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background: var(--light-cream);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.investment-item:hover {
  background: var(--accent-beige);
  transform: translateX(5px);
}

.investment-info h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.investment-info p {
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}

.investment-value .rate {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--success);
  color: var(--white);
}

.investment-value .rate.moderate {
  background: var(--warning);
  color: var(--text-dark);
}

.investment-value .rate.high {
  background: var(--danger);
}

/* Rewards Summary */
.rewards-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rewards-circle {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.points-display {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px var(--shadow-lg);
}

.points-display h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.points-display p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.rewards-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reward-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-cream);
  border-radius: 10px;
}

.reward-stat i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.reward-stat strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.reward-stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Loan Items */
.loan-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-cream);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.loan-item:hover {
  background: var(--accent-beige);
}

.loan-item i {
  font-size: 2rem;
  color: var(--primary-blue);
  width: 50px;
  text-align: center;
}

.loan-details {
  flex: 1;
}

.loan-details h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.loan-details p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.btn-small {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Insurance Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.insurance-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--light-cream);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.insurance-card:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-5px);
}

.insurance-card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.insurance-card:hover i {
  color: var(--white);
}

.insurance-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.insurance-card:hover h4 {
  color: var(--white);
}

.insurance-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.insurance-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Transfer Options */
.transfer-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transfer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-cream);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.transfer-item:hover {
  background: var(--accent-beige);
  transform: translateX(5px);
}

.transfer-item i {
  font-size: 1.8rem;
  color: var(--primary-blue);
  width: 50px;
  text-align: center;
}

.transfer-details h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.transfer-details p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Guest User Styles */
.guest-hero {
  height: 550px;
}

.guest-content {
  text-align: center;
  justify-content: space-around;
  padding: 4rem 2rem;
}

.guest-welcome {
  max-width: 800px;
  margin: 0 auto;
}

.animated-title {
  animation: fadeInDown 0.8s ease;
  font-size: 3.5rem;
}

.animated-subtitle {
  animation: fadeInUp 1s ease;
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--accent-beige);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: #f5e5d1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(234, 216, 192, 0.4);
}

.btn-primary.pulse {
  animation: pulse 2s infinite;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-primary.large {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}

.guest-stats {
  margin-top: 3rem;
}

/* Guest Features Section */
.guest-features {
  margin: 4rem 2rem;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.features-header p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow-lg);
  border-color: var(--accent-beige);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 5px 15px rgba(27, 60, 83, 0.3);
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  margin: 5rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.step-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 280px;
  flex: 1;
  position: relative;
  box-shadow: 0 5px 20px var(--shadow-md);
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-beige), #f5e5d1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(234, 216, 192, 0.5);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 1.5rem;
  font-size: 1.8rem;
  color: var(--white);
}

.step-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
}

/* Testimonials Section */
.testimonials-section {
  margin: 5rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--accent-beige);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-lg);
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.3rem;
}

.testimonial-card p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.testimonial-author strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

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

/* CTA Section */
.cta-section {
  margin: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-lg);
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: var(--accent-beige);
  color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
  background: #f5e5d1;
  transform: translateY(-3px) scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(234, 216, 192, 0.5);
  }
}

/* Responsive Adjustments for Guest Section */
@media (max-width: 768px) {
  .animated-title {
    font-size: 2rem;
  }

  .animated-subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .guest-hero {
    height: auto;
    min-height: 600px;
  }

  .feature-card {
    padding: 2rem;
  }

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