﻿/* ============================================================
   MapleTracker – Theme CSS
   Dark navy + maple-crimson MapleStory-inspired design
   ============================================================ */

/* ─── Google Fonts ──────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Press+Start+2P&family=Noto+Sans:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Glass surfaces */
  --bg-deep: rgba(255, 255, 255, 0.07);
  --bg-dark: rgba(255, 255, 255, 0.12);
  --bg-panel: rgba(255, 255, 255, 0.2);
  --bg-card: rgba(255, 255, 255, 0.26);
  --bg-input: rgba(255, 255, 255, 0.45);
  --border-color: rgba(255, 255, 255, 0.36);

  /* Maple accent palette */
  --gold: #52547a; /* maple blue  – primary  */
  --gold-light: #bedc00; /* maple purple – accent  */
  --gold-dark: #2a9ab8; /* deep blue              */
  --maple-grad: linear-gradient(135deg, #40bddb 0%, #9b76f7 100%);
  --maple-blue: #40bddb;
  --maple-purple: #9b76f7;
  --maple-green: #bedc00;
  --orange: #e05a28;

  /* Text — dark on glass */
  --text: #16182a;
  --text-muted: #52547a;
  --text-heading: #919191;

  /* Status */
  --success: #3db87a;
  --danger: #e03c3c;
  --info: #40bddb;
  --warning: #e8a020;

  /* Legacy sidebar vars (sidebar hidden; kept for compat) */
  --sidebar-bg-1: rgba(255, 255, 255, 0.14);
  --sidebar-bg-2: rgba(255, 255, 255, 0.2);
  --sidebar-link-color: #3a3c5a;

  /* Layout */
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 12px;
  --transition: 0.2s ease;
}

/* ─── Reset / Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #0a070f; /* dark base — prevents white flash before bg image */
}

body {
  font-family: "Cairo", "Noto Sans", Arial, sans-serif;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Global glass backdrop blur ──────────────────────────────── */
.maple-card,
.stat-card,
.char-card,
.symbol-block,
.goal-item,
.modal-content,
.dropdown-menu,
.toast,
.auth-card,
.maple-table,
.cal-header,
.cal-cell,
.time-widget {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", "Noto Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--text-heading);
}

.font-pixel {
  font-family: "Press Start 2P", monospace;
}

.font-stat {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* ─── Layout ────────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 28px 32px;
  min-height: 100vh;
  transition: margin var(--transition);
}

@media (max-width: 991px) {
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(
    180deg,
    var(--sidebar-bg-1) 0%,
    var(--sidebar-bg-2) 100%
  );
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.sidebar-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sidebar-logo-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 50%;
  /* Crimson glow ring */
  box-shadow:
    0 0 0 2px var(--gold-dark),
    0 6px 20px rgba(64, 189, 219, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.18);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.sidebar-logo-link:hover {
  box-shadow:
    0 0 0 2px var(--gold),
    0 8px 28px rgba(64, 189, 219, 0.65),
    0 2px 10px rgba(0, 0, 0, 0.18);
  transform: scale(1.05);
}

.sidebar-logo-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: opacity var(--transition);
  opacity: 1;
}

.sidebar-logo .logo-title {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: var(--gold);
  display: block;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(64, 189, 219, 0.5);
  line-height: 1.8;
}

.sidebar-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 20px 4px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--sidebar-link-color);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover {
  color: var(--text);
  background: rgba(64, 189, 219, 0.08);
  border-left-color: var(--gold-dark);
}

.sidebar-nav .nav-link.active {
  color: var(--gold-light);
  background: rgba(64, 189, 219, 0.12);
  border-left-color: var(--gold);
}

.sidebar-nav .nav-link i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold-dark), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.sidebar-user .user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user .user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ─── Top bar (mobile) ──────────────────────────────────────── */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1020;
  height: var(--topbar-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

@media (max-width: 991px) {
  .topbar {
    display: flex;
  }
}

.topbar-title {
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 1;
  justify-content: center;
}

.topbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 4px;
}

/* ─── Cards / Panels ────────────────────────────────────────── */
.maple-card {
  backdrop-filter: blur(8px);
  background: linear-gradient(
    to bottom right,
    rgba(3, 28, 66, 0.35),
    rgba(255, 162, 100, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.maple-card:hover {
  border-top-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(64, 189, 219, 0.1);
}

.maple-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.maple-card .card-title i {
  color: var(--gold);
  font-size: 1rem;
}

/* Stat summary cards (dashboard) */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(64, 189, 219, 0.15);
}

.stat-card .stat-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ─── Character Cards ───────────────────────────────────────── */
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
  position: relative;
}

.char-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 4px 20px rgba(64, 189, 219, 0.15);
  transform: translateY(-3px);
}

.char-card.is-main {
  border-top: 3px solid var(--gold);
}

