/* ===== GROUPS PAGE CSS ===== */
/* Extracted from inline styles in groups-advanced-system.html */
/* Version: 1.0 (v4.10.0) */

/* ===== HEAD STYLES ===== */
        /* Hide Connect Wallet button, language selector, and back button in groups-advanced-system only */
        #walletSection,
        .wallet-connect-btn,
        .language-selector,
        #languageSelector {
            display: none !important;
        }

        /* Hide page-specific back button */
        .page-title-section .back-button {
            display: none !important;
        }

        /* ===== TEMPLATE SELECTOR MODAL STYLES ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .template-selector-modal {
            background: rgba(15, 23, 42, 0.95);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 24px;
            max-width: 1100px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-overlay.active .template-selector-modal {
            transform: scale(1);
        }

        .modal-header-templates {
            padding: 2rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
            position: relative;
        }

        .modal-header-templates h3 {
            font-size: 1.875rem;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .modal-header-templates p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.6;
        }

        .modal-close-templates {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #f87171;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s, color 0.2s;
        }

        .modal-close-templates:hover {
            background: rgba(239, 68, 68, 0.2);
            transform: scale(1.1);
        }

        .modal-body-templates {
            padding: 2rem;
            max-height: 60vh;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .template-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .template-card {
            background: rgba(15, 23, 42, 0.6);
            border: 2px solid rgba(148, 163, 184, 0.15);
            border-radius: 16px;
            padding: 1.75rem;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .template-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .template-card:hover {
            border-color: var(--tanda-cyan);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
            transform: translateY(-8px);
        }

        .template-card:hover::before {
            opacity: 1;
        }

        .template-icon {
            font-size: 3.5rem;
            margin-bottom: 1.25rem;
            position: relative;
            z-index: 1;
        }

        .template-card h4 {
            font-size: 1.35rem;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }

        .template-card p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 1.25rem;
            line-height: 1.5;
            position: relative;
            z-index: 1;
        }

        .template-specs {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .template-specs span {
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid var(--border-accent);
            padding: 0.4rem 0.9rem;
            border-radius: 9px;
            font-size: 0.875rem;
            color: var(--tanda-cyan);
            font-weight: 600;
            white-space: nowrap;
        }

        .select-template-btn {
            width: 100%;
            padding: 0.875rem;
            background: linear-gradient(135deg, var(--tanda-cyan) 0%, #00d4ff 100%);
            color: #0f172a;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .select-template-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(0, 255, 255, 0.4);
        }

        .template-card.custom-template {
            border: 2px dashed var(--border-accent);
            background: rgba(15, 23, 42, 0.3);
        }

        .template-card.custom-template:hover {
            border-color: var(--tanda-cyan);
            border-style: solid;
        }

        .template-card.selected {
            border-color: var(--tanda-cyan);
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }

        @media (max-width: 768px) {
            .template-grid {
                grid-template-columns: 1fr;
            }

            .modal-header-templates {
                padding: 1.5rem;
            }

            .modal-body-templates {
                padding: 1.5rem;
            }

            .template-card {
                padding: 1.5rem;
            }
        }
        /* ===== END TEMPLATE SELECTOR MODAL STYLES ===== */

        /* ===== MULTI-STEP FORM STYLES ===== */
        .step-container {
            display: none;
        }
        .step-container.active {
            display: block;
        }
        /* ===== END MULTI-STEP FORM STYLES ===== */

        /* ===== TANDAS DASHBOARD STYLES ===== */
        /* [REMOVED] tandas-dashboard — replaced by sidebar */

        /* [REMOVED] urgent-payments — info now in cards */
        /* [REMOVED] collectors — info now in cards */
/* ===== END URGENT & COLLECTORS STYLES ===== */


        /* ===== CREATE GROUP PROGRESS BAR STYLES ===== */
        .create-group-form .progress-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            margin-bottom: 30px;
            padding: 0 20px;
            height: auto;
            background: transparent;
        }
        .create-group-form .progress-bar .progress-fill {
            position: absolute;
            top: 50%;
            left: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--tanda-cyan), var(--tanda-cyan-light));
            transform: translateY(-50%);
            z-index: 0;
            border-radius: 2px;
        }
        .create-group-form .progress-bar .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
            position: relative;
        }
        .create-group-form .progress-bar .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--bg-secondary);
            border: 3px solid var(--border-accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            color: var(--text-secondary);
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        }
        .create-group-form .progress-bar .step.active .step-number,
        .create-group-form .progress-bar .step.completed .step-number {
            background: var(--tanda-cyan);
            border-color: var(--tanda-cyan);
            color: #0a192f;
        }
        .create-group-form .progress-bar .step-title {
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-secondary);
            text-align: center;
        }
        .create-group-form .progress-bar .step.active .step-title {
            color: var(--tanda-cyan);
            font-weight: 600;
        }
        /* ===== END CREATE GROUP PROGRESS BAR STYLES ===== */

/* ===== MODAL DE PAGO RAPIDO ===== */
#quickPayModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.quick-pay-modal {
    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.15);
    color: #f8fafc;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.quick-pay-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.quick-pay-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-pay-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quick-pay-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quick-pay-modal .modal-body {
    padding: 24px;
}

.payment-summary {
    background: #1e293b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.summary-row .value {
    font-weight: 600;
    color: #f8fafc;
}

.summary-row .value.amount {
    color: #4F46E5;
    font-size: 1.1rem;
}

.payment-methods h4 {
    margin: 0 0 16px 0;
    color: #e2e8f0;
    font-size: 1rem;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.method-option:hover {
    border-color: #4F46E5;
    background: rgba(79,70,229,0.05);
}

.method-option input[type="radio"] {
    display: none;
}

.method-option input[type="radio"]:checked + .method-icon {
    background: #4F46E5;
    color: white;
}

.method-option input[type="radio"]:checked ~ .method-info .method-name {
    color: #4F46E5;
}

.method-option:has(input:checked) {
    border-color: #00FFFF;
    background: rgba(0,255,255,0.05);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #94a3b8;
    transition: background-color 0.2s, color 0.2s;
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-name {
    font-weight: 600;
    color: #f8fafc;
}

.method-balance, .method-desc {
    font-size: 0.85rem;
    color: #94a3b8;
}

.insufficient-funds-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.insufficient-funds-warning i {
    font-size: 1.1rem;
}

.quick-pay-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0f172a;
    border-radius: 0 0 16px 16px;
}

.quick-pay-modal .modal-footer .btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
}

.quick-pay-modal .btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}

.quick-pay-modal .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.quick-pay-modal .btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
}

.quick-pay-modal .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.quick-pay-modal .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .quick-pay-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .quick-pay-modal .modal-header {
        padding: 16px 20px;
    }
    
    .quick-pay-modal .modal-body {
        padding: 20px;
    }
    
    .method-option {
        padding: 12px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
    }
}
/* ===== FIN MODAL DE PAGO RAPIDO CSS ===== */

/* ===== MODAL HISTORIAL PERSONAL ===== */
.history-modal {
    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.15);
    color: #f8fafc;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.history-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: white;
}

.history-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-modal .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

.history-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.history-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #1e293b;
}

.history-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.history-tab:hover {
    background: rgba(255,255,255,0.05);
}

.history-tab.active {
    color: #10b981;
    border-bottom: 3px solid #10b981;
    background: #0f172a;
}

.history-filters {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.history-filters select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #1e293b;
    color: #f8fafc;
    cursor: pointer;
}

.history-summary {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}

.summary-stat .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
}

.summary-stat .stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

.history-content {
    padding: 16px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 4px solid #10b981;
}

.history-item.payment {
    border-left-color: #EF4444;
}

