/* =========================================================
   Strivios Roster – LIGHT UI (Modash-like)
   Drop-in replacement for your current roster.css
   Keeps all your existing class names / markup intact
   ========================================================= */

:root{
  /* Core */
  --sr-bg: #f7f8fb;
  --sr-surface: #ffffff;
  --sr-surface-2: #fbfcff;

  /* Text */
  --sr-text: #0f172a;        /* slate-900 */
  --sr-muted: #475569;       /* slate-600 */
  --sr-muted-2: #64748b;     /* slate-500 */

  /* Lines / shadows */
  --sr-line: #e6e9f2;
  --sr-line-2: #d9deea;
  --sr-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --sr-shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
  --sr-text-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radius */
  --sr-radius: 14px;
  --sr-radius-sm: 10px;

  /* Accents (Modash-ish blue) */
  --sr-accent: #2563eb;     /* blue-600 */
  --sr-accent-2: #1d4ed8;   /* blue-700 */
  --sr-accent-soft: rgba(37, 99, 235, 0.12);

  /* Success / warning */
  --sr-warn: #f59e0b;
  --sr-warn-soft: rgba(245, 158, 11, 0.16);

  /* Focus ring */
  --sr-focus: rgba(37, 99, 235, 0.22);
}

/* Page container */
.strivios-roster{
  
  margin: 0 auto;
  padding: 0px 18px 28px;
  color: var(--sr-text) !important;
}

/* Optional: if the page background is not light, you can uncomment this
.strivios-roster{ background: var(--sr-bg); border-radius: var(--sr-radius); }
*/

/* ---------------- Header ---------------- */

.strivios-roster__header{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius) !important;
  background: var(--sr-surface);
  box-shadow: var(--sr-shadow-sm);
}

.strivios-roster__logo{
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  border-radius: 12px !important;
  background: #fff;
  border: 1px solid var(--sr-line);
}

