:root{
  --mtm-blue:#1f5fbf;
  --mtm-blue-2:#2b73dd;
  --mtm-green:#2bb673;
  --mtm-bg:#f3f6fb;
  --mtm-card:#ffffff;
  --mtm-border:rgba(15,23,42,.10);
  --mtm-shadow:0 10px 30px rgba(15,23,42,.08);
  --mtm-shadow-sm:0 6px 16px rgba(15,23,42,.08);
  --mtm-radius:16px;
}

/* App background + container rhythm */
body{ background: radial-gradient(1200px 600px at 10% 0%, rgba(31,95,191,.10), transparent 60%),
               radial-gradient(900px 500px at 95% 10%, rgba(43,182,115,.10), transparent 55%),
               var(--mtm-bg) !important;
}

.container{ max-width: 1160px; }

/* Cards / panels */
.card, .timeline-card, .offcanvas, .modal-content{
  border-color: var(--mtm-border) !important;
  border-radius: var(--mtm-radius) !important;
  box-shadow: var(--mtm-shadow-sm);
}

.card{ background: var(--mtm-card); }

/* Section headers without bold */
h1,h2,h3,h4{ font-weight: 500; letter-spacing: .2px; }

/* Buttons */
.btn{ border-radius: 12px !important; padding: .55rem .9rem; }
.btn-sm{ border-radius: 10px !important; padding: .35rem .6rem; }

.btn-primary{
  background: linear-gradient(180deg, var(--mtm-blue-2) 0%, var(--mtm-blue) 100%) !important;
  border-color: rgba(31,95,191,.55) !important;
  box-shadow: 0 10px 18px rgba(31,95,191,.18);
}
.btn-primary:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0px); }

.btn-outline-primary{
  border-color: rgba(31,95,191,.35) !important;
  color: var(--mtm-blue) !important;
}
.btn-outline-primary:hover{ background: rgba(31,95,191,.08) !important; }

.btn-outline-light{
  border-color: rgba(15,23,42,.20) !important;
  color: rgba(15,23,42,.85) !important;
}

/* Inputs */
.form-control, .form-select{
  min-height: 44px;
  border-radius: 12px;
  border-color: rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(31,95,191,.45);
  box-shadow: 0 0 0 .25rem rgba(31,95,191,.14);
}

/* Navbar polish */
.navbar{ border-bottom: 1px solid rgba(15,23,42,.06); }

/* Offcanvas / modal headers */
.offcanvas-header, .modal-header{
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(242,246,255,.96) 35%, rgba(233,247,241,.96) 100%);
}

/* Table */
.table{ --bs-table-bg: transparent; }
.table > :not(caption) > * > *{ border-bottom-color: rgba(15,23,42,.08); }

/* Subtle separators */
hr{ border-top-color: rgba(15,23,42,.08); opacity: 1; }

/* Sticky action bar helper (if present) */
.mtm-actionbar{
  position: sticky;
  bottom: 18px;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  box-shadow: var(--mtm-shadow);
}


