  /* Global Layout Stability */

  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  #app-container {
    width: 100%;
    overflow-x: hidden;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  .stats-five-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  .stats-half-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    min-width: 0;
  }

  .stats-row {
    margin-top: 0 !important;
    margin-bottom: 20px;
  }

  .stat-card {
    grid-column: span 1;
    position: relative;
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    overflow: hidden;
    text-align: right;
    direction: rtl;
  }

  .stat-card.wide {
    grid-column: span 3;
  }

  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
  }

  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
  }

  .card-arrow-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    transition: all 0.3s;
  }

  .stat-card:hover .card-arrow-box {
    background: var(--active-bg);
    color: var(--text-primary);
    transform: rotate(-45deg);
  }

  .stat-card.blue .card-icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
  .stat-card.green .card-icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
  .stat-card.orange .card-icon-box { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
  .stat-card.red .card-icon-box { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
  .stat-card.teal .card-icon-box { background: rgba(13, 148, 136, 0.1); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2); }


  .stat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 800;
    margin: 0;
  }

  .stat-value-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .stat-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -1px;
  }

  .stat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
  }

  .stat-card .watermark {
    display: none;
  }

  .fin-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .fin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 13px;
    transition: background 0.2s ease;
  }

  .fin-item:last-child {
    border-bottom: none;
  }

  .fin-item:hover {
    background: rgba(0, 0, 0, 0.02);
  }

  .fin-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 12px;
  }

  .glass-alert {
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(5px);
    color: #991b1b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-size: 13px;
  }

  .alert-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .filter-bar {
    display: flex;
    gap: 10px;
    align-items: flex-end;
  }

  @media (max-width: 1200px) {

    .stats-grid,
    .stats-half-grid,
    .stats-four-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }
  }

  @media (max-width: 768px) {

    .stats-grid,
    .stats-half-grid,
    .stats-four-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .stats-five-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }

    .stats-grid .card,
    .stats-four-grid .stat-card {
        grid-column: 1 / -1 !important;
    }

    .stats-five-grid .stat-card {
        grid-column: span 1 !important;
    }

    .stats-five-grid .stat-card:last-child {
        grid-column: span 2 !important;
    }

    .stat-card {
      grid-column: span 1;
      padding: 15px;
    }

    .stat-card.wide {
      grid-column: span 2;
    }

    .stat-value {
      font-size: 24px;
    }
  }

  @media (max-width: 480px) {
    .stats-grid,
    .stats-half-grid,
    .stats-four-grid {
      grid-template-columns: 1fr !important;
      gap: 12px !important;
    }

    /* Accounts page: keep 2 cards per row */
    .stats-five-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px !important;
    }

    /* First card (الخزينة) spans full width */
    .stats-five-grid .stat-card:first-child {
      grid-column: span 2 !important;
    }

    /* Override inherited last-child span 2 — let it pair normally */
    .stats-five-grid .stat-card:last-child {
      grid-column: span 1 !important;
    }

    .stats-grid .card,
    .stats-four-grid .stat-card,
    .stat-card {
      grid-column: span 1 !important;
      width: 100% !important;
      padding: 16px !important;
    }

    .stats-five-grid .stat-card {
      width: 100% !important;
      padding: 14px !important;
    }

    .stat-value {
      font-size: 22px !important;
    }

    .activity-card {
      padding: 10px !important;
      gap: 10px !important;
    }
    .activity-icon {
      width: 32px !important;
      height: 32px !important;
      font-size: 13px !important;
    }
    .activity-title {
      font-size: 12px !important;
    }
    .activity-desc {
      font-size: 10px !important;
    }
    .activity-status {
      font-size: 8px !important;
      padding: 1px 6px !important;
    }
  }


  /* Admin Timeline & Activity Cards */
  .admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 700px;
    overflow-y: auto;
    padding-left: 5px;
  }

  .activity-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.2s ease;
    cursor: default;
  }

  .activity-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateX(-3px);
  }

  .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .activity-card.session .activity-icon {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
  }

  .activity-card.financial .activity-icon {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
  }

  .activity-card.client .activity-icon {
    background: var(--hover-bg);
    color: var(--text-secondary);
  }

  .activity-card.support .activity-icon {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
  }

  .activity-info {
    flex: 1;
    min-width: 0;
  }

  .activity-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .activity-desc {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
  }

  .activity-meta {
    text-align: left;
    flex-shrink: 0;
  }

  .activity-time {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
  }

  .activity-status {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
    margin-top: 4px;
    display: inline-block;
  }

  .status-pill-green {
    background: rgba(22, 163, 74, 0.2);
    color: #16a34a;
  }

  .status-pill-blue {
    background: rgba(37, 99, 235, 0.2);
    color: #2563eb;
  }

  .status-pill-gray {
    background: var(--hover-bg);
    color: var(--text-secondary);
  }

  .status-pill-orange {
    background: rgba(234, 88, 12, 0.2);
    color: #ea580c;
  }

  .status-pill-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    font-weight: 900;
  }

  .status-pill-red {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    font-weight: 900;
  }

  .activity-card.bonus .activity-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
  }

  .activity-card.expense .activity-icon {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
  }

  .activity-card.ticket .activity-icon {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.2);
  }

  /* Responsive Fixes for Session Registration Card */
  @media (max-width: 768px) {
    #p-session .card {
      padding: 20px !important;
      border-radius: 20px !important;
    }

    /* Header stacking */
    #p-session .card>div:first-child {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 20px !important;
    }

    #p-session .toggle-switch.large {
      width: 60px !important;
      height: 30px !important;
    }

    #p-session .toggle-switch.large .slider:before {
      width: 22px !important;
      height: 22px !important;
      left: 4px !important;
      bottom: 4px !important;
    }

    #p-session .toggle-switch.large input:checked+.slider:before {
      transform: translateX(30px) !important;
    }

    /* Grid stacking */
    #p-session .card>form>div {
      gap: 20px !important;
    }

    #p-session div[style*="grid-template-columns"] {
      grid-template-columns: 1fr !important;
      gap: 15px !important;
    }

    /* Logistics row stacking */
    #p-session div[style*="repeat(4, 1fr)"] {
      grid-template-columns: 1fr !important;
      padding: 15px !important;
    }

    /* Footer bar stacking */
    #p-session div[style*="justify-content: space-between"],
    .session-registration-footer {
      flex-direction: column !important;
      gap: 15px !important;
      align-items: stretch !important;
    }

    #p-session div[style*="flex: 0 0 450px"],
    #p-schedule div[style*="flex: 0 0 450px"],
    #p-client div[style*="flex: 0 0 450px"],
    .session-registration-summary {
      flex: none !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 15px 20px !important;
      gap: 15px !important;
      border-radius: 18px !important;
      box-sizing: border-box !important;
    }

    .btn-session-confirm {
      height: 60px !important;
      font-size: 16px !important;
      border-radius: 16px !important;
    }

    /* Stack dual columns on mobile */
    #p-schedule div[style*="display: flex; gap: 30px"],
    #p-client div[style*="display: flex; gap: 30px"] {
      flex-direction: column !important;
    }

    #p-session .btn-session {
      height: 65px !important;
      font-size: 18px !important;
    }

    /* Summary card alignment */
    #client-summary-card {
      flex-direction: column !important;
      gap: 8px !important;
      align-items: flex-start !important;
    }

    /* Stats grid on mobile */
    .stats-grid,
    .stats-four-grid,
    .stats-half-grid {
      grid-template-columns: 1fr 1fr !important;
      gap: 12px !important;
    }

    /* Force report cards to stack vertically on mobile/tablet viewports */
    .stats-grid .card.report-card-mobile-stack {
      grid-column: 1 / -1 !important;
    }
  }

  /* Family Package Button Premium Style */
  .family-pkg-btn {
    background: var(--hover-bg);
    border: 1px solid var(--border-medium);
    border-radius: 14px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    max-width: 100%;
  }

  .family-pkg-btn:hover {
    background: var(--active-bg);
    border-color: var(--remind-blue);
  }

  .family-pkg-btn .toggle-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    flex: 1;
  }

  .family-pkg-btn i {
    font-size: 16px;
    color: var(--text-primary);
  }

  /* Unifying form controls (Inputs, Selects, Select2) in Session & Schedule Page */
  #p-session .card input,
  #p-session .card select:not(.cs-native-select),
  #p-session .card .select2-selection--single,
  #p-schedule .card input,
  #p-schedule .card select:not(.cs-native-select),
  #p-schedule .card .select2-selection--single,
  #p-client .card input,
  #p-client .card select:not(.cs-native-select),
  #p-client .card .select2-selection--single {
    height: 50px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 14px !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
  }

  #p-session .card input:focus,
  #p-session .card select:not(.cs-native-select):focus,
  #p-session .card .select2-container--focus .select2-selection--single,
  #p-schedule .card input:focus,
  #p-schedule .card select:not(.cs-native-select):focus,
  #p-schedule .card .select2-container--focus .select2-selection--single {
    border-color: var(--remind-blue) !important;
    box-shadow: 0 0 0 4px var(--focus-ring) !important;
  }

  /* Fix for Select2 internal alignment */
  #p-session .select2-container--default .select2-selection--single .select2-selection__rendered,
  #p-schedule .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: right !important;
    color: var(--text-primary) !important;
  }

  #p-session .select2-container--default .select2-selection--single .select2-selection__arrow,
  #p-schedule .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    left: 10px !important;
    right: auto !important;
  }

  #p-schedule .select2-container {
    width: 100% !important;
    min-width: 150px !important;
  }

  /* Client Grid System */
  .admin-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 10px;
  }

  /* Client Card Premium */
  .client-card-premium {
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .client-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--remind-teal);
  }

  /* Simplified Client Row Style */
  .client-row-simplified {
    background: var(--bg-surface);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 8px;
    direction: rtl;
  }

  .client-row-simplified:hover {
    background: var(--bg-elevated);
    transform: translateX(-5px);
    border-color: var(--remind-blue);
    box-shadow: var(--shadow-sm);
  }

  .client-main-content {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .client-avatar-simplified {
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  .client-text-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  .client-name-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
  }

  .client-mood-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mood-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .client-phone-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    font-family: monospace;
  }

  .client-actions-simplified {
    display: flex;
    gap: 10px;
  }

  .btn-icon-action {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
  }

  .btn-icon-action:hover {
    background: var(--active-bg);
    color: var(--text-primary);
    border-color: var(--border-strong);
    transform: scale(1.05);
  }

  .btn-icon-action.wa:hover {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
  }

  .btn-icon-action.edit:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
  }

  .btn-icon-action.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
  }

  /* Ensure standard selects look premium */
  #p-session select:not(.cs-native-select),
  #p-schedule select:not(.cs-native-select),
  #p-client select:not(.cs-native-select) {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 18px !important;
    padding-left: 40px !important;
  }

  /* Premium Toggle Switch Upgrades */
  .toggle-switch.large {
    width: 65px;
    height: 32px;
  }

  .toggle-switch.large .slider:before {
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .toggle-switch.large input:checked+.slider {
    background: linear-gradient(135deg, #f97316, #ea580c);
  }

  .toggle-switch.large input:checked+.slider:before {
    transform: translateX(33px);
  }

  .toggle-switch.large .slider {
    background-color: var(--border-strong);
    transition: .4s;
    border-radius: 34px;
  }

  /* Tablet & Small Desktop Fixes (Resolves layout shift/overflow) */
  @media (max-width: 1150px) {

    #p-session div[style*="display: flex; gap: 30px"],
    #p-schedule div[style*="display: flex; gap: 30px"],
    #p-client div[style*="display: flex; gap: 30px"],
    #p-session div[style*="justify-content: space-between"],
    .session-registration-footer {
      flex-direction: column !important;
      gap: 20px !important;
      align-items: stretch !important;
    }

    #p-session div[style*="flex: 0 0 450px"],
    #p-schedule div[style*="flex: 0 0 450px"],
    #p-client div[style*="flex: 0 0 450px"],
    .session-registration-summary {
      flex: none !important;
      width: 100% !important;
      max-width: 100% !important;
    }

    #p-session div[style*="repeat(4, 1fr)"],
    #p-schedule div[style*="repeat(4, 1fr)"] {
      grid-template-columns: 1fr 1fr !important;
      gap: 15px !important;
    }

    .btn-session {
      height: 70px !important;
      font-size: 20px !important;
    }

    .btn-session i {
      font-size: 24px !important;
    }

    .stats-grid,
    .stats-four-grid {
      grid-template-columns: repeat(3, 1fr) !important;
    }

    @media (min-width: 769px) {
      .stats-five-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 15px !important;
      }
    }

    .main-content {
      overflow-x: hidden !important;
    }
  }

  /* Premium Button Hover Effects */
  .btn-session:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(8, 104, 163, 0.3) !important;
    filter: brightness(1.1);
  }

  .btn-session:active {
    transform: translateY(0);
  }

  /* Ensure standard selects look premium */
  #p-session select:not(.cs-native-select) {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 18px !important;
    padding-left: 40px !important;
  }

  /* Ensure Widget Stack is fully transparent to avoid white flash during swipe */
  .widget-stack-container,
  .widget-stack-container .swiper-wrapper {
    background: transparent !important;
  }

  .widget-stack-container .swiper-slide,
  .widget-card {
    background: transparent; /* Allow inline styles to override */
    border: none !important;
    box-shadow: none !important;
  }

  /* =============================================================
     DASHBOARD PREMIUM CONTAINERS (Missing Styles)
     ============================================================ */
  .today-stats-container {
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid var(--border-subtle) !important;
    padding: 20px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
  }

  .today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .today-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .today-item {
    background: var(--bg-elevated) !important;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
  }

  .today-item:hover {
    background: var(--active-bg) !important;
  }

  .t-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
  }

  .t-icon.inc {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.1);
  }

  .t-icon.exp {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
  }

  .t-icon.net {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.1);
  }

  .t-icon.ses {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.1);
  }

  .t-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .t-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
  }

  /* Financial Statement List */
  .fin-statement-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .fin-statement-row {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
  }

  .fin-statement-row:hover {
    background: var(--hover-bg);
  }

  .fin-statement-row.profit {
    background: var(--bg-elevated);
    margin: 15px;
    border-radius: 16px;
    border: 1px solid #10b981;
  }

  .label-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .label-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .label-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
  }

  .val {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
  }

  /* Red/Blue/Green Text Adjustments for Dark Mode Visibility */
  body.dark-mode .fin-statement-row.negative .val,
  body.dark-mode .t-icon.exp {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.2) !important;
  }

  body.dark-mode .fin-statement-row.profit .val,
  body.dark-mode .t-icon.inc {
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.2) !important;
  }

  body.dark-mode .text-remind-blue,
  body.dark-mode .t-icon.ses {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.2) !important;
  }

  body.dark-mode .t-icon.net {
    color: #fb923c !important;
    background: rgba(251, 146, 60, 0.2) !important;
    border-color: rgba(251, 146, 60, 0.2) !important;
  }

  /* Lighter blue */

  /* Analytics Slider Card */
  .analytics-card {
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .analytics-header {
    padding: 24px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
  }

  .analytics-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 15px;
  }
  .analytics-title i {
    color: var(--text-primary);
  }

  .analytics-filters {
    padding: 10px 20px;
    background: var(--active-bg);
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .filter-btn.active {
    background: #475569;
    color: white;
    border-color: #475569;
  }

  /* Widget Slide: Add New (Customize) */
  .widget-card.add-new-widget {
    background: var(--bg-surface) !important;
    border: 2px dashed var(--border-medium) !important;
    color: var(--text-muted) !important;
  }

  .widget-card.add-new-widget:hover {
    border-color: var(--remind-blue) !important;
    color: var(--remind-blue) !important;
  }

  .widget-card.add-new-widget .icon-circle {
    background: var(--hover-bg) !important;
    color: var(--remind-blue) !important;
  }

  /* Dark Mode Specific Color Refinements for blue/red text readability */
  body.dark-mode .stat-card.blue .card-icon-box,
  body.dark-mode .activity-card.session .activity-icon,
  body.dark-mode .status-pill-blue {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.2) !important;
  }

  body.dark-mode .stat-card.orange .card-icon-box {
    color: #fb923c !important;
    background: rgba(251, 146, 60, 0.2) !important;
  }

  body.dark-mode .stat-card.red .card-icon-box {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.2) !important;
  }

  body.dark-mode .stat-card.teal .card-icon-box {
    color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.2) !important;
  }

  body.dark-mode .stat-card.green .card-icon-box {
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.2) !important;
  }

  body.dark-mode .stat-card.blue .card-icon-box {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.2) !important;
  }

  body.dark-mode .today-stats-container .today-header,
  body.dark-mode .today-stats-container .t-val {
    color: var(--text-primary) !important;
  }

  body.dark-mode .today-stats-container .t-lbl {
    color: var(--text-muted) !important;
  }

  /* Responsive Adjustments for Analytics */
  @media (max-width: 600px) {
    .analytics-header {
      flex-direction: column;
      gap: 15px;
      align-items: center;
      text-align: center;
      padding: 20px 15px;
    }

    .analytics-title {
      justify-content: center;
      width: 100%;
      font-size: 14px;
    }

    .premium-badge {
      width: 100%;
      justify-content: center;
      padding: 8px 15px;
    }
  }

  /* =============================================================
     SESSION REGISTRATION - THEME AWARE REFACTORING
     ============================================================ */
  
  .session-registration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 25px;
  }

  .session-registration-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .session-registration-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
  }

  .family-pkg-label-group {
    text-align: right;
    flex: 1;
  }

  .family-pkg-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .family-pkg-subtitle {
    font-size: 10px;
    color: var(--text-muted);
  }

  .session-client-summary {
    display: none; /* Controlled by JS */
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px;
    margin-top: 15px;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
  }

  .session-client-summary span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .session-client-summary #cs-balance {
    color: var(--text-primary);
  }

  .family-payer-box {
    display: none; /* Controlled by JS */
    background: var(--bg-elevated);
    padding: 25px;
    border-radius: 22px;
    border: 1px solid var(--border-subtle);
    animation: fadeInRight 0.4s ease;
    backdrop-filter: blur(8px);
  }

  .family-payer-box label {
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
  }

  .session-logistics-card {
    background: var(--bg-elevated);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
  }

  .session-logistics-card .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .session-logistics-card .input-group-premium {
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  @media (min-width: 992px) {
    .session-logistics-card .responsive-grid.grid-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  .session-readonly-input {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    height: 50px !important;
    border-radius: 14px !important;
    padding: 0 15px !important;
    width: 100% !important;
    cursor: default !important;
  }

  .session-registration-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    flex-wrap: wrap; /* يسمح بالتفاف العناصر تلقائياً عند صغر مساحة الشاشة */
  }

  .session-registration-summary {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--bg-elevated);
    padding: 20px 35px;
    border-radius: 25px;
    border: 1px solid var(--border-subtle);
    flex: 1 1 380px; /* مرونة كاملة للاتساع والانكماش بدلاً من العرض الثابت */
    max-width: 100%;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
  }

  .summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .summary-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    border: 1px solid var(--border-subtle);
  }

  .summary-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
  }

  .summary-input {
    width: 80px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    outline: none;
  }

  .summary-divider {
    height: 50px;
    width: 1px;
    background: var(--border-subtle);
  }

  .summary-info {
    flex: 1;
    text-align: center;
  }

  .summary-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
  }

  .btn-session-confirm {
    width: 100%;
    margin: 0;
    height: 65px;
    font-size: 17px;
    font-weight: 800;
    background: #475569;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(71, 85, 105, 0.25);
    border: none;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }

  .btn-session-confirm:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    background: #334155;
  }

  .btn-session-confirm:active {
    transform: translateY(-1px);
  }

  /* Dark Mode specific glass effect enhancements */
  body.dark-mode .session-registration-summary {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  body.dark-mode .session-logistics-card {
    background: rgba(30, 41, 59, 0.5) !important;
  }

  body.dark-mode .session-readonly-input {
    background: rgba(15, 23, 42, 0.5) !important;
  }

  /* =============================================================
     SCHEDULE & APPOINTMENTS - THEME AWARE REFACTORING
     ============================================================ */
  
  .waiting-icon {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
  }

  body.dark-mode .waiting-icon {
    background: rgba(74, 222, 128, 0.2) !important;
    color: #4ade80 !important;
  }

  .schedule-booking-card {
    flex: 0 0 450px;
    padding: 35px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle) !important;
    background: var(--bg-surface) !important;
  }

  .schedule-booking-card h3 {
    margin: 0 0 30px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
  }

  .schedule-booking-card h3 i {
    color: var(--text-primary);
    margin-left: 8px;
  }

  .schedule-input {
    height: 50px !important;
    border-radius: 14px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    width: 100%;
    padding: 0 15px;
    outline: none;
    transition: all 0.2s ease;
  }

  .schedule-input:focus {
    border-color: var(--remind-blue) !important;
    box-shadow: 0 0 0 4px var(--focus-ring) !important;
  }

  .schedule-book-btn {
    height: 65px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    border-radius: 20px !important;
  }

  .schedule-main-card {
    flex: 1;
    padding: 35px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle) !important;
    background: var(--bg-surface) !important;
    min-height: 500px;
    display: flex;
    flex-direction: column;
  }

  .schedule-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .schedule-header-row h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
  }

  .schedule-header-row h3 i {
    color: var(--text-primary);
    margin-left: 10px;
  }

  .schedule-header-row p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
  }

  .schedule-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-elevated);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
  }

  .filter-item {
    position: relative;
  }

  .filter-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
    margin-right: 5px;
  }

  .schedule-date-input {
    width: 150px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--border-subtle);
    padding: 0 12px;
    font-family: 'Cairo';
    font-weight: 700;
    font-size: 13px;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
  }

  .schedule-date-input:focus {
    border-color: var(--remind-blue);
  }

  .filter-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    margin: 0 5px;
  }

  .calendar-container {
    display: none;
    flex: 1;
    border-right: 2px dashed var(--border-subtle);
    padding-right: 25px;
    flex-direction: column;
    animation: slideInLeft 0.4s ease;
    transition: all 0.3s ease;
  }

  .calendar-container.fullscreen {
    border-right: none;
  }

  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .calendar-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .calendar-title-group h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
  }

  .calendar-expand-btn {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
  }

  .calendar-expand-btn:hover {
    background: var(--hover-bg);
  }

  .calendar-hide-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
  }

  .calendar-frame-wrapper {
    flex: 1;
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    min-height: 500px;
    backdrop-filter: blur(10px);
  }

  /* Responsive Adjustments */
  @media (max-width: 1150px) {
    .schedule-booking-card {
      flex: none;
      width: 100%;
    }
    
    .schedule-header-row {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .schedule-filter-bar {
      width: 100%;
      justify-content: space-between;
    }
  }

  /* =============================================================
     CLIENTS PAGE - THEME AWARE REFACTORING (SLATE AESTHETIC)
     ============================================================ */
  
  #p-client {
    background: transparent;
  }

  /* Heading Icons - Theme Aware (White in Dark, Black in Light) */
  #p-client h3 i, 
  #p-client h4 i, 
  #p-client .today-header i {
    color: var(--text-primary) !important;
  }

  /* Stat Card Icons - Professional Slate Look */
  body.dark-mode #p-client .stat-card .card-icon-box {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle);
  }

  /* Buttons - Gray instead of Blue */
  #p-client .btn-submit,
  #p-client .btn-session-confirm,
  #p-client .btn-upgrade {
    background: #475569 !important; /* Slate 600 */
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease;
  }

  #p-client .btn-submit:hover,
  #p-client .btn-session-confirm:hover {
    background: #334155 !important; /* Slate 700 */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  /* Input & Search Refinements */
  #p-client input,
  #p-client select,
  #p-client .select2-selection--single {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-primary) !important;
  }

  #p-client #client-search {
    background: var(--bg-surface) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary) !important;
  }

  /* Client Registry Header Refinement */
  #p-client .card > div[style*="background: #f8fafc"],
  #p-client .card > div[style*="background: var(--bg-elevated)"] {
    background: var(--bg-elevated) !important;
    border-color: var(--border-subtle) !important;
    backdrop-filter: blur(10px);
  }

  /* Ensure Glassmorphism beauty */
  #p-client .card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md) !important;
  }

  /* Card Icon Box (Main Heading icons) */
  #p-client .card-icon-box {
    background: var(--bg-elevated) !important;
    box-shadow: var(--shadow-sm);
  }


  /* Client Row Premium (Simplified Modern List) */
  .client-row-premium {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 70px;
  }

  .client-row-premium:hover {
    background: var(--hover-bg);
    padding-right: 20px; /* Subtle slide effect */
  }

  .client-row-premium .client-info-main {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
  }

  .client-row-premium .client-avatar {
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
  }

  .client-row-premium .client-details-grid {
    flex: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
  }

  .client-row-premium .detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
  }

  .client-row-premium .detail-item i {
    color: var(--text-muted);
    font-size: 12px;
    width: 14px;
    text-align: center;
  }

  .client-row-premium .detail-label {
    display: none; /* Simplified: hide labels in row mode */
  }

  .client-row-premium .client-actions {
    flex: 2;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  .client-row-premium .btn-row-action {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
  }

  .client-row-premium .btn-row-action:hover {
    background: var(--hover-bg);
    border-color: var(--text-muted);
  }

  .client-row-premium .btn-row-action.whatsapp {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.1);
  }

  /* Responsive Adjustments */
  @media (max-width: 1100px) {
    .client-row-premium .client-details-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .client-row-premium {
      flex-direction: column;
      align-items: flex-start;
      border: 1px solid var(--border-subtle);
      border-radius: 15px;
      margin-bottom: 10px;
      padding: 15px;
    }
    .client-row-premium .client-details-grid {
      width: 100%;
    }
    .client-row-premium .client-actions {
      width: 100%;
      justify-content: flex-start;
    }
  }

  /* Mobile/Tablet responsiveness for list view */
  @media (max-width: 1000px) {
    .client-row-premium {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      padding: 15px;
    }
    
    .client-row-premium .client-details-grid {
      width: 100%;
      grid-template-columns: 1fr 1fr;
    }
    
    .client-row-premium .client-actions {
      width: 100%;
      justify-content: flex-start;
    }
  }

  /* Premium Blue Select2 Style */
  .select2-premium-blue + .select2-container--default .select2-selection--single {
    background-color: var(--remind-blue) !important;
    border-color: var(--remind-blue) !important;
    color: white !important;
    height: 52px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(8, 104, 163, 0.2) !important;
    transition: all 0.3s ease !important;
  }
  
  .select2-premium-blue + .select2-container--default .select2-selection--single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 104, 163, 0.3) !important;
  }
  
  .select2-premium-blue + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    font-weight: 800 !important;
    padding-right: 20px !important;
    line-height: 52px !important;
  }
  
  .select2-premium-blue + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    left: 12px !important;
    right: auto !important;
  }
  
  .select2-premium-blue + .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
  }
  
  .select2-premium-blue + .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent white transparent !important;
    border-width: 0 5px 6px 5px !important;
  }

  /* PREMIUM SCHEDULE PAGE MOBILE RESPONSIVE FIXES */
  @media (max-width: 576px) {
    /* Form controls & Select2 Mobile Scaling */
    #p-session .card input,
    #p-session .card select:not(.cs-native-select),
    #p-session .card .select2-selection--single,
    #p-schedule .card input,
    #p-schedule .card select:not(.cs-native-select),
    #p-schedule .card .select2-selection--single,
    #p-client .card input,
    #p-client .card select:not(.cs-native-select),
    #p-client .card .select2-selection--single {
      height: 44px !important;
      font-size: 13px !important;
      border-radius: 12px !important;
      padding: 0 12px !important;
    }

    #p-session .select2-container--default .select2-selection--single .select2-selection__rendered,
    #p-schedule .select2-container--default .select2-selection--single .select2-selection__rendered {
      line-height: 44px !important;
      font-size: 13px !important;
    }

    #p-session .select2-container--default .select2-selection--single .select2-selection__arrow,
    #p-schedule .select2-container--default .select2-selection--single .select2-selection__arrow {
      height: 44px !important;
      left: 8px !important;
    }

    .schedule-main-card {
      padding: 15px !important;
      border-radius: 20px !important;
    }
    
    .schedule-header-row {
      margin-bottom: 20px !important;
      padding-bottom: 15px !important;
      gap: 12px !important;
    }

    .schedule-header-row h3 {
      font-size: 18px !important;
    }

    .schedule-filter-bar {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 12px !important;
      padding: 15px 12px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .schedule-filter-bar .filter-divider {
      display: block !important;
      width: 100% !important;
      height: 1px !important;
      margin: 4px 0 !important;
      background: var(--border-subtle) !important;
      border: none !important;
    }

    .schedule-filter-bar .filter-item {
      width: 100% !important;
      min-width: unset !important;
    }

    .schedule-filter-bar .schedule-date-input {
      width: 100% !important;
      box-sizing: border-box !important;
      height: 44px !important;
      font-size: 14px !important;
    }

    /* Premium Custom Calendar Responsive Overrides */
    .remind-calendar-header {
      flex-direction: column !important;
      gap: 12px !important;
      align-items: center !important;
      padding: 15px !important;
    }

    .remind-calendar-nav {
      width: 100% !important;
      justify-content: center !important;
      gap: 10px !important;
    }

    .cal-day-label {
      padding: 10px 0 !important;
      font-size: 10px !important;
    }

    .cal-day-cell {
      border-radius: 10px !important;
      margin: 1px !important;
      min-height: 44px !important;
    }

    .cal-day-number {
      font-size: 13px !important;
    }

    /* CLIENTS PAGE MOBILE RESPONSIVE FIXES */
    #p-client .premium-filter-bar + div {
      height: auto !important;
      overflow: visible !important;
      flex: none !important;
    }

    #clients-list {
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }

    .client-row-simplified {
      flex-direction: column !important;
      align-items: stretch !important;
      padding: 12px 15px !important;
      gap: 12px !important;
      margin-bottom: 10px !important;
    }

    .client-row-simplified:hover {
      transform: translateY(-2px) !important;
    }

    .client-main-content {
      width: 100% !important;
      gap: 12px !important;
    }

    .client-avatar-simplified {
      width: 46px !important;
      height: 46px !important;
      font-size: 22px !important;
      border-radius: 12px !important;
    }

    .client-text-meta {
      flex: 1 !important;
      gap: 2px !important;
    }

    .client-name-text {
      font-size: 15px !important;
      font-weight: 800 !important;
      margin-bottom: 2px !important;
    }

    .client-mood-badge {
      font-size: 11px !important;
      margin-top: 1px !important;
    }

    .client-phone-text {
      font-size: 11px !important;
      margin-top: 1px !important;
    }

    .client-actions-simplified {
      width: 100% !important;
      justify-content: space-around !important; /* Perfect full-width button distribution on mobile! */
      border-top: 1px dashed var(--border-subtle) !important;
      padding-top: 10px !important;
      margin-top: 2px !important;
      gap: 8px !important;
    }

    .btn-icon-action {
      flex: 1 !important; /* Distribute buttons equally! */
      max-width: 42px !important;
      height: 38px !important;
      border-radius: 10px !important;
      background: var(--bg-elevated) !important;
    }

    #client-pagination-dots {
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 6px !important;
    }
  }

  /* Premium Split Calendar Layout */
  #appointments_split_view {
    display: flex !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  #remind_calendar_container {
    flex: 1.2 1 400px !important;
    min-width: 280px !important;
  }

  #appt_list {
    flex: 1 1 350px !important;
    min-width: 280px !important;
  }

  @media (max-width: 992px) {
    /* Keep calendar and list side-by-side — NO stacking */
    #appointments_split_view {
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 14px !important;
    }
    /* Calendar: larger fixed width — dominant element */
    #remind_calendar_container {
      flex: 0 0 320px !important;
      width: 320px !important;
      min-width: 300px !important;
      max-width: 340px !important;
      flex-shrink: 0 !important;
    }
    /* Appointments list: narrower, fills remaining space */
    #appt_list {
      flex: 1 1 0 !important;
      width: 0 !important;
      min-width: 0 !important;
      max-width: none !important;
      flex-shrink: 1 !important;
    }
  }

  @media (max-width: 577px) {
    #appointments_split_view {
      flex-direction: column !important;
      gap: 0px !important;
    }
    #remind_calendar_container {
      flex: 1 1 100% !important;
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      flex-shrink: 1 !important;
    }
  }

  /* ============================================================
     3D COVER FLOW CAROUSEL FOR MOBILE DASHBOARD CARDS
     ============================================================ */
  @media (max-width: 900px) {
    .stats-grid-swiper,
    .session-stats-swiper,
    .schedule-stats-swiper,
    .clients-stats-swiper,
    .therapists-stats-swiper,
    .accounts-stats-swiper {
      width: 100% !important;
      overflow: hidden !important;
      padding: 20px 0 25px !important;
      direction: rtl !important;
    }

    .stats-grid-swiper .swiper-wrapper.stats-grid,
    .session-stats-swiper .swiper-wrapper.stats-grid,
    .schedule-stats-swiper .swiper-wrapper.stats-grid,
    .clients-stats-swiper .swiper-wrapper.stats-grid,
    .therapists-stats-swiper .swiper-wrapper.stats-half-grid,
    .accounts-stats-swiper .swiper-wrapper.stats-five-grid,
    .accounts-stats-swiper .swiper-wrapper.stats-grid {
      display: flex !important;
      flex-direction: row !important;
      gap: 0 !important;
      width: 100% !important;
      height: auto !important;
      transform: translate3d(0px, 0px, 0px);
    }

    .stats-grid-swiper .swiper-slide.stat-card,
    .session-stats-swiper .swiper-slide.stat-card,
    .schedule-stats-swiper .swiper-slide.stat-card,
    .clients-stats-swiper .swiper-slide.stat-card,
    .therapists-stats-swiper .swiper-slide.stat-card,
    .accounts-stats-swiper .swiper-slide.stat-card {
      width: 265px !important;
      max-width: 80vw !important;
      flex-shrink: 0 !important;
      margin: 0 !important;
      box-sizing: border-box !important;
      grid-column: auto !important;
      transition: transform 0.3s ease, opacity 0.3s ease !important;
      opacity: 0.8;
    }

    .stats-grid-swiper .swiper-slide-active.stat-card,
    .session-stats-swiper .swiper-slide-active.stat-card,
    .schedule-stats-swiper .swiper-slide-active.stat-card,
    .clients-stats-swiper .swiper-slide-active.stat-card,
    .therapists-stats-swiper .swiper-slide-active.stat-card,
    .accounts-stats-swiper .swiper-slide-active.stat-card {
      opacity: 1;
    }

    .stats-grid-swiper .swiper-slide-shadow-left,
    .stats-grid-swiper .swiper-slide-shadow-right,
    .session-stats-swiper .swiper-slide-shadow-left,
    .session-stats-swiper .swiper-slide-shadow-right,
    .schedule-stats-swiper .swiper-slide-shadow-left,
    .schedule-stats-swiper .swiper-slide-shadow-right,
    .clients-stats-swiper .swiper-slide-shadow-left,
    .clients-stats-swiper .swiper-slide-shadow-right,
    .therapists-stats-swiper .swiper-slide-shadow-left,
    .therapists-stats-swiper .swiper-slide-shadow-right,
    .accounts-stats-swiper .swiper-slide-shadow-left,
    .accounts-stats-swiper .swiper-slide-shadow-right {
      border-radius: 24px !important;
      background: rgba(0, 0, 0, 0.12) !important;
    }

    /* Scope page padding on mobile to eliminate header & bottom-nav empty spaces */
    #p-dashboard {
      padding-top: 70px !important;
      padding-bottom: 0 !important;
    }

    /* Edge-to-edge styling for all home page dashboard cards (like Facebook posts on mobile) */
    #p-dashboard .fin-statement-card,
    #p-dashboard .analytics-card,
    #p-dashboard .glass-panel {
      margin-left: -20px !important;
      margin-right: -20px !important;
      border-radius: 0 !important;
      border-left: none !important;
      border-right: none !important;
      box-shadow: none !important;
      width: calc(100% + 40px) !important;
      margin-top: 0 !important;
      margin-bottom: 10px !important;
    }

    /* Stabilize vertical spacing between all main sections of the dashboard home page on mobile */
    #p-dashboard .dashboard-header-flex {
      margin-top: 0 !important;
      padding-top: 0 !important;
      margin-bottom: 0 !important;
      gap: 10px !important;
    }
    
    #p-dashboard .stats-grid-swiper {
      padding-top: 10px !important;
      padding-bottom: 10px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
    
    #p-dashboard .dashboard-main-flex {
      gap: 10px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
    
    #p-dashboard .dashboard-right-col {
      gap: 10px !important;
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
    
    #p-dashboard .dashboard-inner-flex {
      gap: 10px !important;
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }

    #p-dashboard #widget-services-analysis,
    #p-dashboard #widget-team-performance,
    #p-dashboard #widget-top-clients {
      margin-bottom: 0 !important;
    }
  }

  @media (min-width: 901px) {
    .stats-grid-swiper,
    .session-stats-swiper,
    .schedule-stats-swiper,
    .clients-stats-swiper,
    .therapists-stats-swiper,
    .accounts-stats-swiper {
      overflow: visible !important;
      width: 100% !important;
      height: auto !important;
    }

    .stats-grid-swiper .swiper-wrapper.stats-grid,
    .session-stats-swiper .swiper-wrapper.stats-grid,
    .schedule-stats-swiper .swiper-wrapper.stats-grid,
    .clients-stats-swiper .swiper-wrapper.stats-grid {
      display: grid !important;
      transform: none !important;
      width: 100% !important;
      height: auto !important;
      flex-direction: row !important;
      box-sizing: border-box !important;
    }

    .therapists-stats-swiper .swiper-wrapper.stats-half-grid {
      display: grid !important;
      transform: none !important;
      width: 100% !important;
      height: auto !important;
      flex-direction: row !important;
      box-sizing: border-box !important;
    }

    .accounts-stats-swiper .swiper-wrapper.stats-five-grid,
    .accounts-stats-swiper .swiper-wrapper.stats-grid {
      display: grid !important;
      transform: none !important;
      width: 100% !important;
      height: auto !important;
      flex-direction: row !important;
      box-sizing: border-box !important;
    }

    .stats-grid-swiper .swiper-slide.stat-card,
    .session-stats-swiper .swiper-slide.stat-card,
    .schedule-stats-swiper .swiper-slide.stat-card,
    .clients-stats-swiper .swiper-slide.stat-card,
    .therapists-stats-swiper .swiper-slide.stat-card,
    .accounts-stats-swiper .swiper-slide.stat-card {
      width: auto !important;
      height: auto !important;
      transform: none !important;
      flex-shrink: 1 !important;
      opacity: 1 !important;
    }
  }

  /* ============================================================
     PREMIUM REDESIGNED FINANCIAL STATEMENT WIDGET
     ============================================================ */

  /* Container and Body */
  .fin-statement-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .fin-statement-header {
    border-bottom: 1px solid var(--border-subtle) !important;
    background: transparent !important;
  }

  .fin-statement-header .hdr-title {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .fin-statement-header .hdr-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(71, 85, 105, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .fin-statement-header .hdr-text {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  .fin-statement-header .hdr-text span:first-child {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
  }

  .fin-statement-header .hdr-text .hdr-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
  }

  /* 1. Hero Spotlight: Net Profit Card */
  .hero-profit-card {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 24px 28px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
  }

  .hero-profit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25), 0 6px 20px rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
  }

  .hero-profit-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 60%);
    pointer-events: none;
  }

  .hero-profit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
  }

  .hero-label-group {
    display: flex;
    flex-direction: column;
  }

  .hero-label-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .hero-label-text {
    font-size: 16px;
    font-weight: 900;
    color: #38bdf8;
    margin: 0;
  }

  .hero-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
  }

  .hero-profit-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    direction: ltr;
    justify-content: flex-end;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
  }

  .hero-profit-value .value {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #4ade80;
    font-family: 'Cairo';
    line-height: 1;
  }

  .hero-profit-value .currency {
    font-size: 14px;
    font-weight: 800;
    color: #a7f3d0;
  }

  .hero-progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    z-index: 2;
    position: relative;
  }

  .hero-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  }

  /* 2. Financial Pillars Grid */
  .fin-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }

  .fin-pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .fin-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
  }

  .pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
  }

  .pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .revenue-pillar .pillar-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.15);
  }

  .expense-pillar .pillar-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
  }

  .pillar-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
  }

  /* Pillar Items */
  .pillar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    transition: background-color 0.2s ease;
  }

  .pillar-item.main-item {
    padding-bottom: 12px;
  }

  .item-label-group {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  .item-label-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
  }

  .item-label-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
  }

  .item-value-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
    direction: ltr;
  }

  .item-value-group .item-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Cairo';
  }

  .item-value-group .currency {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
  }

  /* Progress bar inside pillars */
  .pillar-progress {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 12px;
  }

  .progress-fill {
    height: 100%;
    border-radius: 2px;
  }

  .progress-fill.green {
    background: #22c55e;
  }

  .progress-fill.red {
    background: #ef4444;
  }

  /* Sub-items list */
  .pillar-item.sub-item {
    padding: 6px 0;
  }

  .pillar-item.sub-item .item-label-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
  }

  .pillar-item.sub-item .item-value-group .item-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
  }

  .sub-items-flex {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .expense-pillar .pillar-item.main-item.negative .item-value-group .item-val {
    color: #ef4444;
  }

  .expense-pillar .pillar-item.sub-item.negative .item-value-group .item-val {
    color: #f87171;
  }

  /* Distribution Split Card */
  .fin-distribution-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .dist-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
  }

  .dist-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .dist-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
  }

  .dist-items-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .dist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-start;
    padding: 5px 10px;
  }

  .dist-divider-vertical {
    width: 1px;
    height: 45px;
    background: var(--border-subtle);
    margin: 0 20px;
  }

  .dist-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .dist-icon-box.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.15);
  }

  .dist-icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
  }

  .dist-info {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  .dist-label-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
  }

  .dist-label-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1px;
  }

  .dist-value-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
    direction: ltr;
    margin-top: 4px;
    justify-content: flex-end;
  }

  .dist-value-group .dist-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Cairo';
  }

  .dist-value-group .currency {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
  }

  /* Dynamic Dark Mode adjustments for premium cards */
  body.dark-mode .hero-profit-card {
    background: linear-gradient(135deg, #0f172a 0%, #022c22 100%);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(34, 197, 94, 0.1);
  }

  body.dark-mode .hero-profit-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
  }

  body.dark-mode .expense-pillar .pillar-item.main-item.negative .item-value-group .item-val {
    color: #f87171;
  }

  /* Responsiveness overrides for Mobile viewports */
  @media (max-width: 768px) {
    .fin-statement-body {
      padding: 15px 10px;
      gap: 15px;
    }
    
    .hero-profit-card {
      padding: 20px;
      border-radius: 20px;
    }
    
    .hero-profit-value .value {
      font-size: 32px;
    }
    
    .fin-pillars-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }
    
    .fin-pillar-card {
      border-radius: 18px;
      padding: 16px;
    }
    
    .dist-items-row {
      flex-direction: column;
      gap: 15px;
    }
    
    .dist-divider-vertical {
      display: none;
    }
    
    .dist-item {
      width: 100%;
      justify-content: flex-start;
      padding: 0;
    }
    
    .dist-header {
      margin-bottom: 12px;
    }
    
    .fin-distribution-card {
      padding: 16px;
      border-radius: 18px;
    }
  }

