/* =========================================================
   KAZUKO CUSTOMER PORTAL 2.0
   Production UI Framework
   PHẦN 1/4: CORE, BUTTONS, CARDS, DASHBOARD BASE
   ========================================================= */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    --kazuko: #ea580c;
    --kazuko-light: #f59e0b;
    --kazuko-dark: #9a3412;
    --kazuko-cream: #fff7e6;
    --page: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #fffaf5;
    --ink: #20242a;
    --muted: #6b7280;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
    --border: #e7eaf0;
    --border-soft: #eef1f5;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 5px 16px rgba(30, 41, 59, .05);
    --shadow: 0 8px 28px rgba(30, 41, 59, .07);
    --shadow-hover: 0 14px 34px rgba(30, 41, 59, .11);
}

/* =========================================================
   02. RESET VÀ NỀN TẢNG
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    background: var(--page);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   03. BUTTON SYSTEM
   ========================================================= */

.btn-kazuko {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient( 100deg, var(--kazuko), var(--kazuko-light) );
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(234, 88, 12, .18);
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .btn-kazuko:hover,
    .btn-kazuko:focus {
        color: #fff;
        background: linear-gradient( 100deg, var(--kazuko-dark), var(--kazuko) );
        box-shadow: 0 10px 24px rgba(154, 52, 18, .22);
        transform: translateY(-1px);
    }

    .btn-kazuko:active {
        transform: translateY(0);
    }

    .btn-kazuko:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(234, 88, 12, .18), 0 10px 24px rgba(154, 52, 18, .20);
    }

/* =========================================================
   04. COMMON PANELS
   ========================================================= */

