/**
 * Shop / Plans page — uses theme.css variables
 */
.shop-page {
    max-width: 26rem;
    margin: 0 auto;
    padding-bottom: 1rem;
}

.shop-head { text-align: center; margin-bottom: 1rem; }

.shop-head-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.55rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rx-gradient-brand);
    box-shadow: var(--rx-shadow-glow);
    font-size: 0.85rem;
    color: #fff;
}

.shop-head h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rx-text);
}

.shop-mode-banner {
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.95rem;
    border: 1.5px solid var(--rx-border);
    background: var(--rx-surface);
    box-shadow: var(--rx-shadow-sm);
    animation: shopFadeUp .45s ease both;
}

.shop-mode-banner--deposit {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(59, 130, 246, 0.08));
    border-color: rgba(79, 70, 229, 0.18);
}

.shop-mode-banner--earning {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.2);
}

.shop-mode-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.shop-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--rx-gradient-brand);
}

.shop-mode-banner--earning .shop-mode-badge {
    background: linear-gradient(135deg, #059669, #10b981);
}

.shop-mode-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--rx-success);
}

.shop-mode-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rx-success);
    animation: shopPulse 1.5s infinite;
}

.shop-mode-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--rx-text);
    margin-bottom: 0.2rem;
}

.shop-mode-detail {
    font-size: 0.62rem;
    line-height: 1.5;
    color: var(--rx-text-muted);
    margin-bottom: 0.45rem;
}

.shop-mode-rates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    color: var(--rx-text);
}

.shop-mode-rates strong { color: var(--rx-primary); }

.shop-mode-dot { color: var(--rx-border-strong); }

.shop-mode-rates--empty {
    color: var(--rx-text-muted);
    font-style: italic;
}

.shop-plan-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fbbf24;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    box-shadow: var(--rx-shadow-sm);
    font-size: 1rem;
}

.shop-trade-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.42rem 0.55rem;
    margin-bottom: 0.55rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--rx-border);
    font-size: 0.62rem;
}

.shop-trade-chip i { color: var(--rx-primary); }

.shop-trade-chip span {
    font-weight: 800;
    color: var(--rx-text);
    font-family: ui-monospace, monospace;
}

.shop-trade-chip em {
    font-style: normal;
    color: var(--rx-text-muted);
    font-size: 0.58rem;
}

.shop-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.shop-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    background: var(--rx-bg-soft);
    border: 1px solid var(--rx-border);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--rx-text-muted);
}

.shop-mini-stat i { color: var(--rx-secondary); font-size: 0.58rem; }

.shop-commission-box {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(79, 70, 229, 0.07));
    border: 1px solid rgba(124, 58, 237, 0.16);
}

.shop-commission-head {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.shop-commission-head i {
    color: #7c3aed;
    margin-top: 0.1rem;
    font-size: 0.72rem;
}

.shop-commission-head strong {
    display: block;
    font-size: 0.64rem;
    color: var(--rx-text);
}

.shop-commission-head span {
    display: block;
    font-size: 0.55rem;
    color: var(--rx-text-muted);
    margin-top: 0.08rem;
}

.shop-commission-levels {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.shop-commission-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.28rem 0.35rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.shop-commission-level {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--rx-text-muted);
}

.shop-commission-pct {
    font-size: 0.58rem;
    font-weight: 800;
    color: #7c3aed;
}

.shop-commission-amt {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--rx-text);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@keyframes shopFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shopPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.shop-buy-btn:active {
    transform: scale(0.98);
}

.shop-card--best {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.15);
}

.shop-best-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    z-index: 2;
}

.shop-roi-box {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.shop-roi-title {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--rx-primary);
    margin-bottom: 0.35rem;
}

.shop-roi-line {
    font-size: 0.58rem;
    color: var(--rx-text-muted);
    line-height: 1.5;
}

.shop-roi-line strong { color: var(--rx-text); }

.shop-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
    transition: transform 0.15s;
}

.shop-share-btn:hover { transform: translateY(-1px); }

.shop-head p {
    font-size: 0.68rem;
    color: var(--rx-text-muted);
    margin-top: 0.25rem;
    line-height: 1.45;
    max-width: 16rem;
    margin-inline: auto;
}

.shop-head-line {
    width: 2.5rem;
    height: 3px;
    margin: 0.5rem auto 0;
    border-radius: 999px;
    background: var(--rx-gradient-brand);
}

.shop-grid { display: flex; flex-direction: column; gap: 0.75rem; }

.shop-card {
    position: relative;
    width: 100%;
    background: var(--rx-surface);
    border-radius: var(--rx-radius);
    border: 1.5px solid var(--rx-border);
    overflow: hidden;
    box-shadow: var(--rx-shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: var(--rx-border-strong);
    box-shadow: var(--rx-shadow-lg);
}

.shop-card-top { height: 3px; background: var(--rx-gradient-brand); }

.shop-vip-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.shop-card-body { padding: 0.75rem; }

.shop-card-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
}

.shop-plan-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    object-fit: cover;
    border: 1.5px solid var(--rx-border-strong);
    box-shadow: var(--rx-shadow-sm);
}

.shop-plan-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--rx-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.shop-plan-title i { font-size: 0.62rem; color: var(--rx-secondary); }

.shop-plan-meta {
    font-size: 0.6rem;
    color: var(--rx-text-muted);
    margin-top: 0.12rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-invest-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--rx-border);
}

.shop-invest-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rx-text-muted);
}

.shop-invest-amount {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--rx-primary);
    margin-top: 0.1rem;
    font-variant-numeric: tabular-nums;
}

.shop-invest-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rx-gradient-brand);
    color: #fff;
    font-size: 0.68rem;
    box-shadow: var(--rx-shadow-sm);
}

.shop-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.shop-stat {
    padding: 0.45rem 0.5rem;
    border-radius: 0.65rem;
    background: var(--rx-bg-soft);
    border: 1px solid var(--rx-border);
}

.shop-stat-top {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.shop-stat-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #fff;
}

.shop-stat-icon--profit { background: linear-gradient(135deg, var(--rx-success), #10b981); }
.shop-stat-icon--total { background: var(--rx-gradient-brand); }
.shop-stat-icon--days { background: linear-gradient(135deg, var(--rx-accent), #06b6d4); }
.shop-stat-icon--daily { background: linear-gradient(135deg, var(--rx-accent-2), #f472b6); }

.shop-stat-label {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rx-text-muted);
}

.shop-stat-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--rx-text);
    font-variant-numeric: tabular-nums;
}

.shop-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--rx-gradient-brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--rx-shadow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-features {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-bottom: 0.6rem;
}

.shop-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--rx-text-muted);
}

.shop-feature i { font-size: 0.58rem; }
.shop-feature i.fa-circle-check { color: var(--rx-success); }
.shop-feature i.fa-bolt { color: var(--rx-warning); }
.shop-feature i.fa-lock { color: var(--rx-secondary); }

.shop-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--rx-radius-lg);
    background: var(--rx-surface);
    border: 1.5px dashed var(--rx-border-strong);
    color: var(--rx-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.38);
}

@media (min-width: 640px) {
    .shop-page { max-width: 42rem; }
    .shop-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 992px) {
    .shop-page {
        max-width: 46rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