/* ==========================================================================
   MONTHLY FINANCIAL ANALYSIS - VARIABLE CHIPS & RESPONSIVE CHART SYSTEM
   ========================================================================== */

/* Responsive Chart Container Wrapper */
.analytics-slider-card .chart-container-wrapper {
  padding: 10px 20px;
  height: 250px;
  position: relative;
  transition: height 0.3s ease;
}

/* Variable Chips Grid */
.chart-variables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px 24px 24px;
  background: var(--active-bg);
  border-top: 1px solid var(--border-subtle);
}

/* Individual Interactive Chip Style */
.chart-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0.55;
  filter: grayscale(80%);
}

.chart-chip:hover {
  opacity: 0.85;
  filter: grayscale(30%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Active (Selected) state styling */
.chart-chip.active {
  opacity: 1;
  filter: none;
  background: var(--bg-elevated);
  border-color: var(--chip-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Icon Box inside Chip */
.chart-chip .chip-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.25s ease;
}

.chart-chip.active .chip-icon-box {
  background: var(--chip-color);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--chip-color);
}

/* Chip Info Text */
.chart-chip .chip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.chart-chip .chip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chart-chip.active .chip-label {
  color: var(--text-primary);
}

.chart-chip .chip-value {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  direction: ltr;
}

.chart-chip.active .chip-value {
  color: var(--chip-color);
}

/* Dark mode overrides for chip active states */
body.dark-mode .chart-chip.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--chip-color);
}