.panel,
.dashboard-section {
    border: 1px solid rgba(231, 234, 240, .75);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel {
    padding: 20px;
}

.dashboard-section {
    padding: 20px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

    .dashboard-section-header h5,
    .panel h5 {
        color: var(--ink);
        font-weight: 800;
    }

/* =========================================================
   05. DASHBOARD LAYOUT
   ========================================================= */

.customer-dashboard {
    width: 100%;
}

.dashboard-heading {
    gap: 18px;
}

.subscription-summary {
    flex: 0 0 auto;
}

.dashboard-status-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

    .dashboard-status-badge.status-success {
        color: #15803d;
        background: #dcfce7;
    }

    .dashboard-status-badge.status-danger {
        color: #b91c1c;
        background: #fee2e2;
    }

/* Khoảng cách dọc thống nhất. Giữ đủ khối, chỉ thu cho vừa một màn hình. */
.customer-dashboard .mb-3,
.customer-dashboard .mb-4 {
    margin-bottom: 8px !important;
}

.customer-dashboard .g-3,
.customer-dashboard .g-4 {
    --bs-gutter-y: 8px;
    --bs-gutter-x: 8px;
}

.customer-dashboard .panel,
.customer-dashboard .dashboard-section {
    padding: 10px 12px;
}

.customer-dashboard .dashboard-section-header {
    margin-bottom: 6px;
}

.customer-dashboard .dashboard-section-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.customer-dashboard .dashboard-section-header h5,
.customer-dashboard .panel h5 {
    margin-bottom: 0;
    font-size: .95rem;
}

.customer-dashboard .dashboard-section-header .text-muted {
    margin: 0;
    line-height: 1.2;
}

.customer-dashboard .dashboard-action-grid {
    gap: 8px;
}

.customer-dashboard .dashboard-heading h2 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.customer-dashboard .dashboard-action-button {
    min-height: 52px;
    gap: 8px;
    padding: 6px 10px;
}

.customer-dashboard .dashboard-action-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
    font-size: 16px;
}

.customer-dashboard .dashboard-chart-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.customer-dashboard .dashboard-chart-shell {
    position: relative;
    flex: 1 1 auto;
    height: auto;
    min-height: 168px;
}

.customer-dashboard .summary-row {
    padding: 1px 0;
    line-height: 1.2;
}

.customer-main:has(.customer-dashboard) {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.customer-dashboard .dashboard-heading {
    line-height: 1.15;
}

.customer-dashboard .dashboard-system-row {
    min-height: 28px;
    padding: 1px 0;
}

.customer-dashboard .dashboard-task-list {
    gap: 6px;
}

.customer-dashboard .dashboard-task-button {
    grid-template-columns: 32px minmax(0, 1fr) auto 16px;
    gap: 8px;
    min-height: 0;
    padding: 4px 10px;
    border-radius: 12px;
}

.customer-dashboard .dashboard-task-button-copy small {
    margin-top: 0;
    line-height: 1.2;
}

.customer-dashboard .dashboard-task-button-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.customer-dashboard .dashboard-task-button-value {
    font-size: 20px;
}

.customer-dashboard .btn {
    padding-top: 4px;
    padding-bottom: 4px;
}

.customer-dashboard .mt-4 {
    margin-top: 6px !important;
}

/* =========================================================
   06. DASHBOARD STAT CARDS
   ========================================================= */

.dashboard-stat-row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.stat-card {
    min-height: 64px;
    padding: 10px 12px;
    border-left: 4px solid var(--kazuko);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: box-shadow .18s ease, transform .18s ease;
}

    .stat-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .stat-card span {
        display: block;
        color: var(--muted);
        font-size: .9rem;
        font-weight: 600;
    }

    .stat-card strong {
        display: block;
        margin-top: 2px;
        color: var(--ink);
        font-size: 1.55rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .stat-card.danger {
        border-left-color: var(--danger);
    }

/* =========================================================
   07. QUICK ACTIONS
   ========================================================= */

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-action-button {
    display: flex;
    min-width: 0;
    min-height: 78px;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--ink);
    background: var(--surface);
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .dashboard-action-button:hover {
        color: var(--ink);
        border-color: #fdba74;
        background: var(--surface-soft);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

.dashboard-action-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient( 145deg, var(--kazuko), var(--kazuko-light) );
    font-size: 20px;
    box-shadow: 0 7px 17px rgba(234, 88, 12, .17);
}

.dashboard-action-button > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-action-button strong {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 800;
}

.dashboard-action-button small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

/* =========================================================
   08. CHART
   ========================================================= */

.dashboard-chart-panel {
    min-height: 330px;
}

.dashboard-chart-shell {
    position: relative;
    height: 250px;
}

/* =========================================================
   09. SUMMARY
   ========================================================= */

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
}

    .summary-row:last-of-type {
        border-bottom: 0;
    }

    .summary-row > span {
        color: var(--muted);
    }

    .summary-row > strong {
        text-align: right;
    }

    .summary-row.total {
        border-bottom: 0;
        font-size: 1.15rem;
    }

/* =========================================================
   10. SYSTEM STATUS
   ========================================================= */

.dashboard-system-list {
    display: grid;
}

.dashboard-system-row {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}

    .dashboard-system-row:last-child {
        border-bottom: 0;
    }

    .dashboard-system-row > span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        font-size: .86rem;
    }

    .dashboard-system-row i {
        color: var(--kazuko);
        font-size: 1rem;
    }

    .dashboard-system-row strong {
        text-align: right;
        font-size: .84rem;
        font-weight: 800;
    }

/* =========================================================
   11. TABLE VÀ TIMELINE
   ========================================================= */

table thead th {
    white-space: nowrap;
    background: #fafafa !important;
}

.table-hover tbody tr {
    transition: background .15s ease;
}

    .table-hover tbody tr:hover {
        background: #fff8ef;
    }

.timeline {
    margin-left: 8px;
    padding-left: 20px;
    border-left: 2px solid #ddd;
}

.timeline-item {
    position: relative;
    padding-bottom: 22px;
}

    .timeline-item::before {
        content: "";
        position: absolute;
        top: 5px;
        left: -26px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--kazuko);
    }
/* =========================================================
   KAZUKO CUSTOMER PORTAL 2.0
   PHẦN 2/4: TASK BUTTONS VÀ LOGIN
   ========================================================= */

/* =========================================================
   12. DASHBOARD TASK BUTTONS
   ========================================================= */

.dashboard-task-list {
    display: grid;
    gap: 8px;
}

.dashboard-task-button {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
    transition: color .18s ease, filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .dashboard-task-button:hover {
        color: #fff;
        text-decoration: none;
        filter: brightness(1.04);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .20);
        transform: translateY(-2px);
    }

    .dashboard-task-button:active {
        box-shadow: 0 7px 18px rgba(15, 23, 42, .13);
        transform: translateY(0);
    }

    .dashboard-task-button:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .78), 0 0 0 7px rgba(234, 88, 12, .28), 0 16px 34px rgba(15, 23, 42, .20);
    }

