/* ProMinners — inner pages (statistics, leaders, FAQ) */

.page-section {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.page-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pm-success, #1bc959);
    background: rgba(27, 201, 89, 0.12);
    border: 1px solid rgba(27, 201, 89, 0.3);
}

.page-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pm-success, #1bc959);
    box-shadow: 0 0 10px var(--pm-success, #1bc959);
    animation: page-live-pulse 1.5s ease-in-out infinite;
}

@keyframes page-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Summary stats row */
.page-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-stat {
    padding: 1.1rem 1.2rem;
    border-radius: var(--pm-radius, 12px);
    background: var(--pm-bg-card, #1c2330);
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-stat:hover {
    border-color: rgba(124, 53, 255, 0.35);
    transform: translateY(-2px);
}

.page-stat__icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.page-stat--purple .page-stat__icon {
    background: rgba(124, 53, 255, 0.15);
    color: var(--pm-accent, #7c35ff);
}

.page-stat--green .page-stat__icon {
    background: rgba(27, 201, 89, 0.15);
    color: var(--pm-success, #1bc959);
}

.page-stat--red .page-stat__icon {
    background: rgba(230, 57, 80, 0.15);
    color: var(--pm-danger, #e63950);
}

.page-stat--gold .page-stat__icon {
    background: rgba(242, 201, 76, 0.15);
    color: #f2c94c;
}

.page-stat__label {
    display: block;
    font-size: 0.75rem;
    color: var(--pm-text-muted, #6b7589);
    margin-bottom: 0.2rem;
}

.page-stat__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pm-heading, #f4f6fb);
    line-height: 1.2;
}

.page-stat__value small {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--pm-text-secondary, #9aa3b5);
}

/* Panels */
.page-panel {
    border-radius: var(--pm-radius, 12px);
    background: var(--pm-bg-card, #1c2330);
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    overflow: hidden;
    box-shadow: var(--pm-shadow, 0 12px 40px rgba(0, 0, 0, 0.45));
}

.page-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.15);
}

.page-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pm-heading, #f4f6fb);
}

.page-panel__head p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--pm-text-muted, #6b7589);
}

.page-panel__body {
    padding: 0;
}

.page-panel__body--padded {
    padding: 1.25rem;
}

/* Filter tabs */
.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.page-tabs button {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: transparent;
    color: var(--pm-text-secondary, #9aa3b5);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-tabs button:hover,
.page-tabs button.is-active {
    color: #fff;
    border-color: var(--pm-accent, #7c35ff);
    background: rgba(124, 53, 255, 0.15);
}

/* Transactions table */
.tx-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table.tx-table {
    margin: 0;
    border-spacing: 0;
}

.tx-table thead th {
    padding: 0.85rem 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pm-text-muted, #6b7589);
    background: var(--pm-bg-elevated, #11151c);
    border: none;
    white-space: nowrap;
}

.tx-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    background: var(--pm-bg-card, #1c2330);
    color: var(--pm-text-secondary, #9aa3b5);
    font-size: 0.875rem;
}

.tx-table tbody tr:last-child td {
    border-bottom: none;
}

.tx-table tbody tr:hover td {
    background: var(--pm-bg-muted, #232b3a);
}

.tx-table tbody tr[data-hidden="true"] {
    display: none !important;
}

.tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.tx-badge--deposit {
    color: var(--pm-success, #1bc959);
    background: rgba(27, 201, 89, 0.12);
}

.tx-badge--withdraw {
    color: var(--pm-danger, #e63950);
    background: rgba(230, 57, 80, 0.12);
}

.tx-amount--in {
    color: var(--pm-success, #1bc959);
    font-weight: 600;
}

.tx-amount--out {
    color: var(--pm-danger, #e63950);
    font-weight: 600;
}

.tx-wallet {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.8rem;
    color: var(--pm-heading, #f4f6fb);
}

/* Leaders */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.leader-card {
    border-radius: var(--pm-radius, 12px);
    background: var(--pm-bg-card, #1c2330);
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    overflow: hidden;
    box-shadow: var(--pm-shadow, 0 12px 40px rgba(0, 0, 0, 0.45));
}

.leader-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, rgba(83, 16, 205, 0.25), rgba(124, 53, 255, 0.08));
    border-bottom: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
}

.leader-card--referrals .leader-card__head {
    background: linear-gradient(135deg, rgba(27, 201, 89, 0.15), rgba(124, 53, 255, 0.08));
}

.leader-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(124, 53, 255, 0.2);
    color: var(--pm-accent, #7c35ff);
    font-size: 1.15rem;
}

.leader-card--referrals .leader-card__icon {
    background: rgba(27, 201, 89, 0.15);
    color: var(--pm-success, #1bc959);
}

.leader-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pm-heading, #f4f6fb);
}

.leader-card__sub {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--pm-text-muted, #6b7589);
}

.leader-list {
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.leader-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    transition: background 0.2s ease;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-item:hover {
    background: rgba(124, 53, 255, 0.06);
}

.leader-item__rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pm-text-muted, #6b7589);
    background: var(--pm-bg-muted, #232b3a);
}

.leader-item--rank-1 .leader-item__rank {
    background: linear-gradient(-135deg, #f2c94c, #f2994a);
    color: #1a1520;
}

.leader-item--rank-2 .leader-item__rank {
    background: linear-gradient(-135deg, #c0c0c0, #9e9e9e);
    color: #1a1520;
}

.leader-item--rank-3 .leader-item__rank {
    background: linear-gradient(-135deg, #cd7f32, #a0522d);
    color: #fff;
}

.leader-item__wallet {
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--pm-heading, #f4f6fb);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-item__val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pm-heading, #f4f6fb);
    text-align: right;
    white-space: nowrap;
}

.leader-item__val--muted {
    font-weight: 500;
    color: var(--pm-text-secondary, #9aa3b5);
}

.leaders-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leaders-podium__slot {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: var(--pm-radius, 12px);
    background: var(--pm-bg-card, #1c2330);
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
}

.leaders-podium__slot--1 {
    order: 2;
    border-color: rgba(242, 201, 76, 0.35);
    background: linear-gradient(180deg, rgba(242, 201, 76, 0.12), var(--pm-bg-card, #1c2330));
    transform: translateY(-8px);
}

.leaders-podium__slot--2 { order: 1; }
.leaders-podium__slot--3 { order: 3; }

.leaders-podium__medal {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.leaders-podium__wallet {
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
    color: var(--pm-heading, #f4f6fb);
    margin-bottom: 0.25rem;
}

.leaders-podium__amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pm-accent, #7c35ff);
}

/* FAQ */
.faq-layout {
    max-width: 820px;
    margin: 0 auto;
}

.faq-toolbar {
    margin-bottom: 1.5rem;
}

.faq-search {
    position: relative;
    margin-bottom: 1rem;
}

.faq-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pm-text-muted, #6b7589);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 12px;
    border: 1px solid var(--pm-border-strong, rgba(255, 255, 255, 0.14));
    background: var(--pm-bg-card, #1c2330);
    color: var(--pm-heading, #f4f6fb);
    font-size: 0.95rem;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--pm-accent, #7c35ff);
    box-shadow: 0 0 0 3px rgba(124, 53, 255, 0.2);
}

.faq-search input::placeholder {
    color: var(--pm-text-muted, #6b7589);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.faq-categories button {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    background: var(--pm-bg-muted, #232b3a);
    color: var(--pm-text-secondary, #9aa3b5);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-categories button:hover,
.faq-categories button.is-active {
    color: #fff;
    border-color: var(--pm-accent, #7c35ff);
    background: rgba(124, 53, 255, 0.2);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: var(--pm-radius, 12px);
    border: 1px solid var(--pm-border, rgba(255, 255, 255, 0.08));
    overflow: hidden;
    background: var(--pm-bg-card, #1c2330);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
    border-color: rgba(124, 53, 255, 0.25);
}

.faq-card[open] {
    border-color: rgba(124, 53, 255, 0.4);
    box-shadow: 0 8px 28px rgba(124, 53, 255, 0.12);
}

.faq-card[data-hidden="true"] {
    display: none;
}

.faq-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    background: transparent;
    text-align: left;
    width: 100%;
    list-style: none;
}

.faq-top::-webkit-details-marker {
    display: none;
}

.faq-top__q {
    display: block;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pm-heading, #f4f6fb);
    line-height: 1.4;
}

.faq-top__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(124, 53, 255, 0.12);
    color: var(--pm-accent, #7c35ff);
    font-size: 0.95rem;
}

.faq-top__text {
    flex: 1;
    min-width: 0;
}

.faq-top__text p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pm-heading, #f4f6fb);
    line-height: 1.4;
}

.faq-top__cat {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pm-text-muted, #6b7589);
}

.faq-top::after {
    flex-shrink: 0;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: var(--pm-text-muted, #6b7589);
    transition: transform 0.25s ease;
}

.faq-card[open] .faq-top::after {
    transform: rotate(180deg);
    color: var(--pm-accent, #7c35ff);
}

.faq-bottom {
    padding: 0 1.15rem 1.15rem 3.6rem;
    color: var(--pm-text-secondary, #9aa3b5);
    font-size: 0.9rem;
    line-height: 1.65;
    background: transparent;
}

.faq-bottom p {
    margin: 0;
}

.faq-bottom a {
    color: var(--pm-accent, #7c35ff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-empty {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--pm-text-muted, #6b7589);
}

.faq-empty.is-visible {
    display: block;
}

.faq-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--pm-radius, 12px);
    background: linear-gradient(135deg, rgba(83, 16, 205, 0.2), rgba(124, 53, 255, 0.08));
    border: 1px solid rgba(124, 53, 255, 0.25);
}

.faq-cta h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--pm-heading, #f4f6fb);
}

.faq-cta p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--pm-text-secondary, #9aa3b5);
}

.faq-cta .hero-buttons {
    justify-content: center;
    margin-top: 0;
}