.history-item.collection {
    border-left-color: #10B981;
}

.history-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.history-item.payment .item-icon {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.history-item.collection .item-icon {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}

.history-item .item-info {
    flex: 1;
}

.history-item .item-tanda {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
}

.history-item .item-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.history-item .item-amount {
    font-weight: 700;
    font-size: 1rem;
}

.history-item.payment .item-amount {
    color: #EF4444;
}

.history-item.collection .item-amount {
    color: #10b981;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.history-empty i {
    font-size: 3rem;
    color: #475569;
    margin-bottom: 16px;
}

.history-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0f172a;
}

.history-modal .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.history-modal .btn-outline {
    background: transparent;
    border: 2px solid #10b981;
    color: #10b981;
}

.history-modal .btn-outline:hover {
    background: #10b981;
    color: #0f172a;
}

@media (max-width: 480px) {
    .history-modal {
        width: 95%;
    }
    
    .history-filters {
        flex-direction: column;
    }
    
    .history-summary {
        flex-wrap: wrap;
    }
    
    .summary-stat {
        min-width: calc(50% - 6px);
    }
}
/* ===== FIN MODAL HISTORIAL CSS ===== */
        /* Recruiting status styles */
        .status-badge.recruiting { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
        .tanda-card.status-recruiting { border-left: 4px solid #f59e0b; }
        .btn.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; }
        .btn.btn-success:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: translateY(-2px); }
        .waiting-text { color: #94a3b8; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.5rem; }
    
/* ===== START TANDA MODAL STYLES ===== */
.start-tanda-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.start-tanda-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.start-tanda-modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.start-tanda-modal-overlay.active .start-tanda-modal {
    transform: scale(1);
}

.start-tanda-modal h3 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 1rem;
}

.summary-label {
    color: #94a3b8;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.summary-value {
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 600;
}