.dashboard-task-pending {
    background: linear-gradient( 135deg, #ff9a2f 0%, #f97316 56%, #ea580c 100% );
}

.dashboard-task-processing {
    background: linear-gradient( 135deg, #4f8df7 0%, #2563eb 56%, #1d4ed8 100% );
}

.dashboard-task-failed {
    background: linear-gradient( 135deg, #f14b5d 0%, #dc3545 56%, #be123c 100% );
}

.dashboard-task-button-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    font-size: 23px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .14);
}

.dashboard-task-pending .dashboard-task-button-icon {
    color: #f97316;
}

.dashboard-task-processing .dashboard-task-button-icon {
    color: #2563eb;
}

.dashboard-task-failed .dashboard-task-button-icon {
    color: #dc3545;
}

.dashboard-task-button-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .dashboard-task-button-copy strong {
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.25;
    }

    .dashboard-task-button-copy small {
        margin-top: 5px;
        color: rgba(255, 255, 255, .88);
        font-size: 12px;
        line-height: 1.45;
    }

.dashboard-task-button-value {
    min-width: 38px;
    color: #fff;
    text-align: right;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-task-button-arrow {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .96);
    font-size: 22px;
}

/* =========================================================
   13. LOGIN PAGE
   ========================================================= */

.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient( circle at top right, #ffd89b 0, #fff7e6 35%, #f7f8fa 72% );
}

.login-shell {
    display: grid;
    width: min(1060px, 100%);
    min-height: 620px;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(120, 53, 15, .18);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 56px;
    color: #fff;
    background: linear-gradient( 145deg, #7c2d12, #ea580c 58%, #f59e0b );
}

    .login-brand-panel::after {
        content: "";
        position: absolute;
        right: -150px;
        bottom: -140px;
        width: 360px;
        height: 360px;
        border: 60px solid rgba(255, 255, 255, .09);
        border-radius: 50%;
    }

    .login-brand-panel h1 {
        max-width: 500px;
        margin: 18px 0;
        font-size: clamp( 2.2rem, 4vw, 3.4rem );
        font-weight: 800;
        line-height: 1.08;
    }

.login-description {
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .9;
}

.login-form-panel {
    display: flex;
    align-items: center;
    padding: 50px;
}

.login-form-wrap {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

    .login-form-wrap h2 {
        font-size: 2rem;
        font-weight: 800;
    }

.login-logo {
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient( 145deg, var(--kazuko), var(--kazuko-light) );
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(234, 88, 12, .3);
}

.login-eyebrow {
    margin: 22px 0 8px;
    color: var(--kazuko);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.login-brand-panel .login-eyebrow {
    color: #fff;
    opacity: .8;
}

.login-form-panel .form-control {
    min-height: 52px;
    border-color: #dfe3e8;
    border-radius: 12px;
}

    .login-form-panel .form-control:focus {
        border-color: var(--kazuko-light);
        box-shadow: 0 0 0 .22rem rgba(245, 158, 11, .16);
    }

.password-field {
    position: relative;
}

    .password-field .form-control {
        padding-right: 68px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    border: 0;
    color: var(--kazuko);
    background: transparent;
    font-weight: 700;
    transform: translateY(-50%);
}

.login-support {
    margin: 26px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .9rem;
}

.validation-summary-valid {
    display: none;
}
/* =========================================================
   KAZUKO CUSTOMER PORTAL 2.0
   PHẦN 3/4: HEADER, NAVIGATION, ACCOUNT, ALERT
   ========================================================= */

/* =========================================================
   14. CUSTOMER HEADER
   ========================================================= */

.kazuko-nav {
    background: linear-gradient( 100deg, var(--kazuko-dark), var(--kazuko) );
}

.customer-navbar {
    min-height: 76px;
    padding: 9px 0;
}

    .customer-navbar .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

/* =========================================================
   15. BRAND
   ========================================================= */

.customer-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-right: 22px;
    color: #fff;
    text-decoration: none;
}

    .customer-brand:hover,
    .customer-brand:focus {
        color: #fff;
    }

.customer-brand-logo {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    font-size: 21px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.customer-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.08;
}

    .customer-brand-copy strong {
        color: #fff;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: .035em;
        white-space: nowrap;
    }

    .customer-brand-copy small {
        margin-top: 4px;
        color: rgba(255, 255, 255, .75);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .08em;
        white-space: nowrap;
    }

/* =========================================================
   16. BOOTSTRAP COLLAPSE AREA
   ========================================================= */

#mainNav {
    min-width: 0;
}

    #mainNav.navbar-collapse {
        align-items: center;
    }

/* =========================================================
   17. NAVIGATION BUTTONS
   ========================================================= */

.customer-navigation {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.customer-nav-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, .88);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .customer-nav-button:hover {
        color: #fff;
        border-color: rgba(255, 255, 255, .17);
        background: rgba(255, 255, 255, .12);
        transform: translateY(-1px);
    }

    .customer-nav-button.active {
        color: var(--kazuko-dark);
        border-color: rgba(255, 255, 255, .50);
        background: #fff;
        box-shadow: 0 7px 18px rgba(89, 35, 5, .16);
    }

.customer-nav-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    font-size: 15px;
}