.char-card .char-banner {
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(64, 189, 219, 0.3),
    rgba(155, 118, 247, 0.25)
  );
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.char-card .char-img-wrap {
  width: 72px;
  height: 72px;
  margin: -36px auto 8px;
  background: var(--bg-deep);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.char-card.is-main .char-img-wrap {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(64, 189, 219, 0.4);
}

.char-card .char-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-card .char-img-wrap .char-placeholder {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.char-card .char-body {
  padding: 0 14px 14px;
  text-align: center;
}

.char-card .char-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-card .char-class {
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.char-card .char-level {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.char-card .char-level span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
}

.char-card .char-world {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Character card extra sections ─────────────────────────── */
.char-card .char-stat {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 3px;
}

.char-section {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.char-exp-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
  gap: 4px;
}

.char-ranks {
  font-size: 0.62rem;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  flex-wrap: wrap;
}

.rank-label {
  color: var(--text-muted);
  min-width: 46px;
}

.rank-val {
  color: var(--text);
  font-weight: 600;
}

.rank-class {
  color: var(--maple-purple);
  font-weight: 500;
}

.char-legion {
  font-size: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.legion-rank {
  font-weight: 700;
  color: #c8b4ff;
}

.legion-lv {
  color: var(--text-muted);
}

.legion-sub {
  width: 100%;
  font-size: 0.6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.char-sync-time {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 3px;
}

.badge-main {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #000;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-maple {
  background: var(--maple-grad);
  background: linear-gradient(
    rgb(67, 199, 220) 0%,
    rgb(52, 169, 197) 65%,
    rgb(67, 199, 220) 100%
  ) !important;
  border: none;
  color: #e9ffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;

  text-shadow: 0 1px 1px rgba(0, 80, 100, 0.8);

  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
}

.btn-maple:hover {
  filter: brightness(1.08);
}

.btn-maple:active {
  transform: translateY(2px);
}

.btn-maple-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 20px;
  border-radius: 6px;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  cursor: pointer;
}

.btn-maple-outline:hover {
  background: rgba(64, 189, 219, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ─── Discord OAuth button ───────────────────────────────────────────────── */
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.5);
}
.btn-discord:active {
  transform: translateY(2px);
}
.btn-discord .discord-icon {
  flex-shrink: 0;
}

.btn-maple-danger {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: rgba(248, 113, 113, 0.8);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 20px;
  border-radius: 6px;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  cursor: pointer;
}
.btn-maple-danger:hover {
  background: rgba(248, 113, 113, 0.12);
  color: rgba(248, 113, 113, 1);
  border-color: rgba(248, 113, 113, 0.75);
}

.btn-maple-success {
  background: transparent;
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: rgba(74, 222, 128, 0.85);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 20px;
  border-radius: 6px;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
  cursor: pointer;
}
.btn-maple-success:hover {
  background: rgba(74, 222, 128, 0.12);
  color: rgba(74, 222, 128, 1);
  border-color: rgba(74, 222, 128, 0.75);
}

.btn-danger-soft {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 6px;
  transition:
    background-color var(--transition),
    color var(--transition);
  cursor: pointer;
}

.btn-danger-soft:hover {
  background: rgba(224, 60, 60, 0.1);
  color: #f05555;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn-icon:hover {
  background: var(--bg-panel);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: color var(--transition);
}

.btn-sm-icon:hover {
  color: var(--gold);
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-control,
.form-select {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text) !important;
  border-radius: 6px;
  font-size: 0.87rem;
  padding: 8px 12px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(64, 189, 219, 0.15) !important;
  background-color: var(--bg-input) !important;
  color: var(--text) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.form-check-input {
  background-color: var(--bg-input) !important;
  border-color: var(--border-color) !important;
}

.form-check-input:checked {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}

/* ─── Modals ────────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold);
  color: var(--text);
  border-radius: var(--radius);

  backdrop-filter: blur(8px);
  background: linear-gradient(
    to bottom right,
    rgba(3, 28, 66, 0.35),
    rgba(255, 162, 100, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title i {
  color: var(--gold);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
}

/* .btn-close — default dark × suits light glass panels */

/* ─── Tables ────────────────────────────────────────────────── */
.maple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.maple-table thead th,
table thead th {
  background: var(--bg-deep);
  background: transparent !important;
  background-color: transparent !important;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.maple-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text);
}

.maple-table tbody tr:hover td {
  background: rgba(64, 189, 219, 0.04);
}

.maple-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Help Page: Classes ────────────────────────────────────── */
.class-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cfbtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.cfbtn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cfbtn.active {
  background: var(--maple-grad);
  border-color: transparent;
  color: #e9ffff;
  font-weight: 700;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  text-align: center;
  padding-bottom: 8px;
}

.class-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.class-card-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
}

.class-card-img img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.class-card-body {
  padding: 6px 6px 0;
}

.class-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.class-card-meta {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.class-badge-group {
  font-size: 0.58rem;
  background: rgba(155, 118, 247, 0.2);
  color: var(--maple-purple);
  border-radius: 3px;
  padding: 1px 5px;
}

.class-badge-stat {
  font-size: 0.58rem;
  background: rgba(64, 189, 219, 0.15);
  color: var(--maple-blue);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ─── Help Page: Class Modal ────────────────────────────────── */
.help-info-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
}

.hib-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.hib-value {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}

.buff-chip {
  display: inline-block;
  background: rgba(64, 189, 219, 0.1);
  border: 1px solid rgba(64, 189, 219, 0.2);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  margin: 2px 2px;
  color: var(--text);
}

.buff-chip em {
  color: var(--text-muted);
  font-style: normal;
  margin-left: 4px;
}

.inner-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 0.8rem;
}

.inner-num {
  background: var(--maple-purple);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Help Page: EXP Table ──────────────────────────────────── */
.table-scroll {
  max-height: 60vh;
  overflow-y: auto;
  border-radius: 8px;
}

.my-level-row td {
  background: rgba(64, 189, 219, 0.08) !important;
}

.my-level-badge {
  display: inline-block;
  background: var(--maple-grad);
  color: #e9ffff;
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 5px;
  text-transform: uppercase;
}

.exp-highlight td {
  background: rgba(155, 118, 247, 0.18) !important;
  transition: background 0.3s;
}

/* ─── Progress Bars ─────────────────────────────────────────── */
.maple-progress {
  background: var(--bg-deep);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.maple-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.maple-progress.progress-success .progress-bar {
  background: linear-gradient(90deg, #2a9a5a, var(--success));
}

.maple-progress.progress-info .progress-bar {
  background: linear-gradient(90deg, #1a7fba, var(--info));
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.badge-easy {
  background: rgba(61, 184, 122, 0.15);
  color: #fff;
  border: 1px solid rgba(61, 184, 122, 0.3);
}
.badge-normal {
  background: rgba(58, 159, 224, 0.15);
  color: #fff;
  border: 1px solid rgba(58, 159, 224, 0.3);
}
.badge-hard {
  background: rgba(64, 189, 219, 0.15);
  color: #fff;
  border: 1px solid rgba(64, 189, 219, 0.3);
}
.badge-chaos {
  background: rgba(200, 84, 26, 0.15);
  color: #fff;
  border: 1px solid rgba(200, 84, 26, 0.3);
}
.badge-extreme {
  background: rgba(180, 30, 30, 0.2);
  color: #fff;
  border: 1px solid rgba(180, 30, 30, 0.4);
}
.badge-gold {
  background: rgba(64, 189, 219, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
}
.badge-daily {
  background: rgba(61, 184, 122, 0.15);
  color: #3db87a;
  border: 1px solid rgba(61, 184, 122, 0.3);
}
.badge-weekly {
  background: rgba(58, 159, 224, 0.15);
  color: #5ab4e8;
  border: 1px solid rgba(58, 159, 224, 0.3);
}
.badge-monthly {
  background: rgba(180, 80, 200, 0.15);
  color: #c878e8;
  border: 1px solid rgba(180, 80, 200, 0.3);
}

/* ─── Check / Task items ────────────────────────────────────── */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background var(--transition);
  cursor: pointer;
}

.task-item:hover {
  background: rgba(64, 189, 219, 0.05);
}

.task-item.completed .task-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color var(--transition),
    border-color var(--transition);
  cursor: pointer;
}

.task-checkbox.checked {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.task-label {
  font-size: 0.85rem;
}

/* ─── Boss tracker ──────────────────────────────────────────── */
.boss-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition);
}

.boss-row:hover {
  background: rgba(64, 189, 219, 0.05);
}

.boss-row.done {
  opacity: 0.55;
}

.boss-row.done .boss-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.boss-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}
.boss-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boss-name {
  font-size: 0.87rem;
  font-weight: 600;
}

.boss-crystal {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: auto;
}

/* ─── Symbol blocks ─────────────────────────────────────────── */
.symbol-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.symbol-block:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 2px 12px rgba(64, 189, 219, 0.1);
}

.symbol-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.symbol-level {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.symbol-level .symbol-max {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
}

.symbol-eta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Resource ledger ───────────────────────────────────────── */
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.resource-icon.mesos {
  background: rgba(64, 189, 219, 0.15);
  color: var(--gold);
}
.resource-icon.crystal {
  background: rgba(58, 159, 224, 0.15);
  color: #5ab4e8;
}
.resource-icon.arcane {
  background: rgba(180, 80, 200, 0.15);
  color: #c878e8;
}
.resource-icon.sacred {
  background: rgba(61, 184, 122, 0.15);
  color: #3db87a;
}

.resource-balance {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ─── Goal items ────────────────────────────────────────────── */
.goal-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
  position: relative;
}

.goal-item:hover {
  border-color: var(--gold-dark);
}

.goal-item.completed-goal {
  opacity: 0.55;
  border-color: var(--success);
}

/* Priority left-border colors */
.goal-priority-high {
  border-left-color: #e05555 !important;
}
.goal-priority-medium {
  border-left-color: var(--gold) !important;
}
.goal-priority-low {
  border-left-color: #3db87a !important;
}

/* Priority badges */
.goal-priority-badge-high {
  background: rgba(224, 85, 85, 0.18);
  color: #e05555;
}
.goal-priority-badge-medium {
  background: rgba(64, 189, 219, 0.15);
  color: var(--gold);
}
.goal-priority-badge-low {
  background: rgba(61, 184, 122, 0.15);
  color: #3db87a;
}

/* Pinned indicator */
.goal-pinned-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  color: var(--gold-light);
  opacity: 0.8;
}

/* Recurrence badge */
.goal-recurrence-badge {
  background: rgba(155, 118, 247, 0.14);
  color: var(--gold-light);
  font-size: 0.65rem;
}

.goal-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.goal-deadline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.goal-deadline.urgent {
  color: var(--danger);
}

/* ─── Sub-tasks ─────────────────────────────────────────────── */
.goal-subtask-list {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.subtask-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.subtask-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.subtask-row:last-child {
  border-bottom: none;
}

.subtask-checkbox {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.subtask-title {
  flex-grow: 1;
  color: var(--text);
  line-height: 1.4;
}

.subtask-done {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.65;
}

.subtask-full-row {
  flex-grow: 1;
}

/* Add sub-task toggle button */
.btn-sub-add {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--transition);
}

.btn-sub-add:hover {
  color: var(--gold);
}

.subtask-add-form {
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  margin-top: 6px;
}

/* ─── Goal progress history ─────────────────────────────────── */
.goal-progress-history {
  background: var(--bg-deep);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-row:last-child {
  border-bottom: none;
}

/* ─── Goal templates ────────────────────────────────────────── */
.goal-template-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.goal-template-btn:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Tabs (Bootstrap override) ─────────────────────────────── */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.nav-tabs .nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--border-color);
}

.nav-tabs .nav-link.active {
  color: var(--gold);
  background: transparent;
  border-bottom-color: var(--gold);
}

/* ─── Toast notifications ───────────────────────────────────── */
.toast-container {
  z-index: 9999;
}

.toast {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  min-width: 280px;
}

.toast-success {
  border-left: 3px solid var(--success) !important;
}
.toast-error {
  border-left: 3px solid var(--danger) !important;
}
.toast-info {
  border-left: 3px solid var(--info) !important;
}

.toast-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}

/* ─── Page headers ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header h1 i {
  color: var(--gold);
}

/* ─── Auth layout (login / register) ───────────────────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  position: relative;
  background-size: cover;
  background-position: center center;
}

.auth-layout-login {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(100, 100, 100, 0.2)),
    url("../images/bg/login-bg.png");
  background-size: 80% 100%;
  background-position: 0px 0px;
}
.auth-layout-register {
  background-image:
    linear-gradient(
      to bottom left,
      rgba(0, 0, 0, 0.8),
      rgba(100, 100, 100, 0.2)
    ),
    url("../images/bg/register-bg.png");
  background-size: 80% 100%;
  background-position: top right;
}
@media (max-width: 860px) {
  .auth-layout-login {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(100, 100, 100, 0.2)),
      url("../images/cards/card-1.png");
       background-size: cover;
  background-position: center;
  }
  .auth-layout-register {
    background-image:
      linear-gradient(
        to bottom left,
        rgba(0, 0, 0, 0.8),
        rgba(100, 100, 100, 0.2)
      ),
      url("../images/cards/card-2.png");
       background-size: cover;
  background-position: center;
  }
}

/* ─── Left: transparent hero spacer (desktop only) ───────────────────────────── */
.auth-hero {
  flex: 1 1 0;
  position: relative;
  display: none;
  overflow: hidden;
}

@media (min-width: 860px) {
  .auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.auth-hero-content {
  position: relative;
  z-index: 2;
  padding: 25px 15px 0;
}

.auth-hero-title {
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: rgba(250, 214, 160, 0.716);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
  line-height: 0.8;
  margin: 0 0 0px;
  letter-spacing: 0.09em;
  word-spacing: -0.1em;
}
.social-media {
  display: flex;
  gap: 12px;
  margin-left: 20px;
  margin-bottom: 20px;
}
.social-media .social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 214, 160, 0.716);
  font-size: 1.2rem;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.auth-hero-tagline {
  font-size: 0.6rem;
  color: rgba(250, 214, 160, 0.716);
  margin: 0;
  font-style: italic;
  letter-spacing: 0.19em;
}

/* â”€â”€ Right: fully transparent glass form panel â”€â”€ */
.auth-form-panel {
  width: 100%;
  margin: auto 60px auto auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  flex-shrink: 0;
  position: relative;
}

@media (min-width: 860px) {
  .auth-form-panel {
    width: 500px;
  }
}

.auth-form-inner {
  width: 100%;
  margin: auto;
  max-height: 100%;
  max-width: 420px;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.76),
    rgba(0, 0, 0, 0)
  );
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(168, 65, 5, 0.342);
  border-radius: 18px;
  padding: 44px 38px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  text-align: center;
  margin-bottom: 4px;
}

.auth-logo-img-wrap {
  display: inline-flex;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 50px rgba(34, 17, 3, 0.55))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  transition:
    filter var(--transition),
    transform var(--transition);
}

.auth-logo-img-wrap:hover {
  filter: drop-shadow(0 0 28px rgba(232, 140, 20, 0.3))
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
  transform: scale(1.06);
}

.auth-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.auth-logo .logo-text {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.auth-logo .logo-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  display: block;
  margin-top: 4px;
}

/* â”€â”€ Page heading â”€â”€ */
.auth-form-heading {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: rgba(248, 193, 111, 0.92);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.18em;
}

.auth-form-subheading {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  margin: 0 0 26px;
}
/* -- Form controls -- */
.auth-form-panel .form-label {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.auth-form-panel .form-control {
  background: rgba(7, 7, 7, 0.281) !important;
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(194, 102, 59, 0.342) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 5px !important;
  padding: 8px 16px;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.auth-form-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.24) !important;
}

.auth-form-panel .form-control:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.auth-form-panel .input-group .form-control {
  border-radius: 5px 0 0 5px;
}

.auth-form-panel .btn-outline-secondary {
  background: rgba(7, 7, 7, 0.181) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(194, 102, 59, 0.342) !important;
  border-left: none !important;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 0 5px 5px 0 !;
  transition:
    background 0.2s,
    color 0.2s;
}

.auth-form-panel .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}

.auth-form-panel .input-group:focus-within .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.5);
}

/* â”€â”€ CTA submit button â”€â”€ */
.auth-form-panel .btn-maple {
  background: linear-gradient(
    to bottom right,
    rgb(49, 11, 2) 0%,
    rgba(184, 50, 17, 0.736) 70%,
    rgba(184, 50, 17, 0.904)
  ) !important;
  backdrop-filter: blur(0px);
  border: 1px solid rgba(134, 59, 10, 0.35) !important;
  color: #e0c5b3;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.75),
    inset -2px -2px 6px rgba(248, 228, 190, 0.16);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s !important;
}

.auth-form-panel .btn-maple:hover {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.75),
    inset -2px -2px 10px -4px rgba(248, 228, 190, 0.1);
}

.auth-form-panel .btn-maple:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* â”€â”€ Divider â”€â”€ */
.auth-divider {
  text-align: center;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.74rem;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 34px);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.auth-divider::before {
  left: 0;
}
.auth-divider::after {
  right: 0;
}

