/* ═══════════════════════════════════════════════════════════════
   Cashbak.io — Components Stylesheet
   ──────────────────────────────────────────────
   Contains: Buttons + Cards + Tables + Forms + FAQ + Tabs + Pills
═══════════════════════════════════════════════════════════════ */

/* ==================== BUTTONS ==================== */
.btn {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 13px 20px;
  cursor: pointer;
  font-weight: var(--fw-extra);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: var(--shadow-green);
  font-family: inherit;
  font-size: var(--fs-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn.light {
  background: #f2f4f7;
  color: #344054;
  box-shadow: none;
}

.btn.gold {
  background: linear-gradient(135deg, #fbbf24, var(--gold));
  box-shadow: var(--shadow-gold);
}

.btn.dark {
  background: linear-gradient(135deg, var(--panel-dark-1), var(--panel-dark-2));
}

.btn.outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  box-shadow: none;
}

.btn.small {
  padding: 9px 16px;
  font-size: var(--fs-sm);
  border-radius: 12px;
}

.btn.tiny {
  padding: 7px 12px;
  font-size: var(--fs-xs);
  border-radius: 10px;
}

.btn.large {
  padding: 18px 32px;
  font-size: var(--fs-lg);
  border-radius: 18px;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

/* ==================== PILLS ==================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-extra);
  transition: all var(--transition-fast);
}

.pill:hover {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}

.pill .icon { font-size: 16px; }

.pill.green { background: var(--green-soft); color: var(--green-dark); border-color: rgba(16,185,129,.25); }
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,158,11,.25); }
.pill.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(37,99,235,.25); }
.pill.purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(139,92,246,.25); }
.pill.red { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,.25); }

/* Tag (smaller pill) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: var(--fw-extra);
  letter-spacing: .5px;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(16,24,40,.12);
}

.card.compact {
  padding: 20px;
  border-radius: 18px;
}

.card.large {
  padding: 40px;
  border-radius: var(--radius-3xl);
}

/* Dark panel card */
.card-dark {
  background: linear-gradient(135deg, var(--panel-dark-1), var(--panel-dark-2) 55%, var(--panel-dark-3));
  color: white;
  border-radius: 32px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.card-dark::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(16,185,129,.22);
  right: -100px;
  top: -120px;
}

.card-dark::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(245,158,11,.18);
  left: -60px;
  bottom: -80px;
}

.card-dark > * { position: relative; z-index: 1; }

/* ==================== FORMS ==================== */
.form-label {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-weight: var(--fw-extra);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  background: white;
  outline: none;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

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

/* Search input */
.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray);
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  background: white;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

/* ==================== STATS ==================== */
.stat-block {
  text-align: center;
  padding: 20px;
}

.stat-block strong {
  display: block;
  font-size: 22px;
  font-weight: var(--fw-ultra);
  letter-spacing: -.5px;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.stat-block span {
  font-size: 12px;
  color: var(--gray);
  font-weight: var(--fw-bold);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Dark stat block */
.stat-block-dark {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 26px;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-block-dark:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.12);
}

.stat-block-dark strong {
  display: block;
  font-size: 32px;
  font-weight: var(--fw-ultra);
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: white;
}

.stat-block-dark span {
  font-size: 12px;
  color: var(--green-light);
  font-weight: var(--fw-bold);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-extra);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  color: var(--dark);
}

.tab:hover {
  border-color: var(--green);
}

.tab.active {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  border-color: var(--green-dark);
}

/* ==================== ACCORDION (FAQ) ==================== */
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
}

.faq-item:hover { border-color: var(--green); }

.faq-item.open {
  border-color: var(--green);
  background: var(--green-soft);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: var(--fw-extra);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--dark);
}

.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: all var(--transition-normal);
  flex: 0 0 auto;
}

.faq-item.open .faq-arrow {
  background: var(--green-dark);
  color: white;
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-item.open .faq-a { max-height: 200px; }

.faq-a-inner {
  padding: 0 24px 22px;
  font-size: var(--fs-base);
  color: var(--gray);
  font-weight: 700;
  line-height: 1.8;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

/* ==================== TABLE ==================== */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: middle;
}

.table thead th {
  font-size: 12px;
  color: var(--gray);
  font-weight: var(--fw-extra);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  background: var(--bg-soft);
}

.table tbody td {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  border-bottom: 1px dashed var(--line);
}

.table tbody tr:hover td {
  background: rgba(16,185,129,.03);
}

/* ==================== BADGES & MEDALS ==================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.badge.green { background: var(--green-soft); color: var(--green-dark); border-color: rgba(16,185,129,.2); }
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(245,158,11,.2); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(37,99,235,.2); }
.badge.purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(139,92,246,.2); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,.2); }

.featured-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, #fbbf24, var(--gold));
  color: white;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--fw-extra);
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}

/* ==================== AVATAR ==================== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--panel-dark-1), var(--panel-dark-2));
  color: white;
  display: grid;
  place-items: center;
  font-weight: var(--fw-ultra);
  font-size: 18px;
}

.avatar.lg {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  font-size: 28px;
  border: 4px solid white;
  box-shadow: 0 12px 28px rgba(16,24,40,.18);
}

.avatar.sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 14px;
}

/* ==================== LOGO (for brokers) ==================== */
.broker-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--panel-dark-1), var(--panel-dark-2));
  color: white;
  display: grid;
  place-items: center;
  font-weight: var(--fw-ultra);
  font-size: 22px;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(16,24,40,.18);
}

.broker-logo.lg {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(16,24,40,.18);
}

.broker-logo.sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
}

/* ==================== PROGRESS BAR ==================== */
.progress {
  height: 8px;
  background: rgba(255,255,255,.10);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #fbbf24);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2.5s infinite;
}

/* ==================== TESTIMONIAL ==================== */
.testimonial {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 18px;
  font-style: italic;
}

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

.testimonial-info strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-extra);
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 12px;
  color: var(--gray);
  font-weight: 700;
}

/* ==================== GRIDS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
