/* ---- RUOTA MARKET BAR ---- */
.rm-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    width: fit-content;
    margin: 0 auto;
}
.rm-bar-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}
.rm-bar-giri {
    font-size: 12px;
    font-weight: 600;
    color: #c8a53c;
    white-space: nowrap;
}
.rm-bar-btn {
    padding: 4px 12px;
    border-radius: 50px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    transition: all .2s;
}
.rm-bar-btn-active {
    background: rgba(200,165,60,0.2);
    color: #c8a53c !important;
    border: 1px solid rgba(200,165,60,0.35);
}
.rm-bar-btn-active:hover {
    background: rgba(200,165,60,0.3);
    color: #d4b04a !important;
}

/* ---- POPUP ---- */
#rm-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.88);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
#rm-popup-overlay.active { display: flex !important; }
#rm-popup-box {
    background: #1a1a1a;
    border: 1px solid rgba(240,200,64,0.3);
    border-radius: 20px;
    width: 95%;
    max-width: 520px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#rm-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(240,200,64,0.1);
    border-bottom: 1px solid rgba(240,200,64,0.2);
    flex-shrink: 0;
}
#rm-popup-header span { font-weight: 700; font-size: 15px; color: #f0c040; }
#rm-popup-close {
    background: none; border: none;
    color: #888; font-size: 22px; cursor: pointer;
}
#rm-popup-close:hover { color: #fff; }
#rm-popup-iframe-wrap { flex: 1; position: relative; overflow: hidden; }
#rm-popup-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
#rm-popup-loading {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #1a1a1a; gap: 12px; color: #888; font-size: 14px;
}
.rm-spinner {
    width: 36px; height: 36px;
    border: 3px solid #333; border-top-color: #f0c040;
    border-radius: 50%;
    animation: rm-spin 0.8s linear infinite;
}
@keyframes rm-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    #rm-popup-box { width: 100%; height: 100%; border-radius: 0; }
}