/* â”€â”€ Footer link â”€â”€ */
.auth-footer-link {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.auth-footer-link a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  margin-left: 5px;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-link a:hover {
  color: #b9a497;
  text-decoration: underline;
}

/* â”€â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert-maple {
  background: rgba(64, 189, 219, 0.1);
  border: 1px solid rgba(64, 189, 219, 0.3);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
}

.alert-danger-maple {
  background: rgba(224, 60, 60, 0.1);
  border: 1px solid rgba(224, 60, 60, 0.3);
  color: #f08080;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
}

.alert-success-maple {
  background: rgba(61, 184, 122, 0.1);
  border: 1px solid rgba(61, 184, 122, 0.3);
  color: #5dd090;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
}

/* Alert overrides inside glass auth panel */
.auth-form-panel .alert-danger-maple {
  background: rgba(224, 60, 60, 0.18);
  border-color: rgba(224, 60, 60, 0.35);
  color: #ffb0b0;
}

.auth-form-panel .alert-success-maple {
  background: rgba(61, 184, 122, 0.15);
  border-color: rgba(61, 184, 122, 0.35);
  color: #90efc0;
}

/* ─── Countdown timers ──────────────────────────────────────── */
.reset-timer {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.reset-timer.urgent {
  color: var(--danger);
}

/* ─── Dropdown ──────────────────────────────────────────────── */
.dropdown-menu {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
  color: var(--text);
  font-size: 0.83rem;
  padding: 7px 12px;
  border-radius: 6px;
  transition: background var(--transition);
}

.dropdown-item:hover {
  background: rgba(64, 189, 219, 0.1);
  color: var(--gold-light);
}

.dropdown-item.text-danger:hover {
  background: rgba(224, 60, 60, 0.1);
  color: #f08080;
}

.dropdown-divider {
  border-color: var(--border-color);
  margin: 4px 0;
}

/* ─── Misc utilities ────────────────────────────────────────── */
.text-gold {
  color: var(--gold) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-danger {
  color: var(--danger) !important;
}
.text-success {
  color: var(--success) !important;
}
.text-info {
  color: var(--info) !important;
}

.bg-panel {
  background: var(--bg-panel);
}
.border-gold {
  border-color: var(--gold) !important;
}

.divider-line {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--border-color);
  display: block;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

.page-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ─── Hide native scrollbar (custom overlay used instead) ───── */
html {
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}

/* ─── Custom scrollbar overlay ──────────────────────────────── */
#cstm-scrollbar {
  position: fixed;
  top: 5px;
  right: 0;
  width: 10px; /* wider hit-area; only thumb is visible */
  height: calc(100vh - 10px);
  z-index: 99999;
  pointer-events: auto;
}
#cstm-scrollbar-thumb {
  position: absolute;
  right: 3px;
  width: 3px;
  min-height: 30px;
  border-radius: 99px;
  background: rgb(0, 0, 0);
  transition:
    background 0.15s,
    width 0.15s,
    right 0.15s;
  cursor: pointer;
}
#cstm-scrollbar-thumb:hover,
#cstm-scrollbar-thumb.dragging {
  background: rgb(58, 49, 43);
  width: 5px;
  right: 2.5px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-content {
    padding: 16px 12px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .page-header h1 {
    font-size: 1.1rem;
  }
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(64, 189, 219, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(64, 189, 219, 0);
  }
}

.pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* ─── Loading spinner ───────────────────────────────────────── */
.maple-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(64, 189, 219, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Calendar ──────────────────────────────────────────────── */

/* Month navigation pill */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}

.month-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  text-decoration: none;
  font-size: 0.85rem;
}

.month-nav-btn:hover {
  background: var(--bg-panel);
  color: var(--gold-light);
}

.month-nav-title {
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  color: var(--gold-light);
  padding: 0 20px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.month-nav-today {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 14px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color var(--transition),
    background var(--transition);
}

.month-nav-today:hover {
  color: var(--gold-light);
  background: var(--bg-card);
}

/* Calendar mini stats row */
.cal-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cal-stat-chip strong {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Rajdhani", sans-serif;
}

.cal-stat-chip .stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.cal-header {
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 4px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cal-cell {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 110px;
  padding: 6px 5px;
  vertical-align: top;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.cal-cell:hover {
  background: rgba(155, 118, 247, 0.06);
}

.cal-cell.empty {
  background: var(--bg-deep);
  opacity: 0.45;
  cursor: default;
}

.cal-cell.empty:hover {
  background: var(--bg-deep);
}

.cal-cell.today {
  background: rgba(64, 189, 219, 0.07);
  box-shadow: inset 0 0 0 2px var(--maple-blue);
}

.cal-day-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding: 1px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition);
}

.cal-day-num.today-num {
  background: var(--maple-grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(155, 118, 247, 0.4);
}

.cal-event {
  font-size: 0.65rem;
  border-radius: 4px;
  padding: 2px 5px;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition:
    opacity 0.15s,
    transform 0.1s;
  display: flex;
  align-items: center;
  gap: 3px;
}

.cal-event:hover {
  opacity: 0.85;
  transform: translateX(1px);
}

.cal-event .cal-event-icon {
  flex-shrink: 0;
  opacity: 0.75;
  font-size: 0.6rem;
}

.cal-more {
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 1px 5px;
  margin-top: 1px;
  opacity: 0.8;
}

/* Legend pills */
.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--transition),
    color var(--transition);
}

.legend-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.5);
}

.legend-pill .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Event list section */
.event-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  transition: background var(--transition);
}

.event-list-item:hover {
  background: var(--bg-panel);
}

.event-list-stripe {
  width: 4px;
  flex-shrink: 0;
  border-radius: 2px;
  align-self: stretch;
  min-height: 36px;
}

.event-list-body {
  flex: 1;
  min-width: 0;
}

.event-list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-list-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recur-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(155, 118, 247, 0.14);
  border: 1px solid rgba(155, 118, 247, 0.28);
  color: var(--maple-purple);
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  letter-spacing: 0.3px;
}

.event-list-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: flex-start;
}

/* Recurrence form section in modal */
.recur-section {
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  margin-top: 4px;
}

.recur-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.recur-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.recur-fields {
  margin-top: 12px;
}

.weekday-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.weekday-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  letter-spacing: 0.3px;
}

.weekday-btn.active {
  background: var(--maple-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(155, 118, 247, 0.4);
}

/* Modal section dividers */
.modal-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 576px) {
  .cal-cell {
    min-height: 70px;
    padding: 3px;
  }
  .cal-event {
    font-size: 0.58rem;
    padding: 1px 3px;
  }
  .cal-day-num {
    font-size: 0.65rem;
  }
  .month-nav-title {
    font-size: 0.6rem;
    padding: 0 10px;
  }
}

/* ─── Achievement/milestone rows ────────────────────────────── */
tr.achieved td {
  color: var(--success) !important;
  background: rgba(61, 184, 122, 0.07);
}

tr.achieved td:first-child::before {
  content: "✓ ";
  font-weight: 700;
}

/* ─── Alert maple success ───────────────────────────────────── */
.alert-maple-success {
  background: rgba(61, 184, 122, 0.12);
  border: 1px solid rgba(61, 184, 122, 0.35);
  color: var(--success);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Password eye button ───────────────────────────────────── */
.btn-eye {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-left: none;
  color: var(--text-muted);
  padding: 0 12px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: color 0.15s;
}

.btn-eye:hover {
  color: var(--gold);
}

/* ─── Floating World Clock Widget ───────────────────────────── */
.time-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  min-width: 210px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(64, 189, 219, 0.12);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.time-widget:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(64, 189, 219, 0.3);
}

.time-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(64, 189, 219, 0.08);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.time-widget-title {
  font-family: "Press Start 2P", monospace;
  font-size: 0.4rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(64, 189, 219, 0.6);
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-widget-title .maple-leaf-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.time-widget-header i {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.time-widget-body {
  padding: 8px 0 4px;
}

.time-widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
}

.time-widget-row + .time-widget-row {
  border-top: 1px solid var(--border-color);
}

.time-widget-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 38px;
}

.zone-flag {
  font-size: 1rem;
  line-height: 1;
}

.zone-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.time-widget-clock {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.clock-time {
  font-family: "Rajdhani", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: 1px;
}

.clock-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.clock-period {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--gold-light);
  margin-left: 3px;
  vertical-align: super;
  letter-spacing: 0.5px;
}

/* ─── Appearance settings toggle ───────────────────────────── */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle-label i {
  font-size: 1rem;
  color: var(--gold);
  transition: color var(--transition);
}

/* ============================================================
   REDESIGN — Animated background · Top nav · Side widgets
   ============================================================ */

/* ─── Animated Background Layer ─────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      135deg,
      rgba(10, 7, 15, 0.078) 0%,
      rgba(10, 7, 15, 0.678) 100%
    ),
    url("/assets/images/bg/main-bg.png") center / cover no-repeat;
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0035);
}

/* bgZoom removed — caused constant full-viewport GPU compositing */

/* ─── Page wrapper ───────────────────────────────────────────── */
.page-wrapper {
  min-height: calc(100vh - 72px);
  padding: 24px 0 56px;
}
@media (min-width: 1199px) {
  .page-wrapper .container,
  .page-wrapper .container-lg,
  .page-wrapper .container-md,
  .page-wrapper .container-sm,
  .page-wrapper .container-xl,
  .page-wrapper .container-xxl {
    max-width: calc(100vw - 270px);
    margin-left: 190px;
  }
}

/* ─── Top Navigation ─────────────────────────────────────────── */
.top-nav {
  position: static;
  z-index: 1040;
  padding: 0px 0;
  /* No background – glass lives on .top-nav-inner */
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 0;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 0 12px;
  position: relative;
}
.top-nav-inner::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1.5px;
  /* create background radial gradient of glowing purple fading to outside */
  background: radial-gradient(
    circle,
    rgba(245, 239, 216, 0) 15%,
    rgba(243, 208, 167, 0.222) 20%,
    rgba(179, 85, 241, 0.322) 40%,
    rgba(179, 85, 241, 0.082),
    rgba(235, 225, 241, 0) 100%
  );
}

.top-nav-links {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: end;
  gap: 0px;
}

.top-nav-right {
  /* no extra styles needed */
  justify-content: start;
}

.top-nav-logo {
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
  top: 53%;
  opacity: 0.85;
  transform: scale(1.35);
}

/* Push hamburger to far right without disturbing center cluster */
.top-nav-hamburger-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 16px;
}

.top-nav-logo-link {
  display: block;
  line-height: 0;
}

.top-nav-logo-img {
  margin: 0 10px;
  height: 82px;
  border-radius: 50%;
  opacity: 0.9;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
}
/* logoScale removed — caused constant GPU compositing on nav logo */

.top-nav-logo-link:hover .top-nav-logo-img {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
  position: relative;
  white-space: nowrap;
}

.top-nav-link:hover {
  background: rgba(64, 189, 219, 0.12);
  color: var(--text);
}

.top-nav-link.active {
  color: var(--gold-light);
}

.top-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--maple-grad);
  border-radius: 2px;
}

/* ─── Top Nav Clock Widgets ──────────────────────────────────── */
.top-clocks-group {
  gap: 0;
}

.top-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 16px;
  position: relative;
  cursor: default;
  margin: 0 20px;
}

.top-clock + .top-clock::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(155, 118, 247, 0.22),
    transparent
  );
}

.top-clock-time {
  font-family: "Rajdhani", "Cairo", monospace;
  font-size: 1.18rem;
  font-weight: 700;
  color: rgba(210, 225, 255, 0.88);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(155, 118, 247, 0.25);
  position: relative;
}

.top-clock-sec {
  position: absolute;
  left: 100%;
  bottom: 2px;
  margin-left: 1px;
  font-size: 0.52rem;
  font-weight: 500;
  color: rgba(190, 205, 255, 0.38);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.top-clock--game .top-clock-time {
  color: rgba(206, 255, 70, 0.95);
  text-shadow:
    0 0 14px rgba(255, 180, 0, 0.45),
    0 0 4px rgba(255, 220, 80, 0.2);
}

.top-clock-badge {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(155, 118, 247, 0.1);
  border: 1px solid rgba(155, 118, 247, 0.25);
  color: rgba(155, 118, 247, 0.85);
  text-transform: uppercase;
  line-height: 1.6;
}

.top-clock--game .top-clock-badge {
  background: rgba(255, 180, 0, 0.1);
  border-color: rgba(255, 180, 0, 0.28);
  color: rgba(206, 255, 70, 0.9);
}

.top-clock-sub {
  font-family: "Cairo", sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  color: rgba(190, 205, 245, 0.28);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 1199px) {
  .top-clocks-group {
    display: none;
  }
}

.top-nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(64, 189, 219, 0.25);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  margin-left: 4px;
}

.top-nav-hamburger:hover {
  background: rgba(64, 189, 219, 0.12);
  color: var(--text);
}

@media (max-width: 1199px) {
  .top-nav-link span {
    display: none;
  }
  .top-nav-hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .top-nav-left .top-nav-link,
  .top-nav-right .top-nav-link {
    display: none;
  }
}

/* ─── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: sticky;
  top: 72px; /* 52px inner + 2×10px padding */
  z-index: 1039;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  padding: 16px 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 575px) {
  .mobile-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: "Cairo", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition);
  text-align: center;
}

.mobile-menu-item i {
  font-size: 1.4rem;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background: rgba(64, 189, 219, 0.12);
  color: var(--gold-light);
}

