/*
 * mobile-app.css - bold, app-style admin UI for PHONES ONLY (max-width: 767.98px).
 * Load AFTER mobile-admin.css. Desktop is untouched: everything is inside the media query,
 * and the app shell elements are hidden outside it.
 */
.app-bottom-nav, .app-sheet, .app-sheet-backdrop, .app-more-actions, .app-sortbar, .app-topbar-title { display: none; }

@media (max-width: 767.98px) {
  :root {
    --app-blue: #0d6efd;
    --app-blue-dark: #0a58ca;
    --app-ink: #14263f;
    --app-muted: #6b7a90;
    --app-line: #e6ebf3;
    --app-bg: #f1f4f9;
    --app-nav-h: 64px;
  }

  /* ---------- base ---------- */
  html body.app-shell { overflow-x: hidden; overflow-x: clip; }
  html body.app-shell {
    background: var(--app-bg);
    color: var(--app-ink);
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  }
  html body.app-shell #content-wrapper { overflow: visible !important; background: var(--app-bg); }
  html body.app-shell .container-fluid { padding-left: 12px; padding-right: 12px; }
  html body.app-shell .sticky-footer { display: none !important; }
  html body.app-shell .scroll-to-top { display: none !important; }
  html body.app-sheet-open { overflow: hidden; }

  /* old drawer menu is replaced by the bottom bar + More sheet */
  html body.app-shell #accordionSidebar, html body.app-shell .sidebar, html body.app-shell #sidebarToggleTop { display: none !important; }

  /* ---------- top bar ---------- */
  html body.app-shell .topbar-wrapper { position: sticky; top: 0; z-index: 1030; }
  html body.app-shell .topbar {
    height: auto;
    min-height: 58px;
    margin-bottom: 14px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 14px 6px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .35) !important;
    border-radius: 0 0 22px 22px;
  }
  html body.app-shell .app-topbar-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body.app-shell .topbar .img-profile { width: 38px; height: 38px; }

  /* ---------- bottom tab bar ---------- */
  html body.app-shell .app-bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1040;
    height: calc(var(--app-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid var(--app-line);
    box-shadow: 0 -10px 28px rgba(20, 38, 63, .10);
  }
  html body.app-shell .app-tab {
    position: relative;
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 0;
    background: none; border: 0; outline: 0;
    color: #8492a8;
    font-size: 11px; font-weight: 800; letter-spacing: .2px;
    text-decoration: none !important;
  }
  html body.app-shell .app-tab i { font-size: 21px; line-height: 1; }
  html body.app-shell .app-tab.active { color: var(--app-blue); }
  html body.app-shell .app-tab.active::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 34px; height: 4px; margin-left: -17px;
    border-radius: 0 0 5px 5px; background: var(--app-blue);
  }
  html body.app-shell .app-tab:active { background: #f1f5fb; }

  /* ---------- sheets (More menu + row actions) ---------- */
  html body.app-shell .app-sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 1050;
    background: rgba(10, 20, 40, .55);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  html body.app-shell .app-sheet-backdrop.show { opacity: 1; visibility: visible; }
  html body.app-shell .app-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
    max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 40px rgba(0, 0, 0, .25);
    transform: translateY(108%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  html body.app-shell .app-sheet.show { transform: none; }
  html body.app-shell .app-sheet-handle { width: 46px; height: 5px; margin: 2px auto 14px; border-radius: 5px; background: #d3dbe8; }
  html body.app-shell .app-sheet-title { margin: 0 4px 14px; font-size: 20px; font-weight: 900; color: var(--app-ink); }
  html body.app-shell #appMoreGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  html body.app-shell .app-tile {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 14px 6px 12px; border-radius: 18px; background: #f3f6fb;
    color: var(--app-ink) !important; font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center;
    text-decoration: none !important;
  }
  html body.app-shell .app-tile:active { background: #e6edf8; }
  html body.app-shell .app-tile i {
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 15px; color: #fff; font-size: 19px; margin: 0;
  }
  html body.app-shell .app-sheet-list .btn.app-sheet-item {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    width: 100%; min-height: 54px; margin: 0 0 9px; padding: 0 18px;
    border-radius: 15px; font-size: 16px; font-weight: 800; text-align: left;
  }
  html body.app-shell .app-sheet-list .btn.app-sheet-item i { margin: 0 !important; width: 22px; text-align: center; font-size: 16px; }

  /* ---------- dashboard ---------- */
  html body.app-shell .app-dup-title { display: none !important; }
  html body.app-shell h1.h3 { font-size: 22px; font-weight: 900; color: var(--app-ink); margin-bottom: 12px !important; }
  html body.app-shell #content .row > .card-wrap { flex: 0 0 50%; max-width: 50%; padding-left: 6px; padding-right: 6px; margin-bottom: 12px !important; }
  html body.app-shell #content .row:has(> .card-wrap) { margin-left: -6px; margin-right: -6px; }
  html body.app-shell .card-wrap .dashboard-summary-card { border-radius: 20px; }
  html body.app-shell .card-wrap .dashboard-summary-card .card-body { padding: 14px 12px !important; }
  html body.app-shell .card-wrap .dashboard-summary-label { font-size: 10.5px; letter-spacing: .05em; line-height: 1.25; }
  html body.app-shell .card-wrap .dashboard-summary-value { font-size: 23px; font-weight: 900; margin-top: 4px; }
  html body.app-shell .card-wrap .dashboard-summary-icon { font-size: 20px !important; opacity: .9; }

  /* ---------- page cards / headers ---------- */
  html body.app-shell .card { border-radius: 20px; }
  html body.app-shell .card-header { padding: 14px 16px !important; background: #fff; border-bottom: 1px solid var(--app-line); }
  html body.app-shell .card-header h6, html body.app-shell .card-header h5, html body.app-shell .card-header .h6 {
    font-size: 19px !important; font-weight: 900 !important; color: var(--app-ink) !important; margin: 0;
  }
  html body.app-shell .card-body { padding: 14px 12px; }

  /* floating "+" button instead of the wide Add button */
  html body.app-shell .app-fab {
    position: fixed !important; float: none !important;
    right: 16px; bottom: calc(var(--app-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 1035; width: 58px; height: 58px; padding: 0 !important; margin: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important; font-size: 0 !important;
    box-shadow: 0 10px 24px rgba(13, 110, 253, .5);
  }
  html body.app-shell .app-fab i { font-size: 22px; margin: 0 !important; }

  /* ---------- search + paging ---------- */
  html body.app-shell .dataTables_wrapper > .row:first-child { display: block !important; margin: 0; }
  html body.app-shell .dataTables_wrapper > .row:first-child > div { width: 100% !important; max-width: 100% !important; padding: 0; }
  html body.app-shell .dataTables_wrapper .dataTables_length { display: none !important; }
  html body.app-shell .dataTables_wrapper .dataTables_filter { text-align: left !important; margin: 0 0 12px; }
  html body.app-shell .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; margin: 0 !important; font-size: 0 !important; }
  html body.app-shell .dataTables_wrapper .dataTables_filter input {
    display: block; width: 100% !important; height: 50px; margin: 0 !important; padding: 0 16px 0 46px;
    border: 2px solid #dbe3ef; border-radius: 16px; font-size: 16px; color: var(--app-ink); box-shadow: none; -webkit-appearance: none;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.6' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 15px center;
  }
  html body.app-shell .dataTables_wrapper .dataTables_filter input:focus { border-color: var(--app-blue); box-shadow: 0 0 0 4px rgba(13, 110, 253, .15); outline: 0; }
  html body.app-shell .dataTables_wrapper .dataTables_info { padding: 4px 0 8px; font-size: 12px; font-weight: 700; color: var(--app-muted); text-align: center; }
  html body.app-shell .dataTables_wrapper > .row:last-child { display: block; margin: 0; }
  html body.app-shell .dataTables_wrapper > .row:last-child > div { width: 100% !important; max-width: 100% !important; padding: 0; }
  html body.app-shell .dataTables_wrapper .dataTables_paginate { float: none; }
  html body.app-shell .dataTables_wrapper ul.pagination { justify-content: center; gap: 8px; margin: 4px 0 10px; }
  html body.app-shell .dataTables_wrapper .paginate_button:not(.previous):not(.next):not(.active) { display: none; }
  html body.app-shell .dataTables_wrapper .page-link {
    min-width: 54px; height: 46px; display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 14px; background: #fff; color: var(--app-blue); font-weight: 900; box-shadow: 0 3px 10px rgba(20, 38, 63, .08);
  }
  html body.app-shell .dataTables_wrapper .paginate_button.active .page-link { background: var(--app-blue); color: #fff; }
  html body.app-shell .dataTables_wrapper .paginate_button.disabled .page-link { opacity: .4; box-shadow: none; }

  /* ---------- sort strip (users page) ---------- */
  html body.app-shell .app-sortbar {
    display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 8px !important; margin: 0 0 12px !important; padding: 2px 2px 6px !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important;
  }
  html body.app-shell .app-sortbar::-webkit-scrollbar { display: none !important; }
  html body.app-shell .app-sortbar > * { flex: 0 0 auto !important; }
  html body.app-shell .app-sortbar-label { font-size: 11px !important; font-weight: 800 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--app-muted) !important; }
  html body.app-shell .app-sortbar .users-table-head-sort {
    display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 5px 6px 5px 12px !important; border-radius: 14px !important; background: #fff !important;
    font-size: 13px !important; font-weight: 800 !important; box-shadow: 0 3px 10px rgba(20, 38, 63, .08) !important;
  }
  html body.app-shell .app-sortbar .users-table-head-arrows { flex-direction: row !important; gap: 4px !important; }
  html body.app-shell .app-sortbar .users-sort-arrow-btn { width: 32px !important; height: 32px !important; border-radius: 10px !important; font-size: 12px !important; }
  html body.app-shell .app-sortbar .users-sort-arrow-btn i { font-size: 12px !important; }

  /* page card that only wraps a card list -> let the cards sit directly on the page */
  html body.app-shell .card.app-flat { background: transparent !important; box-shadow: none !important; border: 0 !important; overflow: visible !important; margin-bottom: 0 !important; }
  html body.app-shell .card.app-flat > .card-header { padding: 0 !important; background: transparent !important; border: 0 !important; }
  html body.app-shell .card.app-flat > .card-header h6, html body.app-shell .card.app-flat > .card-header h5, html body.app-shell .card.app-flat > .card-header .h6 { display: none !important; }
  html body.app-shell .card.app-flat > .card-body { padding: 0 !important; }
  html body.app-shell .card.app-flat .table-responsive, html body.app-shell .card.app-flat .col-md-12 { padding-left: 0 !important; padding-right: 0 !important; }

  /* ---------- tables -> cards ----------
     !important is deliberate: some pages (deposit, withdraw, bidding) force display:table-* with !important. */
  html body.app-shell .table-responsive.app-cards-wrap { overflow: visible !important; border-radius: 0 !important; }
  html body.app-shell table.app-cards {
    display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    margin: 0 !important; border: 0 !important; background: transparent !important; table-layout: auto !important;
  }
  html body.app-shell table.app-cards thead { display: none !important; }
  html body.app-shell table.app-cards tbody { display: block !important; width: 100% !important; }
  html body.app-shell table.app-cards tbody tr {
    position: relative !important; display: flex !important; flex-direction: column !important; width: 100% !important;
    margin: 0 0 12px !important; padding: 14px 16px 12px !important;
    background: #fff !important; border: 0 !important; border-radius: 20px !important;
    box-shadow: 0 8px 22px rgba(20, 38, 63, .09) !important;
  }
  html body.app-shell table.app-cards tbody td {
    display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important;
    flex-direction: row !important; flex-wrap: nowrap !important;
    width: auto !important; min-width: 0 !important; padding: 7px 0 !important; border: 0 !important;
    font-size: 15px !important; font-weight: 700 !important; color: var(--app-ink) !important; text-align: right !important; white-space: normal !important;
    background: transparent !important; word-break: break-word !important;
  }
  html body.app-shell table.app-cards tbody td::before {
    display: block !important; content: attr(data-label) !important; flex: 0 0 auto !important; max-width: 46% !important;
    font-size: 11px !important; font-weight: 800 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--app-muted) !important; text-align: left !important;
  }
  html body.app-shell table.app-cards tbody td.app-hide { display: none !important; }
  html body.app-shell table.app-cards tbody td.app-title {
    order: -3 !important; justify-content: flex-start !important; padding: 0 0 6px 0 !important;
    font-size: 19px !important; font-weight: 900 !important; line-height: 1.2 !important; text-align: left !important;
  }
  html body.app-shell table.app-cards tbody tr.app-has-status td.app-title { padding-right: 104px !important; }
  html body.app-shell table.app-cards tbody td.app-title::before, html body.app-shell table.app-cards tbody td.app-status::before,
  html body.app-shell table.app-cards tbody td.app-actions::before { display: none !important; }
  html body.app-shell table.app-cards tbody td.app-status { position: absolute !important; top: 14px !important; right: 14px !important; padding: 0 !important; width: auto !important; }
  html body.app-shell table.app-cards tbody td.app-status .badge { padding: 7px 12px !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 900 !important; }
  html body.app-shell table.app-cards tbody td.app-thumb img { border-radius: 10px !important; }
  html body.app-shell table.app-cards tbody td .phone-action { font-size: 16px !important; font-weight: 800 !important; }
  html body.app-shell table.app-cards tbody td.app-actions {
    order: 99 !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 8px !important;
    margin-top: 8px !important; padding: 12px 0 0 !important; border-top: 1px solid var(--app-line) !important;
  }
  html body.app-shell table.app-cards tbody td.app-actions > div { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; width: 100% !important; white-space: normal !important; }
  html body.app-shell table.app-cards tbody td.app-actions .btn {
    flex: 1 1 calc(50% - 8px) !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: auto !important; margin: 0 !important; padding: 0 12px !important; border-radius: 13px !important; font-size: 14px !important; font-weight: 800 !important; white-space: nowrap !important;
  }
  html body.app-shell table.app-cards tbody td.app-actions .btn i { margin: 0 6px 0 0 !important; }
  html body.app-shell table.app-cards tbody td.app-actions .app-extra { display: none !important; }
  html body.app-shell table.app-cards tbody td.app-actions .app-more-actions { display: inline-flex !important; }
  html body.app-shell table.app-cards tbody td.app-actions .dropdown { width: 100% !important; }
  html body.app-shell table.app-cards tbody td.app-actions .dropdown > .btn { width: 100% !important; }
  /* deposit / withdraw status picker: one big segmented control */
  html body.app-shell table.app-cards .inline-status-wrap { display: block !important; width: 100% !important; margin: 0 !important; }
  html body.app-shell table.app-cards .inline-status-wrap .btn-group { display: flex !important; width: 100% !important; }
  html body.app-shell table.app-cards .inline-status-wrap .btn-group .btn { flex: 1 1 0 !important; min-width: 0 !important; min-height: 46px !important; padding: 0 4px !important; font-size: 13px !important; }
  html body.app-shell table.app-cards .inline-status-wrap .inline-status-confirm { display: block !important; width: 100% !important; margin: 10px 0 0 !important; min-height: 48px !important; font-size: 16px !important; }
  html body.app-shell table.app-cards .inline-status-wrap .inline-status-confirm.d-none { display: none !important; }
  html body.app-shell table.app-cards tbody tr.app-empty, html body.app-shell table.app-cards tbody td.dataTables_empty {
    display: block !important; padding: 22px 12px !important; text-align: center !important; color: var(--app-muted) !important; font-weight: 800 !important; background: #fff !important; border-radius: 20px !important;
  }
  html body.app-shell table.app-cards tbody td.dataTables_empty::before { display: none !important; }

  /* ---------- buttons + forms ---------- */
  html body.app-shell .btn { min-height: 42px; border-radius: 13px; font-weight: 800; }
  html body.app-shell .btn-sm { min-height: 38px; }
  html body.app-shell .form-control, html body.app-shell select.form-control, html body.app-shell .custom-select {
    height: 50px; padding: 0 16px; border: 2px solid #dbe3ef; border-radius: 14px; font-size: 16px; color: var(--app-ink);
  }
  html body.app-shell textarea.form-control { height: auto; min-height: 96px; padding: 12px 16px; }
  html body.app-shell .form-control:focus { border-color: var(--app-blue); box-shadow: 0 0 0 4px rgba(13, 110, 253, .15); }
  html body.app-shell label:not(.custom-control-label):not(.form-check-label):not(.btn) { font-size: 13px; font-weight: 800; color: var(--app-ink); margin-bottom: 6px; }

  /* ---------- popups (modals) -> bottom sheets ---------- */
  html body.app-shell .custom-modal .modal-dialog, html body.app-shell .custom-modal2 .modal-dialog {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-width: 100% !important; margin: 0 !important; transform: none !important;
    display: flex; align-items: flex-end; min-height: 0 !important;
  }
  html body.app-shell .custom-modal .modal-content, html body.app-shell .custom-modal2 .modal-content {
    width: 100%; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
    border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -16px 44px rgba(0, 0, 0, .28);
    animation: appSheetUp .3s cubic-bezier(.2, .8, .2, 1);
  }
  @keyframes appSheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
  html body.app-shell .custom-modal .modal-header, html body.app-shell .custom-modal2 .modal-header { border: 0; padding: 22px 18px 8px; position: relative; }
  html body.app-shell .custom-modal .modal-header::before, html body.app-shell .custom-modal2 .modal-header::before {
    content: ''; position: absolute; top: 9px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 5px; background: #d3dbe8;
  }
  html body.app-shell .custom-modal .modal-title, html body.app-shell .custom-modal2 .modal-title { font-size: 20px; font-weight: 900; color: var(--app-ink) !important; }
  html body.app-shell .custom-modal .modal-body, html body.app-shell .custom-modal2 .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 18px 12px; }
  html body.app-shell .custom-modal .modal-footer, html body.app-shell .custom-modal2 .modal-footer {
    display: flex; gap: 10px; border: 0; padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff;
    box-shadow: 0 -8px 18px rgba(20, 38, 63, .06);
  }
  html body.app-shell .custom-modal .modal-footer .btn, html body.app-shell .custom-modal2 .modal-footer .btn { flex: 1 1 0; min-height: 52px; margin: 0; font-size: 16px; }

  /* ---- v2 additions ---- */
  html body.app-shell #content { padding-bottom: 76px; }
  html body.app-shell select.form-control[multiple], html body.app-shell select[multiple].form-control { height: auto !important; padding: 8px 12px; }
  /* money columns stand out on the cards */
  html body.app-shell table.app-cards tbody td[data-label="Amount" i], html body.app-shell table.app-cards tbody td[data-label="Balance" i],
  html body.app-shell table.app-cards tbody td[data-label="Profit" i] { font-size: 19px !important; font-weight: 900 !important; color: var(--app-blue) !important; }
  /* action cells that used a dropdown menu now open the same bottom sheet */
  html body.app-shell table.app-cards tbody td.app-actions > .app-dd-hidden, html body.app-shell table.app-cards .app-dd-hidden { display: none !important; }
  html body.app-shell table.app-cards tbody td.app-actions .app-actions-main { flex: 1 1 100% !important; }

  /* ---- v3: touch + polish ---- */
  html body.app-shell a, html body.app-shell button, html body.app-shell .btn, html body.app-shell .app-tab, html body.app-shell .page-link { touch-action: manipulation; }
  html body.app-shell .btn { transition: transform .08s ease; }
  html body.app-shell .btn:active, html body.app-shell .app-tab:active, html body.app-shell .app-tile:active { transform: scale(.97); }
  html body.app-shell .app-sheet, html body.app-shell .custom-modal .modal-body, html body.app-shell .custom-modal2 .modal-body { overscroll-behavior: contain; }
  html body.app-shell .app-sheet { max-height: 86vh; max-height: 86dvh; }

  /* refresh button (an installed home-screen app has no pull-to-refresh on iPhone) */
  html body.app-shell .app-refresh {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 42px; height: 42px; margin: 0 8px 0 0; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .2); color: #fff; font-size: 16px; line-height: 1;
  }
  html body.app-shell .app-refresh:active { background: rgba(255, 255, 255, .35); }
  html body.app-shell .app-refresh.spin i { animation: appSpin .7s linear; }
  @keyframes appSpin { to { transform: rotate(360deg); } }

  /* profile menu: real touch targets */
  html body.app-shell .topbar .dropdown-menu { min-width: 230px; margin-top: 8px; padding: 8px; border: 0; border-radius: 18px; box-shadow: 0 14px 40px rgba(20, 38, 63, .28); }
  html body.app-shell .topbar .dropdown-menu .dropdown-item {
    display: flex; align-items: center; min-height: 50px; padding: 0 14px; border-radius: 12px;
    font-size: 16px; font-weight: 800; color: var(--app-ink);
  }
  html body.app-shell .topbar .dropdown-menu .dropdown-item i { width: 26px; margin: 0 8px 0 0 !important; font-size: 16px; color: var(--app-blue) !important; }

  /* confirm dialog (jquery-confirm): big, well separated buttons for destructive actions */
  html body.app-shell .jconfirm .jconfirm-box { width: calc(100% - 28px) !important; max-width: 420px; padding: 22px 20px 16px !important; border-radius: 22px !important; }
  html body.app-shell .jconfirm .jconfirm-box .jconfirm-title-c .jconfirm-title { font-size: 21px; font-weight: 900; color: var(--app-ink); }
  html body.app-shell .jconfirm .jconfirm-box .jconfirm-content { font-size: 16px; color: var(--app-ink); }
  html body.app-shell .jconfirm .jconfirm-box div.jconfirm-buttons { float: none !important; display: flex; gap: 12px; width: 100%; margin-top: 14px; padding: 0; }
  html body.app-shell .jconfirm .jconfirm-box div.jconfirm-buttons button {
    flex: 1 1 0; min-height: 50px; margin: 0 !important; border-radius: 14px; font-size: 16px; font-weight: 900; text-transform: uppercase;
  }

  /* toast messages: under the top bar, full width, never covering the profile button */
  html body.app-shell #toast-container { top: calc(env(safe-area-inset-top, 0px) + 94px) !important; right: 12px !important; left: 12px !important; width: auto !important; }
  html body.app-shell #toast-container > div {
    width: 100% !important; margin: 0 0 10px !important; padding: 15px 15px 15px 56px; border-radius: 16px;
    font-size: 15px; font-weight: 700; opacity: 1; box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  }
}