.admin-user-form-card .card-body{ padding: 1.25rem; }
.admin-user-form-actions{ justify-content: flex-start; }
.admin-users-table td, .admin-users-table th{ vertical-align: middle; }
.admin-users-actions-col{ min-width: 180px; }
.admin-users-actions .btn{ min-width: 88px; }
@media (min-width: 992px){
  .admin-users-actions-col{
    position: sticky;
    right: 0;
    background: rgba(255,255,255,.98);
    z-index: 2;
  }
  .admin-users-table thead .admin-users-actions-col{
    z-index: 3;
    background: var(--bs-table-bg, #f8f9fa);
  }
}
@media (max-width: 991.98px){
  .admin-user-form-actions{ width: 100%; }
  .admin-user-form-actions .btn{ flex: 1 1 auto; }
  .admin-users-actions-col{ min-width: 150px; }
}

/* Support desktop shell (Windows app / browser) */
body.support-desktop-body{
  background: radial-gradient(1200px 620px at 8% -6%, rgba(31,95,191,.14), transparent 58%),
              radial-gradient(980px 540px at 96% 0%, rgba(43,182,115,.13), transparent 52%),
              linear-gradient(180deg, #edf2f8 0%, #f5f7fb 36%, #f7f9fc 100%) !important;
}
.support-desktop-container{ max-width: 1380px; padding-bottom: 8.4rem; }
.support-appbar{
  position:sticky;
  top:0;
  z-index:1040;
  backdrop-filter: blur(18px);
  background:rgba(248,250,253,.88);
  border-bottom:1px solid rgba(15,23,42,.08);
  box-shadow:0 16px 34px rgba(15,23,42,.06);
}
.support-appbar-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.8rem 1.25rem;
}
.support-appbar-left{ display:flex; align-items:center; gap:1rem; min-width:0; }
.support-brand{ display:inline-flex; align-items:center; gap:.8rem; text-decoration:none; color:#102235; min-width:0; }
.support-brand:hover{ color:#0f2d55; }
.support-brand-logo{
  width:48px; height:48px; border-radius:16px;
  display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#ffffff 0%,#eef5ff 100%);
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
  padding:.35rem;
}
.support-brand-logo img{ width:100%; height:100%; object-fit:contain; }
.support-brand-copy{ display:flex; flex-direction:column; line-height:1.05; }
.support-brand-title{ font-size:1rem; font-weight:700; letter-spacing:.01em; }
.support-brand-subtitle{ font-size:.78rem; color:#697a8d; margin-top:.2rem; }
.support-appbar-actions{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; }
.support-page-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  padding:1.2rem 1.3rem; border-radius:24px; background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(241,247,255,.98) 52%, rgba(236,247,243,.96) 100%);
  border:1px solid rgba(15,23,42,.08); box-shadow:0 20px 38px rgba(15,23,42,.08);
}
.support-page-head__title{ font-size:1.6rem; line-height:1.1; color:#102235; margin:0; }
.support-page-head__sub{ margin-top:.35rem; color:#6b7a8c; font-size:.95rem; }
.support-page-head__actions{ display:flex; gap:.65rem; flex-wrap:wrap; align-items:center; }
.support-segment{
  display:inline-flex; align-items:center; gap:.35rem; padding:.36rem; border-radius:16px;
  background:rgba(255,255,255,.84); border:1px solid rgba(15,23,42,.08);
}
.support-segment a{
  padding:.52rem .8rem; border-radius:12px; text-decoration:none; color:#5d7084; font-weight:700;
}
.support-segment a.is-active{ background:#0a63ea; color:#fff; box-shadow:0 10px 18px rgba(9,86,204,.2); }
@media (max-width: 1180px){
  .support-appbar-inner{ align-items:flex-start; }
  .support-appbar-left{ flex-direction:column; align-items:flex-start; }
  .support-appbar-actions{ width:100%; }
}
@media (max-width: 860px){
  .support-appbar{ position:static; }
  .support-nav-group{ width:100%; overflow:auto; }
  .support-nav-pill{ white-space:nowrap; }
  .support-appbar-actions{ width:100%; justify-content:flex-start; }
}

.support-bottom-nav{
  position:fixed;
  left:50%;
  bottom:.12rem;
  transform:translateX(-50%);
  z-index:1038;
  width:min(1160px, calc(100vw - .4rem));
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:.22rem;
  padding:.48rem;
  border-radius:28px;
  background:rgba(255,255,255,.99);
  border:1px solid rgba(15,23,42,.12);
  box-shadow:0 12px 34px rgba(15,23,42,.18);
  backdrop-filter:blur(18px);
}
.support-bottom-nav__item{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  min-height:66px;
  padding:.64rem .65rem;
  border-radius:20px;
  color:#5e7088;
  text-decoration:none;
  font-weight:700;
  text-align:center;
}
.support-bottom-nav__item:hover{ background:rgba(59,130,246,.08); color:#17314a; }
.support-bottom-nav__item.is-active{ background:rgba(10,99,234,.12); color:#0a63ea; box-shadow:inset 0 0 0 1px rgba(10,99,234,.08); }
.support-bottom-nav__icon{ width:1.28rem; height:1.28rem; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.support-bottom-nav__icon svg{ width:100%; height:100%; }
.support-bottom-nav__label{ white-space:nowrap; line-height:1.05; font-size:.82rem; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.support-bottom-nav__badge{ position:absolute; top:7px; right:16px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:#d64b3c; color:#fff; font-size:.65rem; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 8px 18px rgba(214,75,60,.24); }
@media (max-width: 860px){
  .support-appbar{ position:static; }
  .support-appbar-actions{ width:100%; justify-content:flex-start; }
  .support-bottom-nav{ width:calc(100vw - .4rem); bottom:0; padding:.34rem; border-radius:22px 22px 0 0; }
  .support-bottom-nav__item{ min-height:58px; padding:.52rem .25rem; }
  .support-bottom-nav__label{ font-size:.74rem; }
  .support-bottom-nav__badge{ right:10px; }
}
