/* ===== FEATURES — shared styles for new feature pages ===== */

.feature-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

.feature-page__title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-bar__btn {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: #13131d;
    color: #8a8a9a;
    border: 1px solid #1e1e2e;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-bar__btn:hover,
.filter-bar__btn--active {
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #1a1a1a;
    border-color: transparent;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.stats-row__item {
    background: #0d0d14;
    border: 1px solid #1a1a2e;
    border-radius: 10px;
    padding: 12px 22px;
    text-align: center;
    min-width: 100px;
}

.stats-row__value {
    color: #f5c842;
    font-size: 20px;
    font-weight: 800;
}

.stats-row__label {
    color: #6a6a7a;
    font-size: 11px;
    margin-top: 2px;
}

/* ===== HISTORY LIST ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #0d0d14;
    border-radius: 8px;
    border: 1px solid #1a1a2e;
    transition: border-color 0.2s;
}

.history-item:hover {
    border-color: #2a2a3e;
}

.history-item__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.history-item__type {
    font-size: 12px;
    font-weight: 600;
    color: #f5c842;
    white-space: nowrap;
}

.history-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.history-item__price {
    font-weight: 700;
    font-size: 14px;
    color: #f5c842;
}

.history-item__time {
    color: #6a6a7a;
    font-size: 11px;
    min-width: 120px;
    text-align: right;
}

.history-item--win { border-left: 3px solid #4ade80; }
.history-item--lose { border-left: 3px solid #ef4444; }
.history-item--deposit { border-left: 3px solid #f5c842; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pagination__btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #13131d;
    color: #8a8a9a;
    border: 1px solid #1e1e2e;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination__btn:hover:not(:disabled) {
    background: #1e1e2e;
    color: #fff;
}

.pagination__btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination__btn--active {
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #1a1a1a;
    border-color: transparent;
}

/* ===== BATTLE REPLAY MODAL ===== */
.replay-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.replay-overlay--visible {
    opacity: 1;
    pointer-events: all;
}

.replay-box {
    background: #111118;
    border: 2px solid #f5c842;
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(245, 200, 66, 0.15);
}

.replay-box__title {
    color: #f5c842;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.replay-round {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #0d0d14;
    border-radius: 10px;
    margin-bottom: 8px;
}

.replay-round__player {
    text-align: center;
    flex: 1;
}

.replay-round__skin {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.replay-round__price {
    font-size: 14px;
    font-weight: 700;
    color: #f5c842;
}

.replay-round__vs {
    color: #6a6a7a;
    font-weight: 800;
    font-size: 14px;
    padding: 0 8px;
}

.replay-close {
    display: block;
    margin: 16px auto 0;
    padding: 10px 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

/* ===== ANALYTICS GRID ===== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.analytics-card {
    background: #0d0d14;
    border: 1px solid #1a1a2e;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.analytics-card__label {
    color: #6a6a7a;
    font-size: 11px;
    margin-bottom: 4px;
}

.analytics-card__value {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.profit-bar {
    width: 100%;
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
}

.profit-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.achievement-card {
    background: #0d0d14;
    border: 1px solid #1a1a2e;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-card--locked {
    opacity: 0.45;
    filter: grayscale(0.8);
}

.achievement-card--unlocked {
    border-color: #f5c842;
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.1);
}

.achievement-card__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.achievement-card__info {
    flex: 1;
    min-width: 0;
}

.achievement-card__name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.achievement-card__desc {
    color: #6a6a7a;
    font-size: 11px;
    margin-top: 2px;
}

.achievement-card__badge {
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

/* ===== QUESTS ===== */
.quests-section {
    margin-bottom: 28px;
}

.quests-section__title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.quest-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #0d0d14;
    border: 1px solid #1a1a2e;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.quest-card:hover {
    border-color: #2a2a3e;
}

.quest-card--completed {
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.08);
}

.quest-card--claimed {
    opacity: 0.5;
}

/* Cooldown timer between quest resets */
.cooldown-timer {
    text-align: center;
    padding: 32px 20px;
}
.cooldown-timer__icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.cooldown-timer__text {
    color: #4ade80;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cooldown-timer__time {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.cooldown-timer__label {
    color: #8a8a9a;
    font-size: 13px;
}

.quest-card__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.quest-card__info {
    flex: 1;
    min-width: 0;
}

.quest-card__name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.quest-card__desc {
    color: #6a6a7a;
    font-size: 11px;
    margin-top: 2px;
}

.quest-card__progress {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-card__progress-bar {
    flex: 1;
    height: 6px;
    background: #1a1a2e;
    border-radius: 3px;
    overflow: hidden;
}

.quest-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f5c842, #ff6b35);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.quest-card__progress-text {
    color: #8a8a9a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.quest-card__reward {
    text-align: center;
    flex-shrink: 0;
    min-width: 60px;
}

.quest-card__reward-value {
    color: #4ade80;
    font-size: 16px;
    font-weight: 800;
}

.quest-card__reward-label {
    color: #6a6a7a;
    font-size: 10px;
}

.quest-card__claim-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #0a0a0f;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quest-card__claim-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}

.quest-card__claim-btn:disabled {
    background: #1a1a2e;
    color: #6a6a7a;
    cursor: default;
}

/* ===== REFERRAL ===== */
.referral-card {
    background: #0d0d14;
    border: 1px solid #1a1a2e;
    border-radius: 14px;
    padding: 24px;
}

.referral-card__section {
    margin-bottom: 20px;
}

.referral-card__section:last-child {
    margin-bottom: 0;
}

.referral-card__label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.referral-card__code-row {
    display: flex;
    gap: 8px;
}

.referral-card__code-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
    background: #111118;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', monospace;
    letter-spacing: 2px;
    outline: none;
}

.referral-card__code-input:focus {
    border-color: #f5c842;
}

.referral-card__copy-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5c842, #ff6b35);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform 0.2s;
}

.referral-card__copy-btn:hover {
    transform: scale(1.04);
}

.referral-card__hint {
    color: #6a6a7a;
    font-size: 12px;
    margin-top: 6px;
}

.referral-card__ref-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #111118;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 13px;
}

/* ===== PROFILE FEATURE LINKS ===== */
.profile-feature-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 14px 0;
}

.profile-feature-links__item {
    padding: 8px 18px;
    border-radius: 10px;
    background: #13131d;
    border: 1px solid #1e1e2e;
    color: #c0c0cc;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.profile-feature-links__item:hover {
    background: #1e1e2e;
    color: #f5c842;
    border-color: #f5c842;
}

/* ===== DEV LOGIN BAR ===== */
.dev-login-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 8px;
    text-align: center;
    z-index: 999;
    border-top: 2px solid #f5c842;
}

.dev-login-bar a {
    color: #f5c842;
    font-weight: 700;
    font-size: 13px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state__text {
    color: #6a6a7a;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .feature-page__title { font-size: 18px; }
    .analytics-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: 1fr; }
    .history-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .history-item__right { width: 100%; justify-content: space-between; }
    .quest-card { flex-wrap: wrap; }
    .referral-card__code-row { flex-direction: column; }
    .replay-box { padding: 16px; }
}
