/* =========================================================
   VYBE ACCESSORIES — SHARED ADMIN PANEL STYLESHEET
========================================================= */

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

:root {
    --sidebar: #111827;
    --sidebar-text: #9ca3af;

    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-soft: #f3eefe;

    --bg: #f7f8fc;
    --card: #ffffff;

    --text: #111827;
    --text-soft: #667085;
    --text-muted: #98a2b3;

    --border: #eaecf0;

    --green: #039855;
    --green-soft: #ecfdf3;

    --red: #d92d20;
    --red-soft: #fef3f2;

    --amber: #b54708;
    --amber-soft: #fffaeb;

    --blue: #175cd3;
    --blue-soft: #eff8ff;

    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
}

html, body { width: 100%; min-height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===================== APP LAYOUT ===================== */

.app { min-height: 100vh; display: flex; }

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--sidebar);
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-logo {
    height: 78px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white; font-size: 18px;
    box-shadow: 0 7px 18px rgba(124,58,237,0.28);
}

.logo-text {
    color: #fff; font-family: 'Manrope', sans-serif;
    font-size: 16px; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { padding: 24px 14px; flex: 1; overflow-y: auto; }

.nav-label {
    color: #667085; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 0 12px; margin-bottom: 9px;
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    width: 100%; min-height: 44px; padding: 0 12px; margin-bottom: 4px;
    border-radius: 9px; text-decoration: none;
    color: var(--sidebar-text); font-size: 13.5px; font-weight: 600;
    transition: 0.18s ease;
}

.nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(124,58,237,0.95), rgba(109,40,217,0.80));
    box-shadow: 0 5px 14px rgba(124,58,237,0.18);
}

.nav-icon { width: 21px; text-align: center; font-size: 16px; flex-shrink: 0; }

.sidebar-bottom { padding: 14px; border-top: 1px solid rgba(255,255,255,0.06); }

.admin-box {
    padding: 12px; border-radius: 10px;
    background: rgba(255,255,255,0.04); margin-bottom: 8px;
}

.admin-box-label {
    color: #667085; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px;
}

.admin-name {
    color: #e5e7eb; font-size: 12.5px; font-weight: 600;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.main { margin-left: 250px; width: calc(100% - 250px); min-height: 100vh; }

.topbar {
    height: 78px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 34px; position: sticky; top: 0; z-index: 50;
}

.page-heading h1 {
    font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800;
    color: var(--text); letter-spacing: -.3px;
}

.page-heading p { margin-top: 2px; color: var(--text-muted); font-size: 11.5px; font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.clock {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-soft); background: #fafafa; font-size: 11.5px; font-weight: 600;
}

.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #ecfdf3; }

.topbar-link {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border); color: var(--text-soft);
    text-decoration: none; font-size: 15px; transition: .18s ease;
}

