.payment-section {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}

/* Kart genel görünümü */
.payment-items-card,
.share-card,
.warning-card {
    background: white;
    border: 1px solid #dfdfe0;
    color: #09090b;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

/* Başlık */
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: inline-flex;
    align-items: center;
}

/* Öğeler listesi */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 4px;
}

.item-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
}

.item-row:nth-child(odd) {
    background: #dbfce7;
}

.item-title {
    font-size: 14px;
    word-break: break-word;
}

.item-amount {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--info-500);
}

/* Empty state */
.empty-state {
    padding: 12px;
    color: #6b7280;
    font-size: 14px;
}

/* Toplam kutusu */
.total-section {
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
    border-top: 2px solid #b9f8cf;
}

.total-box {
    width: 100%;
}

.total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-weight: 700;
}

.total-label {
    font-size: 18px;
}

.total-amount {
    font-size: 26px;
}

.total-note {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-top: 6px;
}

/* Share card */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.12s, transform 0.06s;
}

.share-btn:hover {
    transform: translateY(-1px);
    transition-property: transform;
    transition-duration: 0.2s;
}

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

.share-btn.email-btn {
    background: var(--info-500);
    color: white;
}

.share-btn.sms-btn {
    background: var(--indigo-500);
    color: white;
}

.share-btn.whatsapp-btn:hover {
    background-color: var(--success-600);
}

.share-btn.email-btn:hover {
    background-color: var(--info-600);
}

.share-btn.sms-btn:hover {
    background-color: var(--indigo-600);
}


/* Uyarı kartı */
.warning-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--warning-600);
}

.warning-title {
    font-weight: 700;
    margin: 0 0 8px 0;
    display: inline-flex;
    align-items: center;
}

.warning-list {
    list-style-type: disc;
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
}

/* Footer card */
.footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #09090b;
    margin: 25px 0;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
}

.create-btn {
    background: var(--primary-500);
    color: 973c00;
    font-weight: 600;
}

.visit-btn {
    background: var(--info-500);
    color: white;
}

.create-btn:hover {
    background-color: var(--primary-600);
    transform: translateY(-1px);
    transition-property: background-color, transform;
    transition-duration: 0.2s;
}

.visit-btn:hover {
    background-color: var(--info-600);
    transform: translateY(-1px);
    transition-property: background-color, transform;
    transition-duration: 0.2s;
}

/* Responsive */
@media (max-width: 560px) {
    .table-header,
    .item-row {
        grid-template-columns: 1fr;
    }

    .item-amount,
    .table-header .amount,
    .total-box {
        text-align: left;
    }

    .total-section {
        justify-content: flex-start;
    }

    .footer-card {
        flex-direction: column;
        gap: 12px;
    }

    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* dark mode */

.dark {
    .payment-section {
        color: white;
    }

    .payment-items-card,
    .share-card,
    .warning-card {
        background: #18181b;
        border-color: #222224;
        color: white;
        box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }

    .warning-card {
        color: var(--warning-400);
    }

    .item-row {
        color: white;
    }

    .item-row:nth-child(odd) {
        background: #032e15;
    }

    .empty-state {
        color: #9ca3af;
    }

    .total-section {
        border-top-color: #0d542b;
        color: white;
    }

    .total-note {
        color: var(--gray-200);
    }

    .warning-card {
        background: #18181b;
        border-color: #222224;
    }

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

    .share-btn.email-btn {
        background: var(--info-700);
        color: white;
    }

    .share-btn.sms-btn {
        background: var(--indigo-700);
        color: white;
    }

    .share-btn.whatsapp-btn:hover {
        background-color: var(--success-800);
    }

    .share-btn.email-btn:hover {
        background-color: var(--info-800);
    }

    .share-btn.sms-btn:hover {
        background-color: var(--indigo-800);
    }

    .create-btn {
        background: var(--primary-600);
        color: #09090b;
    }

    .visit-btn {
        background: var(--info-600);
    }

    .create-btn:hover {
        background-color: var(--primary-700);
    }

    .visit-btn:hover {
        background-color: var(--info-700);
    }
}
