body.matka-tricks-page {
  --radius: 14px;
  --tricks-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--tricks-gap) !important;
  overflow-x: hidden;
}

body.matka-tricks-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.tricks-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.tricks-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.tricks-box.tricks-hero-box {
  margin-top: 10px;
}

.tricks-hero-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
}

.tricks-hero-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
}

.tricks-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tricks-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.tricks-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.tricks-date-hint {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 500;
}

.tricks-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.tricks-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 29, 29, 0.45);
  border-radius: 12px;
  background: #fff8f1;
  color: #333;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.tricks-tab-btn .tricks-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.tricks-tab-btn.is-active {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  border-color: #6d28d9;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.28);
}

.tricks-panel {
  display: none;
}

.tricks-panel.is-active {
  display: block;
}

.tricks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tricks-card {
  text-align: left;
  border: 1px solid rgba(255, 29, 29, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
  padding: 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tricks-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tricks-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tricks-card-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.tricks-card-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.tricks-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
}

.tricks-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tricks-badge-red {
  background: #ffe4e6;
  color: #be123c;
}

.tricks-card-text {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
}

.tricks-cut-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tricks-cut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #111;
}

.tricks-cut-item:last-child {
  border-bottom: 0;
}

.tricks-cut-check {
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
}

.tricks-highlight {
  margin-top: 4px;
  padding: 8px;
  border-radius: 10px;
  background: #fff7cc;
  border: 1px solid #f5d565;
}

.tricks-highlight p {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.tricks-highlight p:last-child {
  margin-bottom: 0;
}

.tricks-highlight-result {
  margin-top: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #15803d !important;
}

.tricks-strategy-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.tricks-strategy-box {
  text-align: left;
}

.tricks-strategy-box p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.tricks-strategy-box p:last-child {
  margin-bottom: 0;
}

.tricks-strategy-box strong {
  color: #111;
  font-weight: 800;
}

.tricks-money-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tricks-money-card {
  text-align: left;
  border: 1px solid rgba(255, 29, 29, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
  padding: 12px 10px;
}

.tricks-money-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.tricks-money-text {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
}

.tricks-faq-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.tricks-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tricks-faq-item {
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 10px;
  background: #fff8f1;
  overflow: hidden;
}

.tricks-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.tricks-faq-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #4f8cff 0%, #2563eb 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.28s ease;
}

.tricks-faq-item.is-open .tricks-faq-icon {
  transform: rotate(45deg);
}

.tricks-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease 0.04s;
}

.tricks-faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.tricks-faq-answer-inner p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.55;
  color: #333;
  font-weight: 500;
}

.tricks-faq-item.is-open .tricks-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.tricks-footer {
  margin: 10px 0 100px;
}

.tricks-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.tricks-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tricks-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.tricks-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.matka-tricks-page .tricks-refresh-btn,
body.matka-tricks-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.matka-tricks-page .tricks-refresh-btn {
  right: 12px;
  left: auto;
  background: #fff8f1;
  color: #111;
}

body.matka-tricks-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

@media screen and (max-width: 520px) {
  .tricks-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tricks-grid,
  .tricks-money-grid {
    grid-template-columns: 1fr;
  }

  .tricks-hero-title {
    font-size: 18px;
  }
}
