/* =========================================
   Earn Page Layout & Spacing
   আর্ন (Earn) পেজের মূল লেআউট এবং স্পেসিং
   ========================================= */
.earn-page {
  padding-bottom: 65px;
}

/* Eyebrow Text (Small Heading)
   ছোট হেডিং টেক্সট বা আইব্রো টেক্সট */
.earn-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* =========================================
   Hero Section
   হিরো (Hero) সেকশন বা মূল অংশ
   ========================================= */
.earn-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(35px, 8vw, 105px);
  min-height: 520px;
  padding: 60px 0;
}

.earn-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.02;
}

.earn-hero h1 span {
  color: var(--gold);
}

.earn-hero > div > p:not(.earn-eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* Call to Action Button
   কল টু অ্যাকশন বাটন */
.earn-cta {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

/* =========================================
   Preview Dashboard Box
   প্রিভিউ ড্যাশবোর্ড বক্স
   ========================================= */
.earn-preview {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #554126;
  border-radius: 20px;
  background: radial-gradient(circle at 80% 0, rgba(217, 156, 46, .18), transparent 42%), #15120f;
  box-shadow: 0 24px 60px #0007;
}

.earn-preview > span,
.earn-preview > p {
  color: var(--muted);
}

.earn-preview > strong {
  display: block;
  margin: 8px 0;
  color: #f1cd86;
  font-size: clamp(42px, 6vw, 66px);
}

.earn-preview div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #352c21;
}

.earn-preview div span {
  color: var(--muted);
}

/* =========================================
   Steps Section
   কাজের ধাপগুলোর সেকশন
   ========================================= */
.earn-steps {
  padding: 70px 0;
}

.earn-steps header {
  max-width: 680px;
  margin-bottom: 30px;
}

.earn-steps h2,
.earn-benefits h2,
.earn-join h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

/* 3-Column Grid for Steps
   ধাপগুলোর জন্য ৩-কলামের গ্রিড */
.earn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.earn-card-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #14110e;
}

.earn-card-grid article > span {
  color: var(--gold);
  font-weight: 800;
}

.earn-card-grid h3 {
  margin: 22px 0 8px;
}

.earn-card-grid p,
.earn-benefits p,
.earn-join p {
  color: var(--muted);
  line-height: 1.65;
}

/* =========================================
   Benefits & Join Layout
   সুবিধা ও জয়েন ফর্মের লেআউট
   ========================================= */
.earn-benefits,
.earn-join {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 7vw, 85px);
  align-items: start;
  margin: 35px 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #392f22;
  border-radius: 18px;
  background: linear-gradient(135deg, #17130f, #0f0e0c);
}

.earn-benefits ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.earn-benefits li {
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(217, 156, 46, .06);
}

/* =========================================
   Join Form & Channel Dropdown
   জয়েন ফর্ম এবং চ্যানেল সিলেকশন ড্রপডাউন
   ========================================= */
.earn-join .auth-form {
  width: 100%;
}

.earn-join .auth-form select {
  display: none;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

/* Custom Select Trigger (The visible box) */
.custom-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #12110f;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(217, 156, 46, .12);
  animation: channelSelectGlow 2.4s ease-in-out infinite alternate;
  transition: border-color .25s ease, box-shadow .25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-select-trigger::after {
  content: "▼";
  font-size: 10px;
  color: var(--muted);
}
.custom-select-trigger.open::after {
  content: "▲";
}

.custom-select-trigger:hover,
.custom-select-trigger.open {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(217, 156, 46, .35), 0 0 24px rgba(217, 156, 46, .16);
}

/* Custom Select Options Container */
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background-color: #12110f;
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.7);
  z-index: 99;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.custom-select-options.open {
  display: flex;
}

/* Individual Custom Options */
.custom-option {
  padding: 12px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.custom-option:hover,
.custom-option.selected {
  background-color: var(--gold);
  color: #000;
  font-weight: 600;
}

/* Channel Select Glow Animation
   চ্যানেল সিলেকশনের গ্লো অ্যানিমেশন */
@keyframes channelSelectGlow {
  from {
    box-shadow: 0 0 7px rgba(217, 156, 46, .08);
  }
  to {
    box-shadow: 0 0 16px rgba(217, 156, 46, .28);
  }
}

/* Accessible animations
   অ্যানিমেশন রিডিউস সাপোর্ট */
@media (prefers-reduced-motion: reduce) {
  .earn-join .auth-form select {
    animation: none;
  }
}

/* =========================================
   Responsive Adjustments
   মোবাইল ও ট্যাবের জন্য রেস্পন্সিভ অ্যাডজাস্টমেন্ট
   ========================================= */
@media (max-width: 800px) {
  .earn-hero,
  .earn-benefits,
  .earn-join {
    grid-template-columns: 1fr;
  }
  .earn-card-grid {
    grid-template-columns: 1fr;
  }
  .earn-hero {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .earn-hero {
    padding: 48px 0;
  }
  .earn-benefits,
  .earn-join {
    padding: 22px 18px;
  }
}
