/* === MODULE 7.2: BILLING === */

.billing-block {
    display: flex;
    flex-direction: row; /* Visual Left, Text Right */
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

/* UI Container */
.billing-card-ui {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    font-family: 'Montserrat', sans-serif;
}

/* Header */
.bill-header {
    background: #0f172a; padding: 15px 20px;
    border-bottom: 1px solid #334155;
    display: flex; justify-content: space-between; align-items: center;
}
.bill-title { font-weight: 700; color: #fff; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.bill-close { cursor: pointer; color: #64748b; }

/* Body */
.bill-body { padding: 20px; }

.bill-group { margin-bottom: 15px; }
.bill-group label {
    display: block; font-size: 0.7rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin-bottom: 6px;
}

/* Inputs */
.bill-input {
    background: #0f172a; border: 1px solid #334155; border-radius: 8px;
    padding: 10px 12px; color: #fff; font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.bill-input.large {
    font-size: 1.4rem; font-weight: 800; color: #4ade80; justify-content: flex-end;
}
.i { font-size: 1.1rem; }

/* Toggle Switch */
.logic-toggle {
    display: flex; background: #0f172a; padding: 4px; border-radius: 8px; border: 1px solid #334155;
}
.lt-btn {
    flex: 1; background: transparent; border: none; color: #64748b;
    padding: 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; border-radius: 6px;
    transition: all 0.2s;
}
.lt-btn.active {
    background: #3b82f6; color: #fff; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Players Chips */
.players-select-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.select-all { font-size: 0.7rem; color: #3b82f6; cursor: pointer; font-weight: 600; }

.players-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.p-chip {
    background: #334155; padding: 4px 10px 4px 4px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px; color: #e2e8f0; font-size: 0.75rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
}
.p-chip.active { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #fff; }
.p-chip.disabled { opacity: 0.5; background: #1e293b; border: 1px dashed #64748b; color: #64748b; text-decoration: line-through; }

.av { width: 20px; height: 20px; background: #0f172a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: #fff; }

/* Calculation Result */
.calc-result {
    background: #0f172a; border: 1px dashed #4ade80; border-radius: 8px;
    padding: 15px; margin-bottom: 20px; text-align: center;
}
.cr-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cr-row .lbl { font-size: 0.8rem; color: #94a3b8; }
.cr-row .val { font-size: 1.1rem; color: #4ade80; font-weight: 800; }
.cr-note { font-size: 0.7rem; color: #64748b; }

/* Main Button */
.btn-create-bill {
    width: 100%; background: #3b82f6; border: none; color: #fff;
    padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer;
    font-size: 0.9rem; transition: background 0.2s;
}
.btn-create-bill:hover { background: #2563eb; }

/* Responsive */
@media (max-width: 900px) {
    .billing-block { flex-direction: column-reverse; gap: 30px; }
    .feature-visual { width: 100%; }
}