:root {
    --app-bg: #f5f7ff;
    --app-card: #ffffff;
    --app-border: #e8edf7;
    --app-muted: #9aa3b2;
    --app-heading: #111827;
    --app-primary: #2557ff;
    --app-primary-dark: #1d45d9;
    --app-success: #22c55e;
    --app-danger: #ef4444;
    --sidebar-bg: #ffffff;
    --sidebar-text: #111827;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 87, 255, 0.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12), transparent 28%),
        var(--app-bg);
    color: #1f2937;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-sidebar {
    width: 285px;
    min-height: calc(100vh - 28px);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 28px 22px;
    position: fixed;
    inset: 14px auto 14px 14px;
    z-index: 50;
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

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

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px 34px;
    margin-bottom: 10px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #0b0b0b;
    color: #fff;
    font-size: 22px;
    flex: 0 0 auto;
}

.brand-title {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.05em;
    color: #0b0b0b;
}

.brand-subtitle {
    color: #adb5c3;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 600;
}

.sidebar-nav .nav-link {
    color: #171717;
    border-radius: 13px;
    padding: 14px 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sidebar-nav .nav-link i {
    width: 26px;
    text-align: center;
    font-size: 21px;
}

.sidebar-nav .nav-link:hover {
    background: #f2f5ff;
    color: var(--app-primary);
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: var(--app-primary);
    box-shadow: 0 14px 26px rgba(37, 87, 255, .28);
}

.sidebar-section {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 18px 12px 8px;
}

.topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 28px 8px;
    background: transparent;
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--app-heading);
}

.topbar-subtitle {
    font-size: 13px;
    color: var(--app-muted);
    font-weight: 600;
}

.topbar-actions .btn {
    border-radius: 13px;
}

.content-wrap {
    padding: 18px 26px 34px;
}

.page-hero,
.dashboard-grid-header {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--app-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}

.soft-hero {
    background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(240,244,255,.95) 100%);
}

.page-hero h1,
.dashboard-grid-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -.055em;
    color: var(--app-heading);
}

.page-hero p,
.dashboard-grid-header p {
    margin: 7px 0 0;
    color: var(--app-muted);
    font-weight: 600;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-card,
.kpi-card {
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 22px;
}

.app-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.app-card-header.no-border {
    border-bottom: 0;
}

.app-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    color: var(--app-heading);
    letter-spacing: -.03em;
}

.app-card-body {
    padding: 22px 24px;
}

.kpi-card {
    min-height: 205px;
    padding: 30px;
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #111827;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.kpi-top i {
    color: #a1a1aa;
    font-size: 25px;
}

.kpi-value {
    margin-top: 25px;
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
    color: #111827;
    letter-spacing: -.05em;
}

.kpi-money {
    color: var(--app-success);
}

.kpi-value.danger {
    color: var(--app-danger);
}

.kpi-trend {
    margin-top: 18px;
    font-weight: 800;
    font-size: 14px;
}

.kpi-trend.positive {
    color: var(--app-success);
}

.kpi-trend.negative {
    color: #fb7185;
}

.stat-card {
    border: 1px solid var(--app-border);
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    min-height: 124px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef2ff;
    display: grid;
    place-items: center;
    color: var(--app-primary);
    font-size: 21px;
    margin-bottom: 14px;
}

.stat-label {
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 800;
}

.stat-value {
    color: var(--app-heading);
    font-size: 30px;
    font-weight: 950;
    margin-top: 4px;
    letter-spacing: -.04em;
}

.btn {
    border-radius: 13px;
    font-weight: 800;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    box-shadow: 0 12px 24px rgba(37, 87, 255, .20);
}

.btn-primary:hover {
    background: var(--app-primary-dark);
    border-color: var(--app-primary-dark);
}

.form-label {
    font-weight: 800;
    color: #374151;
}

