/* d4yresa/assets/css/style.css */

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

/* Auth */
.d4y-auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.d4y-auth-card {
    background: #fff;
    padding: 32px 36px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .15);
    width: 100%;
    max-width: 420px;
}

.d4y-auth-card h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.d4y-auth-subtitle {
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.d4y-form .d4y-field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.d4y-form input,
.d4y-form select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
}

.d4y-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.d4y-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid #4b5563;
    font-size: 13px;
    color: #111827;
    background: #f9fafb;
    text-decoration: none;
}

/* Small inputs used in tables (e.g. deposit %) */
.d4y-mini-input {
    width: 92px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    background: #fff;
}

/* Finance modal cards */
.d4y-pay-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15,23,42,.03);
}

.d4y-pay-grid {
    display: grid;
    gap: 10px;
}

.d4y-pay-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.d4y-pay-stat {
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px;
}

.d4y-pay-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.d4y-pay-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* Finance modal sizing */
#ownerFinanceModal .d4y-modal-dialog {
    max-width: 820px;
}

#ownerFinanceModal .d4y-modal-body {
    max-height: 80vh;
    overflow: auto;
}

@media (max-width: 980px) {
    .d4y-pay-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.d4y-btn-secondary:hover {
    background: #e5e7eb;
}

.d4y-auth-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
}

.d4y-alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.d4y-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.d4y-alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Layout */
.d4y-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #111827;
    color: #f9fafb;
}

.d4y-logo {
    font-weight: 600;
    margin-right: 18px;
}

.d4y-nav-left,
.d4y-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.d4y-nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
}

.d4y-nav-link.is-active,
.d4y-nav-link:hover {
    color: #f9fafb;
    background: rgba(249,250,251,0.12);
}

.d4y-nav-user {
    font-size: 13px;
    color: #d1d5db;
}

.d4y-main {
    max-width: 1600px;
    margin: 24px auto;
    padding: 0 16px 24px;
}

/* Cards */
.d4y-cards-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.d4y-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(15,23,42,.05);
}

.d4y-card-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.d4y-card-value {
    font-size: 20px;
    font-weight: 600;
}

/* Sections */
.d4y-section {
    margin-bottom: 32px;
}

.d4y-section h1,
.d4y-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.d4y-section-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Table */
.d4y-table-wrapper {
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    overflow-x: auto;
}

.d4y-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.d4y-table thead {
    background: #f9fafb;
}

.d4y-table th,
.d4y-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.d4y-table th {
    font-weight: 500;
    color: #4b5563;
}

.d4y-pre {
    white-space: pre-wrap;
    font-size: 11px;
    background: #f3f4f6;
    padding: 4px 6px;
    border-radius: 6px;
}

/* Filters */
.d4y-filters {
    margin-bottom: 16px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.d4y-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.d4y-filters-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    min-width: 140px;
}

.d4y-filters-actions {
    display: flex;
    gap: 8px;
}

/* Account form */
.d4y-account-form .d4y-field span {
    font-weight: 500;
}
.d4y-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
/* Cellule villa + image + badges */
.d4y-villa-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.d4y-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.d4y-villa-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d4y-villa-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.d4y-villa-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
}

.d4y-badge-id {
    padding: 2px 6px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}

.d4y-badge-status {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
}

/* Statuts (adapter selon tes cas) */
.d4y-status-publish {
    background: #dcfce7;
    color: #166534;
}
.d4y-status-pending {
    background: #fef9c3;
    color: #854d0e;
}
.d4y-status-trash,
.d4y-status-declined {
    background: #fee2e2;
    color: #991b1b;
}

/* Séjour */
.d4y-sejour {
    font-size: 13px;
}
.d4y-sejour-nights {
    font-size: 12px;
    color: #6b7280;
}

/* Client */
.d4y-client-email {
    font-size: 13px;
}
.d4y-client-phone {
    font-size: 12px;
    color: #6b7280;
}

/* Montants */
.d4y-col-right {
    text-align: right;
}
.d4y-col-center {
    text-align: center;
}

.d4y-amount-main {
    font-weight: 600;
    font-size: 14px;
}
.d4y-amount-sub {
    font-size: 12px;
    color: #6b7280;
}
@media (max-width: 768px) {
    .d4y-table-bookings th:nth-child(4), /* Pers. */
    .d4y-table-bookings td:nth-child(4) {
        display: none;
    }
}

/* ==============================
   Finance (reste à payer)
   ============================== */
.d4y-amount-due {
    font-weight: 700;
}

