/* Base Styles */
:root {
  --primary-color: #6c5ce7;
  --primary-dark: #5a49d8;
  --primary-light: #a29bfe;
  --secondary-color: #FFBA02;
  --accent-color: #fcb900;
  --text-color: #2d3436;
  --text-light: #636e72;
  --background-color: #ffffff;
  --background-light: #f8f9fa;
  --background-deep:#2C061F;
  --background-dark-light: #dfe6e9;
  --background-dark: #e9ecef;
  --border-color: #dfe6e9;
  --success-color: #FFBA02;
  --warning-color: #fdcb6e;
  --danger-color: #e17055;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.text-uppercase {
  text-transform: uppercase;
}
.text-bold {
  font-weight: bold;
}
.text-italic {
  font-style: italic;
}
.text-underline {
  text-decoration: underline;
}
.text-decoration-none {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #00a382;
  color: white;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Header Styles */
header {
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.btn-dashboard {
  background-color: var(--primary-light);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.btn-dashboard:hover,
.btn-dashboard.active {
  background-color: var(--primary-color);
  color: white;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

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

/* Featured Raffles Section */
.featured-raffles {
  padding: 4rem 0;
  background-color: var(--background-light);
}

.raffles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.raffle-card {
  background-color: var(--background-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.raffle-image {
  position: relative;
}
.raffle-image img {
  width: 50%;
  height: auto;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  transition: var(--transition);
}
.raffle-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: rgba(0, 0, 0, 0.5); */
}

.raffle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.raffle-badge.winner {
  background-color: var(--success-color);
}

.raffle-content {
  padding: 1.5rem;
}

.raffle-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.raffle-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.raffle-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.raffle-price {
  font-weight: 600;
}

.raffle-time {
  color: var(--text-light);
}

.raffle-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--background-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: right;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  padding: 1.5rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-light);
}

/* Recent Winners Section */
.recent-winners {
  padding: 4rem 0;
  background-color: var(--background-light);
}

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

.winner-card {
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--box-shadow);
}

.winner-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.winner-content h3 {
  margin-bottom: 0.25rem;
}

.winner-content .prize {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

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

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--background-dark);
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--secondary-color);
}

.newsletter-form button:hover {
  background-color: #00a382;
}

/* Footer */
footer {
  background-color: #2d3436;
  color: white;
  padding: 4rem 0 1rem;
}

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

.footer-about h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: #b2bec3;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #b2bec3;
}

.footer-links a:hover {
  color: white;
}

.footer-contact h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: #b2bec3;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b2bec3;
}

/* Dashboard Styles */
.dashboard-page {
  background-color: var(--background-light);
}

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  width: 280px;
  background-color: var(--background-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
}

.user-profile {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.user-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.dashboard-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.dashboard-nav ul li {
  margin-bottom: 0.5rem;
}

.dashboard-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background-color: var(--background-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
}

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

.dashboard-header h2 {
  font-size: 1.75rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
}

.badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
  margin-left: 0.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
}

.stat-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.stat-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

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

.dashboard-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-section {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

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

.section-header h3 {
  font-size: 1.25rem;
}

.view-all-link {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.upcoming-draws {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.draw-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
}

.draw-info h4 {
  margin-bottom: 0.25rem;
}

.draw-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.draw-countdown {
  text-align: right;
}

.countdown {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.draw-countdown p {
  font-size: 0.8rem;
}

.transactions-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background-color: var(--background-light);
  font-weight: 600;
}

tr {
  border-bottom: 1px solid var(--border-color);
}

tr:last-child {
  border-bottom: none;
}

.status-completed {
  color: var(--success-color);
  font-weight: 500;
}

.status-pending {
  color: var(--warning-color);
  font-weight: 500;
}

.status-active {
  color: var(--primary-color);
  font-weight: 500;
}

.status-expired {
  color: var(--text-light);
  font-weight: 500;
}

.recommended-raffles {
  margin-top: 2rem;
}

.dashboard-tab {
  display: none;
}

.dashboard-tab.active {
  display: block;
}

.tickets-filter,
.transactions-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

.filter-group select,
.filter-group input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.raffles-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.raffle-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.raffle-tab.active {
  color: var(--primary-color);
}

.raffle-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.raffle-tab-content {
  display: none;
}

.raffle-tab-content.active {
  display: block;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-light);
}

.raffle-tickets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.raffle-tickets p {
  font-weight: 500;
}

.won-raffle .raffle-content {
  border-top: 3px solid var(--success-color);
}

.raffle-prize-status {
  margin: 1rem 0;
}

.profile-settings {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-section {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.profile-section h4 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

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

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

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

  .dashboard-sidebar {
    width: 100%;
    position: static;
    height: auto;
  }

  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}

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

  nav ul.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    z-index: 100;
  }

  nav ul.show li {
    margin: 0.5rem 0;
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px;
  background-color: #f9f9f9;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 15px;
  background-color: #fff;
}

.faq-answer p {
  margin: 15px 0;
}

.faq-toggle {
  font-size: 18px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .faq-question {
      font-size: 14px;
  }

  .faq-answer p {
      font-size: 14px;
  }
}

/* FAQ */

/* fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* fade in left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.5s forwards;
}
@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* fade in right */
.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.5s forwards;
}
@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.duration-1s {
  animation-duration: 1s;
}
.duration-2s {
  animation-duration: 2s;
}
.duration-3s {
  animation-duration: 3s;
}

.delay-05s {
  animation-delay: 0.5s;
}
.delay-1s {
  animation-delay: 1s;
}
.delay-2s {
  animation-delay: 2s;
}
.delay-3s {
  animation-delay: 3s;
}
.delay-4s {
  animation-delay: 4s;
}
.delay-3s {
  animation-delay: 3s;
}

/* fade in animation */