body.dark-mode .chart-chip.active .chip-value {
  color: var(--chip-color);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Responsive Breakpoints for Chart Slider and Variable Chips */
@media (max-width: 768px) {
  /* On tablets and below, expand chart height for label legibility */
  .analytics-slider-card .chart-container-wrapper {
    height: 280px;
    padding: 10px 12px;
  }
  
  .chart-variables-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 10px 10px !important;
  }

  .chart-chip {
    padding: 6px 8px !important;
    border-radius: 10px !important;
    gap: 6px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    overflow: visible !important;
  }

  .chart-chip .chip-icon-box {
    width: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .chart-chip .chip-info {
    align-items: center !important;
    text-align: center !important;
  }

  .chart-chip .chip-value {
    display: none !important; /* Hide details on mobile/tablet to follow description-only request */
  }
  
  .chart-chip .chip-label {
    font-size: 9px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
  }
}

@media (max-width: 480px) {
  /* Edge-to-edge layout override for Mobile (Facebook-post style redesign integration) */
  #p-dashboard .analytics-slider-card {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
  
  /* Overrides for mobile container chart height */
  .analytics-slider-card .chart-container-wrapper {
    height: 240px !important; /* A bit smaller for standard mobile screens to fit perfectly */
  }
}

/* ==========================================================================
   EXPENSE SPLIT REDESIGN - PURE FINTECH CLEAN AESTHETIC
   ========================================================================== */

/* Layout container: clean flex column stacked vertically on all screens */
.expense-split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 16px 20px 24px;
  height: auto;
  direction: rtl;
  box-sizing: border-box;
}