.d4y-badge-paid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.d4y-pay-mini-btn-deposit {
    border-color: rgba(249, 115, 22, 0.65);
}
.d4y-client {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.d4y-client-line {
    font-size: 13px;
}

.d4y-link-email,
.d4y-link-phone {
    color: #2563eb; /* bleu propre */
    text-decoration: none;
    font-weight: 500;
}

.d4y-link-email:hover,
.d4y-link-phone:hover {
    text-decoration: underline;
}

.d4y-muted {
    color: #9ca3af;
    font-size: 12px;
}
/* ---------- Filtres bookings ---------- */

.d4y-filters-bar {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.d4y-filters-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.d4y-filters-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.d4y-filters-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.d4y-filters-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Petits boutons type "chips" */
.d4y-chip {
    border-radius: 999px;
    padding: 5px 12px;
    border: none;
    background: #111827;
    color: #f9fafb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.d4y-chip-outline {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.d4y-chip:hover {
    filter: brightness(0.95);
}

/* Grille des champs */
.d4y-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.d4y-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d4y-filter-field label {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

.d4y-filter-field input,
.d4y-filter-field select {
    height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    background-color: #ffffff;
    color: #111827;
}

.d4y-filter-field input:focus,
.d4y-filter-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

/* Actions en bas */
.d4y-filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Boutons existants harmonisés ici si besoin */
.d4y-btn-primary,
.d4y-btn-secondary {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
}
/* ---------- Pagination ---------- */

.d4y-pagination {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.d4y-pagination-info {
    font-size: 12px;
    color: #6b7280;
}

.d4y-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.d4y-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
}

.d4y-page-link:hover {
    background: #f3f4f6;
}

.d4y-page-link.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    font-weight: 600;
}

.d4y-page-link-ghost {
    background: #f9fafb;
    color: #374151;
}

.d4y-page-link-ghost:hover {
    background: #e5e7eb;
}

.d4y-page-ellipsis {
    font-size: 12px;
    color: #9ca3af;
    padding: 0 4px;
}

@media (max-width: 640px) {
    .d4y-pagination {
        align-items: flex-start;
    }
    .d4y-pagination-links {
        gap: 4px;
    }
    .d4y-page-link {
        padding: 4px 8px;
        font-size: 11px;
    }
}
.d4y-pagination {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.d4y-pagination-info {
    font-size: 12px;
    color: #6b7280;
}

.d4y-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.d4y-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
}

.d4y-page-link:hover {
    background: #f3f4f6;
}

.d4y-page-link.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    font-weight: 600;
}

.d4y-page-arrow {
    padding-inline: 8px;
    font-weight: 600;
}

.d4y-page-ellipsis {
    font-size: 12px;
    color: #9ca3af;
    padding: 0 2px;
}

@media (max-width: 640px) {
    .d4y-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .d4y-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .d4y-filters-grid {
        grid-template-columns: 1fr;
    }
}
.d4y-actions {
    display: inline-flex;
    gap: 4px;
}

.d4y-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: #4b5563;
    transition: background-color .15s, border-color .15s, transform .05s;
}

.d4y-action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Couleurs par type d’action */
.d4y-action-approve { color: #16a34a; border-color: #bbf7d0; }
.d4y-action-decline { color: #dc2626; border-color: #fecaca; }
.d4y-action-trash   { color: #b91c1c; border-color: #fecaca; }
.d4y-action-restore { color: #2563eb; border-color: #bfdbfe; }
.d4y-action-delete  { color: #7f1d1d; border-color: #fecaca; }
.d4y-action-edit    { color: #0f172a; border-color: #e5e7eb; }
.d4y-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.d4y-modal.is-open {
    display: flex;
}
.d4y-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}
.d4y-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .3);
    z-index: 51;
}
.d4y-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.d4y-modal-header h2 {
    margin: 0;
    font-size: 18px;
}
.d4y-modal-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}
.d4y-modal-body .d4y-field {
    margin-bottom: 10px;
}
.d4y-modal-body label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4b5563;
}
.d4y-modal-body input,
.d4y-modal-body textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
    font-size: 14px;
}
.d4y-modal-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.d4y-action-message {
    color: #2563eb;
    border-color: #bfdbfe;
}
.d4y-action-message:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.d4y-charts-grid {
    display: grid;
    gap: 24px;
}

/* 2 graphs côte à côte sur écran large */
@media (min-width: 1024px) {
    .d4y-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ====== Espace propriétaire – Header / Menu ====== */

.d4y-owner-header {
    background: #111827;
    color: #f9fafb;
    padding: 10px 20px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.55);
    position: sticky;
    top: 0;
    z-index: 40;
}

.d4y-owner-header-inner {
    max-width: 1840px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 6px;
}

/* Branding gauche */
.d4y-owner-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.d4y-owner-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 6px 10px;
    background: #0b1220; /* fond sombre pour logo blanc */
    border-radius: 10px;
}