.form-control,
.form-select {
    border-radius: 13px;
    border-color: #d8dee9;
    padding: 11px 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 .2rem rgba(37, 87, 255, .14);
}

.table {
    margin-bottom: 0;
}

.table th {
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    padding: 14px 16px;
}

.table td {
    vertical-align: middle;
    padding: 16px;
}

.primary-cell {
    font-weight: 900;
    color: #111827;
}

.support-text {
    color: var(--app-muted);
    font-size: 13px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    color: var(--app-muted);
    padding: 38px 22px;
    font-weight: 700;
}

.sales-card {
    overflow: hidden;
}

.chart-wrap {
    padding: 0 18px 24px;
}

.sales-chart {
    width: 100%;
    height: 360px;
    display: block;
}

.chart-grid-line {
    stroke: #eef2f7;
    stroke-width: 1;
}

.chart-axis-label,
.chart-day-label {
    fill: #111827;
    font-size: 15px;
    font-weight: 700;
}

.chart-axis-label {
    fill: #6b7280;
}

.chart-area {
    fill: rgba(37, 87, 255, .50);
}

.chart-line {
    fill: none;
    stroke: rgba(37, 87, 255, .75);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-form-card {
    overflow: hidden;
}

.photo-upload-card {
    background: #f8faff;
    border: 1px dashed #cfd7ea;
    border-radius: 20px;
    padding: 18px;
    text-align: center;
}

.member-photo-preview {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 28px;
    border: 8px solid #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
    background: #eef2ff;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 16px;
    background: #eef2ff;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    flex: 0 0 auto;
}

.member-avatar.small {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.scan-panel {
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(135deg, #111827 0%, #312e81 100%);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.bright-scan-panel {
    background: #fff;
    color: #111827;
    border: 1px solid var(--app-border);
}

.bright-scan-panel p {
    color: var(--app-muted);
    font-weight: 600;
}

.bright-scan-panel h2 {
    font-weight: 950;
    letter-spacing: -.04em;
}

.scan-panel-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #eef2ff;
    color: var(--app-primary);
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.scan-input {
    font-size: 23px;
    font-weight: 800;
    border-radius: 16px;
    padding: 16px 18px;
}

.scan-result-card {
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: #fff;
    padding: 28px;
    min-height: 360px;
    box-shadow: var(--shadow-soft);
}

.result-big {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.scan-status-line {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.scan-status-icon {
    font-size: 54px;
    color: var(--app-danger);
}

.member-scan-profile {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 28px;
    align-items: start;
}

.member-scan-photo-wrap {
    background: #f8faff;
    border: 1px solid #e5eaf5;
    border-radius: 26px;
    padding: 18px;
    text-align: center;
}

.member-scan-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    background: #eef2ff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.member-scan-code {
    margin-top: 14px;
    font-weight: 950;
    color: #111827;
    letter-spacing: .03em;
}

.member-scan-details h2 {
    font-size: 36px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.055em;
    margin: 12px 0 8px;
}

.scan-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.scan-result-success .scan-status-pill {
    color: #047857;
    background: #dcfce7;
}

.scan-result-warning .scan-status-pill {
    color: #92400e;
    background: #fef3c7;
}

.scan-result-danger .scan-status-pill {
    color: #b91c1c;
    background: #fee2e2;
}

.scan-result-success {
    border-color: #bbf7d0;
}

.scan-result-warning {
    border-color: #fde68a;
}

.scan-result-danger {
    border-color: #fecaca;
}

.detail-tile {
    border: 1px solid #eef2f7;
    border-radius: 17px;
    padding: 14px 16px;
    background: #fbfcff;
}

.detail-tile span {
    display: block;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.detail-tile strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 950;
}

.scan-meta {
    color: var(--app-muted);
    font-weight: 700;
}

.qr-card {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    background: #f8fafc;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #e0e7ff 0, transparent 34%), linear-gradient(135deg, #f8fafc, #eef2ff);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    padding: 30px;
}

.login-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2557ff, #22c55e);
    color: #fff;
    font-size: 28px;
    margin-bottom: 18px;
}

@media (max-width: 1199px) {
    .member-scan-profile {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-110%);
        transition: transform .2s ease;
        inset: 12px auto 12px 12px;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .content-wrap {
        padding: 16px;
    }

    .page-hero,
    .dashboard-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .member-scan-profile {
        grid-template-columns: 1fr;
    }

    .member-scan-photo-wrap {
        max-width: 260px;
    }

    .member-scan-details h2 {
        font-size: 30px;
    }

    .kpi-card {
        min-height: auto;
    }
}

@media print {
    .app-sidebar,
    .topbar,
    .no-print {
        display: none !important;
    }
    .app-main,
    .content-wrap {
        margin: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    body {
        background: #fff !important;
    }
}

/* ================================
   V3.1 responsive polish
   Keeps the V2 white-card dashboard style while making the system feel like a mobile app on phones.
================================ */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .38);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 45;
}

body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.app-sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
}

.app-sidebar::-webkit-scrollbar {
    width: 7px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: #d7deeb;
    border-radius: 999px;
}

.brand-text {
    min-width: 0;
}

.brand-title,
.topbar-title,
.primary-cell {
    overflow-wrap: anywhere;
}

.sidebar-close {
    margin-left: auto;
    border-radius: 12px;
}

.sidebar-nav {
    flex: 1 1 auto;
}

.sidebar-user-card {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #f9fbff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #0b0b0b;
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    font-size: 11px;
    font-weight: 800;
    color: var(--app-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.min-w-0 {
    min-width: 0;
}

.mobile-menu-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    flex: 0 0 auto;
}

.topbar-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.table-responsive {
    border-radius: 0 0 22px 22px;
}

.table-responsive .table {
    min-width: 760px;
}

.app-card > .table-responsive:first-child {
    border-radius: 22px;
}

.mobile-bottom-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
}

.mobile-bottom-link {
    border: 0;
    background: transparent;
    color: #64748b;
    min-width: 0;
    min-height: 56px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
}

.mobile-bottom-link i {
    font-size: 21px;
    line-height: 1;
}

.mobile-bottom-link.active {
    color: #fff;
    background: var(--app-primary);
    box-shadow: 0 10px 22px rgba(37, 87, 255, .26);
}

.mobile-bottom-button {
    font-family: inherit;
}

.member-scan-photo,
.member-photo-preview,
.member-avatar {
    image-rendering: auto;
}

@media (min-width: 1400px) {
    .content-wrap {
        padding-right: 32px;
        padding-left: 32px;
    }

    .sales-chart {
        height: 410px;
    }
}

@media (max-width: 1199px) {
    .kpi-card {
        min-height: 176px;
    }

    .kpi-top {
        font-size: 19px;
    }

    .kpi-value {
        font-size: 29px;
    }
}

@media (max-width: 991px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(37, 87, 255, 0.12), transparent 28%),
            var(--app-bg);
    }

    .app-shell {
        display: block;
        min-height: auto;
    }

    .app-sidebar {
        width: min(340px, calc(100vw - 24px));
        max-width: 100%;
        min-height: auto;
        max-height: calc(100dvh - 24px);
        padding: 22px 18px;
        inset: 12px auto 12px 12px;
        border-radius: 24px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
        transform: translateX(calc(-100% - 24px));
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .brand-box {
        padding-bottom: 20px;
        margin-bottom: 4px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 20px;
    }

    .sidebar-nav .nav-link {
        padding: 13px 12px;
        margin-bottom: 7px;
        border-radius: 15px;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 35;
        min-height: 64px;
        padding: 10px 14px;
        background: rgba(245, 247, 255, .86);
        backdrop-filter: blur(14px);
    }

    .topbar-title {
        font-size: 16px;
    }

    .topbar-subtitle {
        font-size: 12px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-wrap {
        padding: 12px 12px 104px;
    }

    .page-hero,
    .dashboard-grid-header {
        padding: 18px;
        border-radius: 22px;
        margin-bottom: 18px;
    }

    .page-hero h1,
    .dashboard-grid-header h1 {
        font-size: 27px;
        letter-spacing: -.045em;
    }

    .page-hero p,
    .dashboard-grid-header p {
        font-size: 14px;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions .btn {
        flex: 1 1 160px;
    }

    .app-card,
    .kpi-card,
    .scan-result-card,
    .scan-panel {
        border-radius: 22px;
    }

    .app-card-header {
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .app-card-body {
        padding: 18px;
    }

    .sales-chart {
        height: 300px;
    }

    .chart-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 18px;
    }

    .chart-wrap .sales-chart {
        min-width: 720px;
    }
}

@media (max-width: 767px) {
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }

    .kpi-card {
        padding: 22px;
        min-height: 148px;
    }

    .kpi-top {
        font-size: 17px;
    }

    .kpi-value {
        margin-top: 18px;
        font-size: 28px;
    }

    .kpi-trend {
        margin-top: 12px;
        font-size: 13px;
    }

    .page-hero h1,
    .dashboard-grid-header h1,
    .result-big {
        font-size: 24px;
    }

    .app-card-title {
        font-size: 18px;
    }

    .member-form-card .row,
    form .row {
        --bs-gutter-y: .9rem;
    }

    .photo-upload-card {
        padding: 14px;
    }

    .member-photo-preview {
        width: 136px;
        height: 136px;
        border-radius: 24px;
    }

    .scan-panel,
    .scan-result-card {
        padding: 20px;
    }

    .scan-panel-icon {
        width: 54px;
        height: 54px;
        border-radius: 17px;
        font-size: 26px;
    }

    .scan-input {
        font-size: 18px;
        padding: 14px 15px;
    }

    .member-scan-profile {
        gap: 18px;
    }

    .member-scan-photo-wrap {
        max-width: none;
        display: grid;
        grid-template-columns: 96px 1fr;
        text-align: left;
        align-items: center;
        gap: 14px;
        padding: 14px;
    }

    .member-scan-photo {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .member-scan-code {
        margin-top: 0;
        font-size: 16px;
    }

    .member-scan-details h2 {
        font-size: 26px;
        line-height: 1.05;
    }

    .detail-tile {
        padding: 12px 13px;
    }

    .detail-tile strong {
        font-size: 15px;
    }

    .table-responsive {
        border-radius: 0 0 18px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive .table {
        min-width: 680px;
    }

    .btn {
        min-height: 42px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 22px;
    }
}

@media (max-width: 575px) {
    .content-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar {
        gap: 10px;
    }

    .topbar-actions .btn {
        padding-left: 11px;
        padding-right: 11px;
    }

    .page-hero,
    .dashboard-grid-header,
    .app-card,
    .kpi-card,
    .scan-panel,
    .scan-result-card {
        border-radius: 20px;
    }

    .page-hero,
    .dashboard-grid-header {
        padding: 16px;
    }

    .page-hero h1,
    .dashboard-grid-header h1 {
        font-size: 23px;
    }

    .page-hero .btn,
    .dashboard-actions .btn {
        width: 100%;
    }

    .app-card-header,
    .app-card-body {
        padding: 16px;
    }

    .member-row {
        align-items: flex-start;
    }

    .member-avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .member-avatar.small {
        width: 38px;
        height: 38px;
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 22px;
        padding: 7px;
    }

    .mobile-bottom-link {
        min-height: 52px;
        border-radius: 16px;
        font-size: 10px;
    }

    .mobile-bottom-link i {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-link span {
        display: none;
    }

    .mobile-bottom-link {
        min-height: 48px;
    }

    .topbar-subtitle {
        display: none;
    }
}