/* ─── Side Widget Circles ────────────────────────────────────── */
.side-widgets {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-widgets-left {
  justify-content: space-between;
  left: 15px;
  border-left: 1px;
  width: 170px;
  height: calc(100vh - 85px);
  background: url("/assets/images/Frames/side-nav-royal.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.75;
  gap: 0;
  top: 75px;
  transform: none;
}
.side-widgets-left::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  margin: auto;
  height: 100%;
  width: 94%;
  border-radius: 20px;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.94),
    rgba(0, 0, 0, 0.34),
    rgba(0, 0, 0, 0.94)
  );
  z-index: 1;
}
.side-widgets-left .snav-logo-area {
  margin: 0px auto;
  width: 90%;
  height: 24.3%;
  z-index: 2;
}
.side-widgets-left .snav-logo-img {
  margin: 20px auto;
  width: 100px;
  height: 100px;
  background: url("/assets/images/logo-nest.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
}
.side-widgets-left .snav-logo-txt {
  position: relative;
  top: -20px;
  width: fit-content;
  margin: auto;
  text-align: center;
  line-height: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: end;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1)
  );
  border-radius: 60px;
  backdrop-filter: blur(24px);
  padding: 5px 5px 3px 15px;
  box-shadow:
    inset 0 0 10px rgb(19, 1, 1),
    inset 0 0 20px rgb(51, 1, 1);
}

@keyframes logo-ember-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.side-widgets-left .snav-logo-txt .logo-maple,
.side-widgets-left .snav-logo-txt .logo-nest {
  display: block;
  text-align: center;
  background: linear-gradient(
    135deg,
    #9e2500 5%,
    #f07000 18%,
    #f5d182 38%,
    #aa882b 100%
  );
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /*animation: logo-ember-shimmer 5s ease-in-out infinite;*/
  filter: drop-shadow(0 0 6px rgba(14, 4, 0, 0.7))
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
}

.side-widgets-left .snav-logo-txt .logo-maple {
  font-family: "Rajdhani", "Cairo", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation-delay: 0s;
}

.side-widgets-left .snav-logo-txt .logo-nest {
  font-family: "Rajdhani", "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation-delay: -2.5s;
  margin-left: 3px;
  margin-bottom: 1px;
  opacity: 0.688;
}

.side-widgets-left .snav-nav-links {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-start;
  align-items: center;
  z-index: 2;
  padding: 10px 0;
}
.side-widgets-left .snav-link-txt {
  font-size: 13px;
}
.side-widgets-left .snav-bottom-action {
  height: 10%;
  width: 80%;
  margin: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
}
.side-widgets-left .snav-bottom-action a {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(100, 6, 6, 0.35);
  color: rgba(200, 180, 180, 0.55);
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.side-widgets-left .snav-bottom-action a:hover {
  color: rgba(230, 180, 140, 0.95);
  border-color: rgba(180, 90, 30, 0.65);
  background: linear-gradient(
    135deg,
    rgba(80, 15, 5, 0.6),
    rgba(20, 5, 0, 0.7)
  );
  box-shadow:
    0 0 10px rgba(200, 80, 20, 0.25),
    inset 0 0 8px rgba(10, 0, 0, 0.6);
}
.side-widgets-left .snav-bottom-action a.active {
  color: rgba(212, 129, 96, 0.85);
  border-color: rgba(140, 60, 10, 0.7);
  background: linear-gradient(
    135deg,
    rgba(80, 15, 5, 0.5),
    rgba(20, 5, 0, 0.6)
  );
}

/* Fullscreen hint modal key badges */
.fs-hint-key {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(180, 90, 30, 0.4);
  color: rgba(160, 160, 160, 0.856);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.fs-hint-sep {
  align-self: center;
  font-size: 0.78rem;
  color: rgba(196, 196, 196, 0.9);
}

/* Fullscreen hint modal — no external backdrop, modal itself is the dim layer */
.modal-backdrop {
  background-color: #000;
  z-index: 999990;
}
.modal-backdrop.show {
  opacity: 0.7;
}
#fsHintModal.modal {
  z-index: 999995;
  background: rgba(0, 0, 0, 0.65);
}
#fsHintModal.modal.show {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fs-hint-content {
  min-width: 320px !important;
  background: rgba(5, 5, 10, 0.05);
  border: 1px solid rgba(180, 90, 30, 0.45);
  border-radius: 14px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(180, 90, 30, 0.15);
  color: var(--text);
}
.fs-hint-content .modal-title {
  color: rgba(211, 210, 210, 1);
}
.fs-hint-content .modal-body {
  color: rgba(168, 168, 168, 0.54);
  font-size: 0.8rem;
}

.side-widgets-right {
  right: 15px;
  border-left: 1px solid rgba(196, 104, 29, 0.386);
  border-right: 1px solid rgba(196, 104, 29, 0.386);
  padding: 10px 5px;
  border-radius: 10px;
  background: linear-gradient(
    to bottom,
    rgba(4, 14, 34, 0.163),
    rgba(3, 5, 7, 0.763),
    rgba(4, 14, 34, 0.163)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.side-widgets-right::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -1px;
  right: -1px;
  height: 35px;
  width: 75%;
  margin: auto;
  border-top: 1px solid rgb(214, 117, 38);
  background: linear-gradient(to bottom, rgba(3, 5, 7, 0.763) 20%, transparent);
  border-radius: 100%;
}
.side-widgets-right::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: -1px;
  right: -1px;
  height: 35px;
  width: 80%;
  margin: auto;
  border-bottom: 1px solid rgb(214, 117, 38);
  background: linear-gradient(to top, rgba(3, 5, 7, 0.763) 20%, transparent);
  border-radius: 100%;
}
.side-widgets-right .nav-diamond {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 14px;
  height: 17px;
  background-image: url("/assets/images/icons/crown-diamond.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
}
.side-widgets-right .nav-diamond.top {
  top: -22px;
}
.side-widgets-right .nav-diamond.bottom {
  bottom: -22px;
  z-index: 100;
}

@media (max-width: 767px) {
  .side-widgets {
    display: none;
  }
}

.sw-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(100, 6, 6, 0.42);
  background: rgba(255, 255, 255, 00);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(211, 211, 211, 0.644);
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    height var(--transition),
    width var(--transition);
}
.side-widgets-left .sw-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  width: 140px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(100, 6, 6, 0.42);
  background: rgba(255, 255, 255, 00);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(211, 211, 211, 0.644);
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  margin: 8px auto;
  padding: 5px 5px 5px 20px;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    height var(--transition),
    width var(--transition);
}

.side-widgets-left .sw-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -3px;
  top: -3px;
  transform: rotate(-90deg);
  border-radius: 10px;
  padding: 1px;
  width: 35px;
  height: 35px;
  background: url("/assets/images/Frames/royal-frame-corner.png");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 20;
  transition: opacity var(--transition);
}
.sw-btn:hover,
.sw-btn.active {
  background: linear-gradient(
    to bottom right,
    rgba(56, 11, 20, 0.788) 0%,
    rgba(14, 0, 0, 0.705) 50%,
    rgba(116, 23, 23, 0.788)
  );
  border-color: rgba(83, 43, 6, 0.842);
  color: rgb(219, 200, 200);
  box-shadow:
    0px 10px 14px rgba(5, 0, 8, 1),
    inset 0 0 25px rgba(11, 0, 14, 1);
  backdrop-filter: blur(12px);
}
.sw-btn:hover::after {
  opacity: 0.5;
}
.sw-btn.active {
  height: 53px;
  width: 145px;
}
.sw-btn.active i {
  color: rgba(212, 129, 96, 0.685);
}
.sw-btn.active::after {
  opacity: 0.8;
}
/* ─── Right Side Widgets – Diamond Gradient-Border Style ── */
.side-widgets-right .sw-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin: 5px 5px;
  border: none;
  transform: rotate(45deg);
  background: linear-gradient(
    145deg,
    rgba(155, 118, 247, 0.13) 0%,
    rgba(5, 8, 18, 0.82) 55%,
    rgba(64, 189, 219, 0.09) 100%
  );
  color: rgba(199, 154, 218, 0.72);
}

.side-widgets-right .sw-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(to bottom right, #9b76f723 0%, #b85bd4e5 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

/* Keep icon upright inside the rotated diamond */
.side-widgets-right .sw-btn > i,
.side-widgets-right .sw-btn > img.sw-img-icon {
  transform: rotate(-45deg);
  display: block;
}

/* Counter-rotate tooltip so text stays readable */
.side-widgets-right .sw-btn .sw-tooltip {
  transform: translateY(100%) rotate(-45deg);
  right: calc(50% + 20px);
}

.side-widgets-right .sw-btn:hover,
.side-widgets-right .sw-btn.active {
  transform: rotate(45deg) scale(1.05);
  box-shadow:
    0 0 24px -8px rgba(40, 95, 196, 0.52),
    0 0 12px rgba(152, 32, 232, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.side-widgets-right .sw-btn:hover::before,
.side-widgets-right .sw-btn.active::before {
  opacity: 1;
}

/* ── Even-order widgets: warm amber / orange palette ── */
.side-widgets-right .sw-btn.sw-alt {
  background: linear-gradient(
    145deg,
    rgba(196, 101, 40, 0.14) 0%,
    rgba(5, 8, 18, 0.82) 55%,
    rgba(232, 160, 32, 0.09) 100%
  );
  color: rgba(247, 226, 187, 0.75);
}

.side-widgets-right .sw-btn.sw-alt::before {
  background: linear-gradient(to bottom right, #9b76f723 0%, #d48b5be5 100%);
}

.side-widgets-right .sw-btn.sw-alt:hover,
.side-widgets-right .sw-btn.sw-alt.active {
  color: #ffdba0;
  transform: rotate(45deg) scale(1.1);
  box-shadow:
    0 0 24px -12px rgba(196, 101, 40, 0.52),
    0 0 12px rgba(232, 160, 32, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sw-tooltip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-family: "Cairo", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 10;
}

.side-widgets-left .sw-tooltip {
  left: calc(100% + 10px);
}
.side-widgets-right .sw-tooltip {
  right: calc(100% + 10px);
}

/* ─── Override: hide legacy sidebar, topbar & clock widget ───── */
.sidebar {
  display: none !important;
}
.topbar {
  display: none !important;
}
#time-widget {
  display: none !important;
}
.app-wrapper {
  display: contents;
}
.main-content {
  padding: 0 !important;
  margin-left: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOSS PARTIES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section header ──────────────────────────────────────────────────────── */
.parties-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--maple-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

/* ── Create-party card ──────────────────────────────────────────────────── */
.party-create-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 530px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  cursor: default;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.party-create-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.party-create-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.party-create-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(95, 95, 95, 0.171) 10%,
    rgb(3, 1, 0.75) 100%
  );

  box-shadow: inset 0 0 40px -5px rgb(24, 0, 10);
  z-index: 1;
}
.party-create-card .card-body-inner {
  position: relative;
  z-index: 2;
  margin-top: auto;
  text-align: center;
  padding: 1.5rem 1.5rem 1.6rem;
}
/* headline & sub inside create card */
.party-create-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.party-create-sub {
  font-size: 0.85rem;
  color: rgba(223, 233, 250, 0.78);
  margin-bottom: 1.15rem;
  line-height: 1.55;
}
/* blue create button */
.btn-party-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;

  background-image: none !important;
  background: linear-gradient(
    to bottom,
    #43c7dc 0%,
    #34a9c5 65%,
    #43c7dc 100%
  ) !important;

  color: #e9ffff;
  font-weight: 700;

  padding: 8px 28px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 80, 110, 0.35),
    0 3px 5px #263c42,
    0 5px 10px rgba(0, 0, 0, 0.35);

  text-shadow: 0 1px 1px rgba(0, 80, 100, 0.8);

  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
  width: fit-content;
}
.btn-party-create:hover {
  filter: brightness(1.08);
}
.btn-party-create:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(0, 60, 80, 0.35),
    0 1px 0 #1f667c;
}
.btn-party-create-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 220, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(200, 220, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: fit-content;
  margin-top: 0.45rem;
}
.btn-party-create-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
/* form fields inside create card */
.party-create-card .form-control,
.party-create-card .form-select {
  background: rgba(10, 34, 45, 0.65) !important;
  border-color: rgba(220, 155, 80, 0.35) !important;
  color: #fff7e8 !important;
  font-size: 0.82rem;
}
.party-create-card .form-control::placeholder {
  color: rgba(201, 175, 141, 0.658) !important;
}
.party-create-card .form-control:focus,
.party-create-card .form-select:focus {
  box-shadow: 0 0 0 2px rgba(196, 142, 26, 0.35) !important;
  border-color: rgba(196, 94, 26, 0.4) !important;
  outline: none;
}

