.how-it-works-page {
  width: 100%;
}

.hero-section {
  background: linear-gradient(135deg, var(--green-light), var(--blue-light), var(--orange-light));
  border-bottom: 3px solid var(--green-bright);
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  max-width: 1000px;
  margin: 0 auto 20px;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--blue-light);
  border-top: 1px solid rgba(0, 150, 255, 0.2);
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--green-primary);
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.content-grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

/* Card Styles - Light Theme */
.card {
  background: var(--bg-light);
  border: 1px solid var(--blue-bright);
  border-radius: 15px;
  padding: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 150, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 204, 0, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 204, 0, 0.2);
}

.card-blue {
  background: var(--blue-light);
  border-color: #0096ff;
  box-shadow: 0 2px 10px rgba(0, 150, 255, 0.15);
}

.card-blue:hover {
  box-shadow: 0 5px 20px rgba(0, 150, 255, 0.3);
}

.card-purple {
  background: var(--purple-light);
  border-color: #9600ff;
  box-shadow: 0 2px 10px rgba(150, 0, 255, 0.15);
}

.card-purple:hover {
  box-shadow: 0 5px 20px rgba(150, 0, 255, 0.3);
}

.card-orange {
  background: var(--orange-light);
  border-color: #ff9600;
  box-shadow: 0 2px 10px rgba(255, 150, 0, 0.15);
}

.card-orange:hover {
  box-shadow: 0 5px 20px rgba(255, 150, 0, 0.3);
}

.card-cyan {
  background: var(--cyan-light);
  border-color: #00cccc;
  box-shadow: 0 2px 10px rgba(0, 204, 204, 0.15);
}

.card-cyan:hover {
  box-shadow: 0 5px 20px rgba(0, 204, 204, 0.3);
}

.card-gradient {
  background: linear-gradient(135deg, var(--green-light), var(--orange-light));
  border: 2px solid var(--green-bright);
}

.card-gradient-reverse {
  background: linear-gradient(135deg, var(--orange-light), var(--blue-light));
  border: 2px solid var(--red-accent);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: bold;
}

/* Detailed Steps */
.steps-detailed {
  margin: 30px 0;
}