.strivios-roster__title{
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: .2px !important;
  color: var(--sr-text) !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

.strivios-roster__intro{
  margin: 6px 0 0;
  color: var(--sr-muted);
  line-height: 1.5;
  max-width: 920px;
  font-size: 14px;
}

/* ---------------- Top controls row: filters + export ---------------- */

.strivios-roster__filters{
  display:flex;
  gap:10px;
  margin: 0 0 12px;
  align-items:center;
}

.strivios-roster__filter{
  padding:8px 12px !important;
  border-radius:999px !important;
  border:1px solid var(--sr-line) !important;
  background:#fff !important;
  color: var(--sr-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: var(--sr-text-font);
  cursor:pointer !important;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.strivios-roster__filter:hover{
  background: var(--sr-surface-2) !important;
  border-color: var(--sr-line-2) !important;
  transform: translateY(-1px);
}

.strivios-roster__filter.is-active,
.strivios-roster__filter.is-active:focus{
  background: var(--sr-accent-soft) !important;
  border-color: rgba(37,99,235,.35) !important;
  color: var(--sr-accent-2) !important;
}

/* Export button line aligns to the right, like Modash toolbar */
.sr-export{
  display:flex;
  justify-content:flex-end;
  margin: -44px 0 12px; /* pulls it into same row visually with filters */
}

@media (max-width: 860px){
  .sr-export{ margin: 0 0 12px; justify-content:flex-start; }
}

/* ---------------- Table wrapper ---------------- */

.strivios-roster__tablewrap{
  max-height: 76vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  border-radius: var(--sr-radius) !important;
   border: none;
  background: transparent;
  box-shadow: none;
  position: relative;
  pointer-events: auto;
}

/* Table */
.strivios-roster__table{
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0 10px; /* ✅ vertical gap between “pill rows” */
}


/* Header cells */
.strivios-roster__table thead th{
  position: sticky;
  top: 0;
  z-index: 5;

  text-align: left;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: none;
  color: var(--sr-muted);

  background: #ffffff;
  border-bottom: 1px solid var(--sr-line);
  padding: 12px 14px;
}

/* ✅ Remove any vertical separators added by theme/defaults */
.strivios-roster__table th,
.strivios-roster__table td{
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

.strivios-roster__table th + th,
.strivios-roster__table td + td{
  border-left: none !important;
}


/* Give the sticky header a tiny “toolbar” vibe */
.strivios-roster__table thead th{
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

/* Body cells */
.strivios-roster__table td{
  padding: 14px 14px;
  border-bottom: none; /* ✅ no row separators */
  vertical-align: middle;
  white-space: nowrap;
  color: var(--sr-text);
  font-family: var(--sr-text-font);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
}


/* =========================
   Pill rows (Modash-like)
   ========================= */

.strivios-roster__table tbody tr{
  background: transparent;
  cursor: pointer;
}

.strivios-roster__table tbody tr td{
  background: #fff;
  border-top: 1px solid var(--sr-line);
  border-bottom: 1px solid var(--sr-line);
  border-left: none !important;   /* ✅ ensures no inner vertical lines */
  border-right: none !important;  /* ✅ ensures no inner vertical lines */
}

/* left edge rounding */
.strivios-roster__table tbody tr td:first-child{
  border-left: 1px solid var(--sr-line);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  padding-left: 16px;
}

/* right edge rounding */
.strivios-roster__table tbody tr td:last-child{
  border-right: 1px solid var(--sr-line);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding-right: 16px;
}

/* Hover */
.strivios-roster__table tbody tr:hover td{
  background: #fbfcff;
  border-color: rgba(37,99,235,.18);
}




/* Creator cell */
.strivios-roster__creatorcell{
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: normal;
  min-width: 260px;
}

.strivios-roster__avatar,
.strivios-roster__avatar--placeholder{
  width: 52px;
  height: 52px;
  border-radius: 999px !important;
  flex: 0 0 auto;
  border: 1px solid var(--sr-line);
  background: #fff;
  object-fit: cover;
}

.strivios-roster__avatar--placeholder{
  background: linear-gradient(180deg, #f1f5ff, #ffffff);
}

.strivios-roster__creatortext{
  display:flex;
  flex-direction: column;
  gap: 2px;
}

.strivios-roster__name{
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .1px;
  line-height: 1.2;
  color: var(--sr-text);
  font-family: var(--sr-text-font);
}

/* Note is removed in your PHP, but keep it styled just in case */
.strivios-roster__note{
  font-size: 12px;
  color: var(--sr-muted-2);
  line-height: 1.25;
}

/* ---------------- Pills (Platform) ---------------- */

.strivios-roster__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px !important;
  border: 1px solid var(--sr-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  background: #fff;
  color: var(--sr-muted);
}

.strivios-roster__pill--youtube{
  border-color: rgba(220, 38, 38, .22);
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
}

.strivios-roster__pill--twitch{
  border-color: rgba(124, 58, 237, .22);
  background: rgba(124, 58, 237, .08);
  color: #6d28d9;
}

/* ---------------- Actions (Save button) ---------------- */

.strivios-roster__actions{
  text-align: right;
  white-space: nowrap;
}

/* Save button: Modash-like outline pill */
.strivios-roster__favbtn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--sr-line-2) !important;
  background: #fff !important;
  color: var(--sr-text) !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.strivios-roster__favbtn:hover{
  background: var(--sr-surface-2) !important;
  border-color: var(--sr-line-2) !important;
  transform: translateY(-1px);
}

.strivios-roster__favbtn.is-fav{
  border-color: rgba(245, 158, 11, .35) !important;
  background: var(--sr-warn-soft) !important;
  color: #92400e !important;
}

/* Muted helper */
.strivios-roster__muted{
  color: var(--sr-muted-2);
  font-size: 13px;
}

/* ---------------- Export UI (Light, Modash-like) ---------------- */

.sr-export__btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--sr-line-2) !important;
  background: #fff !important;
  color: var(--sr-text) !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  font-family: var(--sr-text-font);
  font-size: 13px !important;
  letter-spacing: .1px;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.sr-export__btn:hover{
  background: var(--sr-surface-2) !important;
  border-color: var(--sr-line-2) !important;
  transform: translateY(-1px);
}

.sr-export__btn--primary{
  border-color: rgba(37,99,235,.35) !important;
  background: var(--sr-accent) !important;
  color: #fff !important;
}

.sr-export__btn--primary:hover{
  background: var(--sr-accent-2) !important;
}

/* Modal backdrop */
.sr-export__panel{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sr-export__panel.is-open{
  display:flex;
}

/* Modal card */
.sr-export__panelInner{
  width: min(620px, 100%);
  border: 1px solid var(--sr-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  padding: 14px;
}

.sr-export__panelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--sr-line);
  margin-bottom: 10px;
}

.sr-export__title{
  font-weight: 900;
  letter-spacing: .1px;
  color: var(--sr-text);
}

.sr-export__close{
  width: 36px;
  height: 36px;
  border-radius: 999px !important;
  border: 1px solid var(--sr-line-2) !important;
  background: #fff !important;
  color: var(--sr-text) !important;
  cursor: pointer !important;
  font-weight: 900 !important;
  transition: background .14s ease, transform .14s ease;
}

.sr-export__close:hover{
  background: var(--sr-surface-2) !important;
  transform: translateY(-1px);
}

.sr-export__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 8px;
}

.sr-export__row--cols{
  align-items:flex-start;
}

.sr-export__label{
  font-size: 13px;
  font-weight: 800;
  color: var(--sr-muted);
  min-width: 90px;
}

.sr-export__select{
  width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--sr-line);
  background: #fff;
  color: var(--sr-text);
  outline: none;
}

.sr-export__colsActions{
  display:flex;
  gap: 8px;
  margin-left: auto;
}

.sr-export__mini{
  padding: 7px 10px !important;
  border-radius: 999px !important;
  border: 1px solid var(--sr-line-2) !important;
  background: #fff !important;
  color: var(--sr-text) !important;
  cursor: pointer;
  font-weight: 800 !important;
  font-size: 12px !important;
  transition: background .14s ease, transform .14s ease;
}

.sr-export__mini:hover{
  background: var(--sr-surface-2) !important;
  transform: translateY(-1px);
}

.sr-export__cols{
  width: 100%;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--sr-line);
  background: #fbfcff;
  max-height: 260px;
  overflow: auto;
}

.sr-export__col{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: var(--sr-text);
  cursor: pointer;
  user-select: none;
}

.sr-export__col input{
  width: 16px;
  height: 16px;
  accent-color: var(--sr-accent);
}

.sr-export__actions{
  display:flex;
  justify-content:flex-end;
  padding: 12px 8px 6px;
  border-top: 1px solid var(--sr-line);
  margin-top: 10px;
}

/* ---------------- Accessibility ---------------- */

.strivios-roster a:focus,
.strivios-roster button:focus,
.strivios-roster select:focus{
  outline: none !important;
  box-shadow: 0 0 0 4px var(--sr-focus) !important;
  border-radius: 10px !important;
}

/* ---------------- Scrollbars (light) ---------------- */

.strivios-roster__tablewrap::-webkit-scrollbar{ height: 10px; width: 10px; }
.strivios-roster__tablewrap::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.16) !important;
  border-radius: 999px !important;
}
.strivios-roster__tablewrap::-webkit-scrollbar-track{
  background: rgba(15,23,42,.06) !important;
}