/* Chart Container: locked to 2:1 aspect ratio */
.expense-split-layout .chart-side {
  width: 220px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 1;
  margin: 0 auto 8px; /* Perfectly centered chart */
}

/* Center Text Overlay: sits perfectly in the cutout area */
.expense-split-layout .chart-center-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  z-index: 3;
  width: 100%;
}

.expense-split-layout .chart-center-content .center-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.expense-split-layout .chart-center-content .center-value {
  font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.expense-split-layout .chart-center-content div:last-child {
  font-family: 'Cairo', 'Inter', sans-serif !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  margin-top: 2px !important;
  text-transform: uppercase !important;
}

/* Legend Container: clean grid list on all screens */
.expense-split-layout .legend-side {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop laptops */
  gap: 12px;
  padding-left: 0;
  padding-right: 0;
  max-height: none;
  overflow-y: visible;
}

/* Premium Minimalist Legend Card */
.legend-item-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.legend-item-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.legend-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.legend-icon-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.legend-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-values {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-amount {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
}

.legend-pct {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  background: var(--hover-bg);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.legend-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.legend-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease-out;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .expense-split-layout {
    flex-direction: column;
    height: auto;
    gap: 16px;
    padding: 12px 16px 20px;
  }

  .expense-split-layout .chart-side {
    width: 200px !important;
    height: auto !important;
    margin: 0 auto 8px !important;
  }

  .expense-split-layout .legend-side {
    width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .legend-item-card {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }

  .legend-item-card .legend-item-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .legend-item-card .legend-icon-name {
    width: 100% !important;
    gap: 6px !important;
  }

  .legend-item-card .legend-icon-box {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
  }

  .legend-item-card .legend-name {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100% - 28px) !important;
  }

  .legend-item-card .legend-values {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0 !important;
    margin-top: 2px !important;
  }

  .legend-item-card .legend-amount {
    font-size: 11px !important;
  }

  .legend-item-card .legend-pct {
    font-size: 9px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }
}

@media (max-width: 480px) {
  .expense-split-layout {
    padding: 10px 12px 18px;
  }
}

/* ============================================================
   PREMIUM SPOTLIGHT & DETAILS MODAL REDESIGN
   ============================================================ */

/* Prevent overflow clipping on parent containers for spotlight badges */
#team-list,
#service-list,
#top-clients-list {
  overflow: visible !important;
}

/* Spotlight Card Container */
.spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
  gap: 8px;
  position: relative;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
  margin-bottom: 6px;
  overflow: visible;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--remind-blue);
  background: var(--hover-bg);
  z-index: 10;
}