/* ── Party card (existing parties) ─────────────────────────────────────── */
.party-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.party-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.party-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.party-card .card-content {
  position: relative;
  z-index: 1;
}

/* Collapsed header */
.party-card .party-card-header {
  padding: 1rem 1.2rem 0.85rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.party-card .party-card-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.party-card .party-card-title {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-card .party-schedule-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  white-space: nowrap;
}
.party-card .party-card-body {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Expand toggle chevron */
.party-card .party-toggle-icon {
  transition: transform 0.25s;
  color: var(--text-muted);
}
.party-card.expanded .party-toggle-icon {
  transform: rotate(180deg);
}

/* ── Boss thumbnail ──────────────────────────────────────────────────────── */
.boss-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.boss-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* ── Member tags ─────────────────────────────────────────────────────────── */
.party-members-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.party-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.15s;
}
.party-member-tag.is-creator {
  border-color: var(--gold);
  color: var(--gold);
}
.party-member-tag .remove-member-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.party-member-tag .remove-member-btn:hover {
  color: #e55;
}

/* ── Invite token box ────────────────────────────────────────────────────── */
.invite-token-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  word-break: break-all;
}

/* ── Session / activity ─────────────────────────────────────────────────── */
.party-activity-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}
.party-activity-table th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}
.party-activity-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.party-activity-table tr:last-child td {
  border-bottom: none;
}
.session-member-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 500;
}
.session-chip.done {
  background: rgba(40, 200, 100, 0.15);
  border: 1px solid rgba(40, 200, 100, 0.3);
  color: #4cd979;
}
.session-chip.missed {
  background: rgba(220, 60, 60, 0.15);
  border: 1px solid rgba(220, 60, 60, 0.3);
  color: #e06060;
}

/* ── Activity session cards (Phase 6) ───────────────────────────────────── */
.pa-session-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pa-session-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.pa-session-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.pa-session-date {
  font-size: 0.78rem;
  color: rgba(190, 205, 245, 0.7);
  font-weight: 600;
  white-space: nowrap;
}
.pa-session-badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pa-badge-done {
  background: rgba(40, 200, 100, 0.18);
  color: #5dda8a;
  border: 1px solid rgba(40, 200, 100, 0.3);
}
.pa-badge-partial {
  background: rgba(200, 160, 30, 0.18);
  color: #e0c44a;
  border: 1px solid rgba(200, 160, 30, 0.3);
}
.pa-badge-failed {
  background: rgba(220, 60, 60, 0.15);
  color: #e06060;
  border: 1px solid rgba(220, 60, 60, 0.25);
}
.pa-session-members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.pa-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.pa-member-chip.done {
  background: rgba(40, 200, 100, 0.13);
  border-color: rgba(40, 200, 100, 0.28);
  color: #5dda8a;
}
.pa-member-chip.miss {
  background: rgba(220, 60, 60, 0.12);
  border-color: rgba(220, 60, 60, 0.25);
  color: #e06060;
}
.pa-member-chip .bi {
  font-size: 0.68rem;
}
.pa-guest-chip {
  opacity: 0.88;
}
.pa-session-notes {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: rgba(190, 205, 245, 0.55);
  font-style: italic;
}

/* ── Boss group row (Phase 3 modal) ─────────────────────────────────────── */
.bc-boss-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bc-boss-group-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.bc-boss-group-row:hover {
  background: rgba(120, 160, 255, 0.1);
  border-color: rgba(120, 160, 255, 0.25);
}
.bc-boss-group-row.selected {
  background: rgba(80, 130, 255, 0.2);
  border-color: rgba(100, 160, 255, 0.5);
}
.bc-bgr-thumb {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.bc-bgr-name {
  flex: 1;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(215, 228, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-bgr-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}
.bc-bgr-diff,
.bc-bgr-size {
  font-size: 0.75rem;
  background: rgba(10, 15, 35, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(200, 215, 255, 0.85);
  padding: 0.18rem 0.4rem;
  cursor: pointer;
}
.bc-bgr-diff {
  min-width: 90px;
}
.bc-bgr-size {
  min-width: 94px;
}

/* ── Add Character button (beside crystal stats) ────────────────────────── */
.bc-add-char-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.9rem;
  background: rgba(80, 130, 255, 0.15);
  border: 1px solid rgba(100, 160, 255, 0.3);
  border-radius: 14px;
  color: rgba(180, 210, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  flex-shrink: 0;
}
.bc-add-char-btn:hover {
  background: rgba(80, 130, 255, 0.28);
  border-color: rgba(120, 175, 255, 0.55);
  color: #fff;
}

/* ── Add Character modal layout ─────────────────────────────────────────── */
.bc-add-modal-inner {
  padding: 1.5rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bc-modal-field-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(180, 195, 235, 0.65);
  margin-bottom: 0.3rem;
}
.bc-modal-char-select {
  width: 100%;
  background: rgba(10, 15, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(210, 225, 255, 0.9);
  border-radius: 8px;
  padding: 0.38rem 0.6rem;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}
.bc-modal-char-select:focus {
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(80, 120, 255, 0.15);
}
.bc-modal-char-select option {
  background: #0e1230;
  color: rgba(210, 225, 255, 0.9);
}
.bc-modal-filter {
  width: 100%;
  background: rgba(10, 15, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(210, 225, 255, 0.9);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  outline: none;
}
.bc-modal-filter::placeholder {
  color: rgba(180, 195, 235, 0.35);
}
.bc-modal-filter:focus {
  border-color: rgba(120, 160, 255, 0.35);
}
.bc-add-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.bc-modal-daily-monthly {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.bc-modal-daily-monthly > .bc-modal-section {
  min-width: 150px;
  margin-bottom: 0;
}
.bc-modal-section {
  margin-bottom: 1.1rem;
}
.bc-modal-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(190, 205, 245, 0.5);
  margin-bottom: 0.6rem;
}

/* ── Vertical boss card grid ─────────────────────────────────────────────── */
.bc-boss-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}
.bc-boss-grid--scroll {
  padding-right: 0.25rem;
}
.bc-boss-v-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.bc-boss-v-card:hover {
  background: rgba(120, 160, 255, 0.1);
  border-color: rgba(120, 160, 255, 0.25);
}
.bc-boss-v-card.selected {
  background: rgba(80, 130, 255, 0.22);
  border-color: rgba(100, 160, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(100, 160, 255, 0.35);
}
.bc-boss-v-card.selected::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: rgba(100, 160, 255, 0.9)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/10px no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
  pointer-events: none;
}
.bc-boss-v-card {
  position: relative;
}
.bc-bvc-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.bc-bvc-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(210, 225, 255, 0.9);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-bvc-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bc-bvc-controls .bc-bgr-diff,
.bc-bvc-controls .bc-bgr-size {
  width: 100%;
  min-width: unset;
  font-size: 0.7rem;
}
.bc-edit-panel .bc-bgr-diff option {
  background: rgba(10, 15, 35, 0.65);
  border-radius: 10px;
}

/* ── Edit party panel (Phase 4) ─────────────────────────────────────────── */
.party-edit-panel {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}
.party-edit-panel .form-control,
.party-edit-panel .form-select {
  background: rgba(10, 15, 35, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.8rem;
}

/* ── Guest section in mark session modal (Phase 5) ──────────────────────── */
.guest-section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.75rem;
}
.guest-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.btn-xs {
  padding: 0.18rem 0.55rem;
  font-size: 0.73rem;
  border-radius: 7px;
}
.guest-add-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin-top: 0.45rem;
  position: relative;
}
.guest-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1f38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.gsr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: rgba(200, 215, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gsr-item:last-child {
  border-bottom: none;
}
.gsr-item:hover {
  background: rgba(100, 150, 255, 0.15);
}
.gsr-name {
  font-weight: 600;
}
.gsr-meta {
  font-size: 0.72rem;
  color: rgba(160, 180, 230, 0.5);
}
.guest-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem;
  border-radius: 7px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0.25rem;
}
.guest-type-badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.guest-type-badge.in-sys {
  background: rgba(80, 180, 255, 0.18);
  color: #60b4ff;
}
.guest-type-badge.ext {
  background: rgba(180, 120, 255, 0.18);
  color: #c890ff;
}
.guest-row-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(210, 225, 255, 0.85);
}
.guest-row-status {
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}
.guest-row-status.done {
  color: #5dda8a;
}
.guest-row-status.miss {
  color: #e06060;
}
.guest-remove-btn {
  background: none;
  border: none;
  color: rgba(200, 60, 60, 0.7);
  cursor: pointer;
  padding: 0 0.2rem;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.guest-remove-btn:hover {
  color: #e06060;
}

/* ── Join party form ─────────────────────────────────────────────────────── */
.join-party-card {
  background: var(--bg-panel);
  border: 1px dashed var(--border-color);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
}

/* ── Action buttons strip ────────────────────────────────────────────────── */
.party-actions-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.party-actions-strip .btn {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

/* ── Responsive grid ─────────────────────────────────────────────────────── */
.parties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 575px) {
  .parties-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Time input icon color fix (browser) ──────────────────────────────────── */
.party-create-card input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.1);
  cursor: pointer;
}

/* ── Custom time picker ───────────────────────────────────────────────────── */
.party-time-picker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  background: rgba(10, 20, 45, 0.65);
  border: 1px solid rgba(80, 130, 220, 0.35);
  border-radius: 10px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.party-time-picker:focus-within {
  border-color: rgba(26, 111, 196, 0.7);
  box-shadow: 0 0 0 2px rgba(26, 111, 196, 0.25);
}
.party-time-icon {
  color: #fff7e8;
  font-size: 1rem;
  flex-shrink: 0;
}
.party-time-display {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff7e8;
  letter-spacing: 0.04em;
  min-width: 3.2rem;
  text-align: center;
}
.party-time-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.party-time-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}
.party-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.party-time-colon {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.5);
  padding-bottom: 2px;
}
.ptc-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(80, 130, 220, 0.25);
  border-radius: 6px;
  color: #fff7e8;
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
  padding: 0;
}
.ptc-btn:hover {
  background: rgba(26, 111, 196, 0.35);
  border-color: rgba(26, 111, 196, 0.6);
}
.ptc-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff7e8;
  min-width: 1.6rem;
  text-align: center;
  padding: 1px 0;
}