.topbar-link:hover { background: var(--primary-soft); color: var(--primary); border-color: #ddd0ff; }
.topbar-link.logout:hover { background: var(--red-soft); color: var(--red); border-color: #fecdca; }

/* ===================== NOTIFICATION BELL ===================== */

.notif-wrap { position: relative; }

.notif-bell {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-soft);
    cursor: pointer; font-size: 16px; position: relative; transition: .18s ease;
}

.notif-bell:hover { background: var(--primary-soft); color: var(--primary); border-color: #ddd0ff; }

.notif-badge {
    position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 20px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

.notif-dropdown {
    display: none; position: absolute; top: 46px; right: 0; width: 340px; max-height: 420px;
    overflow-y: auto; background: #fff; border-radius: 12px; border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(16,24,40,0.18); z-index: 200;
}

.notif-dropdown.open { display: block; }

.notif-dropdown-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border); font-family: 'Manrope', sans-serif;
    font-size: 13px; font-weight: 800; color: var(--text); display: flex; justify-content: space-between; align-items: center;
}

.notif-item {
    display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #f2f4f7;
    text-decoration: none; color: inherit; transition: .12s ease;
}

.notif-item:hover { background: #fafaff; }
.notif-item:last-child { border-bottom: none; }

.notif-item-icon { font-size: 16px; flex-shrink: 0; }

.notif-item-title { font-size: 11.5px; font-weight: 700; color: var(--text); }
.notif-item-message { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.notif-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 12px; }

.content { padding: 30px 34px 20px; max-width: 1500px; }

/* ===================== QUICK ACTIONS / BUTTONS ===================== */

.quick-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 15px; margin-bottom: 22px; flex-wrap: wrap;
}

.section-title { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; color: var(--text); }

.action-buttons { display: flex; gap: 9px; flex-wrap: wrap; }

.btn {
    height: 38px; padding: 0 15px; display: inline-flex; align-items: center;
    justify-content: center; gap: 7px; border-radius: 8px; text-decoration: none;
    font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease;
    border: none; font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff; box-shadow: 0 5px 12px rgba(124,58,237,.16);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 17px rgba(124,58,237,.24); }

.btn-secondary { background: #fff; color: #344054; border: 1px solid var(--border); }
.btn-secondary:hover { background: #f9fafb; border-color: #d0d5dd; }

.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid #fecdca; }
.btn-danger:hover { background: #fee4e2; }

.btn-sm { height: 30px; padding: 0 11px; font-size: 11px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===================== ALERTS ===================== */

.alert {
    display: flex; align-items: center; gap: 12px; padding: 13px 15px;
    margin-bottom: 22px; border-radius: 10px; font-size: 12px;
}

.alert-warning { background: var(--amber-soft); border: 1px solid #fedf89; color: #93370d; }
.alert-error { background: var(--red-soft); border: 1px solid #fecdca; color: #7a271a; }
.alert-success { background: var(--green-soft); border: 1px solid #a6f4c5; color: #05603a; }

.alert-icon {
    width: 30px; height: 30px; min-width: 30px; display: flex;
    align-items: center; justify-content: center; border-radius: 8px; font-size: 14px;
}

.alert-warning .alert-icon { background: #fef0c7; }
.alert-error .alert-icon { background: #fee4e2; }
.alert-success .alert-icon { background: #d1fadf; }

.alert-content { flex: 1; }
.alert-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.alert-link:hover { text-decoration: underline; }

/* ===================== KPI STAT CARDS ===================== */

.stats-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px; margin-bottom: 25px;
}

.stat-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 19px; position: relative; overflow: hidden; transition: .18s ease;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.stat-label {
    color: var(--text-muted); font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .65px;
}

.stat-icon {
    width: 34px; height: 34px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; font-size: 15px;
}

.icon-purple { background: var(--primary-soft); color: var(--primary); }
.icon-green { background: var(--green-soft); color: var(--green); }
.icon-red { background: var(--red-soft); color: var(--red); }
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-amber { background: var(--amber-soft); color: var(--amber); }

.stat-value {
    margin-top: 12px; font-family: 'Manrope', sans-serif; font-size: 24px;
    line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }

.stat-bottom {
    margin-top: 8px; display: flex; align-items: center; gap: 5px;
    color: var(--text-muted); font-size: 10.5px; font-weight: 500;
}

/* ===================== CARD ===================== */

.card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}

.card-header {
    min-height: 62px; padding: 0 20px; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--border);
    flex-wrap: wrap; gap: 10px;
}

.card-title-wrap { display: flex; align-items: center; gap: 10px; }

.card-title-icon {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 14px;
}

.card-header h2 { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; color: var(--text); }
.card-header p { color: var(--text-muted); font-size: 10.5px; margin-top: 1px; }

.view-all { color: var(--primary); font-size: 11.5px; font-weight: 700; text-decoration: none; padding: 7px 10px; border-radius: 6px; }
.view-all:hover { background: var(--primary-soft); }

.card-body { padding: 20px; }

/* ===================== FORMS ===================== */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label { font-size: 11.5px; font-weight: 700; color: #344054; }

.form-group input,
.form-group select,
.form-group textarea {
    height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}

.form-group textarea { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}

.filters-bar {
    display: flex; align-items: flex-end; gap: 12px; padding: 18px 20px;
    flex-wrap: wrap; border-bottom: 1px solid var(--border);
}

.filters-bar .form-group { min-width: 160px; }

/* ===================== TABLE ===================== */

.table-wrap { width: 100%; overflow-x: auto; }

.data-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; }

.data-table th {
    height: 42px; padding: 0 18px; text-align: left; background: #fafbfc;
    color: #667085; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .65px; border-bottom: 1px solid var(--border); white-space: nowrap;
}

.data-table td {
    height: 59px; padding: 0 18px; border-bottom: 1px solid #f2f4f7;
    color: #344054; vertical-align: middle;
}

.data-table tbody tr { transition: .14s ease; }
.data-table tbody tr:hover { background: #fafaff; }
.data-table tbody tr:last-child td { border-bottom: none; }

.customer { display: flex; align-items: center; gap: 9px; min-width: 140px; }

.customer-avatar {
    width: 30px; height: 30px; min-width: 30px; display: flex; align-items: center;
    justify-content: center; border-radius: 8px; background: var(--primary-soft);
    color: var(--primary); font-size: 11px; font-weight: 800;
}

.customer-name { color: var(--text); font-size: 11.5px; font-weight: 700; }

.product { color: #475467; font-weight: 500; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.amount { color: var(--text); font-weight: 600; white-space: nowrap; }

.profit { font-weight: 700; white-space: nowrap; }
.profit.positive { color: var(--green); }
.profit.negative { color: var(--red); }
.profit-percent { display: block; color: var(--text-muted); font-size: 9px; font-weight: 500; margin-top: 1px; }

/* ===================== BADGES ===================== */

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
    border-radius: 20px; font-size: 9.5px; font-weight: 700; white-space: nowrap;
}

.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }

.badge-received { color: #027a48; background: var(--green-soft); }
.badge-received::before { background: #12b76a; }

.badge-pending { color: #b54708; background: var(--amber-soft); }
.badge-pending::before { background: #f79009; }

.badge-unpaid { color: #b42318; background: var(--red-soft); }
.badge-unpaid::before { background: #f04438; }

.badge-delivered { color: #027a48; background: #ecfdf3; }
.badge-delivered::before { background: #12b76a; }

.badge-failed { color: #b42318; background: #fef3f2; }
.badge-failed::before { background: #f04438; }

/* ===================== STATUS DROPDOWN + UPDATE BUTTON ===================== */

.status-cell { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }

.status-select {
    appearance: none; -webkit-appearance: none;
    padding: 6px 26px 6px 11px; border-radius: 20px; font-size: 9.5px; font-weight: 700;
    cursor: pointer; border: 1px solid transparent;
    background-repeat: no-repeat; background-position: right 8px center; background-size: 9px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23667085'/></svg>");
    transition: .15s ease; font-family: inherit;
}

.status-select.st-pending { color: #b54708; background-color: #fffaeb; border-color: #fedf89; }
.status-select.st-delivered { color: #027a48; background-color: #ecfdf3; border-color: #a6f4c5; }
.status-select.st-failed { color: #b42318; background-color: #fef3f2; border-color: #fecdca; }
.status-select:disabled { opacity: .55; cursor: wait; }

.btn-update {
    height: 28px; padding: 0 11px; display: inline-flex; align-items: center; gap: 4px;
    border-radius: 7px; border: none; background: var(--primary); color: #fff;
    font-size: 10.5px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: .15s ease; white-space: nowrap;
}

.btn-update:hover { background: var(--primary-dark); }
.btn-update:disabled { opacity: .6; cursor: wait; }
.btn-update.saved { background: var(--green); }

.action-cell { display: flex; gap: 6px; white-space: nowrap; }

.btn-view {
    height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px;
    border-radius: 7px; border: 1px solid var(--border); background: #fff; color: #344054;
    font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .15s ease;
}

.btn-view:hover { background: var(--primary-soft); color: var(--primary); border-color: #ddd0ff; }
.btn-view:disabled { opacity: .6; cursor: wait; }

/* ===================== MODAL ===================== */

.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: #fff; border-radius: 14px; width: 100%; max-width: 520px;
    max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(16,24,40,0.25);
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
    border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2;
}

.modal-header h2 { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: var(--text); }
.modal-header p { color: var(--text-muted); font-size: 10.5px; margin-top: 2px; }

.modal-close {
    width: 30px; height: 30px; border: none; border-radius: 8px; background: #f2f4f7;
    color: #667085; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.modal-close:hover { background: var(--red-soft); color: var(--red); }

.modal-body { padding: 18px 22px 22px; min-height: 120px; }
.modal-loading { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 12px; font-weight: 600; }

.modal-section-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    color: var(--text-muted); margin: 14px 0 8px;
}
.modal-section-title:first-child { margin-top: 0; }

.modal-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f2f4f7; font-size: 12px; }
.modal-row:last-child { border-bottom: none; }
.modal-row .m-label { color: var(--text-muted); font-weight: 500; }
.modal-row .m-value { color: var(--text); font-weight: 700; text-align: right; }

.modal-profit-box {
    margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--primary-soft);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-profit-box .mp-label { font-size: 11px; font-weight: 700; color: var(--primary-dark); }
.modal-profit-box .mp-value { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; }

/* ===================== EMPTY STATE ===================== */

.empty-state { padding: 70px 20px; text-align: center; }

.empty-icon {
    width: 54px; height: 54px; margin: 0 auto 14px; display: flex; align-items: center;
    justify-content: center; border-radius: 14px; background: #f2f4f7; font-size: 24px;
}

.empty-state h3 { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.empty-state p { color: var(--text-muted); font-size: 11px; margin-bottom: 18px; }

/* ===================== FOOTER ===================== */

.dashboard-footer { margin-top: 28px; padding: 24px 10px 8px; text-align: center; border-top: 1px solid var(--border); }

.footer-quote {
    color: #667085; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
    font-style: italic; letter-spacing: .1px; margin-bottom: 9px;
}

.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; color: #98a2b3; font-size: 10px; font-weight: 500; }
.footer-separator { color: #d0d5dd; }

/* ===================== MOBILE MENU ===================== */

.mobile-menu {
    display: none; width: 36px; height: 36px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
    cursor: pointer; font-size: 18px;
}

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.sidebar-overlay.show { display: block; }

/* ===================== AUTH PAGES (login / setup) ===================== */

.auth-body {
    background: linear-gradient(135deg, #111827, #1f2937);
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}

.auth-box {
    background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }

.auth-box h1 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 18px; color: var(--text); }

.auth-box label { display: block; font-size: 11.5px; font-weight: 700; color: #344054; margin: 14px 0 6px; }

.auth-box input {
    width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
}

.auth-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.auth-box .btn { width: 100%; margin-top: 20px; height: 44px; }

.setup-2fa { text-align: center; }
.setup-2fa h3 { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.setup-2fa img { margin: 10px 0; }

/* ===================== RESPONSIVE ===================== */

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

@media (max-width: 850px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; width: 100%; }
    .mobile-menu { display: flex; }
    .topbar { padding: 0 20px; height: 68px; }
    .content { padding: 24px 20px 25px; }
    .clock { display: none; }
    .quick-actions { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .content { padding: 20px 14px 25px; }
    .topbar { padding: 0 14px; }
    .page-heading h1 { font-size: 18px; }
    .page-heading p { display: none; }
    .topbar-link { width: 34px; height: 34px; }
    .action-buttons { width: 100%; }
    .action-buttons .btn { flex: 1; }
    .card-header { padding: 0 14px; }
}

@media (max-width: 400px) {
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; }
    .stat-value { font-size: 22px; }
}