.customer-nav-text {
    line-height: 1;
}

/* =========================================================
   18. ACCOUNT AREA
   ========================================================= */

.customer-account-area {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 14px;
    white-space: nowrap;
}

.customer-account-summary {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    width: 184px;
    min-width: 184px;
    height: 48px;
    align-items: center;
    gap: 8px;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.customer-account-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: var(--kazuko-dark);
    background: #fff;
    font-size: 15px;
    font-weight: 900;
}

.customer-account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.12;
}

    .customer-account-copy strong {
        display: block;
        width: 100%;
        overflow: hidden;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-account-copy small {
        display: block;
        width: 100%;
        overflow: hidden;
        margin-top: 3px;
        color: rgba(255, 255, 255, .78);
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   19. LOGOUT BUTTON
   ========================================================= */

.customer-logout-form {
    flex: 0 0 auto;
    margin: 0;
}

.customer-logout-button {
    display: inline-flex;
    min-width: 98px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .customer-logout-button:hover {
        border-color: #fff;
        color: var(--kazuko-dark);
        background: #fff;
        box-shadow: 0 7px 17px rgba(89, 35, 5, .15);
        transform: translateY(-1px);
    }

    .customer-logout-button:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
    }

/* =========================================================
   20. MOBILE MENU BUTTON
   ========================================================= */

.customer-menu-toggle {
    width: 46px;
    height: 42px;
    padding: 6px;
    border-color: rgba(255, 255, 255, .42);
    border-radius: 11px;
}

    .customer-menu-toggle:focus {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .17);
    }

/* =========================================================
   21. MAIN CONTENT
   ========================================================= */

.customer-main {
    min-height: calc(100vh - 76px);
}

/* =========================================================
   22. ALERTS
   ========================================================= */

.customer-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 0;
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

    .customer-alert > i {
        margin-top: 1px;
        font-size: 17px;
    }

    .customer-alert > span {
        flex: 1;
    }

/* =========================================================
   23. LEGACY USER SUMMARY
   Giữ tương thích với các View cũ nếu còn dùng.
   ========================================================= */

.user-summary {
    line-height: 1.15;
}

    .user-summary strong,
    .user-summary small {
        display: block;
    }

    .user-summary small {
        margin-top: 3px;
        opacity: .80;
    }
/* =========================================================
   KAZUKO CUSTOMER PORTAL 2.0
   PHẦN 4/4: RESPONSIVE, MOBILE, PRINT
   ========================================================= */

/* =========================================================
   24. LARGE DESKTOP / LAPTOP
   ========================================================= */

@media (max-width: 1399.98px) {
    .customer-brand {
        margin-right: 16px;
    }

    .customer-nav-button {
        padding-left: 10px;
        padding-right: 10px;
    }

    .customer-account-area {
        gap: 6px;
        margin-left: 10px;
    }

    .customer-account-summary {
        width: 168px;
        min-width: 168px;
    }

    .customer-logout-button {
        min-width: 46px;
        padding-left: 10px;
        padding-right: 10px;
    }

        .customer-logout-button span {
            display: none;
        }
}

/* =========================================================
   25. TABLET / COLLAPSED NAVBAR
   ========================================================= */

@media (max-width: 1199.98px) {
    .dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-navbar .container-fluid {
        flex-wrap: wrap;
    }

    #mainNav {
        width: 100%;
        flex-basis: 100%;
    }

        #mainNav.navbar-collapse {
            align-items: stretch;
        }

    .customer-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 9px;
        margin-top: 14px;
        padding: 10px;
        border-radius: 15px;
        background: rgba(255, 255, 255, .08);
    }

    .customer-nav-button {
        width: 100%;
        min-height: 52px;
        justify-content: flex-start;
        padding: 10px 13px;
        border-color: rgba(255, 255, 255, .15);
        background: rgba(255, 255, 255, .06);
    }

        .customer-nav-button.active {
            color: var(--kazuko-dark);
            background: #fff;
        }

    .customer-account-area {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        gap: 10px;
        margin: 10px 0 3px;
        padding: 10px;
        border-radius: 15px;
        background: rgba(255, 255, 255, .08);
    }

    .customer-account-summary {
        width: 100%;
        min-width: 0;
    }

    .customer-account-copy strong,
    .customer-account-copy small {
        max-width: none;
    }

    .customer-logout-button {
        min-width: 108px;
    }

        .customer-logout-button span {
            display: inline;
        }
}

