/* ========================================
   FOLLOW PIPER — Token System Styles
   ======================================== */

/* Nav balance */
.token-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.token-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a1a0a;
    border: 1px solid #4a3010;
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.token-balance:hover {
    background: #3a2a10;
    border-color: #ffd93d;
}
.token-coin {
    color: #ffd93d;
    font-size: 1.1rem;
}
.token-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd93d;
}
.token-name {
    font-size: 0.82rem;
    color: #a8a29e;
}
.token-login-btn {
    padding: 7px 18px;
    background: linear-gradient(135deg, #ffd93d, #c49b2f);
    color: #111;
    border: none;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.token-login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 217, 61, 0.3);
}
.token-highlight { color: #ffd93d; }

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
}
.modal-box-wide { max-width: 560px; }
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}
.modal-close:hover { color: #fff; }
.modal-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.modal-box p {
    color: #a8a29e;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.modal-input {
    width: 100%;
    padding: 14px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    color: #f0ede9;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 12px;
}
.modal-input:focus { outline: none; border-color: #ffd93d; }
.modal-input::placeholder { color: #555; }
.modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd93d, #c49b2f);
    color: #111;
    border: none;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3); }

/* Token Shop */
.shop-packs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.shop-pack {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.shop-pack:hover {
    border-color: #ffd93d;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pack-tokens {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd93d;
    line-height: 1;
}
.pack-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}
.pack-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0ede9;
}
.pack-bonus {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6bcb77;
    margin-bottom: 4px;
}
.shop-pack-bonus { border-color: #1a2a1a; }
.shop-pack-popular {
    border-color: #e02d2d;
    background: linear-gradient(180deg, #1a0808, #111);
}
.pack-popular-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #e02d2d;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
    letter-spacing: 0.08em;
}
.shop-pack-best {
    border-color: #ffd93d;
    background: linear-gradient(180deg, #1a1408, #111);
}
.pack-best-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd93d, #c49b2f);
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 8px;
    letter-spacing: 0.08em;
}

@media (max-width: 500px) {
    .shop-packs { grid-template-columns: repeat(2, 1fr); }
    .modal-box { padding: 24px 18px; }
}