/* ── Searchable boss dropdown ─────────────────────────────────────────────── */
.boss-search-wrap {
  position: relative;
}
.boss-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.6rem 0.32rem 0.45rem;
  background: rgba(10, 34, 45, 0.65) !important;
  border-color: rgba(220, 155, 80, 0.35) !important;
  color: #fff7e8 !important;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 31px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  user-select: none;
}
.boss-search-trigger:hover {
  box-shadow: 0 0 0 2px rgba(196, 142, 26, 0.35) !important;
  border-color: rgba(196, 94, 26, 0.4) !important;
  outline: none;
}
.boss-search-thumb {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  color: rgba(200, 220, 255, 0.6);
  font-size: 0.9rem;
}
.boss-si-thumb-sm {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.boss-search-label {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(201, 175, 141, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boss-search-label.selected {
  color: #e8eeff;
}
.boss-search-chevron {
  font-size: 0.7rem;
  color: rgba(200, 220, 255, 0.5);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.boss-search-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #213b50c9;
  border: 1px solid rgba(80, 130, 220, 0.4);
  border-radius: 10px;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.boss-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(80, 130, 220, 0.2);
  color: rgba(200, 220, 255, 0.5);
  font-size: 0.82rem;
}
.boss-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8eeff;
  font-size: 0.82rem;
}
.boss-search-input-wrap input::placeholder {
  color: rgba(200, 220, 255, 0.35);
}
.boss-search-list {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 130, 220, 0.3) transparent;
}
.boss-search-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: background 0.12s;
}
.boss-search-item:hover {
  background: rgba(26, 111, 196, 0.18);
}
.boss-si-thumb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.boss-si-fallback {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: rgba(200, 220, 255, 0.45);
  font-size: 0.9rem;
}
.boss-si-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.boss-si-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8eeff;
}
.boss-si-diff {
  font-size: 0.7rem;
  color: rgba(200, 220, 255, 0.5);
}

/* ── Time input icon color fix (browser) ──────────────────────────────────── */
.party-create-card input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.1);
  cursor: pointer;
}

/* ── Custom time picker ───────────────────────────────────────────────────── */
.party-time-picker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(80, 130, 220, 0.35);
  background: rgba(10, 34, 45, 0.65) !important;
  border-color: rgba(220, 155, 80, 0.35) !important;
  color: #fff7e8 !important;
  border-radius: 10px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.party-time-picker:focus-within {
  border-color: rgba(26, 111, 196, 0.7);
  box-shadow: 0 0 0 2px rgba(26, 111, 196, 0.25);
}
.party-time-icon {
  color: #fff7e8;
  font-size: 1rem;
  flex-shrink: 0;
}
.party-time-display {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff7e8;
  letter-spacing: 0.04em;
  min-width: 3.2rem;
  text-align: center;
}
.party-time-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.party-time-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}
.party-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.party-time-colon {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(200, 220, 255, 0.5);
  padding-bottom: 2px;
}
.ptc-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(80, 130, 220, 0.25);
  border-radius: 6px;
  color: #fff7e8;
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s;
  padding: 0;
}
.ptc-btn:hover {
  background: rgba(26, 111, 196, 0.35);
  border-color: rgba(26, 111, 196, 0.6);
}
.ptc-val {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff7e8;
  min-width: 1.6rem;
  text-align: center;
  padding: 1px 0;
}

/* ── Searchable boss dropdown ─────────────────────────────────────────────── */
.boss-search-wrap {
  position: relative;
}
.boss-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.6rem 0.32rem 0.45rem;
  border: 1px solid rgba(80, 130, 220, 0.35);
  border-radius: 6px;
  cursor: pointer;
  min-height: 31px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  user-select: none;
}
.boss-search-trigger:hover {
  border-color: rgba(26, 111, 196, 0.6);
}
.boss-search-thumb {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  color: rgba(200, 220, 255, 0.6);
  font-size: 0.9rem;
}
.boss-si-thumb-sm {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.boss-search-label {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(201, 175, 141, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boss-search-label.selected {
  color: #e8eeff;
}
.boss-search-chevron {
  font-size: 0.7rem;
  color: rgba(200, 220, 255, 0.5);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.boss-search-panel {
  width: auto;
  min-width: 100%;
  max-width: 100%;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #182e33fa;
  border: 1px solid rgba(80, 130, 220, 0.4);
  border-radius: 10px;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}
.boss-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(80, 130, 220, 0.2);
  color: rgba(200, 220, 255, 0.5);
  font-size: 0.82rem;
}
.boss-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e8eeff;
  font-size: 0.82rem;
}
.boss-search-input-wrap input::placeholder {
  color: rgba(200, 220, 255, 0.35);
}
.boss-search-list {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 130, 220, 0.3) transparent;
}
.boss-search-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  min-width: fit-content;
  transition: background 0.12s;
}
.boss-search-item:hover {
  background: rgba(26, 111, 196, 0.18);
}
.boss-si-thumb {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.boss-si-fallback {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: rgba(200, 220, 255, 0.45);
  font-size: 0.9rem;
}
.boss-si-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.boss-si-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8eeff;
}
.boss-si-diff {
  font-size: 0.7rem;
  color: rgba(200, 220, 255, 0.5);
}

/* ── AM/PM toggle button ─────────────────────────────────────────────────── */
.ptc-ampm {
  width: auto;
  padding: 0 8px;
  height: 48px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   BOSSING DASHBOARD REDESIGN
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Outer shell ─────────────────────────────────────────────────────────── */
.bossing-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(199, 199, 199, 0.92);
}

/* ── Header row ──────────────────────────────────────────────────────────── */
.bd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.bd-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bd-reboot-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.72rem;
  color: rgba(190, 205, 245, 0.5);
  white-space: nowrap;
  user-select: none;
}
.bd-reboot-toggle input[type="checkbox"] {
  accent-color: var(--gold);
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.bd-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.bd-title-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.94));
  opacity: 0.8;
}
.bd-title-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.bd-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.bd-subtitle {
  font-size: 0.82rem;
  color: rgba(241, 241, 241, 0.65);
  margin: 0;
}

/* ── Character picker ────────────────────────────────────────────────────── */
.bd-char-picker {
  position: relative;
  margin-left: 1rem;
  align-self: center;
}
.bd-char-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  color: rgba(220, 228, 255, 0.88);
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.bd-char-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
.bd-char-btn.filtered {
  opacity: 0.75;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.bd-char-btn.filtered .bd-char-btn-name {
  opacity: 0.7;
}
.bd-char-btn.filtered .bd-char-btn-lv {
  opacity: 0.4;
}
.bd-char-btn .bi-person {
  font-size: 0.78rem;
  opacity: 0.55;
}
.bd-char-btn-name {
  font-weight: 600;
}
.bd-char-btn-lv {
  font-size: 0.66rem;
  color: rgba(190, 205, 245, 0.5);
}
.bd-char-chevron {
  font-size: 0.6rem;
  opacity: 0.45;
  transition: transform 0.2s;
  margin-left: 0.1rem;
}
.bd-char-picker.open .bd-char-chevron {
  transform: rotate(180deg);
}
.bd-char-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: rgba(10, 18, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 0.3rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.bd-char-picker.open .bd-char-dropdown {
  display: block;
}
.bd-char-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.2rem;
  border-radius: 8px;
  color: rgba(220, 228, 255, 0.78);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.12s;
}
.bd-char-opt:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.bd-char-opt.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 600;
}
.bd-char-star {
  font-size: 0.62rem;
  color: rgba(255, 215, 50, 0.38);
  width: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
}
span.bd-char-star {
  width: 0.75rem;
}
.bd-char-opt-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-char-opt-lv {
  font-size: 0.64rem;
  color: rgba(190, 205, 245, 0.42);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Separator ───────────────────────────────────────────────────────────── */
.bd-separator {
  border: 0;
  border-top: 1px solid rgb(253, 253, 253);
  margin: 0;
}

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.bd-stats {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
}
.bd-global-view-toggle {
  display: flex;
  align-items: center;
}
.heroic-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 120px;
  padding: 0 0.55rem;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f8fb;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.heroic-view-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}
.heroic-view-toggle.active {
  background: rgba(255, 172, 48, 0.18);
  border-color: rgba(255, 107, 48, 0.34);
  color: #e4f3ff;
}
.heroic-view-toggle .hvt-switch {
  position: relative;
  width: 42px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 0.2s ease;
}
.heroic-view-toggle.active .hvt-switch {
  background: rgba(58, 176, 255, 0.14);
}
.heroic-view-toggle .hvt-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: translateX(0);
  transition:
    transform 0.25s ease,
    background 0.2s ease;
}
.heroic-view-toggle.active .hvt-thumb {
  transform: translateX(22px);
}
.heroic-view-toggle .hvt-label {
  white-space: nowrap;
  font-size: 0.82rem;
}
.bd-char-btn.filtered {
  opacity: 0.72;
}
.bd-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.48rem 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s;
}
.bd-stat:hover {
  background: rgba(255, 255, 255, 0.13);
}
.bd-stat-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  width: 30px;
  height: 30px;
}
/* Upcoming Runs — warm orange */
.bd-stats .bd-stat:nth-child(1) .bd-stat-icon {
  background: rgba(255, 150, 60, 0.12);
  color: rgba(220, 228, 255, 0.7);
}
/* Daily Reset — teal-blue */
.bd-stats .bd-stat:nth-child(2) .bd-stat-icon {
  background: rgba(60, 200, 190, 0.11);
  color: rgba(220, 228, 255, 0.7);
}
/* Weekly Reset — soft purple */
.bd-stats .bd-stat:nth-child(3) .bd-stat-icon {
  background: rgba(160, 100, 255, 0.11);
  color: rgba(220, 228, 255, 0.7);
}
/* Monthly Reset — maple green */
.bd-stats .bd-stat:nth-child(4) .bd-stat-icon {
  background: rgba(60, 200, 100, 0.11);
  color: rgba(220, 228, 255, 0.7);
}
.bd-stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bd-stat-lbl {
  font-size: 0.62rem;
  color: rgba(190, 205, 245, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.bd-stat-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(220, 228, 255, 0.9);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ── Two-column body ─────────────────────────────────────────────────────── */
.bd-body {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.bd-left {
  width: 350px;
  flex-shrink: 0;
}
.bd-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ── Section containers ──────────────────────────────────────────────────── */
.bd-section {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bd-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bd-sec-bi-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.bd-sec-head-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.bd-sec-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(160, 120, 255, 0.35));
}
.bd-sec-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.bd-sec-sub {
  font-size: 0.74rem;
  color: rgba(rgba(253, 253, 253, 0.575));
  display: block;
  margin-top: 2px;
}
.bd-view-all {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.bd-view-all:hover {
  text-decoration: underline;
}

/* ── Search / filter / sort controls ────────────────────────────────────── */
.bd-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.bd-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  padding: 0.38rem 0.75rem;
  flex: 1;
  min-width: 160px;
  color: rgba(190, 205, 245, 0.6);
  font-size: 0.82rem;
}
.bd-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(220, 228, 255, 0.9);
  font-size: 0.82rem;
}
.bd-search-wrap input::placeholder {
  color: rgba(180, 200, 240, 0.35);
}
.bd-ctrl-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: rgba(190, 205, 245, 0.75);
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bd-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #e8eeff;
}
.bd-sort-wrap {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: rgba(190, 205, 245, 0.75);
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
}
.bd-sort-wrap option {
  background: #1a2a3f;
}

/* ── Active Parties Slider ───────────────────────────────────────────────── */
.bd-slider {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.bd-slider:active {
  cursor: grabbing;
}
.bd-slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 1px 0;
}
.bd-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bd-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition:
    width 0.3s ease,
    background 0.3s ease;
  flex-shrink: 0;
}
.bd-slider-dot.active {
  width: 22px;
  background: rgba(255, 255, 255, 0.85);
}
.bd-slider-dots-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