/* =========================================================
   26. TABLET NHỎ
   ========================================================= */

@media (max-width: 991.98px) {
    .login-shell {
        max-width: 560px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 42px 28px;
    }

    .dashboard-heading {
        align-items: flex-start !important;
        gap: 16px;
    }

    .subscription-summary {
        min-width: 120px;
    }

    .dashboard-stat-row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }

        .dashboard-stat-row .stat-card {
            min-height: 86px;
            padding: 12px 14px;
        }

            .dashboard-stat-row .stat-card strong {
                font-size: 1.8rem;
            }

    .dashboard-section,
    .panel {
        padding: 18px;
    }

    .customer-main {
        min-height: calc(100vh - 70px);
    }
}

/* =========================================================
   27. MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .customer-dashboard .mb-4 {
        margin-bottom: 12px !important;
    }

    .customer-dashboard .g-4 {
        --bs-gutter-y: 12px;
    }

    .dashboard-task-button {
        grid-template-columns: 48px minmax(0, 1fr) auto 18px;
        min-height: 84px;
        gap: 11px;
        padding: 14px;
    }

    .dashboard-task-button-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .dashboard-task-button-copy strong {
        font-size: 14px;
    }

    .dashboard-task-button-copy small {
        font-size: 11px;
    }

    .dashboard-task-button-value {
        font-size: 24px;
    }

    .dashboard-task-button-arrow {
        font-size: 18px;
    }

    .customer-brand {
        margin-right: 0;
    }

    .customer-brand-copy strong {
        font-size: 13px;
    }

    .customer-brand-copy small {
        font-size: 8px;
    }

    .customer-brand-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .customer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 9px;
    }

    .customer-nav-button {
        min-height: 60px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 8px 6px;
        text-align: center;
        font-size: 11px;
    }

    .customer-nav-icon {
        width: 27px;
        height: 23px;
        font-size: 17px;
    }

    .customer-account-area {
        grid-template-columns: 1fr;
    }

    .customer-account-summary {
        height: 52px;
    }

    .customer-logout-button {
        width: 100%;
        min-height: 46px;
    }

    .customer-main {
        padding-top: 18px !important;
    }
}

/* =========================================================
   28. MOBILE NHỎ
   ========================================================= */

@media (max-width: 575.98px) {
    .dashboard-heading {
        flex-direction: column;
    }

    .subscription-summary {
        width: 100%;
        text-align: left !important;
    }

    .dashboard-action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-action-button {
        min-height: 72px;
    }

    .dashboard-chart-panel {
        min-height: 320px;
    }

    .dashboard-chart-shell {
        height: 235px;
    }

    .dashboard-task-list {
        gap: 10px;
    }

    .dashboard-task-button {
        grid-template-columns: 44px minmax(0, 1fr) auto 16px;
        min-height: 76px;
        gap: 9px;
        padding: 12px;
        border-radius: 15px;
    }

    .dashboard-task-button-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .dashboard-task-button-copy small {
        display: none;
    }

    .dashboard-task-button-value {
        min-width: 28px;
        font-size: 22px;
    }

    .login-page {
        padding: 0;
        background: #fff;
    }

    .login-shell {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        padding: 32px 22px;
    }

    .customer-navbar {
        min-height: 68px;
    }

        .customer-navbar .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }

    .customer-menu-toggle {
        width: 44px;
        height: 40px;
    }

    .customer-account-copy strong {
        font-size: 11px;
    }

    .customer-account-copy small {
        font-size: 9px;
    }
}

/* =========================================================
   29. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   30. PRINT
   ========================================================= */

@media print {
    body {
        background: #fff !important;
    }

    .customer-navbar,
    .customer-alert,
    .no-print {
        display: none !important;
    }

    .customer-main {
        min-height: 0;
        padding: 0 !important;
    }

    .panel,
    .dashboard-section,
    .stat-card {
        box-shadow: none !important;
    }
}