.lottery-warning-box {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.lottery-warning-box p {
    color: #fbbf24;
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
}

.lottery-warning-box .btn-lottery {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
}

.lottery-warning-box .btn-lottery:hover {
    transform: translateY(-2px);
}

.turns-section h4 {
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.turns-list {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2rem;
    margin: 0 0 1.5rem 0;
    max-height: 150px;
    overflow-y: auto;
}

.turns-list li {
    color: #e2e8f0;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.turns-list li:last-child {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.action-buttons .btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.action-buttons .btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
}

.schedule-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: none;
}

.schedule-section.show {
    display: block;
}

.schedule-section input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.5);
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.schedule-section .btn-schedule {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.action-buttons .btn-cancel {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.action-buttons .btn-cancel:hover {
    color: #f8fafc;
}
/* ===== END START TANDA MODAL STYLES ===== */

        </style>


/* ===== GROUPS SECTION STYLES ===== */
            <style>
/* ===== VARIABLES & RESET ===== */
        :root {
            --tanda-cyan: #00FFFF;
            --tanda-cyan-light: #7FFFD8;
            --tanda-cyan-dark: #00B8D4;
            --text-primary: #f8fafc;
            --text-secondary: rgba(248, 250, 252, 0.7);
            --text-muted: rgba(248, 250, 252, 0.5);
            --bg-primary: #0f172a;
            --bg-secondary: #1e293b;
            --bg-card: rgba(30, 41, 59, 0.6);
            --border-primary: rgba(148, 163, 184, 0.1);
            --border-accent: rgba(0, 255, 255, 0.2);

            /* Status colors */
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --info: #3b82f6;

            /* Spacing */
            --spacing-xs: 0.5rem;
            --spacing-sm: 0.75rem;
            --spacing-md: 1rem;
            --spacing-lg: 1.5rem;
            --spacing-xl: 2rem;

            /* Border radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #0a0f1c 100%);
            background-attachment: fixed;
            min-height: 100vh;
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ===== LAYOUT ===== */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 90px var(--spacing-md) var(--spacing-md) var(--spacing-md); /* top=header */
        }

        @media (min-width: 768px) {
            .container {
                padding: var(--spacing-xl);
            }
        }

        /* ===== HEADER ===== */
        .header {
            text-align: center;
            padding: var(--spacing-xl) var(--spacing-md);
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-accent);
            border-radius: var(--radius-lg);
            margin-bottom: var(--spacing-xl);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .header h1 {
            font-size: clamp(1.75rem, 5vw, 2.5rem);
            font-weight: 700;
            margin-bottom: var(--spacing-sm);
            background: linear-gradient(135deg, var(--tanda-cyan), var(--tanda-cyan-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header p {
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* ===== FILTER BAR (compact, no labels) ===== */
        .filter-bar {
            display: flex;
            gap: 8px;
            padding: 8px 0 12px;
        }

        .filter-bar select,
        .filter-bar input {
            flex: 1;
            min-width: 0;
            padding: 8px 12px;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(0, 255, 255, 0.15);
            border-radius: 8px;
            color: #f8fafc;
            font-size: 0.85rem;
            transition: border-color 0.2s;
        }

        .filter-bar select:focus,
        .filter-bar input:focus {
            outline: none;
            border-color: var(--tanda-cyan);
            box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
        }

        /* ===== SIDEBAR STATS (right sidebar) ===== */
        .grp-sidebar-stats {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(0, 255, 255, 0.1);
            border-radius: 12px;
            padding: 16px;
            margin-top: 16px;
        }
        .grp-sidebar-stats-title {
            color: #94a3b8;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 0 0 12px;
            font-weight: 600;
        }
        .grp-stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            font-size: 0.85rem;
            color: #cbd5e1;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .grp-stat-row:last-child { border-bottom: none; }
        .grp-stat-val { color: #00FFFF; font-weight: 600; }
        .grp-stat-val.grp-stat-warn { color: #f59e0b; }

        /* ===== SIDEBAR STATS REDESIGN (gs-) ===== */
        .gs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }
        .gs-cell {
            background: rgba(30,41,59,0.6);
            border-radius: 8px;
            padding: 10px 8px;
            text-align: center;
        }
        .gs-cell-val {
            display: block;
            font-size: 1.3rem;
            font-weight: 700;
            color: #e2e8f0;
            line-height: 1.2;
        }
        .gs-cell-label {
            display: block;
            font-size: 0.65rem;
            color: #64748b;
            margin-top: 2px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .gs-cyan { color: #00FFFF; }
        .gs-amber { color: #f59e0b; }
        .gs-red { color: #ef4444; }
        .gs-green { color: #22c55e; }

        .gs-rows { display: flex; flex-direction: column; gap: 0; }
        .gs-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 0;
            font-size: 0.8rem;
            color: #cbd5e1;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .gs-row:last-child { border-bottom: none; }
        .gs-row-icon { flex-shrink: 0; display: flex; align-items: center; }
        .gs-row-label { flex: 1; }
        .gs-row-val { font-weight: 600; font-size: 0.82rem; }

        /* Roles */
        .gs-roles {
            display: flex;
            gap: 6px;
        }
        .gs-role-pill {
            flex: 1;
            text-align: center;
            padding: 8px 4px;
            border-radius: 8px;
            border: 1px solid;
        }
        .gs-role-pill.gs-role-creator {
            background: rgba(168,85,247,0.1);
            border-color: rgba(168,85,247,0.25);
        }
        .gs-role-pill.gs-role-coord {
            background: rgba(34,197,94,0.1);
            border-color: rgba(34,197,94,0.25);
        }
        .gs-role-pill.gs-role-member {
            background: rgba(59,130,246,0.1);
            border-color: rgba(59,130,246,0.25);
        }
        .gs-role-count {
            display: block;
            font-size: 1.1rem;
            font-weight: 700;
        }
        .gs-role-creator .gs-role-count { color: #a855f7; }
        .gs-role-coord .gs-role-count { color: #22c55e; }
        .gs-role-member .gs-role-count { color: #3b82f6; }
        .gs-role-label {
            display: block;
            font-size: 0.6rem;
            color: #64748b;
            margin-top: 1px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        /* Next payment */
        .gs-next-payment {
            text-align: center;
        }
        .gs-next-group {
            font-size: 0.82rem;
            color: #e2e8f0;
            font-weight: 500;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .gs-next-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        .gs-next-amount {
            font-size: 1.1rem;
            font-weight: 700;
            color: #f59e0b;
        }
        .gs-next-date {
            font-size: 0.75rem;
            color: #64748b;
        }
        .gs-next-countdown {
            font-size: 0.72rem;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 6px;
            display: inline-block;
        }
        .gs-next-countdown.gs-countdown-ok {
            background: rgba(0,255,255,0.1);
            color: #00FFFF;
        }
        .gs-next-countdown.gs-countdown-soon {
            background: rgba(245,158,11,0.15);
            color: #f59e0b;
        }
        .gs-next-countdown.gs-countdown-late {
            background: rgba(239,68,68,0.15);
            color: #ef4444;
        }

        /* Quick actions */
        .gs-actions {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .gs-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 9px 12px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 500;
            transition: opacity 0.2s, transform 0.2s;
            background: rgba(0,255,255,0.12);
            color: #00FFFF;
        }
        .gs-action-btn:hover { opacity: 0.85; transform: translateY(-1px); }
        .gs-action-btn:active { transform: translateY(0); }
        .gs-action-btn.gs-action-secondary {
            background: rgba(100,116,139,0.15);
            color: #94a3b8;
        }

        /* ===== GROUPS GRID ===== */
        .groups-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
            gap: var(--spacing-lg);
            margin-bottom: var(--spacing-xl);
        }

        /* ===== GROUP CARD (v4.10.2 Redesign) ===== */
        .group-card {
            background: var(--bg-card);
            backdrop-filter: blur(10px);
            border: 2px solid #00FFFF;
            border-left-width: 5px;
            border-radius: var(--radius-lg);
            padding: 20px 24px 20px 28px;
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
            position: relative;
        }

        .group-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        }

        /* ===== CARD HEADER: avatar + name + role ===== */
        .gc-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .gc-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.15rem;
            flex-shrink: 0;
            line-height: 1;
        }

        .gc-name {
            flex: 1;
            min-width: 0;
        }

        .gc-name h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: #f8fafc;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gc-sub {
            font-size: 0.78rem;
            color: #94a3b8;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gc-role {
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .gc-role-creator {
            background: rgba(168, 85, 247, 0.2);
            color: #c084fc;
            border: 1px solid rgba(168, 85, 247, 0.3);
        }

        .gc-role-coord {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .gc-role-member {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        /* ===== DESCRIPTION (truncated) ===== */
        .gc-desc {
            font-size: 0.8rem;
            color: #94a3b8;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* ===== 2x2 STAT GRID ===== */
        .gc-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }

        .gc-stat {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            padding: 10px 6px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
            min-width: 0;
            overflow: hidden;
        }

        .gc-stat-val {
            font-size: 0.95rem;
            font-weight: 700;
            color: #f8fafc;
            line-height: 1.1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gc-stat-val.cyan {
            color: #00FFFF;
        }

        .gc-stat-label {
            font-size: 0.65rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            line-height: 1.1;
            white-space: nowrap;
        }

        /* ===== ALERT BANNER ===== */
        .gc-alert {
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.8rem;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 8px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .gc-alert:last-of-type {
            margin-bottom: 12px;
        }

        .gc-alert-icon {
            flex-shrink: 0;
            font-size: 0.9rem;
            line-height: 1.3;
        }

        .gc-alert-msg {
            flex: 1;
            line-height: 1.4;
        }

        .gc-alert-success {
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.25);
            color: #34d399;
        }

        .gc-alert-warning {
            background: rgba(245, 158, 11, 0.12);
            border: 1px solid rgba(245, 158, 11, 0.25);
            color: #fbbf24;
        }

        .gc-alert-danger {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #f87171;
        }

        .gc-alert-info {
            background: rgba(59, 130, 246, 0.12);
            border: 1px solid rgba(59, 130, 246, 0.25);
            color: #60a5fa;
        }

        /* ===== ACTION BUTTONS (scoped to gc-actions to beat mobile-responsive-fixes.css) ===== */
        .gc-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .gc-actions .btn {
            padding: 8px 14px !important;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
            border: none;
            text-decoration: none;
            width: auto !important;
        }

        .gc-actions .btn-primary {
            flex: 1;
            background: linear-gradient(135deg, #00FFFF, #00B8D4) !important;
            color: #0f172a !important;
        }

        .gc-actions .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
        }

        .gc-actions .btn-secondary {
            flex: 1;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
            border: 1px solid var(--border-primary);
        }

        .gc-actions .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: var(--tanda-cyan);
        }

        .gc-actions .btn-icon {
            flex: 1 1 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s;
            padding: 7px 12px !important;
            width: 100% !important;
            color: #94a3b8;
        }

        .gc-actions .btn-icon:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--tanda-cyan);
            color: #f8fafc;
        }

        .btn-icon-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: inherit;
        }

        /* Badge (used by tanda cards) */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.625rem;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .badge-goal-reached {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.5);
            animation: pulse-goal 2s ease-in-out infinite;
        }

        @keyframes pulse-goal {
            0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
        }

        /* ===== LOADING & EMPTY STATES ===== */
        .loading {
            text-align: center;
            padding: var(--spacing-xl);
            color: var(--text-secondary);
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border-primary);
            border-top-color: var(--tanda-cyan);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto var(--spacing-md);
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .empty-state {
            text-align: center;
            padding: var(--spacing-xl);
            background: rgba(0, 0, 0, 0.2);
            border: 1px dashed var(--border-primary);
            border-radius: var(--radius-lg);
        }

        .empty-state-icon {
            font-size: 4rem;
            margin-bottom: var(--spacing-md);
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            margin-bottom: var(--spacing-sm);
        }

        .empty-state p {
            color: var(--text-secondary);
            margin-bottom: var(--spacing-lg);
        }

        /* ===== MOBILE OPTIMIZATIONS ===== */
        @media (max-width: 640px) {
            .filter-bar {
                flex-wrap: wrap;
            }
            .filter-bar select { flex: 1 1 45%; }
            .filter-bar input { flex: 1 1 100%; }

            /* Compact group cards */
            .group-card {
                padding: 14px 16px;
            }
            .gc-header {
                gap: 8px;
            }
            .gc-avatar {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .gc-name h3 {
                font-size: 0.95rem;
            }
            .gc-sub {
                font-size: 0.72rem;
            }
            .gc-role {
                font-size: 0.62rem;
                padding: 2px 7px;
            }
            .gc-stats {
                gap: 6px;
            }
            .gc-stat {
                padding: 8px 4px;
            }
            .gc-stat-val {
                font-size: 0.82rem;
            }
            .gc-stat-label {
                font-size: 0.58rem;
            }
            .gc-alert {
                font-size: 0.75rem;
                padding: 6px 10px;
            }
            .gc-actions {
                flex-wrap: wrap;
            }
            .gc-actions .btn {
                font-size: 0.78rem !important;
                padding: 8px 10px !important;
                width: auto !important;
            }
            .gc-actions .btn-primary {
                flex: 1 1 40%;
                background: linear-gradient(135deg, #00FFFF, #00B8D4) !important;
                color: #0f172a !important;
            }
            .gc-actions .btn-secondary {
                flex: 1 1 40%;
            }
            .gc-actions .btn-icon {
                padding: 6px 10px !important;
            }
            .empty-state h3 {
                font-size: 1rem;
            }
            .empty-state p {
                font-size: 0.8rem;
            }
        }

        /* Sidebar stats visible in mobile drawer via EdgeSwipe */

        /* ===== ACCESSIBILITY ===== */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ===== HIGHLIGHTING DE GRUPO NUEVO ===== */
        .group-card.newly-created {
            animation: highlightPulse 2.5s ease-in-out;
            border: 2px solid var(--tanda-cyan) !important;
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
            position: relative;
            overflow: visible;
        }

        .group-card.newly-created::before {
            content: '🎉 ¡Nuevo!';
            position: absolute;
            top: -12px;
            right: 20px;
            background: linear-gradient(135deg, #00ffff 0%, #00d4ff 100%);
            color: #0f172a;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
            animation: badgeBounce 0.6s ease-out;
            z-index: 10;
        }

        @keyframes highlightPulse {
            0%, 100% {
                box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
                transform: scale(1);
            }
            25% {
                box-shadow: 0 0 40px rgba(0, 255, 255, 0.9);
                transform: scale(1.02);
            }
            50% {
                box-shadow: 0 0 35px rgba(0, 255, 255, 0.8);
                transform: scale(1.01);
            }
            75% {
                box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
                transform: scale(1);
            }
        }

        @keyframes badgeBounce {
            0% {
                transform: translateY(-10px) scale(0.8);
                opacity: 0;
            }
            50% {
                transform: translateY(-2px) scale(1.1);
            }
            100% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        /* Asegurar que el badge sea visible */
        .group-card {
            position: relative;
            overflow: visible !important;
        }
/* =====================================================================
   POSITION ASSIGNMENT COMPONENT STYLES
   To be integrated into groups-advanced-system.html
   ===================================================================== */

/* Position Assignment Section */
.position-assignment-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
}

.position-header {
    margin-bottom: var(--spacing-lg);
}

.position-header h4 {
    font-size: 1.1rem;
    color: var(--tanda-cyan);
    margin-bottom: var(--spacing-sm);
}

.position-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tanda-cyan), var(--tanda-cyan-light));
    transition: width 0.3s ease;
}

/* Pending Requests Section */
.pending-requests-section {
    margin-bottom: var(--spacing-lg);
}

.pending-requests-section h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.request-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.request-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border-accent);
}

.request-info {
    flex: 1;
}

.request-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.request-user strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.request-position-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--tanda-cyan);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.request-reason {
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.request-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.request-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* Positions Grid Section */
.positions-grid-section {
    margin-bottom: var(--spacing-lg);
}

.positions-grid-section h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
}

@media (max-width: 768px) {
    .positions-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.position-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    min-width: 50px;
    max-width: 65px;
    min-height: 50px;
    max-height: 65px;
    font-size: 14px;
}

.position-cell.available {
    background: rgba(148, 163, 184, 0.1);
    border: 2px dashed var(--border-primary);
}

.position-cell.available:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--tanda-cyan);
    transform: translateY(-2px);
}

.position-cell.assigned {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--success);
    cursor: default;
}

.position-cell.assigned.approved {
    border-color: var(--success);
}

.position-cell.assigned.manual {
    border-color: var(--info);
}

.position-cell.assigned.random {
    border-color: var(--warning);
}

.position-cell.assigned.auto {
    border-color: var(--tanda-cyan);
}

.position-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.position-cell.available .position-number {
    color: var(--text-muted);
}

.position-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.position-user {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.position-type {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Position Actions */
.position-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: space-between;
    align-items: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--tanda-cyan);
    background: rgba(15, 23, 42, 0.8);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
}

/* Global Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--tanda-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-message {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-info {
    border-left: 4px solid var(--info);
}

/* Button Variants */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0d9668;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-disabled {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: none;
}
            
/* ========================================
   TANDAS TAB - MOBILE-FIRST STYLES
   ======================================== */

/* MOBILE PERFORMANCE OPTIMIZED */

        /* ===== Tanda Sections ===== */
        .tc-section { margin-bottom: 24px; }
        .tc-section-header { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(0,255,255,0.12); }
        .tc-section-title { color: #e2e8f0; font-size: 0.95rem; font-weight: 600; }
        .tc-section-count { background: rgba(0,255,255,0.12); color: #00FFFF; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; min-width: 20px; text-align: center; }

        /* ===== Tanda Card Identity ===== */
        .tc-card { border-left: none; border-radius: 12px; overflow: hidden; position: relative; }
        .tc-top-border { height: 3px; width: 100%; border-radius: 12px 12px 0 0; }

        /* ===== Tanda Pill Buttons ===== */
        .tc-pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 50px; border: 1px solid rgba(0,255,255,0.25); background: rgba(0,255,255,0.06); color: #94a3b8; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
        .tc-pill-btn:hover { background: rgba(0,255,255,0.12); border-color: rgba(0,255,255,0.5); color: #00FFFF; }
        .tc-pill-btn:active { background: rgba(0,255,255,0.18); }

        /* ===== Tanda Card Specific (tc-*) ===== */
        .tc-payout-inline { color: #00FFFF; font-weight: 600; }
        .tc-progress { padding: 4px 16px 8px; }
        .tc-progress-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; margin-bottom: 4px; }
        .tc-progress-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
        .tc-progress-fill { height: 100%; background: linear-gradient(90deg, #00FFFF, #0ea5e9); border-radius: 4px; transition: width 0.5s ease; }
        .tc-progress-fill-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
        .tc-progress-fill-green { background: linear-gradient(90deg, #10b981, #22c55e); }
        .tc-waiting { font-size: 0.78rem; color: #94a3b8; display: inline-flex; align-items: center; gap: 4px; }

        /* ===== Tanda Card Status Classes ===== */
        .tc-collecting { box-shadow: 0 0 12px rgba(16,185,129,0.15); }
        .tc-late { box-shadow: 0 0 12px rgba(239,68,68,0.15); }
        .tc-completed { opacity: 0.75; filter: saturate(0.7); }

        /* ===== Tanda Dark Outline Button ===== */
        .tc-btn-dark { background: rgba(255,255,255,0.06); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.12); }
        .tc-btn-dark:hover { background: rgba(0,255,255,0.1); border-color: rgba(0,255,255,0.3); color: #00FFFF; }

.tanda-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    
    /* GPU-friendly */
    will-change: transform;
    transform: translateZ(0);
    
    /* Minimal blur for mobile */
    backdrop-filter: none;
}

@media (min-width: 768px) {
    .tanda-card {
        backdrop-filter: blur(4px); /* Only on desktop */
    }
}

/* STATUS COLORS */
.tanda-card.status-active {
    border-left: 4px solid var(--tanda-cyan);
}

.tanda-card.status-waiting-turn {
    border-left: 4px solid #FFA500;
}

.tanda-card.status-collecting {
    border-left: 4px solid #00FF00;
}

.tanda-card.status-completed {
    border-left: 4px solid #808080;
    opacity: 0.7;
}

.tanda-card.status-paused {
    border-left: 4px solid #ef4444;
    opacity: 0.8;
}

/* HEADER */
.tanda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tanda-title h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 255, 255, 0.2);
    color: var(--tanda-cyan);
}

.status-badge.waiting-turn {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.status-badge.collecting {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
}

.status-badge.completed {
    background: rgba(128, 128, 128, 0.2);
    color: #808080;
}

.status-badge.paused {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* PROGRESS */
.tanda-progress {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tanda-cyan), var(--tanda-cyan-light));
    transition: width 0.3s ease;
}

/* INFO GRID */
.tanda-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .tanda-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.info-item i {
    font-size: 16px;
    color: var(--tanda-cyan);
}

.info-item small {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

.info-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

/* ACTIONS */
.tanda-actions {
    display: flex;
    gap: 8px;
}

.tanda-actions button {
    flex: 1;
    min-height: 44px; /* iOS touch target */
}

/* TANDAS GRID */
.tandas-grid {
    display: grid;
    gap: 16px;
}

/* EMPTY STATE */
.tandas-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.tandas-empty-state i {
    font-size: 64px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: block;
}

.tandas-empty-state h3 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.tandas-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* LOADING STATE */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    margin-bottom: 16px;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--tanda-cyan);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disable animations on mobile */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner i {
        animation: none;
    }
}

/* TANDAS CONTROLS */
.tandas-controls {
    margin-bottom: 24px;
}

.tandas-filters {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .tandas-filters {
        grid-template-columns: 1fr 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-group select {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}



/* ===== GROUPS PAGE TABS ===== */
.groups-page-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,255,255,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.groups-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.groups-tab:hover {
    background: rgba(0,255,255,0.05);
    color: #ccc;
}

.groups-tab.active {
    background: rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.3);
    color: #00FFFF;
    font-weight: 600;
}

.groups-tab i {
    font-size: 0.85rem;
}

/* Form field styling for create group */
.create-group-form input,
.create-group-form select,
.create-group-form textarea {
    background: var(--bg-secondary, #1e293b);
    color: var(--text-primary, #f8fafc);
    border: 1px solid rgba(0,255,255,0.2);
}

.create-group-form input:focus,
.create-group-form select:focus,
.create-group-form textarea:focus {
    border-color: rgba(0,255,255,0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,255,255,0.1);
}

/* Content sections */
.content-section {
    display: none;
    padding: 16px;
}

.content-section.active {
    display: block;
}

/* Override container width since we're inside main-feed now */
.content-section .container {
    max-width: 100%;
    padding: 0;
}

/* v4.10.3: Collapsible sections */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: background 0.2s;
}
.collapsible-header:hover {
    background: rgba(255,255,255,0.06);
}
.collapsible-icon {
    transition: transform 0.3s;
    color: #94a3b8;
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.collapsible-content.expanded {
    max-height: 2000px;
}

@media (max-width: 768px) {
    .groups-page-tabs {
        padding: 8px 12px;
    }
    .groups-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* v4.10.5: Coordinator Payment Management */
.cp-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.cp-tab:hover { color: #cbd5e1; }
.cp-tab-active {
    color: #00FFFF;
    border-bottom-color: #00FFFF;
}
.cp-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100,116,139,0.12);
    gap: 8px;
}
.cp-member-row:last-of-type { border-bottom: none; }
.cp-inline-form {
    padding: 12px;
    margin: 4px 0 8px;
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(100,116,139,0.2);
    border-radius: 10px;
}
.cp-bulk-bar {
    padding: 12px;
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(100,116,139,0.15);
    border-radius: 10px;
    margin-bottom: 8px;
}
.cp-spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(100,116,139,0.2);
    border-top-color: #00FFFF;
    border-radius: 50%;
    animation: cpSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .cp-member-row { padding: 8px 0; gap: 6px; }
    .cp-inline-form { padding: 10px; }
}

/* ===== Commission Manager (v4.10.7) ===== */
.cm-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:10001; display:flex; align-items:center; justify-content:center; padding:16px; }
.cm-modal { background:#0f172a; border-radius:16px; width:100%; max-width:560px; max-height:90vh; overflow-y:auto; border:1px solid rgba(255,255,255,0.08); }
.cm-header { padding:20px 20px 16px; border-bottom:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:space-between; }
.cm-header h3 { color:#e2e8f0; font-size:1.1rem; margin:0; }
.cm-header-sub { color:#64748b; font-size:0.78rem; margin-top:2px; }
.cm-close { background:none; border:none; color:#94a3b8; font-size:1.4rem; cursor:pointer; padding:4px 8px; border-radius:6px; transition:color 0.2s,background 0.2s; }
.cm-close:hover { color:#e2e8f0; background:rgba(255,255,255,0.06); }
.cm-body { padding:16px 20px 20px; }
.cm-rate-badge { display:inline-block; padding:6px 14px; border-radius:20px; font-size:0.85rem; font-weight:600; margin-bottom:14px; }
.cm-rate-default { background:rgba(0,255,255,0.12); color:#00FFFF; }
.cm-rate-custom { background:rgba(251,191,36,0.15); color:#fbbf24; }
.cm-rate-none { background:rgba(52,211,153,0.12); color:#34d399; }
.cm-stats { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.cm-stat { padding:8px 14px; border-radius:10px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); font-size:0.82rem; color:#94a3b8; }
.cm-stat strong { color:#e2e8f0; display:block; font-size:1rem; }
.cm-actions { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.cm-action-btn { padding:8px 16px; border-radius:8px; border:1px solid rgba(255,255,255,0.1); background:rgba(255,255,255,0.04); color:#e2e8f0; font-size:0.82rem; cursor:pointer; transition:background 0.2s,border-color 0.2s; }
.cm-action-btn:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.15); }
.cm-action-btn:disabled { opacity:0.5; cursor:not-allowed; }
.cm-action-btn-primary { background:rgba(0,255,255,0.1); border-color:rgba(0,255,255,0.3); color:#00FFFF; }
.cm-action-btn-primary:hover { background:rgba(0,255,255,0.18); }
.cm-inline-form { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:14px; margin-bottom:16px; display:none; }
.cm-inline-form.cm-visible { display:block; }
.cm-inline-form label { color:#94a3b8; font-size:0.78rem; display:block; margin-bottom:6px; }
.cm-inline-form select, .cm-inline-form input[type=number] { background:#1e293b; border:1px solid rgba(255,255,255,0.1); color:#e2e8f0; padding:8px 12px; border-radius:8px; font-size:0.88rem; width:100%; margin-bottom:10px; }
.cm-inline-form select:focus, .cm-inline-form input:focus { outline:none; border-color:#00FFFF; }
.cm-form-row { display:flex; gap:8px; }
.cm-member-list { border-top:1px solid rgba(255,255,255,0.06); padding-top:12px; }
.cm-member-list h4 { color:#94a3b8; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; margin:0 0 10px; }
.cm-member-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.04); }
.cm-member-avatar { width:36px; height:36px; border-radius:50%; background:#1e293b; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:0.82rem; font-weight:600; overflow:hidden; flex-shrink:0; }
.cm-member-avatar img { width:100%; height:100%; object-fit:cover; }
.cm-member-info { flex:1; min-width:0; }
.cm-member-name { color:#e2e8f0; font-size:0.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-member-role { font-size:0.7rem; padding:2px 8px; border-radius:10px; display:inline-block; margin-top:2px; }
.cm-role-creator { background:rgba(124,58,237,0.2); color:#a78bfa; }
.cm-role-coordinator { background:rgba(52,211,153,0.15); color:#34d399; }
.cm-role-member { background:rgba(96,165,250,0.15); color:#60a5fa; }
.cm-badge-accepted { background:rgba(52,211,153,0.15); color:#34d399; padding:4px 10px; border-radius:12px; font-size:0.75rem; font-weight:600; white-space:nowrap; }
.cm-badge-declined { background:rgba(239,68,68,0.15); color:#f87171; padding:4px 10px; border-radius:12px; font-size:0.75rem; font-weight:600; white-space:nowrap; }
.cm-badge-undecided { background:rgba(251,191,36,0.12); color:#fbbf24; padding:4px 10px; border-radius:12px; font-size:0.75rem; font-weight:600; white-space:nowrap; }
.cm-spinner { display:flex; justify-content:center; padding:40px 0; }
.cm-spinner::after { content:''; width:32px; height:32px; border:3px solid rgba(255,255,255,0.1); border-top-color:#00FFFF; border-radius:50%; animation:cmSpin 0.8s linear infinite; }
@keyframes cmSpin { to { transform:rotate(360deg); } }
.cm-empty { text-align:center; padding:30px 0; color:#64748b; font-size:0.88rem; }
@media (max-width:480px) {
  .cm-modal { max-height:95vh; border-radius:12px; }
  .cm-stats { gap:8px; }
  .cm-stat { padding:6px 10px; font-size:0.78rem; }
  .cm-stat strong { font-size:0.9rem; }
  .cm-actions { flex-direction:column; }
  .cm-member-row { gap:8px; }
}


/* === Distribution Modal - v4.10.8 dark theme === */
.dist-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:flex; justify-content:center; align-items:center; z-index:10001; }
.dist-modal { background:#0f172a; border:1px solid rgba(0,255,255,0.15); border-radius:16px; max-width:550px; width:95%; max-height:90vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.5); }
.dist-header { background:linear-gradient(135deg, rgba(0,255,255,0.12) 0%, rgba(0,255,255,0.03) 100%); color:#f8fafc; padding:20px; border-bottom:1px solid rgba(0,255,255,0.1); position:relative; }
.dist-close-btn { position:absolute; top:16px; right:16px; background:rgba(255,255,255,0.1); border:none; width:32px; height:32px; border-radius:8px; color:#94a3b8; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.dist-footer { padding:16px 24px; border-top:1px solid rgba(255,255,255,0.06); background:rgba(0,0,0,0.2); border-radius:0 0 16px 16px; display:flex; justify-content:space-between; gap:12px; }
.dist-btn-cancel { padding:10px 20px; background:rgba(255,255,255,0.05); color:#94a3b8; border:1px solid rgba(255,255,255,0.1); border-radius:8px; cursor:pointer; font-weight:500; }
.dist-btn-execute { padding:10px 24px; background:linear-gradient(135deg, #0891b2 0%, #00FFFF 100%); color:#0f172a; border:none; border-radius:8px; cursor:pointer; font-weight:600; }
.dist-btn-execute:disabled { opacity:0.5; cursor:not-allowed; }
.dist-spinner { border:3px solid rgba(255,255,255,0.1); border-top:3px solid #00FFFF; border-radius:50%; width:40px; height:40px; animation:cmSpin 0.8s linear infinite; margin:0 auto; }
.dist-section { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); border-radius:12px; padding:16px; margin-bottom:14px; }
.dist-section-title { font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; color:#94a3b8; margin-bottom:10px; font-weight:600; }
.dist-target-amount { font-size:1.5rem; font-weight:700; color:#f8fafc; }
.dist-progress-bar { height:8px; background:rgba(255,255,255,0.06); border-radius:4px; overflow:hidden; }
.dist-progress-fill { height:100%; background:linear-gradient(90deg, #0891b2, #00FFFF); border-radius:4px; transition:width 0.5s ease; }
.dist-fee-row { display:flex; justify-content:space-between; font-size:0.85rem; color:#cbd5e1; margin-bottom:6px; }
.dist-beneficiary-card { display:flex; align-items:center; gap:12px; padding:14px; background:rgba(0,255,255,0.05); border:1px solid rgba(0,255,255,0.1); border-radius:10px; }
.dist-beneficiary-avatar { width:42px; height:42px; background:rgba(0,255,255,0.15); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#00FFFF; font-size:1.1rem; font-weight:600; flex-shrink:0; }
.dist-admin-note { display:flex; align-items:flex-start; gap:8px; margin-top:12px; font-size:0.78rem; color:#64748b; line-height:1.4; }
.dist-status { border-radius:10px; padding:12px; text-align:center; font-size:0.85rem; }
.dist-status-ok { background:rgba(52,211,153,0.1); color:#34d399; border:1px solid rgba(52,211,153,0.15); }
.dist-status-warning { background:rgba(239,68,68,0.1); color:#f87171; border:1px solid rgba(239,68,68,0.15); }

/* === Tanda Balances Modal - v4.10.8 === */
.tb-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:flex; justify-content:center; align-items:center; z-index:10001; }
.tb-modal { background:#0f172a; border:1px solid rgba(0,255,255,0.15); border-radius:16px; max-width:600px; width:95%; max-height:90vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.5); }
.tb-header { background:linear-gradient(135deg, rgba(0,255,255,0.12) 0%, rgba(0,255,255,0.03) 100%); color:#f8fafc; padding:20px; border-bottom:1px solid rgba(0,255,255,0.1); position:relative; }
.tb-close-btn { position:absolute; top:16px; right:16px; background:rgba(255,255,255,0.1); border:none; width:32px; height:32px; border-radius:8px; color:#94a3b8; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.tb-spinner-wrap { display:flex; justify-content:center; padding:40px 0; }
.tb-stats { display:flex; gap:10px; margin-bottom:16px; }
.tb-stat { flex:1; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); border-radius:10px; padding:10px; text-align:center; }
.tb-stat-value { font-size:0.95rem; font-weight:700; color:#f8fafc; }
.tb-stat-label { font-size:0.7rem; color:#64748b; margin-top:2px; text-transform:uppercase; letter-spacing:0.03em; }
.tb-table-header { display:flex; align-items:center; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.08); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color:#64748b; margin-bottom:4px; }
.tb-col-num { width:30px; text-align:center; flex-shrink:0; }
.tb-col-name { flex:1; min-width:0; display:flex; align-items:center; gap:8px; }
.tb-col-amount { width:90px; text-align:right; flex-shrink:0; font-size:0.82rem; color:#cbd5e1; }
.tb-col-balance { width:90px; text-align:right; flex-shrink:0; font-size:0.82rem; font-weight:600; }
.tb-member-row { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.03); }
.tb-member-avatar { width:30px; height:30px; border-radius:50%; background:rgba(0,255,255,0.1); display:flex; align-items:center; justify-content:center; color:#00FFFF; font-size:0.78rem; font-weight:600; flex-shrink:0; }
.tb-member-info { min-width:0; }
.tb-member-name { color:#e2e8f0; font-size:0.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tb-multi-pos { background:rgba(0,255,255,0.15); color:#00FFFF; padding:1px 6px; border-radius:8px; font-size:0.68rem; font-weight:600; margin-left:4px; }
.tb-received-tag { font-size:0.7rem; color:#94a3b8; margin-top:1px; }
.tb-balance-positive { color:#34d399; }
.tb-balance-negative { color:#f87171; }
.tb-balance-zero { color:#64748b; }
.tb-empty-positions { text-align:center; padding:12px; color:#475569; font-size:0.82rem; font-style:italic; border-top:1px solid rgba(255,255,255,0.03); }
.tb-summary { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.08); }
.tb-summary-row { display:flex; justify-content:space-between; font-size:0.85rem; color:#94a3b8; margin-bottom:6px; }
.tb-admin-note { display:flex; align-items:flex-start; gap:8px; margin-top:12px; font-size:0.78rem; color:#64748b; line-height:1.4; }
@media (max-width:480px) {
  .dist-modal, .tb-modal { max-height:95vh; border-radius:12px; }
  .tb-stats { gap:6px; }
  .tb-stat { padding:8px 6px; }
  .tb-stat-value { font-size:0.82rem; }
  .tb-col-amount, .tb-col-balance { width:75px; font-size:0.75rem; }
  .tb-member-name { font-size:0.78rem; }
  .dist-target-amount { font-size:1.25rem; }
}


/* =============================================
   v4.11.0: Prórroga Request Modal (pr- prefix)
   ============================================= */
.pr-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 100000; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.pr-overlay.active { opacity: 1; }
.pr-modal {
    background: #0f172a; border-radius: 16px; width: 90%; max-width: 480px;
    max-height: 90vh; overflow-y: auto; border: 1px solid rgba(0,255,255,0.15);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.pr-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(100,116,139,0.2);
}
.pr-header h3 { margin: 0; font-size: 1.1rem; color: #f8fafc; font-weight: 600; }
.pr-close-btn {
    background: none; border: none; color: #94a3b8; font-size: 1.5rem;
    cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.pr-close-btn:hover { background: rgba(100,116,139,0.2); color: #f8fafc; }
.pr-body { padding: 20px; }
.pr-info {
    background: rgba(30,41,59,0.8); border-radius: 12px; padding: 14px;
    margin-bottom: 16px; border: 1px solid rgba(100,116,139,0.15);
}
.pr-info-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: #cbd5e1; padding: 4px 0;
}
.pr-section { margin-bottom: 16px; }
.pr-label { display: block; font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; font-weight: 500; }
.pr-radio-label {
    display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #cbd5e1;
    padding: 8px 12px; background: rgba(30,41,59,0.5); border-radius: 8px;
    margin-bottom: 6px; cursor: pointer; border: 1px solid rgba(100,116,139,0.15);
}
.pr-radio-label:hover { border-color: rgba(0,255,255,0.3); }
.pr-radio-label input[type="radio"] { accent-color: #00FFFF; }
.pr-input {
    width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 0.85rem;
    background: rgba(30,41,59,0.8); color: #f8fafc;
    border: 1px solid rgba(100,116,139,0.3); box-sizing: border-box; margin-top: 6px;
}
.pr-input:focus { outline: none; border-color: #00FFFF; }
.pr-textarea {
    width: 100%; height: 80px; padding: 10px 12px; border-radius: 8px; font-size: 0.85rem;
    background: rgba(30,41,59,0.8); color: #f8fafc; resize: vertical;
    border: 1px solid rgba(100,116,139,0.3); box-sizing: border-box; font-family: inherit;
}
.pr-textarea:focus { outline: none; border-color: #00FFFF; }
.pr-char-count { text-align: right; font-size: 0.72rem; color: #64748b; margin-top: 4px; }
.pr-error { padding: 10px 14px; background: rgba(239,68,68,0.15); color: #f87171; border-radius: 8px; font-size: 0.82rem; }
.pr-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid rgba(100,116,139,0.2);
}
.pr-btn-cancel {
    padding: 8px 18px; border-radius: 8px; border: 1px solid rgba(100,116,139,0.3);
    background: transparent; color: #94a3b8; font-size: 0.85rem; cursor: pointer;
}
.pr-btn-cancel:hover { background: rgba(100,116,139,0.1); }
.pr-btn-submit {
    padding: 8px 20px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.pr-btn-submit:hover { opacity: 0.9; }
.pr-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Solicitar Prórroga button on group card */
.pr-request-btn {
    padding: 5px 12px !important; border-radius: 8px !important;
    border: 1px solid rgba(245,158,11,0.4) !important;
    background: rgba(245,158,11,0.1) !important; color: #f59e0b !important;
    font-size: 0.75rem !important; font-weight: 500 !important; cursor: pointer;
}
.pr-request-btn:hover { background: rgba(245,158,11,0.2) !important; }

/* =============================================
   v4.11.0: Extension Manager Panel (ext- prefix)
   ============================================= */
.ext-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 100000; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.ext-overlay.active { opacity: 1; }
.ext-modal {
    background: #0f172a; border-radius: 16px; width: 90%; max-width: 560px;
    max-height: 85vh; display: flex; flex-direction: column;
    border: 1px solid rgba(0,255,255,0.15); box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.ext-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(100,116,139,0.2);
}
.ext-header h3 { margin: 0; font-size: 1.1rem; color: #f8fafc; font-weight: 600; }
.ext-close-btn {
    background: none; border: none; color: #94a3b8; font-size: 1.5rem;
    cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.ext-close-btn:hover { background: rgba(100,116,139,0.2); color: #f8fafc; }
.ext-tabs {
    display: flex; gap: 6px; padding: 12px 20px;
    border-bottom: 1px solid rgba(100,116,139,0.15);
}
.ext-tab {
    padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(100,116,139,0.3);
    background: transparent; color: #94a3b8; font-size: 0.78rem; cursor: pointer;
}
.ext-tab.active { background: rgba(0,255,255,0.15); color: #00FFFF; border-color: rgba(0,255,255,0.3); }
.ext-tab:hover { border-color: rgba(0,255,255,0.3); }
.ext-content { flex: 1; overflow-y: auto; padding: 12px 20px; }
.ext-loading { text-align: center; padding: 40px; color: #64748b; }
.ext-item {
    background: rgba(30,41,59,0.6); border-radius: 12px; padding: 14px;
    margin-bottom: 10px; border-left: 3px solid #64748b;
}
.ext-item-extension { border-left-color: #f59e0b; }
.ext-item-mora { border-left-color: #ef4444; }
.ext-item-header { font-size: 0.85rem; color: #f8fafc; margin-bottom: 6px; }
.ext-item-meta { font-size: 0.78rem; color: #94a3b8; margin-bottom: 4px; }
.ext-item-reason { font-size: 0.8rem; color: #cbd5e1; font-style: italic; margin: 6px 0; }
.ext-item-status { font-size: 0.75rem; color: #64748b; }
.ext-status-active { color: #f59e0b; }
.ext-status-approved { color: #22c55e; }
.ext-status-rejected { color: #ef4444; }
.ext-status-resolved { color: #00FFFF; }
.ext-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.ext-btn-approve {
    padding: 5px 14px; border-radius: 8px; border: 1px solid rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.15); color: #22c55e; font-size: 0.78rem;
    font-weight: 500; cursor: pointer;
}
.ext-btn-approve:hover { background: rgba(34,197,94,0.25); }
.ext-btn-reject {
    padding: 5px 14px; border-radius: 8px; border: 1px solid rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.15); color: #f87171; font-size: 0.78rem;
    font-weight: 500; cursor: pointer;
}
.ext-btn-reject:hover { background: rgba(239,68,68,0.25); }
.ext-summary {
    padding: 12px 20px; border-top: 1px solid rgba(100,116,139,0.2);
    font-size: 0.75rem; color: #64748b; text-align: center;
}

/* =============================================
   v4.11.0: Mobile responsive
   ============================================= */
@media (max-width: 480px) {
    .pr-modal, .ext-modal { width: 95%; max-height: 95vh; }
    .pr-footer { flex-direction: column; }
    .pr-footer button { width: 100%; }
    .ext-tabs { overflow-x: auto; }
}

/* Phase 1 audit: replaces onmouseover/onmouseout on search results */
.grp-search-result-item:hover { background: rgba(255,255,255,0.05); }

/* =============================================
   Payout Methods — Compact Sidebar Override
   ============================================= */
#tandasSidebarCards .payout-methods-section {
    background: rgba(16,185,129,0.06);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 12px 0;
    border: 1px solid rgba(16,185,129,0.2);
}
#tandasSidebarCards .payout-methods-header {
    margin-bottom: 0;
}
#tandasSidebarCards .payout-methods-header h3 {
    font-size: 0.82rem;
    gap: 6px;
}
#tandasSidebarCards .payout-methods-header h3 span {
    font-size: 1rem;
}
#tandasSidebarCards .add-payout-method-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
}
/* Empty state — compact single line */
#tandasSidebarCards .no-payout-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 2px;
}
#tandasSidebarCards .no-payout-methods p {
    font-size: 0.75rem;
    margin: 0;
    color: #94a3b8;
}
#tandasSidebarCards .no-payout-methods p:last-child {
    display: none;
}
/* Method cards — compact */
#tandasSidebarCards .payout-method-card {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
#tandasSidebarCards .payout-method-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
}
#tandasSidebarCards .payout-method-info {
    gap: 8px;
}
#tandasSidebarCards .payout-method-details h4 {
    font-size: 0.8rem;
    margin-bottom: 1px;
}
#tandasSidebarCards .payout-method-details p {
    font-size: 0.72rem;
}
#tandasSidebarCards .payout-method-actions button {
    padding: 3px 8px;
    font-size: 0.7rem;
}
#tandasSidebarCards .no-payout-methods .icon {
    display: none;
}

/* =============================================
   CREATE GROUP FORM — Dark Theme (v4.11.0)
   Restored from v3 CSS, rewritten for current vars
   ============================================= */

/* Form Card */
.form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.form-card h3 {
    color: #00FFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-description {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.section-description {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label,
.form-label {
    display: block;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.required {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs, Selects, Textareas */
.create-group-form input[type=text],
.create-group-form input[type=number],
.create-group-form input[type=date],
.create-group-form select,
.create-group-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.create-group-form input:focus,
.create-group-form select:focus,
.create-group-form textarea:focus {
    outline: none;
    border-color: #00FFFF;
    box-shadow: 0 0 0 3px rgba(0,255,255,0.1);
}
.create-group-form textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.create-group-form select option {
    background: #1e293b;
    color: #f8fafc;
}

/* Help Text / Char Counter / Error */
.help-text {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    margin-top: 4px;
}
.char-counter {
    font-size: 0.75rem;
    color: #64748b;
    text-align: right;
    margin-top: 2px;
}
.error-message {
    font-size: 0.78rem;
    color: #fca5a5;
    margin-top: 4px;
    display: none;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #e2e8f0;
    font-size: 0.88rem;
}
.radio-option:hover {
    background: rgba(255,255,255,0.04);
}
.radio-option input[type=radio] {
    display: none;
}
.radio-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid #475569;
    position: relative;
    transition: border-color 0.2s;
}
.radio-option input:checked + .radio-custom {
    border-color: #00FFFF;
    background: rgba(0,255,255,0.1);
}
.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00FFFF;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #e2e8f0;
    font-size: 0.88rem;
}
.checkbox-option:hover {
    background: rgba(255,255,255,0.04);
}
.checkbox-option input[type=checkbox] {
    display: none;
}
.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 5px;
    border: 2px solid #475569;
    position: relative;
    transition: border-color 0.2s, background-color 0.2s;
}
.checkbox-option input:checked + .checkbox-custom {
    border-color: #00FFFF;
    background: #00FFFF;
}
.checkbox-option input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #0f172a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Collapsible Sections */
.collapsible-section {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}
.collapsible-inner {
    padding: 16px 20px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}
.form-navigation .btn,
.create-group-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.15s;
    min-width: 140px;
}
.form-navigation .btn-primary,
.create-group-form .btn-primary {
    background: linear-gradient(135deg, #00FFFF, #0d9488);
    color: #0f172a;
    font-weight: 600;
}
.form-navigation .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,255,255,0.25);
}
.form-navigation .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.form-navigation .btn-secondary,
.create-group-form .btn-secondary {
    background: transparent;
    border: 1px solid rgba(0,255,255,0.3);
    color: #00FFFF;
}
.form-navigation .btn-secondary:hover {
    background: rgba(0,255,255,0.05);
}

/* Step Progress */
.progress-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    position: relative;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: #1e293b;
    border: 2px solid #334155;
    color: #94a3b8;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.step.active .step-number {
    background: rgba(0,255,255,0.15);
    border-color: #00FFFF;
    color: #00FFFF;
}
.step.completed .step-number {
    background: #00FFFF;
    border-color: #00FFFF;
    color: #0f172a;
}
.step-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}
.step.active .step-label {
    color: #00FFFF;
    font-weight: 500;
}
.step.completed .step-label {
    color: #94a3b8;
}
.progress-bar {
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #334155;
    border-radius: 2px;
    z-index: 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FFFF, #0d9488);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Step containers */
.step-container {
    display: none;
}
.step-container.active {
    display: block;
}

/* Confirmation Summary (Step 4) */
.confirmation-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.confirmation-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 20px;
}
.confirmation-section h4 {
    color: #00FFFF;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.confirmation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.confirmation-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.item-label {
    font-size: 0.78rem;
    color: #94a3b8;
}
.item-value {
    font-size: 0.9rem;
    color: #f8fafc;
    font-weight: 500;
}
.confirmation-description {
    margin-top: 10px;
}
.confirmation-description .item-label {
    margin-bottom: 4px;
}
.confirmation-description .item-value {
    line-height: 1.5;
    color: #e2e8f0;
    font-weight: 400;
}
.confirmation-totals {
    background: rgba(0,255,255,0.06);
    border: 1px solid rgba(0,255,255,0.12);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 12px;
}
.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.total-label {
    color: #94a3b8;
    font-size: 0.85rem;
}
.total-value {
    color: #00FFFF;
    font-size: 1rem;
    font-weight: 700;
}
.confirmation-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e2e8f0;
}
.feature-item i {
    color: #22c55e;
    font-size: 0.8rem;
}
.no-features {
    color: #64748b;
    font-style: italic;
    font-size: 0.85rem;
}

/* Success / Error States */
.success-message,
.error-message-block {
    text-align: center;
    padding: 32px 20px;
}
.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 16px;
    animation: successBounce 0.5s ease;
}
@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.success-message h3 {
    color: #f8fafc;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.success-message p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}
.success-details {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 14px;
    margin: 16px auto;
    max-width: 320px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}
.detail-item span:first-child {
    color: #94a3b8;
}
.detail-item span:last-child {
    color: #f8fafc;
    font-weight: 500;
}
.redirect-message {
    color: #64748b;
    font-style: italic;
    font-size: 0.82rem;
    margin-top: 16px;
}
.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 16px;
}
.error-message-block h3 {
    color: #fca5a5;
    margin-bottom: 8px;
}

/* Commission Calc Panel */
.commission-calc-panel {
    margin-top: 12px;
    padding: 14px;
    background: rgba(0,255,255,0.06);
    border: 1px solid rgba(0,255,255,0.12);
    border-radius: 8px;
}
.commission-calc-label {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}
.commission-calc-body {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.7;
}
.commission-democratic-note {
    margin-top: 10px;
    padding: 10px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #f59e0b;
}

/* Template Modal */
.template-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.template-modal.active {
    opacity: 1;
    visibility: visible;
}
.template-modal-content {
    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.template-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    text-align: center;
}
.template-card:hover {
    border-color: rgba(0,255,255,0.3);
    transform: translateY(-2px);
}
.template-card .template-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.template-card .template-name {
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.template-card .template-desc {
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Accept Terms (Step 4) */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    cursor: pointer;
    margin-top: 16px;
}
.terms-checkbox input[type=checkbox] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #00FFFF;
    margin-top: 2px;
}
.terms-checkbox label {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 16px;
    }
    .form-navigation {
        flex-direction: column-reverse;
    }
    .form-navigation .btn {
        width: 100%;
    }
    .confirmation-grid {
        grid-template-columns: 1fr;
    }
    .template-grid {
        grid-template-columns: 1fr;
    }
    .step-label {
        font-size: 0.65rem;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}