.sr-export__cols::-webkit-scrollbar{ height: 10px; width: 10px; }
.sr-export__cols::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.16) !important;
  border-radius: 999px !important;
}
.sr-export__cols::-webkit-scrollbar-track{
  background: rgba(15,23,42,.06) !important;
}

/* ---------------- Responsive tweaks ---------------- */

@media (max-width: 720px){
  .strivios-roster{ padding: 12px 12px 18px; }

  .strivios-roster__header{
    padding: 12px;
    gap: 12px;
  }

  .strivios-roster__logo{
    width: 42px !important;
    height: 42px !important;
  }

  .strivios-roster__title{
    font-size: 16px !important;
  }
}

@media (max-width: 520px){
  .sr-export__cols{ grid-template-columns: 1fr; }
  .sr-export__row{ flex-direction: column; align-items: stretch; }
  .sr-export__select{ width: 100%; }
  .sr-export__label{ min-width: 0; }
}

/* =========================
   Layout: Sidebar + Main
   ========================= */

.sr-layout{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px){
  .sr-layout{
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.sr-sidebar{
  position: sticky;
  top: 74px; /* below sticky header */
  align-self: start;
}

@media (max-width: 980px){
  .sr-sidebar{
    position: relative;
    top: 0;
  }
}

.sr-sidebar__card{
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: #fff;
  box-shadow: var(--sr-shadow-sm);
  padding: 14px;
  font-family: var(--sr-text-font) !important;
}

.sr-sidebar__title{
  font-weight: 900;
  color: var(--sr-text);
  margin-bottom: 12px;
  font-size: 14px;
}

.sr-field{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.sr-field__label{
  font-size: 12px;
  font-weight: 800;
  color: var(--sr-muted);
}

.sr-input,
.sr-select{
  width: 100%;
  border: 1px solid var(--sr-line) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  color: var(--sr-text) !important;
  outline: none !important;
}

.sr-input:focus,
.sr-select:focus{
  box-shadow: 0 0 0 4px var(--sr-focus);
  border-color: rgba(37,99,235,.35);
}

/* Main column */
.sr-main{
  min-width: 0;
}

/* Put platform filters + export in one toolbar row */
.strivios-roster__filters{
  margin-bottom: 12px;
}

.sr-export{
  margin: -44px 0 12px;
}

@media (max-width: 980px){
  .sr-export{ margin: 0 0 12px; justify-content:flex-start; }
}

/* =========================
   Header: full width + sticky
   ========================= */

.strivios-roster__header{
  position: sticky;
  top: 0;
  z-index: 9999;

  /* full-width trick while inside centered container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  border-radius: 0 !important;
  border-left: none;
  border-right: none;

  /* keep it clean like Modash */
  background: #fff;
}

.strivios-roster__header{
  box-shadow: 0 10px 25px rgba(15,23,42,0.08);
}

/* =========================
   Sortable headers + arrows
   ========================= */

.strivios-roster__table thead th.sr-th{
  padding: 0; /* we’ll pad the button instead */
}

.sr-sort{
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;

  padding: 12px 14px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;

  font-weight: 400 !important;
  font-size: 12px !important;
  letter-spacing: .35px !important;
  color: var(--sr-muted) !important;
  text-align: left !important;
  font-family: var(--sr-text-font);
}

/* default arrow (neutral) */
.sr-sort::after{
  content: "↕";
  font-size: 12px;
  opacity: .5;
}

/* active asc/desc arrows */
.strivios-roster__table thead th.sr-th[data-dir="asc"] .sr-sort::after{
  content: "↑";
  opacity: 1;
}

.strivios-roster__table thead th.sr-th[data-dir="desc"] .sr-sort::after{
  content: "↓";
  opacity: 1;
}

.strivios-roster__table thead th.sr-th.is-active .sr-sort{
  color: var(--sr-text);
}

.sr-sort::after{
  content: "↕";
  font-size: 12px;
  opacity: .5;
  margin-left: 6px; /* 👈 arrow sits right after text */
}

/* 🔥 Kill zebra striping completely */
.strivios-roster__table tbody tr:nth-child(even),
.strivios-roster__table tbody tr:nth-child(odd){
  background: transparent !important;
}

.strivios-roster__table tbody tr:nth-child(even) td,
.strivios-roster__table tbody tr:nth-child(odd) td{
  background: #fff !important;
}

.strivios-roster__table tbody tr{
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 12px;
  
}

.strivios-roster__table tbody tr:hover{
  box-shadow: 0px 4px 24px rgba(31, 31, 31, 0.16) !important;
}


/* Multi-country filter */
.sr-multi{
  margin-top: 6px;
}

.sr-multi__actions{
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.sr-multi__mini{
  border: 1px solid var(--sr-line, #e6e9f2) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  color: black !important;
}

.sr-multi__mini:hover{
  transform: translateY(-1px);
  color: black !important;
}

.sr-multi__list{
  border: 1px solid var(--sr-line, #e6e9f2);
  background: #fff;
  border-radius: 14px;
  padding: 8px;

  height: 220px;           /* IMPORTANT: fixed height (not max-height) */
  overflow-y: auto;        /* IMPORTANT */
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


.sr-multi__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.sr-multi__item:hover{
  background: #fbfcff;
}

.sr-multi__item input{
  width: 16px;
  height: 16px;
}

.sr-multi__list::-webkit-scrollbar{ width: 10px; }
.sr-multi__list::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.18);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.7);
}
.sr-multi__list::-webkit-scrollbar-track{
  background: rgba(15,23,42,.06);
}
.sr-multi__list::-webkit-scrollbar-thumb:hover{
  background: rgba(15,23,42,.28);
}

.sr-multi__list::-webkit-scrollbar-thumb:active{
  background: rgba(15,23,42,.35);
}

.sr-notice{
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  max-width: 720px;
}
.sr-notice--error{
  border-color: rgba(255,80,80,.25);
  background: rgba(255,80,80,.08);
}

 /* =========================
   Identity seat modal (Light UI)
   Matches Strivios Roster – LIGHT UI variables
   ========================= */

.sr-ident{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sr-ident__card{
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid var(--sr-line);
  background: var(--sr-surface);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  padding: 16px;

  font-family: var(--sr-text-font);
  color: var(--sr-text);
}

.sr-ident__title{
  margin: 0;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .1px;
  color: var(--sr-text);
}

.sr-ident__sub{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sr-muted);
}

.sr-ident__field{
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.sr-ident__field span{
  font-size: 12px;
  font-weight: 800;
  color: var(--sr-muted);
}

.sr-ident__field input{
  width: 100%;
  border: 1px solid var(--sr-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--sr-text);
  outline: none;

  transition: box-shadow .14s ease, border-color .14s ease;
}

.sr-ident__field input:focus{
  box-shadow: 0 0 0 4px var(--sr-focus);
  border-color: rgba(37,99,235,.35);
}

.sr-ident__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sr-line);
}

/* “Continue” button = same style as your primary export button */
.sr-ident__actions button{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 10px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(37,99,235,.35) !important;
  background: var(--sr-accent) !important;
  color: #fff !important;

  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  font-family: var(--sr-text-font);
  letter-spacing: .1px;

  transition: background .14s ease, transform .14s ease;
}

.sr-ident__actions button:hover{
  background: var(--sr-accent-2) !important;
  transform: translateY(-1px);
}

.sr-ident__actions button:disabled{
  opacity: .7;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Error box (matches your sr-notice--error vibe) */
.sr-ident__err{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,80,.25);
  background: rgba(255,80,80,.08);
  color: var(--sr-text);
  font-size: 13px;
  line-height: 1.4;
}

/* Small screens */
@media (max-width: 520px){
  .sr-ident{ padding: 12px; }
  .sr-ident__card{ padding: 14px; }
}

.sr-view-toggle{
  display:flex;
  gap:8px;
  margin-bottom:12px;
}

.sr-view-btn{
  padding:8px 12px !important;
  border-radius:999px !important;
  border:1px solid var(--sr-line) !important;
  background:#fff !important;
  font-size:13px !important;
  font-weight:700 !important;
  font-family: var(--sr-text-font);
  color: var(--sr-text) !important;
  cursor:pointer;
}

.sr-view-btn:hover {
    color: var(--sr-text) !important;
}

.sr-view-btn.is-active{
  background:var(--sr-accent-soft) !important;
  border-color:rgba(37,99,235,.35) !important;
  color:var(--sr-accent-2) !important;
}
/* Brand fit column hidden by default */
.sr-fit-col { display: none; }

/* Show Brand fit column only in Personalised view */
.strivios-roster.sr-view--personal .sr-fit-col { display: table-cell; }

.sr-verified{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  line-height:1;

  position: relative;
  top: 4px; /* ✅ move down; try 1px–3px */
}

.sr-verified svg{
  width:16px;
  height:16px;
  display:block;
}

.sr-verified{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* tooltip bubble */
.sr-verified::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(20,20,20,.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 50;
}

/* small arrow */
.sr-verified::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20,20,20,.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  z-index: 50;
}

/* show on hover/focus */
.sr-verified:hover::after,
.sr-verified:focus::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.sr-verified:hover::before,
.sr-verified:focus::before{
  opacity: 1;
}

.sr-empty{
  margin-top: 12px;
}

.sr-empty__card{
  border: 1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 16px;
  font-family: var(--sr-text-font);
}

.sr-empty__title{
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 6px 0;
  color: rgba(15,18,24,.92);
}

.sr-empty__sub{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15,18,24,.65);
  margin: 0 0 12px 0;
}

.sr-empty__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sr-empty__btn{
  appearance:none !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  background: rgba(255,255,255,.9) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  color: black !important;
}

.sr-empty__btn:hover{
  border-color: rgba(0,0,0,.28) !important;
  background: rgba(255,255,255,1) !important;
}

@media (max-width: 640px){
  .sr-empty__btn{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Loading overlay (under identity modal) */
.strivios-roster { position: relative; }

.sr-loading{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998; /* identity modal should be above this */
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility .18s ease;
}

.sr-loading.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sr-loading__card{
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  text-align: center;
}

.sr-loading__spinner{
  width: 36px;
  height: 36px;
  margin: 6px auto 12px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.85);
  animation: srSpin .85s linear infinite;
}

@keyframes srSpin { to { transform: rotate(360deg); } }

.sr-loading__title{
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,.95);
  letter-spacing: .2px;
}

.sr-loading__sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* --- Rank reason pill + tooltip --- */

.sr-fit-col{
  white-space: nowrap;
}

.sr-fitinfo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;

  height: 22px;
  padding: 0 10px;

  border-radius: 999px;
  border: 1px solid var(--sr-line-2);
  background: #fff;
  color: var(--sr-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  cursor: help;
  user-select: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.sr-fitinfo:hover,
.sr-fitinfo:focus{
  background: var(--sr-surface-2);
  border-color: rgba(37,99,235,.35);
  color: var(--sr-accent-2);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 4px var(--sr-focus);
}

/* Tooltip (rendered into body, so it won't get clipped) */
.sr-fittooltip{
  position: fixed;
  z-index: 999999;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease;

  padding: 10px 12px;
  border-radius: 12px;

  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  font-family: var(--sr-text-font);

  box-shadow: 0 18px 50px rgba(15,23,42,0.28);
  pointer-events: none;
}

.sr-fittooltip.is-open{
  opacity: 1;
  transform: translateY(0);
}