/* Gold Glow behind rank badge */
.spotlight-glow {
  display: none;
}

/* Ranked #1 Crown / Badge */
.spotlight-crown-badge {
  position: relative;
  top: -8px; /* Sit perfectly on the top border */
  margin-bottom: -8px; /* Offset vertical space */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

/* Spotlight Name styling */
.spotlight-name {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

/* Large Stat Indicator */
.spotlight-stat {
  font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--remind-blue);
  line-height: 1.1;
}

/* Metadata tags (e.g. bonus, percentage) */
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hover-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.spotlight-card:hover .spotlight-tag {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

/* Sleek minimalist button */
.btn-spotlight-action {
  width: 100%;
  margin-top: 2px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-spotlight-action:hover {
  background: var(--hover-bg);
  border-color: var(--remind-blue);
  color: var(--remind-blue);
  transform: translateY(-1px);
}

.btn-spotlight-action:active {
  transform: translateY(0);
}

/* Modal details list container & items */
.modal-fin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 5px;
}

.modal-fin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-fin-item:hover {
  background: var(--hover-bg);
  transform: translateX(-2px);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Modals Rank badges */
/* Modals Rank badges */
.modal-fin-item {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: visible !important;
  z-index: auto;
}

/* Medal ribbons style for top 3 */
.rank-badge.rank-1::before,
.rank-badge.rank-1::after,
.rank-badge.rank-2::before,
.rank-badge.rank-2::after,
.rank-badge.rank-3::before,
.rank-badge.rank-3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 7px;
  height: 14px;
  background: #ef4444; /* Premium bright red ribbon */
  z-index: -1;
  transition: all 0.2s ease;
}

/* Left ribbon tail */
.rank-badge.rank-1::before,
.rank-badge.rank-2::before,
.rank-badge.rank-3::before {
  left: 4px;
  transform: rotate(15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}

/* Right ribbon tail */
.rank-badge.rank-1::after,
.rank-badge.rank-2::after,
.rank-badge.rank-3::after {
  right: 4px;
  transform: rotate(-15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 1.5px solid #d97706;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3), inset 0 0 4px rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 12px;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  border: 1.5px solid #94a3b8;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.2), inset 0 0 4px rgba(255, 255, 255, 0.8);
  color: #475569;
  font-size: 12px;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  border: 1.5px solid #78350f;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.2), inset 0 0 4px rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 12px;
}

.rank-badge.rank-other {
  background: var(--border-medium);
  color: var(--text-muted);
  box-shadow: none;
  font-size: 10px;
}

/* Progress bar inside details lists */
.modal-progress-bar {
  flex: 1;
  max-width: 80px;
  height: 5px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.modal-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light / Dark Mode dynamic overrides */
[data-theme="dark"] .spotlight-card {
  background: rgba(30, 41, 59, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn-spotlight-action {
  background: rgba(30, 41, 59, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn-spotlight-action:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: var(--remind-blue);
}

/* ==========================================================================
   PREMIUM MOBILE RESPONSIVE STYLE OVERRIDES (MAX-WIDTH: 768PX)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Safe Area & Padding Reductions */
  #p-session,
  #p-schedule,
  #p-client,
  #p-therapists-hub,
  #p-accounts {
    padding-top: 70px !important;
    padding-bottom: 0 !important;
  }

  /* 2. Unified Vertical Margins (Exactly 10px gap bottom spacing) */
  #p-session .session-stats-swiper,
  #p-schedule .schedule-stats-swiper,
  #p-client .clients-stats-swiper,
  #p-client .stats-grid,
  #p-therapists-hub .therapists-stats-swiper,
  #p-accounts .accounts-stats-swiper,
  #p-session > div[style*="display: flex"],
  #p-schedule > div[style*="display: flex"],
  #p-client > div[style*="display: flex"],
  #p-accounts .dashboard-main-flex,
  #p-session .card,
  #p-schedule .card,
  #p-client .card,
  #p-therapists-hub .card,
  #p-accounts .modern-card,
  #p-accounts > div[style*="background: var(--bg-surface)"],
  #p-session #form-trans,
  #p-client #form-newclient {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  #p-session .stats-grid,
  #p-schedule .stats-grid,
  #p-client .stats-grid {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  #p-session > div[style*="display: flex"],
  #p-schedule > div[style*="display: flex"],
  #p-client > div[style*="display: flex"],
  #p-accounts .dashboard-main-flex {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 3. Edge-to-Edge Full-Bleed Cards */
  #p-session .card,
  #p-session #form-trans,
  #p-schedule .card,
  #p-schedule .schedule-booking-card,
  #p-schedule .schedule-main-card,
  #p-client .card,
  #p-client #form-newclient,
  #p-therapists-hub .card,
  #p-accounts .modern-card,
  #p-accounts > div[style*="background: var(--bg-surface)"] {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  /* Specific height/flex card overrides for list widgets on mobile */
  #p-client .card[style*="height: 800px"] {
    height: auto !important;
    min-height: 500px !important;
    max-height: none !important;
  }
}

/* ============================================================
   PREMIUM TRANSACTIONS & EXPENSES LISTS DESIGN
   ============================================================ */

.premium-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 10px 15px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.015);
}

.premium-item-card:hover {
  transform: translateY(-2px);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

body.dark-mode .premium-item-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .premium-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Avatar / Icon Container */
.premium-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  border-width: 1.5px;
  border-style: solid;
  transition: all 0.2s ease;
}

/* Info container */
.premium-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.premium-item-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
}

.premium-item-subtitle i {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Value & Badge Container */
.premium-item-value-group {
  text-align: left;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.premium-item-value {
  font-weight: 900;
  font-size: 14.5px;
  font-family: 'Cairo';
  letter-spacing: -0.2px;
}

.premium-item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Responsiveness for Mobile & Tablets */
@media (max-width: 768px) {
  .premium-item-card {
    padding: 12px 14px;
    margin: 8px 10px;
    gap: 10px;
    border-radius: 14px;
  }
  
  .premium-item-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .premium-item-title {
    font-size: 12.5px;
  }
  
  .premium-item-subtitle {
    font-size: 10.5px;
  }
  
  .premium-item-value {
    font-size: 13.5px;
  }
  
  .premium-item-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
}

@media (max-width: 480px) {
  .premium-item-card {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .premium-item-info {
    flex: 1 1 60%;
  }
  
  .premium-item-value-group {
    flex: 1 1 100%;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 8px;
    margin-top: 4px;
  }
  
  body.dark-mode .premium-item-value-group {
    border-top-color: rgba(255,255,255,0.06);
  }
  
  .premium-item-badge {
    padding: 2px 8px;
  }
}