/* Staking page — WEEX-style */

.sk-page {
  padding: 80px 0 72px;
  background: var(--bg-dark);
  min-height: calc(100vh - 64px);
}

/* Sub-nav */
.sk-page-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.sk-page-nav-link {
  color: var(--light-text);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding: 0 0 14px;
  margin-bottom: -1px;
  text-decoration: none;
  background: none;
  border: none;
}

.sk-page-nav-link.active {
  color: var(--dark-text);
}

.sk-page-nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-brown);
}

.sk-page-nav-link--muted {
  opacity: 0.45;
  cursor: default;
}

/* Hero */
.sk-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
}

.sk-hero-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.sk-hero-subtitle {
  color: var(--light-text);
  font-size: 16px;
  margin-bottom: 28px;
}

.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.sk-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.sk-btn-primary {
  background: var(--btn-solid-bg, #fff);
  color: var(--btn-solid-text, #111);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sk-btn-primary:hover {
  background: var(--btn-solid-hover, #f0f0f0);
}

.sk-btn-subscribe {
  background: var(--btn-solid-bg, #fff);
  color: var(--btn-solid-text, #111);
  padding: 10px 28px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.sk-btn-subscribe:hover {
  background: var(--btn-solid-hover, #f0f0f0);
}

/* Hero visual */
.sk-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sk-hero-video {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Products */
.sk-products {
  margin-bottom: 72px;
}

.sk-products-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.sk-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.sk-table thead th {
  text-align: left;
  color: var(--light-text);
  font-size: 13px;
  font-weight: 500;
  padding: 0 16px 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.sk-table thead th:last-child {
  width: 140px;
  text-align: right;
  padding-right: 0;
}

.sk-row td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.sk-row--collapsed {
  display: none;
}

.sk-cell-action {
  text-align: right;
  padding-right: 0 !important;
}

/* Asset cell */
.sk-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sk-asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sk-asset-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sk-asset-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--asset-color, var(--primary-brown));
}

.sk-asset-ticker {
  font-size: 16px;
  font-weight: 600;
}

/* APR */
.sk-apr {
  font-size: 18px;
  font-weight: 700;
}

.sk-apr-max {
  display: block;
  font-size: 12px;
  color: var(--light-text);
  font-weight: 400;
  margin-top: 2px;
}

/* Term pills */
.sk-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sk-term {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--light-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sk-term:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--dark-text);
}

.sk-term.active {
  border-color: var(--primary-brown);
  color: var(--primary-brown);
  background: rgba(245, 197, 24, 0.08);
}

/* View more */
.sk-view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.sk-view-more:hover {
  color: var(--dark-text);
}

.sk-view-more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sk-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--light-text);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

/* FAQ */
.sk-faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.sk-faq-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
}

.sk-faq-accordion .faq-item {
  border-bottom: 1px solid var(--border-color);
}

.sk-faq-accordion .faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8px;
  background: none;
  border: none;
  color: var(--dark-text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sk-faq-accordion .faq-answer {
  display: none;
  padding: 0 8px 20px;
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.65;
}

.sk-faq-accordion .faq-item.open .faq-answer {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .sk-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sk-hero-visual {
    order: -1;
  }

  .sk-hero-video {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .sk-faq {
    padding: 0 40px;
  }

  .sk-faq-accordion .faq-toggle {
    padding: 20px 12px;
  }

  .sk-faq-accordion .faq-answer {
    padding: 0 12px 20px;
  }
}

@media (max-width: 640px) {
  .sk-page {
    padding-top: 72px;
  }

  .sk-faq {
    padding: 0 16px;
  }

  .sk-cell-terms {
    min-width: 200px;
  }

  .sk-term {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* My stakes — detail modal */
.sk-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .sk-modal {
    left: 18rem;
  }
}

.sk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sk-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: #111111 !important;
  border: 1px solid #1f1f1f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.sk-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1f1f1f;
  flex-shrink: 0;
}

.sk-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sk-modal__close {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem !important;
  padding: 0 !important;
  border-radius: 0.65rem !important;
  flex-shrink: 0;
  color: #ffffff !important;
}

.sk-modal__close-x {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 300;
  color: #ffffff !important;
  pointer-events: none;
}

.sk-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.sk-modal__status {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  margin-bottom: 1.25rem;
}

.sk-modal__status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.sk-modal__status-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(245, 197, 24, 0.15);
  color: #f5c518 !important;
}

.sk-modal__status-ref {
  font-size: 0.75rem;
  color: #8b8b8b !important;
}

.sk-modal__status-help {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d4d4d4 !important;
}

.sk-modal__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .sk-modal__summary {
    grid-template-columns: 1fr;
  }
}

.sk-modal__summary-card {
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
}

.sk-modal__summary-card span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b8b8b !important;
  margin-bottom: 0.35rem;
}

.sk-modal__summary-card strong {
  display: block;
  font-size: 1rem;
  color: #fff !important;
  line-height: 1.2;
}

.sk-modal__summary-card small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #8b8b8b !important;
}

.sk-modal__summary-card--green strong {
  color: #00c076 !important;
}

.sk-modal__summary-card--gold strong {
  color: #f5c518 !important;
}

.sk-modal__section {
  margin-bottom: 1.25rem;
}

.sk-modal__section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b8b8b !important;
  margin: 0 0 0.65rem;
  padding-left: 0.35rem;
}

.sk-modal__rows {
  border: 1px solid #1f1f1f;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #0d0d0d;
}

.sk-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid #1a1a1a;
}

.sk-modal__row:first-child {
  border-top: none;
}

.sk-modal__row-label {
  font-size: 0.8rem;
  color: #8b8b8b !important;
  flex-shrink: 0;
}

.sk-modal__row-value {
  font-size: 0.85rem;
  color: #fff !important;
  font-weight: 500;
  text-align: right;
}

.sk-modal__row-sub {
  display: block;
  font-size: 0.72rem;
  color: #8b8b8b !important;
  font-weight: 400;
  margin-top: 0.15rem;
}

.sk-modal__progress {
  margin-top: 0.15rem;
}

.sk-modal__progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: #1f1f1f;
  overflow: hidden;
  margin-top: 0.35rem;
}

.sk-modal__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5c518, #00c076);
}

.sk-modal__note {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1f1f1f;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #8b8b8b !important;
}

.sk-modal__note strong {
  color: #d4d4d4 !important;
}

.sk-modal__table-section {
  margin-top: 0.25rem;
  padding-left: 0.35rem;
}

.sk-modal__table-wrap {
  border: 1px solid #1f1f1f;
  border-radius: 0.65rem;
  overflow: hidden;
}

.sk-modal__table-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 0.65rem;
  padding-left: 0.35rem;
}

.sk-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sk-modal__table th {
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-weight: 500;
  color: #8b8b8b !important;
  background: #0d0d0d;
}

.sk-modal__table th:not(:first-child) {
  text-align: right;
}

.sk-modal__table td {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid #1f1f1f;
  color: #d4d4d4 !important;
}

.sk-modal__table td:not(:first-child) {
  text-align: right;
}

.sk-modal__claim {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1f1f1f;
}

.sk-modal__claim-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #8b8b8b !important;
}
