/*
 * Alaeddin user pages compact density layer - Round 2.
 * Scope: user-facing pages only, desktop/tablet-wide >= 901px.
 * Goal: reduce oversized hero/card whitespace while preserving control usability.
 * Theme colors, shadows and semantic theme tokens are intentionally untouched.
 */
@media (min-width: 901px) {
    /* Dashboard */
    body .dashboard-page {
        --dashboard-gap-xl: clamp(10px, 1.2vw, 16px);
        --dashboard-gap-lg: clamp(9px, 1vw, 14px);
        --dashboard-gap-md: 9px;
        padding-block: 6px calc(14px + var(--app-safe-bottom));
    }

    body .dashboard-shell { gap: var(--dashboard-gap-lg); }
    body .dashboard-wallet-card { gap: 9px; padding: 11px 13px; }
    body .dashboard-wallet-card__icon { width: 34px; height: 34px; }
    body .dashboard-wallet-card__icon svg,
    body .dashboard-tool-card__icon svg { width: 18px; height: 18px; }
    body .dashboard-wallet-card__metric { gap: 4px; padding: 7px 9px; }
    body .dashboard-wallet-card__metrics--single .dashboard-wallet-card__metric { min-height: 54px; }
    body .dashboard-tools-menu { padding: 9px; }
    body .dashboard-tool-card { min-height: 64px; padding: 10px 11px; gap: 9px; }
    body .dashboard-panel-card { padding: 14px; }
    body .dashboard-field__control { min-height: 44px; padding: 9px 12px; font-size: 0.9rem; }
    body .dashboard-primary-button { min-height: 44px; padding: 9px 15px; font-size: 0.88rem; }

    /* Request balance */
    body .request-balance-page {
        --request-gap-xl: clamp(10px, 1.2vw, 15px);
        --request-gap-lg: clamp(9px, 1vw, 13px);
        --request-gap-md: clamp(8px, 0.9vw, 11px);
        padding-block: 6px calc(14px + var(--app-safe-bottom));
    }

    body .request-balance-shell { gap: var(--request-gap-xl); }
    body .request-balance-hero { padding: 10px 12px; gap: 10px; }
    body .request-balance-hero__content { gap: 6px; }
    body .request-balance-hero__eyebrow { min-height: 28px; padding: 5px 10px; font-size: 0.78rem; }
    body .request-balance-hero__title { font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.25; }
    body .request-balance-hero__text { font-size: 0.86rem; line-height: 1.55; }
    body .request-balance-hero__stats { gap: 8px; }
    body .request-balance-hero__stat { gap: 4px; padding: 8px 10px; }
    body .request-balance-hero__stat strong { font-size: clamp(0.96rem, 1.2vw, 1.12rem); }
    body .request-balance-hero__stat span { font-size: 0.78rem; line-height: 1.35; }
    body .request-balance-layout { gap: var(--request-gap-xl); }
    body .request-balance-sidebar { gap: var(--request-gap-lg); }
    body .request-balance-card--form,
    body .request-balance-card--info { padding: 12px 14px; }
    body .request-balance-card__head { margin-bottom: 10px; }
    body .request-balance-card__title { font-size: clamp(0.98rem, 1.2vw, 1.1rem); }
    body .request-balance-card__subtitle,
    body .request-balance-section__text { font-size: 0.84rem; line-height: 1.55; }
    body .request-balance-section { padding: 12px; }
    body .request-balance-section + .request-balance-section { margin-top: 10px; }
    body .request-balance-fields { gap: 9px; }
    body .request-balance-page .form-group input,
    body .request-balance-page .form-group select,
    body .request-balance-page .form-group textarea { min-height: 44px; padding: 9px 12px; font-size: 0.9rem; }
    body .request-balance-upload__dropzone { min-height: 130px; padding: 14px 12px; }
    body .request-balance-upload__action,
    body .request-balance-upload__secondary,
    body .request-balance-upload__danger,
    body .request-balance-submit { min-height: 44px; padding: 9px 13px; font-size: 0.88rem; }
    body .request-balance-note,
    body .request-balance-checklist__item { padding: 9px 10px; }

    /* Order history */
    body .order-history-page { padding: 8px 0 16px; }
    body .order-history-shell { gap: 10px; }
    body .order-history-hero { padding: 12px 16px; }
    body .order-history-hero__content { gap: 5px; }
    body .order-history-hero__eyebrow { font-size: 0.82rem; }
    body .order-history-hero__title { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.28; }
    body .order-history-hero__subtitle { font-size: 0.86rem; line-height: 1.55; }
    body .order-history-filters-card,
    body .order-history-results-card { padding: 12px 14px; }
    body .order-history-filters__grid { gap: 9px; }
    body .order-history-field { gap: 5px; }
    body .order-history-field__control,
    body .order-history-submit-button,
    body .order-history-export-button { min-height: 44px; font-size: 0.9rem; }
    body .order-history-field__control { padding: 9px 12px; }
    body .order-history-results-summary { margin-bottom: 8px; line-height: 1.55; }
    body .order-history-empty-state { min-height: 110px; gap: 7px; padding: 14px 12px; }
    body .order-history-empty-state__icon { font-size: 1.5rem; }
    body .order-history-empty-state__title { font-size: 1rem; }
    body .order-history-empty-state__text { font-size: 0.86rem; line-height: 1.55; }
    body .order-history-table thead th,
    body .order-history-table tbody td { padding-block: 9px; }

    /* Financial records */
    body .financial-records-page { padding: 8px 0 16px; }
    body .financial-records-shell { gap: 10px; }
    body .financial-records-hero { padding: 12px 16px; }
    body .financial-records-hero__content { gap: 5px; }
    body .financial-records-hero__eyebrow { font-size: 0.82rem; }
    body .financial-records-hero__title { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.28; }
    body .financial-records-hero__subtitle { font-size: 0.86rem; line-height: 1.55; }
    body .financial-records-filters-card,
    body .financial-records-results-card { padding: 12px 14px; }
    body .financial-records-filters__grid { gap: 9px; }
    body .financial-records-field { gap: 5px; }
    body .financial-records-field__control,
    body .financial-records-submit-button,
    body .financial-records-export-button { min-height: 44px; font-size: 0.9rem; }
    body .financial-records-field__control { padding: 9px 12px; }
    body .financial-records-results-summary { margin-bottom: 8px; line-height: 1.55; }
    body .financial-records-empty-state { min-height: 110px; gap: 7px; padding: 14px 12px; }
    body .financial-records-empty-state__icon { font-size: 1.5rem; }
    body .financial-records-empty-state__title { font-size: 1rem; }
    body .financial-records-empty-state__text { font-size: 0.86rem; line-height: 1.55; }
    body .financial-records-table thead th,
    body .financial-records-table tbody td { padding-block: 9px; }

    /* Balance request history */
    body .balance-requests-history-page { padding: 8px 0 16px; }
    body .balance-requests-history-shell { gap: 10px; }
    body .balance-requests-history-hero { gap: 12px; padding: 12px 16px; }
    body .balance-requests-history-hero__content { gap: 5px; }
    body .balance-requests-history-hero__eyebrow { font-size: 0.82rem; }
    body .balance-requests-history-hero__title { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.28; }
    body .balance-requests-history-hero__subtitle { font-size: 0.86rem; line-height: 1.55; }
    body .balance-requests-history-primary-link,
    body .balance-requests-history-submit,
    body .balance-requests-history-reset { min-height: 44px; padding: 9px 14px; font-size: 0.88rem; }
    body .balance-requests-history-filters-card,
    body .balance-requests-history-results-card { padding: 12px 14px; }
    body .balance-requests-history-section-head,
    body .balance-requests-history-results-head { gap: 10px; margin-bottom: 10px; }
    body .balance-requests-history-filters__grid { gap: 9px; }
    body .balance-requests-history-field { gap: 5px; }
    body .balance-requests-history-field__control,
    body .balance-requests-history-field input,
    body .balance-requests-history-field select { min-height: 44px; padding: 9px 12px; font-size: 0.9rem; }

    /* Address book */
    body .address-book-page { padding: 8px 0 16px; }
    body .address-book-shell { gap: 10px; }
    body .address-book-hero { gap: 12px; padding: 12px 16px; }
    body .address-book-hero__content { gap: 5px; }
    body .address-book-hero__eyebrow { font-size: 0.82rem; }
    body .address-book-hero__title { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.28; }
    body .address-book-hero__subtitle { font-size: 0.86rem; line-height: 1.55; }
    body .address-book-search-card,
    body .address-book-list-card,
    body .address-book-form-card { padding: 12px 14px; }
    body .address-book-section-head { gap: 5px; margin-bottom: 10px; }
    body .address-book-section-text { font-size: 0.86rem; line-height: 1.55; }
    body .address-book-search-form { gap: 10px; }
    body .address-book-field__control,
    body .address-book-submit-button,
    body .address-book-primary-action { min-height: 44px; font-size: 0.9rem; }
    body .address-book-field__control { padding: 9px 12px; }
    body .address-book-empty-state { min-height: 110px; padding: 14px 12px; }

    /* Balance transfer */
    body .transfer-balance-page { padding: 8px; }
    body .transfer-balance-layout { gap: 10px; }
    body .transfer-balance-card--form,
    body .transfer-balance-card--info { padding: 12px 14px; }
    body .transfer-balance-card__head { margin-bottom: 10px; }
    body .transfer-balance-card__head--compact { margin-bottom: 8px; }
    body .transfer-balance-card__badge { min-height: 28px; margin-bottom: 7px; padding: 4px 10px; font-size: 0.78rem; }
    body .transfer-balance-card__subtitle { margin-top: 5px; line-height: 1.55; }
    body .transfer-balance-fields { gap: 10px; }
    body .transfer-balance-page .form-control,
    body .transfer-balance-page input,
    body .transfer-balance-page select,
    body .transfer-balance-page textarea { min-height: 44px; }
    body .transfer-balance-submit { min-height: 44px; font-size: 0.9rem; }

    /* My customers */
    body .mycustomer-page {
        --mycustomer-gap-xl: clamp(10px, 1.2vw, 15px);
        --mycustomer-gap-lg: clamp(9px, 1vw, 13px);
        --mycustomer-gap-md: clamp(8px, 0.9vw, 11px);
        padding-block: 6px calc(14px + var(--app-safe-bottom));
    }

    body .mycustomer-shell { gap: var(--mycustomer-gap-xl); }
    body .mycustomer-hero { padding: 10px 12px; gap: 10px; }
    body .mycustomer-hero__stats { gap: 9px; }
    body .mycustomer-hero__wallet-stat { padding: 9px 10px; gap: 7px; }
    body .mycustomer-hero__wallet-stat-row { padding: 8px 9px; }
    body .mycustomer-card--results { padding: 12px 14px; gap: 10px; }
    body .mycustomer-card__head--results { gap: 8px; }
    body .mycustomer-card__title { font-size: clamp(0.98rem, 1.2vw, 1.1rem); }
    body .mycustomer-card__subtitle { font-size: 0.84rem; line-height: 1.55; }
    body .mycustomer-field__control { min-height: 44px; padding: 9px 12px; font-size: 0.9rem; }
    body .mycustomer-action-button { min-height: 40px; }
    body .mycustomer-cards { gap: 10px; }
    body .mycustomer-customer-card { padding: 12px; }
    body .mycustomer-empty-state { min-height: 110px; padding: 14px 12px; }

    /* Currency calculator */
    body .calc-wrap { margin-top: 10px; margin-bottom: 14px; padding: 14px; }
    body .calc-title { font-size: clamp(1.1rem, 1.75vw, 1.45rem); }
    body .calc-badge { margin-bottom: 10px; padding: 7px 10px; font-size: 0.82rem; }
    body .rate-card { margin-bottom: 10px; padding: 10px 12px; }
    body .rate-pill { padding: 8px 10px; }
    body .calc-input { min-height: 44px; }
    body .share-card { padding: 14px; }
    body .cash-note-card { padding: 10px; }
}
