/* ============================================================
   BOBUX INSTANT GROUP — robux_group.css (tambahan dari order.css)
   Hanya berisi class yang tidak ada di order.css
   ============================================================ */

/* ---------- Mode Toggle ---------- */
.grp-mode-toggle {
    display: flex;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(47,116,245,0.06);
    border: 1px solid rgba(47,116,245,0.1);
    overflow: hidden;
    width: 100%;
}

.grp-mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border: none;
    background: transparent;
    color: #64748b;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.grp-mode-btn i {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: transform 0.3s;
}

.grp-mode-btn span {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.grp-mode-btn.active {
    background: rgba(47, 116, 245, 0.04);
    color: #2f74f5;
}

.grp-mode-btn.active i {
    opacity: 1;
    transform: translateY(-2px);
}

.grp-mode-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: #2f74f5;
    border-radius: 10px 10px 0 0;
}

.grp-mode-divider {
    width: 1.5px;
    background: rgba(47, 116, 245, 0.08);
    height: 40px;
    align-self: center;
}

@media (max-width: 576px) {
    .grp-mode-btn { padding: 15px 5px; }
    .grp-mode-btn i { font-size: 1.3rem; }
    .grp-mode-btn span { font-size: 0.65rem; }
}


.grp-badge-mini {
    background: #00b894;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ---------- User Card (dalam step-card) ---------- */
.grp-user-card {
    background: #f8faff;
    border: 1.5px solid rgba(47,116,245,0.12);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.grp-user-card.found {
    border-color: rgba(0,184,148,0.3);
    background: rgba(0,184,148,0.03);
}

.grp-user-card.not-found {
    border-color: rgba(225,112,85,0.3);
    background: rgba(225,112,85,0.03);
}

.grp-user-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grp-user-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f74f5, #1a5ce0);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grp-user-input-wrap {
    flex: 1;
    position: relative;
}

.grp-user-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 42px 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #1e293b;
}

.grp-user-input:focus   { border-color: #2f74f5; box-shadow: 0 0 0 3px rgba(47,116,245,0.1); }
.grp-user-input.valid-input   { border-color: #00b894; }
.grp-user-input.invalid-input { border-color: #e17055; }

.grp-search-spinner {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #2f74f5;
    font-size: 0.9rem;
}

.grp-remove-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e17055;
    font-size: 0.75rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.grp-remove-btn:hover {
    background: #e17055;
    color: #fff;
    border-color: #e17055;
}

/* ---------- Profile Card (hasil pencarian) ---------- */
.grp-profile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(47,116,245,0.1);
}

.grp-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.grp-profile-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

/* ---------- Group Status Pills ---------- */
.grp-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.grp-status-grid .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

.grp-user-tab {
    border: 1.5px solid rgba(47,116,245,0.2);
    background: transparent;
    color: #2f74f5;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.grp-user-tab.active,
.grp-user-tab:hover {
    background: #2f74f5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(47,116,245,0.15);
}

.horizontal-scroll-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.horizontal-scroll-tabs::-webkit-scrollbar {
    height: 4px;
}
.horizontal-scroll-tabs::-webkit-scrollbar-track {
    background: rgba(47, 116, 245, 0.05);
    border-radius: 4px;
}
.horizontal-scroll-tabs::-webkit-scrollbar-thumb {
    background: rgba(47, 116, 245, 0.2);
    border-radius: 4px;
}
.horizontal-scroll-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 116, 245, 0.4);
}

.grp-status-pill.member {
    background: rgba(0,184,148,0.1);
    color: #00b894;
    border: 1px solid rgba(0,184,148,0.2);
}

.grp-status-pill.not-member {
    background: rgba(100,116,139,0.07);
    color: #94a3b8;
    border: 1px solid rgba(100,116,139,0.13);
}

.grp-badge-blue {
    background-color: #2F74F5 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(47,116,245,0.2) !important;
}

.grp-days-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #2f74f5, #1a5ce0);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 5px;
}

/* ---------- NOT JOIN — Dropdown mirip payment method ---------- */
.grp-text-dark { color: #1e293b; }
.grp-text-muted { color: #94a3b8; }

.grp-not-join-box {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.grp-not-join-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.15s;
    user-select: none;
    gap: 10px;
}

.grp-not-join-header-text {
    flex: 1;
    min-width: 0;
}

.grp-not-join-header:hover { background: #f8faff; }

.grp-not-join-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(47,116,245,0.1);
    color: #2f74f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.grp-chevron {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.grp-not-join-header.open .grp-chevron { transform: rotate(180deg); }

.grp-not-join-list {
    display: none;
    border-top: 1px solid #f1f5f9;
    background: #fafbff;
}
.grp-not-join-list.show { display: block; }

.grp-not-join-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s;
}

.grp-not-join-item:hover { border-color: #cbd5e1; }

.grp-not-join-item-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.grp-not-join-item-info {
    flex: 1;
    min-width: 0;
}

.grp-join-btn {
    display: inline-flex;
    align-items: center;
    background: #2f74f5;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.grp-join-btn:hover {
    background: #1a5ce0;
    color: #fff;
    text-decoration: none;
}

/* ---------- Warning badge (< 15 hari) ---------- */
.grp-warn-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(245,158,11,0.1);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.3);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}
.grp-add-user-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: #2f74f5;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grp-add-user-btn:hover {
    background: #1a5ce0;
    color: #ffffff;
}

.grp-add-user-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Nominal Multi Row ---------- */
.grp-multi-nominal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #f8faff;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(47,116,245,0.1);
}

.grp-multi-nominal-label {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grp-multi-nominal-input {
    width: 120px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.grp-multi-nominal-input:focus {
    border-color: #2f74f5;
    box-shadow: 0 0 0 2px rgba(47,116,245,0.1);
}

/* ---------- Robux Tag Pill ---------- */
.grp-robux-tag {
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2f74f5, #00b4d8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---------- Summary User List ---------- */
.grp-summary-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.82rem;
}
.grp-summary-user-item:last-child { border-bottom: none; }
.grp-summary-user-name  { font-weight: 600; color: #334155; }
.grp-summary-user-robux { color: #2f74f5; font-weight: 700; }

/* ---------- Group Info Box ---------- */
.grp-info-box {
    background: #f8faff;
    border: 1px solid rgba(47,116,245,0.1);
    border-radius: 14px;
    padding: 14px;
}

.grp-info-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
}

.grp-groups-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.grp-group-pill {
    font-size: 0.65rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid rgba(47,116,245,0.13);
    border-radius: 50px;
    padding: 3px 10px;
    white-space: nowrap;
}

.currency-btn { box-shadow: none !important; }
.btn-check:focus + .currency-btn, 
.btn-check:checked + .currency-btn, 
.btn-check:active + .currency-btn { 
    box-shadow: none !important; 
}
