/* Base */
.lc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2d3748;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lc-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .lc-grid {
        grid-template-columns: 1fr;
    }
}

.lc-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lc-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.lc-box-title {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-field-row {
    display: flex;
    gap: 10px;
}

.lc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lc-label {
    font-size: 13px;
    color: #718096;
    display: block;
    margin-bottom: 5px;
}

.lc-input, .lc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    font-size: 15px;
}

.lc-input:focus, .lc-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Results */
.lc-res-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-res-value {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
}

.lc-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.lc-payment-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .lc-payment-values {
        grid-template-columns: 1fr;
    }
}

.lc-pay-pair .lc-pay-label {
    display: block;
    color: #718096;
    font-size: 13px;
    margin-bottom: 3px;
}

.lc-actions {
    margin-top: 15px;
}

.lc-btn {
    padding: 10px 16px;
    border-radius: 6px;
    background: #4299e1;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.lc-btn:hover {
    background: #3182ce;
}

.lc-btn.ghost {
    background: #718096;
}

.lc-btn.ghost:hover {
    background: #4a5568;
}

.lc-empty {
    color: #a0aec0;
    text-align: center;
    padding: 30px 10px;
}

/* Mode badge */
.lc-mode-badge {
    margin-top: 8px;
    font-size: 12px;
    color: #4a5568;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    padding: 6px 10px;
    border-radius: 6px;
    width: max-content;
    cursor: help;
}

/* Modal */
.lc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.lc-modal.open {
    display: flex;
}

.lc-modal-content {
    background: #fff;
    width: min(1000px, 100%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.lc-modal-header {
    font-weight: 700;
    font-size: 18px;
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-modal-body {
    padding: 0;
    overflow: auto;
}

.lc-modal-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.lc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lc-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.lc-table-wrap {
    overflow: auto;
    max-height: 60vh;
}

.lc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lc-table th, 
.lc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.lc-table th:first-child, 
.lc-table td:first-child {
    text-align: center;
}

.lc-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    font-weight: 600;
    color: #4a5568;
}

.lc-table tfoot td {
    font-weight: 700;
    background: #f8fafc;
    border-top: 2px solid #cbd5e0;
}

.lc-table .payment-cell {
    font-weight: 700;
    color: #2d3748;
}

/* Hidden toggle classes */
.lc-hidden {
    display: none !important;
}

/* Toast */
.lc-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2d3748;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10001;
    font-size: 14px;
}

.lc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lc-tip {
    font-size: 12px;
    color: #718096;
    margin-left: 6px;
    cursor: help;
}