.step-detailed {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number-large {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0096ff, #9600ff);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.step-content-detailed h4 {
  color: var(--green-bright);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.step-content-detailed p {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.note-box {
  margin-top: 30px;
  padding: 20px;
  background: var(--blue-light);
  border-left: 4px solid #0096ff;
  border-radius: 5px;
}

.note-box p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* After Registration */
.after-registration {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.after-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: var(--purple-light);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.after-item:hover {
  transform: translateX(10px);
  background: rgba(150, 0, 255, 0.2);
}

.after-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.after-item h4 {
  color: var(--green-bright);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.after-item p {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Package Table */
.package-table-container {
  margin: 30px 0;
  overflow-x: auto;
}

.package-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-light);
  border: 1px solid rgba(0, 204, 0, 0.2);
  margin-top: 20px;
}

.package-table th {
  background: var(--green-primary);
  color: #ffffff;
  padding: 15px;
  text-align: left;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.package-table td {
  padding: 12px 15px;
  border: 1px solid rgba(0, 204, 0, 0.1);
  color: var(--text-gray);
}

.package-table tr:nth-child(even) {
  background: var(--green-light);
}

.package-table tr:hover {
  background: rgba(0, 204, 0, 0.2);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.upgrade-benefits {
  margin: 40px 0;
}

.upgrade-benefits h4 {
  color: var(--green-bright);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.benefit-card {
  background: var(--green-light);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--green-bright);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 204, 0, 0.2);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.benefit-card h5 {
  color: var(--green-bright);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.important-note {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 51, 51, 0.1);
  border-left: 4px solid var(--red-accent);
  border-radius: 5px;
}

.important-note p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Referral Details */
.referral-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.detail-box {
  background: var(--orange-light);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #ff9600;
}

.detail-box h4 {
  color: var(--green-bright);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.rate-display,
.payment-method,
.timing {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--green-bright);
  text-shadow: 0 0 15px var(--green-bright);
  margin: 15px 0;
}

.detail-box p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* Referral Examples Table */
.referral-examples-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: var(--bg-light);
  border: 1px solid rgba(0, 204, 204, 0.2);
}

.referral-examples-table th {
  background: linear-gradient(135deg, #00cccc, #0096ff);
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.referral-examples-table td {
  padding: 12px 15px;
  border: 1px solid rgba(0, 204, 204, 0.1);
  color: var(--text-gray);
}

.referral-examples-table tr:nth-child(even) {
  background: var(--cyan-light);
}

.referral-examples-table tr:hover {
  background: rgba(0, 204, 204, 0.2);
  transition: all 0.2s ease;
}

.example-highlight {
  margin-top: 25px;
  padding: 20px;
  background: var(--cyan-light);
  border-left: 4px solid #00cccc;
  border-radius: 5px;
}

.example-highlight p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Binary System */
.binary-explanation {
  margin: 40px 0;
}

.binary-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: rgba(255, 51, 51, 0.1);
  border-radius: 15px;
}

.binary-node.you {
  background: linear-gradient(135deg, var(--green-bright), var(--red-accent));
  color: var(--white);
  padding: 20px 40px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 0 25px rgba(0, 204, 0, 0.4);
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.binary-branches {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.binary-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.branch-label {
  color: var(--green-bright);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.branch-nodes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mini-node {
  background: rgba(0, 204, 0, 0.2);
  border: 2px solid var(--green-bright);
  padding: 10px 20px;
  border-radius: 20px;
  color: var(--green-bright);
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 204, 0, 0.3);
}

.matching-process {
  margin: 40px 0;
}

.matching-process h4 {
  color: var(--green-bright);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 51, 51, 0.1);
  border-radius: 10px;
  border-left: 4px solid var(--red-accent);
}

.process-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.process-step h5 {
  color: var(--green-bright);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.process-step p {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

.matching-example {
  margin: 40px 0;
  padding: 30px;
  background: var(--green-light);
  border-radius: 15px;
}

.matching-example h4 {
  color: var(--green-bright);
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.4rem;
}

.example-scenario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.scenario-side {
  text-align: center;
  padding: 25px;
  background: var(--blue-light);
  border-radius: 10px;
  border: 2px solid #0096ff;
  min-width: 150px;
}

.scenario-side h5 {
  color: var(--green-bright);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.scenario-side .amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--green-bright);
  margin-bottom: 10px;
}

.scenario-side p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

.scenario-match {
  font-size: 3rem;
  color: var(--red-accent);
  font-weight: bold;
}

.scenario-result {
  text-align: center;
  padding: 25px;
  background: var(--green-light);
  border-radius: 10px;
  border: 2px solid var(--green-bright);
  min-width: 200px;
}

.scenario-result h5 {
  color: var(--green-bright);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.result-amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--green-bright);
  margin-bottom: 10px;
  text-shadow: 0 0 15px var(--green-bright);
}

.scenario-result p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

.balance-note {
  margin-top: 30px;
  padding: 25px;
  background: var(--blue-light);
  border-left: 4px solid #0096ff;
  border-radius: 5px;
}

.balance-note p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Daily Ceiling */
.ceiling-benefits {
  margin: 30px 0;
}

.ceiling-benefits h4 {
  color: var(--green-bright);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.ceiling-list {
  list-style: none;
  padding: 0;
}

.ceiling-list li {
  padding: 15px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-gray);
  line-height: 1.8;
}

.ceiling-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: bold;
  font-size: 1.5rem;
}

.ceiling-process {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
}

.ceiling-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--purple-light);
  border-radius: 10px;
  border-left: 4px solid #9600ff;
}

.ceiling-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.ceiling-step h4 {
  color: var(--green-bright);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.ceiling-step p {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

.ceiling-note {
  margin-top: 25px;
  padding: 20px;
  background: var(--purple-light);
  border-left: 4px solid #9600ff;
  border-radius: 5px;
}

.ceiling-note p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Fees Table */
.fees-table-container {
  margin: 30px 0;
  overflow-x: auto;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-light);
  border: 1px solid rgba(0, 204, 0, 0.2);
  margin-top: 20px;
}

.fees-table th {
  background: linear-gradient(135deg, var(--green-bright), var(--red-accent));
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fees-table td {
  padding: 12px 15px;
  border: 1px solid rgba(0, 204, 0, 0.1);
  color: var(--text-gray);
}

.fees-table tr:nth-child(even) {
  background: var(--green-light);
}

.fees-table tr:hover {
  background: rgba(0, 204, 0, 0.2);
  transition: all 0.2s ease;
}

.withdrawal-examples {
  margin: 40px 0;
}

.withdrawal-examples h4 {
  color: var(--green-bright);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.example-card {
  background: var(--green-light);
  padding: 25px;
  border-radius: 10px;
  border: 2px solid var(--green-bright);
  text-align: center;
}

.example-amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--green-bright);
  margin-bottom: 10px;
}

.example-fee {
  color: var(--red-accent);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.example-receive {
  color: var(--text-dark);
  font-weight: bold;
  font-size: 1.2rem;
}

.transparency-box {
  margin-top: 40px;
  padding: 30px;
  background: var(--green-light);
  border-left: 4px solid var(--green-bright);
  border-radius: 10px;
}

.transparency-box h4 {
  color: var(--green-bright);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.transparency-box p {
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 50px 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .content-grid.two-column {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 25px 20px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .step-detailed {
    flex-direction: column;
    gap: 15px;
  }

  .step-number-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .package-table-container,
  .fees-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .package-table,
  .fees-table,
  .referral-examples-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    min-width: 600px;
  }

  .package-table th,
  .package-table td,
  .fees-table th,
  .fees-table td,
  .referral-examples-table th,
  .referral-examples-table td {
    padding: 8px;
    white-space: nowrap;
  }

  .binary-branches {
    flex-direction: column;
    gap: 20px;
  }

  .example-scenario {
    flex-direction: column;
    gap: 20px;
  }

  .scenario-side {
    min-width: 100%;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .referral-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 10px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px 15px;
  }

  .package-table,
  .fees-table,
  .referral-examples-table {
    font-size: 0.75rem;
    min-width: 500px;
  }
}