/* ── Action Cards ────────────────────────────────────────────────────────── */
.bd-action-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.bd-action-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(248, 248, 248, 0.35);
  background: rgba(141, 144, 151, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 2px 0 rgba(255, 234, 140, 0);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  width: 30%;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bd-action-card:hover {
  box-shadow:
    0 0 15px -3px rgba(55, 63, 104, 0.58),
    0 8px 15px -5px rgba(0, 0, 0, 0.95);
}
.bd-action-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  z-index: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.bd-action-card:hover .bd-action-bg {
  opacity: 0.9;
  transform: scale(1.1);
}
.bd-action-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(34, 56, 82, 0.75) 30%,
    rgba(109, 146, 163, 0.275) 100%
  );
}
.bd-action-label {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
@media (max-width: 600px) {
  .bd-action-row {
    flex-direction: column;
  }
  .bd-action-card {
    width: 100%;
    max-width: 100%;
  }
}

/* ── Upcoming Schedule & Activity ────────────────────────────────────────── */
.bd-schedule-activity {
  backdrop-filter: blur(8px);
  background: linear-gradient(
    to bottom right,
    rgba(3, 28, 66, 0.35),
    rgba(255, 162, 100, 0.25)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  max-height: 200px;
  display: flex;
  flex-direction: column;
}
.bsa-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.bsa-sub {
  font-size: 0.76rem;
  color: rgba(190, 205, 245, 0.45);
  margin-bottom: 1.1rem;
}
.bsa-body {
  display: flex;
  gap: 0;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.bsa-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.bsa-col::-webkit-scrollbar {
  display: none;
}
.bsa-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 1.5rem;
  flex-shrink: 0;
}
.bsa-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(238, 240, 243, 0.63);
  margin-bottom: 0.6rem;
}
.bsa-empty {
  font-size: 0.78rem;
  color: rgba(190, 205, 245, 0.3);
  padding: 0.5rem 0;
}
/* Upcoming runs rows */
.bsa-run-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bsa-run-row:last-child {
  border-bottom: none;
}
.bsa-run-thumb {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.bsa-run-name {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(220, 228, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bsa-run-sched {
  font-size: 0.75rem;
  color: rgba(190, 205, 245, 0.7);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Activity feed rows */
.bsa-act-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bsa-act-row:last-child {
  border-bottom: none;
}
.bsa-act-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: rgba(190, 205, 245, 0.5);
  margin-top: 1px;
}
.bsa-act-text {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  color: rgba(190, 205, 245, 0.6);
  line-height: 1.4;
}
.bsa-act-name {
  font-weight: 600;
  color: rgba(220, 228, 255, 0.85);
}
.bsa-act-party {
  font-weight: 600;
  color: rgba(220, 228, 255, 0.75);
}
.bsa-act-meta {
  display: block;
  font-size: 0.68rem;
  color: rgba(190, 205, 245, 0.35);
  margin-top: 1px;
}
.bsa-act-time {
  font-size: 0.68rem;
  color: rgba(190, 205, 245, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Runs History table ───────────────────────────────────────────────────── */
.rh-table {
  color: rgba(220, 228, 255, 0.85);
  font-size: 0.78rem;
}
.rh-table thead th {
  color: rgba(190, 205, 245, 0.5);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0.6rem;
}
.rh-table tbody td {
  border-color: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
}
.rh-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.66rem;
  font-weight: 600;
}
.rh-pill-completed {
  background: rgba(34, 197, 94, 0.12);
  color: rgba(134, 239, 172, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.rh-pill-missed {
  background: rgba(251, 146, 60, 0.1);
  color: rgba(251, 146, 60, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.2);
}
.rh-pill-failed {
  background: rgba(239, 68, 68, 0.1);
  color: rgba(252, 165, 165, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Featured party card ─────────────────────────────────────────────────── */
.bd-featured-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(248, 200, 120, 0.45);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.47999),
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.47999)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 2px 0 rgba(255, 234, 140, 0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 100;
}
.bd-featured-card:hover {
  box-shadow:
    0 0 15px -3px rgba(55, 63, 104, 0.58),
    0 8px 15px -5px rgba(0, 0, 0, 0.95);
}
.bd-featured-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  transition: 0.5s;
}
.bd-featured-card:hover .card-bg {
  opacity: 0.15;
  transform: scale(1.1);
}
.bfc-inner {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 0rem;
}

/* header row */
.bfc-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bfc-header-hr {
  border: none;
  height: 1px;
  width: 100%;
  margin: 0 auto 0.8rem;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 1),
    transparent
  );
}
.bfc-head-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.bfc-inline-sched {
  font-size: 0.69rem;
  color: rgba(220, 228, 255, 0.72);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.bfc-sched-sep {
  margin: 0 0.28rem;
  color: rgba(220, 228, 255, 0.4);
  font-size: 0.65rem;
}
.bfc-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.bfc-head-info {
  flex: 1;
  min-width: 0;
}
.bfc-party-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bfc-boss-line {
  font-size: 0.74rem;
  color: rgba(190, 205, 245, 0.65);
  margin-top: 2px;
}
.bfc-status-pill {
  position: absolute;
  top: 0.85rem;
  right: 1.3rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(60, 200, 100, 0.12);
  border: 1px solid rgba(60, 200, 100, 0.35);
  color: #4cd97a;
  white-space: nowrap;
  flex-shrink: 0;
}
.bfc-status-pill.pill-done {
  background: rgba(60, 200, 100, 0.12);
  border-color: rgba(60, 200, 100, 0.35);
  color: #4cd97a;
}
.bfc-status-pill.pill-failed {
  background: rgba(220, 60, 60, 0.14);
  border-color: rgba(220, 60, 60, 0.4);
  color: #f07070;
}
.bfc-status-pill.pill-missed {
  background: rgba(220, 140, 30, 0.14);
  border-color: rgba(220, 140, 30, 0.4);
  color: #f0a840;
}
.bfc-status-pill.run-pill-soon,
.bfc-status-pill.run-pill-soon-hours {
  background: rgba(240, 200, 40, 0.12);
  border-color: rgba(240, 200, 40, 0.4);
  color: #f0cc40;
}
.bfc-status-pill.run-pill-ready {
  background: rgba(60, 200, 100, 0.12);
  border-color: rgba(60, 200, 100, 0.35);
  color: #4cd97a;
}
.bfc-status-pill.pill-setup {
  background: rgba(140, 100, 255, 0.14);
  border-color: rgba(160, 120, 255, 0.4);
  color: #b090ff;
}
.bfc-sched-unset {
  color: rgba(180, 195, 235, 0.4);
  font-style: italic;
}
.bc-edit-section {
  margin-bottom: 1rem;
}

/* ── Section A icon ─────────────────────────────────────────────────────── */
.bd-sec-icon-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}
.bd-sec-icon-wrap > .bi-shield-shaded {
  font-size: 1.25rem;
  color: rgba(180, 200, 255, 0.35);
}
.bd-sec-icon-badge {
  position: absolute;
  bottom: 3px;
  right: 2px;
  font-size: 0.55rem;
  color: rgba(220, 228, 255, 0.75);
  line-height: 1;
}

/* stats row */
.bfc-stats {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.7rem;
}
.bfc-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}
.bfc-stat-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background: rgba(190, 205, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: rgba(190, 205, 245, 0.55);
}
.bfc-stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bfc-stat-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(220, 228, 255, 0.85);
  line-height: 1.2;
}
.bfc-stat-lbl {
  font-size: 0.62rem;
  color: rgba(190, 205, 245, 0.45);
  line-height: 1.2;
}

/* avatars */
.bfc-avatars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.bfc-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(188, 195, 212, 0.55),
    rgba(56, 74, 99, 0.45)
  );
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e8eeff;
  flex-shrink: 0;
  overflow: hidden;
}
.bfc-avatar.bfc-avatar-icon {
  background: rgba(10, 15, 35, 0.75);
}
.bfc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
}
.bfc-avatar-empty {
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.12);
}
.bfc-avatar-open {
  background: rgba(19, 19, 19, 0.76);
  border-color: rgba(170, 170, 170, 0.28);
  color: rgba(255, 255, 255, 0.35);
  opacity: 0.55;
}
.bfc-avatar-disabled {
  background: rgba(220, 226, 235, 0.06);
  border-color: rgba(125, 129, 133, 0.25);
  color: rgba(255, 255, 255, 0.25);
}
.bfc-avatar-disabled i,
.bfc-avatar-open i {
  font-size: 1.1rem;
}
.bfc-avatar-more {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(190, 205, 245, 0.7);
}

/* ── Member avatar tooltip ───────────────────────────────────────────────── */
.bfc-tooltip .tooltip-inner {
  background: rgba(8, 14, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  text-align: left;
  max-width: 200px;
}
.bfc-tooltip .tooltip-arrow::before {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.bfc-tip-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.bfc-tip-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(190, 205, 245, 0.65);
  margin-bottom: 0.18rem;
}
.bfc-tip-row .bi {
  font-size: 0.65rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.bfc-tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 210, 60, 0.85);
  background: rgba(255, 210, 60, 0.08);
  border: 1px solid rgba(255, 210, 60, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
}
.bfc-slot-tooltip .tooltip-inner {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(8, 14, 34, 0.85);
  border-radius: 6px;
  color: rgba(190, 205, 245, 0.5);
}

/* expanded body */
.bfc-body {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(220, 228, 255, 0.85);
}

/* ── Party detail modal ────────────────────────────────────────────────────────────── */
.bfc-modal-content {
  background: rgba(10, 18, 40, 0.92);
  border: 1px solid rgba(140, 160, 255, 0.3);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 30px rgba(140, 160, 255, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bfc-modal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  z-index: 0;
}
.bfc-modal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 40, 0.4) 0%,
    rgba(10, 18, 40, 0.75) 100%
  );
  z-index: 0;
}
.bfc-modal-inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.5rem;
}
.bfc-modal-close {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 228, 255, 0.7);
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  z-index: 2;
}
.bfc-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
#partyModalHeader .bfc-inner {
  padding: 0;
}
#partyModalBodyWrap .bfc-body {
  padding: 1rem 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.75rem;
}

/* ── Compact browse grid ─────────────────────────────────────────────────── */
.bd-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.bd-compact-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.bd-compact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.bcc-thumb {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}
.bcc-body {
  flex: 1;
  min-width: 0;
}
.bcc-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcc-boss {
  font-size: 0.69rem;
  color: rgba(190, 205, 245, 0.6);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcc-time {
  font-size: 0.67rem;
  color: var(--gold);
  margin-top: 3px;
}
.bcc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.bcc-members {
  font-size: 0.71rem;
  color: rgba(190, 205, 245, 0.6);
  white-space: nowrap;
}

/* ── Join panel ──────────────────────────────────────────────────────────── */
.bd-join-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bd-join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.bd-join-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bd-join-icon {
  font-size: 1.9rem;
  color: var(--gold);
  flex-shrink: 0;
}
.bd-join-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.bd-join-sub {
  font-size: 0.77rem;
  color: rgba(190, 205, 245, 0.6);
  margin-top: 2px;
}
.bd-join-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.bd-join-token-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 0.42rem 0.8rem;
  color: rgba(190, 205, 245, 0.6);
  font-size: 0.85rem;
  min-width: 200px;
}
.bd-join-token-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(220, 228, 255, 0.9);
  font-size: 0.82rem;
}
.bd-join-token-wrap input::placeholder {
  color: rgba(180, 200, 240, 0.35);
}
.bd-join-right .form-select {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(220, 228, 255, 0.9) !important;
  font-size: 0.82rem;
  min-width: 160px;
}

/* ── Tip bar ─────────────────────────────────────────────────────────────── */
.bd-tip {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(190, 205, 245, 0.55);
  padding: 0.3rem 0 0.1rem;
}
.bd-tip i {
  color: var(--gold);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.bd-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(190, 205, 245, 0.55);
  font-size: 0.84rem;
}