.d4y-owner-brand-logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.d4y-owner-brand-text {
    display: flex;
    flex-direction: column;
}

.d4y-owner-brand-title {
    font-size: 15px;
    font-weight: 600;
}

.d4y-owner-brand-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* Nav centrale */
.d4y-owner-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.d4y-owner-nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0 10px 0 18px;
}

.d4y-owner-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.d4y-owner-nav-link:hover {
    background: rgba(249, 250, 251, 0.12);
    color: #ffffff;
}

.d4y-owner-nav-item.is-active .d4y-owner-nav-link {
    background: #f97316;
    color: #111827;
    font-weight: 600;
}

.d4y-owner-nav-item--dropdown {
    position: relative;
}

.d4y-owner-nav-dropdown {
    position: relative;
}

.d4y-owner-nav-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.d4y-owner-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.d4y-owner-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    z-index: 60;
}

.d4y-owner-nav-dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.d4y-owner-nav-dropdown-link:hover,
.d4y-owner-nav-dropdown-link.is-active {
    background: #fff7ed;
    color: #c2410c;
}

/* Déconnexion droite */
.d4y-owner-logout-wrap {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-left: 12px;
}

.d4y-owner-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.d4y-owner-logout-btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #111827;
}

.d4y-owner-user-chip {
    display:inline-flex;
    align-items:center;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(249,115,22,.12);
    border:1px solid rgba(249,115,22,.25);
    color:#fdba74;
    font-size:12px;
    font-weight:700;
    line-height:1;
    max-width:280px;
    text-align:right;
}

/* Optionnel : léger respo */
@media (max-width: 920px) {
    .d4y-owner-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .d4y-owner-nav {
        order: 3;
        width: 100%;
    }

    .d4y-owner-nav-list {
        flex-wrap: wrap;
        padding: 0;
    }

    .d4y-owner-nav-dropdown-menu {
        position: static;
        margin-top: 8px;
        min-width: 100%;
    }

    .d4y-owner-logout-wrap {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding-left: 0;
    }
}


/* Toast notifications */
.d4y-toast-container{position:fixed;top:16px;right:16px;z-index:9999;display:flex;flex-direction:column;gap:10px;}
.d4y-toast{min-width:260px;max-width:360px;background:#111827;color:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;gap:10px;align-items:flex-start;}
.d4y-toast .d4y-toast-icon{width:20px;height:20px;flex:0 0 20px;margin-top:2px;opacity:.95;}
.d4y-toast .d4y-toast-title{font-weight:700;font-size:13px;line-height:1.2;margin:0 0 2px 0;}
.d4y-toast .d4y-toast-msg{font-size:13px;line-height:1.35;opacity:.95;}
.d4y-toast .d4y-toast-close{margin-left:auto;background:transparent;border:0;color:#fff;opacity:.7;cursor:pointer;font-size:16px;line-height:1;}
.d4y-toast.is-success{border:1px solid rgba(34,197,94,.35);}
.d4y-toast.is-error{border:1px solid rgba(239,68,68,.35);}
.d4y-toast.is-warning{border:1px solid rgba(245,158,11,.35);}
@media(max-width:520px){.d4y-toast-container{left:12px;right:12px;top:12px}.d4y-toast{max-width:none;width:100%}}


/* Tiny buttons & danger */
.d4y-btn-xs{
  padding:6px 10px !important;
  font-size:12px !important;
  border-radius:10px !important;
}
.d4y-btn-danger{
  background:#b42318;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
}
.d4y-btn-danger:hover{
  filter:brightness(1.05);
}

/* Badge danger */
.d4y-badge-danger{
  background:rgba(180,35,24,.12);
  color:#b42318;
  border:1px solid rgba(180,35,24,.25);
}

.d4y-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.d4y-muted{color:#6b7280;font-size:14px}
.d4y-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.d4y-card-block{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 4px 18px rgba(0,0,0,.04)}
.d4y-code-list{display:flex;flex-direction:column;gap:10px;margin:10px 0 14px}
.d4y-code-list code,.d4y-api-secret-box code{display:block;background:#111827;color:#fff;padding:10px 12px;border-radius:12px;overflow:auto}
.d4y-api-secret-box{margin:14px 0 18px;padding:14px;border:1px solid rgba(249,115,22,.25);background:#fff7ed;border-radius:14px}
.d4y-api-secret-label{font-weight:700;margin-bottom:8px;color:#9a3412}
@media (max-width: 980px){.d4y-grid-2{grid-template-columns:1fr}}


.d4y-main--wide{max-width:1840px;}
.d4y-section--wide{max-width:none;}
.d4y-toolbar-note{font-size:12px;color:#64748b;}