/* ── sw-btn image icon ───────────────────────────────────────────────────── */
.sw-img-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.7;
  transition: filter 0.2s;
}
.sw-btn:hover .sw-img-icon {
  opacity: 0.85;
}
.sw-btn.active .sw-img-icon {
  opacity: 1;
}
.mobile-menu-img-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
  filter: brightness(0.8) saturate(0.7);
}
.mobile-menu-item.active .mobile-menu-img-icon,
.mobile-menu-item:hover .mobile-menu-img-icon {
  filter: brightness(1) saturate(1.2);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .bossing-dashboard {
    height: calc(100vh - 56px);
    overflow: hidden;
  }
  .bd-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }
}
@media (max-width: 991px) {
  .bossing-dashboard {
    height: auto;
    overflow: visible;
  }
  .bd-body {
    flex-direction: column;
    flex: none;
    overflow: visible;
  }
  .bd-schedule-activity {
    flex: none;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .bsa-body {
    flex-direction: column;
    flex: none;
    height: auto;
    overflow: visible;
    gap: 0;
  }
  .bsa-divider {
    width: 100%;
    height: 1px;
    margin: 1rem 0;
  }
  .bsa-col {
    overflow-y: visible;
    max-height: none;
  }
  .bd-left {
    width: 100%;
  }
  .bd-left .party-create-card {
    max-width: 100%;
  }
  .bd-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bd-stats {
    justify-content: flex-start;
  }
}
@media (max-width: 575px) {
  .bd-compact-grid {
    grid-template-columns: 1fr;
  }
  .bd-join-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .bd-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bd-join-right {
    flex-direction: column;
    width: 100%;
  }
  .bd-join-token-wrap {
    min-width: unset;
    width: 100%;
  }
  .bd-title-icon {
    width: 40px;
    height: 40px;
  }
  .bd-title {
    font-size: 1.45rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Bossing Characters Section
   ═══════════════════════════════════════════════════════════════════════════ */

.bossing-chars-section {
  padding: 1.4rem 1.5rem 1.5rem;
}

/* Section header */
.bc-section-header {
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.bc-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(210, 225, 255, 0.95);
  letter-spacing: 0.02em;
}
.bc-section-sub {
  font-size: 0.75rem;
  color: rgba(180, 195, 235, 0.5);
  margin-top: 0.15rem;
}
.bc-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.bc-view-switch {
  display: flex;
  gap: 0.5rem;
}
.bc-view-switch .btn {
  min-width: 100px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}
.bc-crystal-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.bc-crystal-summary-item {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  padding-right: 3rem;
  min-width: 160px;
}
.bc-crystal-summary-icon {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  opacity: 0.88;
  object-fit: contain;
  pointer-events: none;
}
.bc-crystal-summary-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(180, 195, 235, 0.65);
}
.bc-crystal-summary-item strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  color: #fff;
}

/* ── Add row ──────────────────────────────────────────────────────────── */
.bc-add-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.bc-add-char-wrap {
  flex-shrink: 0;
  width: auto;
}
.bc-add-char-wrap .bd-char-picker {
  margin-left: 0;
}
.bc-char-select {
  width: 100%;
  background: rgba(10, 15, 35, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(210, 225, 255, 0.9);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}
.bc-char-select:focus {
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(80, 120, 255, 0.15);
}
.bc-char-select option {
  background: rgba(10, 15, 35, 0.95);
  color: rgba(210, 225, 255, 0.9);
}

/* ── Chip columns (shared by add-row and char-rows) ───────────────────── */
.bc-col-weekly {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 0;
  overflow-x: auto;
  overflow-y: visible;
  min-width: 0;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.bc-col-weekly::-webkit-scrollbar {
  display: none;
}
.bc-col-weekly.dragging {
  cursor: grabbing;
}
.bc-col-weekly img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  draggable: false;
}
.bc-col-weekly * {
  user-select: none;
}
.bc-col-monthly {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  width: fit-content;
  overflow-x: visible;
  overflow-y: visible;
  min-width: 0;
}

/* All toggle button inside column */
.bc-toggle-all-btn {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(200, 215, 255, 0.75);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.bc-toggle-all-btn:hover {
  background: rgba(120, 160, 255, 0.18);
  color: #fff;
}

/* ── Boss card (character-row style) ───────────────────────────────────── */
.bc-boss-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 68px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.3rem 0.3rem;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.bc-boss-card:hover {
  background: rgba(120, 160, 255, 0.12);
  border-color: rgba(120, 160, 255, 0.3);
}
.bc-boss-card.done {
  background: rgba(40, 160, 90, 0.15);
  border-color: rgba(50, 200, 100, 0.3);
}
.bc-boss-card.failed {
  background: rgba(220, 80, 80, 0.12);
  border-color: rgba(240, 100, 100, 0.28);
}
.bc-boss-card.pending {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

/* Thumbnail wrapper */
.bc-card-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.bc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* Done overlay on thumb */
.bc-card-done-overlay {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(20, 160, 80, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  pointer-events: none;
}

/* Text below thumb */
.bc-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  width: 100%;
}
.bc-card-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(210, 225, 255, 0.85);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.bc-card-diff {
  font-size: 0.55rem;
  color: rgba(170, 185, 230, 0.5);
  font-style: italic;
  white-space: nowrap;
  display: block;
}
.bc-clear-source {
  margin-top: 0.25rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.bc-clear-source.solo {
  background: rgba(58, 159, 224, 0.15);
  color: #8ec8ff;
}
.bc-clear-source.party {
  background: rgba(224, 88, 88, 0.15);
  color: #ffb2b2;
}
.bc-clear-source.failed {
  background: rgba(220, 80, 80, 0.15);
  color: #ffb2b2;
}

/* Hover X remove button (hidden — removal via edit panel only) */
.bc-boss-remove {
  display: none;
}

/* ── Boss chip (add-row pill style) ────────────────────────────────────── */
.bc-boss-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem 0.22rem 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 0.72rem;
  color: rgba(200, 215, 255, 0.75);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  flex-shrink: 0;
  position: relative;
}
.bc-boss-chip:hover {
  background: rgba(120, 160, 255, 0.15);
  border-color: rgba(120, 160, 255, 0.35);
  color: rgba(220, 235, 255, 0.95);
}
.bc-boss-chip.selected {
  background: rgba(80, 130, 255, 0.22);
  border-color: rgba(100, 160, 255, 0.55);
  color: rgba(220, 235, 255, 0.95);
}
.bc-boss-chip.done {
  background: rgba(40, 160, 90, 0.18);
  border-color: rgba(50, 200, 100, 0.35);
  color: rgba(160, 230, 185, 0.9);
}
.bc-boss-chip.pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: rgba(180, 195, 235, 0.6);
}
.bc-chip-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.bc-chip-label {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-chip-diff {
  font-size: 0.62rem;
  opacity: 0.6;
  font-style: italic;
}
.bc-chip-check {
  font-size: 0.72rem;
  color: rgba(80, 220, 130, 0.9);
  margin-left: 0.1rem;
}

/* ── Add button ────────────────────────────────────────────────────────── */
.bc-add-btn {
  flex-shrink: 0;
  padding: 0.38rem 0.9rem;
  background: linear-gradient(
    135deg,
    rgba(80, 130, 255, 0.75),
    rgba(50, 90, 200, 0.75)
  );
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.12s;
  white-space: nowrap;
}
.bc-add-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.bc-add-btn:active {
  transform: translateY(0);
}

/* ── Character rows ────────────────────────────────────────────────────── */
.bc-char-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
  min-width: 0;
}
.bc-char-row:last-child {
  margin-bottom: 0;
}

/* Character badge (icon + name + level + progress) */
.bc-char-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  width: 185px;
  min-width: 0;
}
.bc-char-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(10, 15, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bc-char-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.bc-char-icon span {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(200, 215, 255, 0.8);
  letter-spacing: 0.02em;
}
.bc-char-info {
  min-width: 0;
  flex: 1 1 0;
}
.bc-char-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(215, 228, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-char-level {
  font-size: 0.7rem;
  color: rgba(175, 190, 235, 0.5);
  margin-top: 0.05rem;
}
.bc-char-progress {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.bc-prog-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.05rem 0.38rem;
  border-radius: 6px;
  white-space: nowrap;
}
.bc-prog-pill.w-pill {
  background: rgba(80, 130, 255, 0.18);
  color: rgba(160, 195, 255, 0.85);
  border: 1px solid rgba(80, 130, 255, 0.3);
}
.bc-prog-pill.m-pill {
  background: rgba(180, 80, 255, 0.15);
  color: rgba(210, 165, 255, 0.85);
  border: 1px solid rgba(180, 80, 255, 0.25);
}

/* Remove button */
.bc-remove-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 8px;
  color: rgba(255, 120, 120, 0.6);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  margin-left: auto;
}
.bc-remove-btn:hover {
  background: rgba(255, 60, 60, 0.15);
  border-color: rgba(255, 80, 80, 0.45);
  color: rgba(255, 140, 140, 0.9);
}

/* Empty state */
.bc-empty-state {
  text-align: center;
  padding: 1.8rem;
  color: rgba(190, 205, 245, 0.5);
}

/* Weekly select trigger (add-row) */
.bc-weekly-trigger {
  height: 100%;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem 0.22rem 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.bc-weekly-trigger:hover {
  background: rgba(120, 160, 255, 0.15);
  border-color: rgba(120, 160, 255, 0.35);
}
.bc-weekly-trigger-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  color: rgba(200, 215, 255, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
}
.bc-weekly-trigger-inner i {
  font-size: 0.9rem;
  opacity: 0.75;
}
.bc-weekly-count {
  background: rgba(80, 140, 255, 0.035);
  color: rgba(200, 200, 200, 0.7);
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  min-width: 18px;
  text-align: center;
}

/* Character card variant (same structure as boss card, non-clickable) */
.bc-boss-card.bc-char-card {
  cursor: default;
  width: 80px;
  flex-shrink: 0;
  border-color: rgba(120, 160, 255, 0.18);
  background: rgba(30, 50, 100, 0.25);
}
.bc-boss-card.bc-char-card:hover {
  background: rgba(30, 50, 100, 0.25);
  border-color: rgba(120, 160, 255, 0.18);
}
.bc-char-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(200, 215, 255, 0.8);
}
.bc-char-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
  margin-top: 0.3rem;
}

/* Daily column (narrow — Gollux only) */
.bc-col-daily {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  position: relative;
}
.bc-col-daily-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(180, 195, 235, 0.45);
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  margin-right: 0.1rem;
  flex-shrink: 0;
}

/* Row action buttons (edit + remove) */
.bc-row-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}
.bc-edit-btn {
  background: none;
  border: 1px solid rgba(100, 150, 255, 0.25);
  border-radius: 8px;
  color: rgba(140, 180, 255, 0.65);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.bc-edit-btn:hover {
  background: rgba(80, 130, 255, 0.18);
  border-color: rgba(100, 160, 255, 0.5);
  color: rgba(180, 210, 255, 0.9);
}

/* Inline edit panel */
.bc-edit-panel {
  background: rgba(10, 16, 40, 0.17);
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.9rem;
  margin: -0.25rem 0 0.6rem;
  margin-top: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bc-edit-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bc-edit-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bc-edit-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(180, 195, 235, 0.5);
}
.bc-edit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.bc-edit-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.25rem;
}
.bc-cancel-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(190, 205, 245, 0.6);
  padding: 0.32rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.bc-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(210, 225, 255, 0.9);
}

/* Daily progress pill */
.bc-prog-pill.d-pill {
  background: rgba(255, 200, 50, 0.15);
  color: rgba(255, 225, 130, 0.85);
  border: 1px solid rgba(255, 200, 50, 0.25);
}

/* Responsive */
@media (max-width: 767px) {
  .bc-add-row {
    flex-wrap: wrap;
  }
  .bc-add-char-wrap {
    width: 100%;
  }
  .bc-col-weekly,
  .bc-col-monthly {
    width: 100%;
    flex: none;
  }
  .bc-char-row {
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .bc-char-badge {
    width: 100%;
  }
  .bc-remove-btn {
    margin-left: 0;
  }
}
