/* ============================================================
   Knight Crew — Plugin Styles
   MBT Discord Login · MBT RSI Verify · MBT Arkon Fleet
   Structural CSS from plugins + visual overrides to match KC theme
   ============================================================ */

/* ============================================================
   Navbar Auth (theme element, plugin-dependent)
   ============================================================ */
.navbar-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-member {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-member-id {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-dim);
  font-family: inherit;
  padding: 0;
  transition: color 200ms ease;
}
.navbar-member-id:hover { color: var(--text); }
.navbar-avatar {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  display: block;
  transition: border-color 200ms ease;
}
.navbar-member-id:hover .navbar-avatar { border-color: var(--accent); }
.navbar-avatar-placeholder {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: border-color 200ms ease;
}
.navbar-member-id:hover .navbar-avatar-placeholder { border-color: var(--accent); }
.navbar-username { display: none; }
.navbar-username {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.navbar-logout {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: color 200ms ease, border-color 200ms ease;
}
.navbar-logout:hover { color: var(--accent-bright); border-color: var(--accent); }

/* ============================================================
   Member Slide Panel (right side, triggered by avatar click)
   ============================================================ */
.member-panel {
  position: fixed;
  top: 120px; right: 0; bottom: 0;
  width: 300px; max-width: 90vw;
  background: rgba(8, 25, 43, 0.80);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--line-2);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.member-panel.is-open { transform: translateX(0); }

.member-panel-inner {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Close button */
.member-panel-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-mute);
  padding: 18px 18px 0;
  display: flex;
  justify-content: flex-end;
  transition: color 200ms ease;
  flex-shrink: 0;
}
.member-panel-close:hover { color: var(--accent-bright); }

/* Profile header */
.member-panel-profile {
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.member-panel-avatar {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  display: block;
  margin-bottom: 14px;
}
.member-panel-avatar-placeholder {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.member-panel-name {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.member-panel-handle {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* Sections */
.member-panel-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.member-panel-section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}

/* Status rows */
.member-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.member-panel-row:last-child { border-bottom: 0; }
.member-panel-row-key {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.member-panel-row-val {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.member-panel-verified { color: var(--good); font-size: 11px; }
.member-panel-active .member-panel-dot  { background: var(--good); }
.member-panel-inactive .member-panel-dot { background: var(--text-mute); }
.member-panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.member-panel-active { color: var(--good); }
.member-panel-inactive { color: var(--text-mute); }

/* Navigation links */
.member-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
}
.member-panel-link:last-child { border-bottom: 0; }
.member-panel-link::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}
.member-panel-link:hover { color: var(--accent-bright); }
.member-panel-link:hover::after { transform: scaleX(1); }
.member-panel-link svg { flex-shrink: 0; opacity: 0.5; }
.member-panel-link:hover svg { opacity: 1; }

/* Admin-only link */
.member-panel-link--admin { color: var(--accent); }
.member-panel-link--admin:hover { color: var(--accent-bright); }

/* Footer / log out */
.member-panel-footer {
  padding: 20px 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.member-panel-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 200ms ease;
}
.member-panel-logout:hover { color: var(--bad); }

/* ============================================================
   MBT Discord Login — Button Classes
   ============================================================ */
.mbtdl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.mbtdl-btn-discord {
  background: var(--accent);
  color: var(--bg-0) !important;
  border-color: var(--accent);
}
.mbtdl-btn-discord:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg-0) !important;
  transform: translateY(-1px);
}
.mbtdl-btn-logout {
  background: transparent;
  color: var(--text-dim) !important;
  border-color: var(--line-2);
}
.mbtdl-btn-logout:hover {
  color: var(--accent-bright) !important;
  border-color: var(--accent);
}

/* Nav menu injected button */
.mbtdl-nav-item { list-style: none; }
.mbtdl-nav-join a,
.mbtdl-nav-logout a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  padding: 14px 0;
}
.mbtdl-nav-join a:hover { color: var(--accent-bright); }
.mbtdl-nav-logout a:hover { color: var(--accent-bright); }

/* OAuth error */
.mbtdl-error {
  background: rgba(232, 90, 90, 0.08);
  border: 1px solid rgba(232, 90, 90, 0.3);
  border-radius: var(--r-sm);
  color: var(--bad);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Logged-in status wrapper (rendered by plugin in some contexts) */
.mbtdl-login-status { display: inline-flex; align-items: center; gap: 8px; }
.mbtdl-logged-in-as { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   MBT RSI Verify — Form & Notices
   ============================================================ */
.mbt-rsi-wrap {
  max-width: 560px;
}
.mbt-notice {
  background: rgba(120, 160, 195, 0.06);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.55;
}
.mbt-notice a { color: var(--accent); }
.mbt-notice a:hover { color: var(--accent-bright); }
.mbt-notice-success {
  background: rgba(95, 213, 123, 0.07);
  border-color: rgba(95, 213, 123, 0.3);
  color: var(--good);
}
.mbt-notice-error,
.mbt-notice--error {
  background: rgba(232, 90, 90, 0.07);
  border-color: rgba(232, 90, 90, 0.3);
  color: var(--bad);
  border-left-width: 3px;
}

.mbt-rsi-step { margin-top: 4px; }
.mbt-rsi-step p { font-size: 14px; color: var(--text-dim); margin: 0 0 18px; line-height: 1.6; }
.mbt-rsi-step h3 {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); margin: 0 0 14px;
}

.mbt-rsi-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mbt-rsi-input-row label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.mbt-input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 200ms ease;
}
.mbt-input:focus { border-color: var(--accent); }
.mbt-input::placeholder { color: var(--text-mute); }

.mbt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.mbt-btn:hover { border-color: var(--accent); color: var(--accent-bright); }
.mbt-btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}
.mbt-btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg-0);
}

.mbt-field-hint {
  font-size: 12px;
  color: var(--text-mute);
  margin: 8px 0 0;
  line-height: 1.5;
}
.mbt-field-hint a { color: var(--accent); }

.mbt-verify-code {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mbt-verify-code__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mbt-verify-code__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  font-family: var(--font-ui);
}

/* ============================================================
   MBT Fleet — Shared Notice
   ============================================================ */
.mbt-fleet .mbt-notice { max-width: 480px; }

/* ============================================================
   MBT Fleet — Filters
   ============================================================ */
.mbt-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.mbt-filters label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mbt-filters select {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 7px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 200ms ease;
}
.mbt-filters select:focus { border-color: var(--accent); }

/* ============================================================
   MBT Fleet — Ship Grid & Cards
   ============================================================ */
.mbt-ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .mbt-ship-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.mbt-ship-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease;
}
.mbt-ship-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mbt-ship-card--grouped { cursor: default; }

/* Ship image */
.mbt-ship-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
  flex-shrink: 0;
}
.mbt-ship-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 300ms ease;
}
.mbt-ship-card:hover .mbt-ship-image img { transform: scale(1.04); }
.mbt-ship-image-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(46,182,214,0.12), transparent 70%),
    var(--bg-3);
}

/* Count badge (guild fleet) */
.mbt-ship-count {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(2, 6, 12, 0.75);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 2px 7px;
  backdrop-filter: blur(4px);
}

/* Card body */
.mbt-ship-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mbt-ship-name {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.mbt-ship-name a { color: inherit; text-decoration: none; }
.mbt-ship-name a:hover { color: var(--accent-bright); }
.mbt-ship-total-count {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 300;
}
.mbt-ship-type {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.3;
}
.mbt-ship-manufacturer {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.mbt-pledge-name,
.mbt-pledge-date,
.mbt-pledge-cost {
  font-size: 11px;
  color: var(--text-mute);
  margin: 2px 0 0;
}

/* Badges */
.mbt-ship-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.mbt-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-weight: 400;
  line-height: 1.4;
}
.mbt-badge--lti {
  background: rgba(95, 213, 123, 0.1);
  color: var(--good);
  border: 1px solid rgba(95, 213, 123, 0.28);
}
.mbt-badge--warbond {
  background: rgba(239, 139, 63, 0.1);
  color: var(--warn);
  border: 1px solid rgba(239, 139, 63, 0.28);
}
.mbt-badge--unidentified {
  background: rgba(232, 90, 90, 0.1);
  color: var(--bad);
  border: 1px solid rgba(232, 90, 90, 0.28);
}

/* Owners list (guild fleet) */
.mbt-ship-owners {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.mbt-ship-owners li {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mbt-owner-count {
  color: var(--text-mute);
  font-size: 10px;
}

/* ============================================================
   MBT Fleet — Import Section
   ============================================================ */
.mbt-import-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.mbt-import-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 10px;
}
.mbt-import-section p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.55;
}
.mbt-import-section textarea {
  width: 100%;
  max-width: 720px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 200ms ease;
  display: block;
  margin-bottom: 14px;
}
.mbt-import-section textarea:focus { border-color: var(--accent); }
.mbt-import-section textarea::placeholder { color: var(--text-mute); }
#mbt-import-result {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   MBT Fleet — Summary Stats Block
   ============================================================ */
.mbt-summary {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.mbt-summary--empty {
  padding: 24px 0;
}
.mbt-stat {
  padding: 32px 24px;
  position: relative;
  text-align: left;
  flex: 1;
  min-width: 140px;
}
.mbt-stat + .mbt-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 28%; bottom: 28%;
  width: 1px;
  background: var(--line-2);
}
@media (max-width: 640px) {
  .mbt-stat { min-width: 50%; }
  .mbt-stat:nth-child(2n+1)::before { display: none; }
}
.mbt-stat-value {
  display: block;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.mbt-stat-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mbt-stat--muted .mbt-stat-value { opacity: 0.4; }
.mbt-stat--muted .mbt-stat-label { opacity: 0.4; }
.mbt-summary-cta {
  font-size: 13px;
  color: var(--text-dim);
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  margin: 0;
  width: 100%;
}
.mbt-summary-cta a { color: var(--accent); }
.mbt-summary-cta a:hover { color: var(--accent-bright); }

/* ============================================================
   Live stat dot indicator in stats-band
   ============================================================ */
.stat .value .live {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.7;
  font-size: 0;
  animation: pulse-status 2s ease-in-out infinite;
}

/* ============================================================
   Profile Page Styles
   ============================================================ */

/* Login gate */
.profile-gate {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(800px 600px at 50% 40%, rgba(46,182,214,0.07), transparent 70%),
    var(--bg-0);
}
.profile-gate-inner { display: grid; place-items: center; width: 100%; }
.profile-gate-card {
  text-align: center;
  max-width: 440px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 48px 40px;
}
.profile-gate-logo { margin-bottom: 28px; opacity: 0.6; }
.profile-gate-lead {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px;
}
.profile-gate-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 28px;
}
.profile-gate-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 13px;
}
.profile-gate-logout {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
}
.profile-gate-logout:hover { color: var(--accent-bright); }

/* Profile hero */
.profile-hero {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(46,182,214,0.05), transparent 60%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; }
}
.profile-avatar-wrap {
  position: relative;
  width: 88px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--line-2);
}
.profile-avatar-placeholder {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 2px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  text-transform: uppercase;
}
.profile-status-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--good);
  border: 2px solid var(--bg-1);
  box-shadow: 0 0 0 0 rgba(95,213,123,0.7);
  animation: pulse-status 2s ease-in-out infinite;
}
.profile-display-name {
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}
.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.profile-role-badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(46,182,214,0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(46,182,214,0.28);
}
.profile-guild-badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(95,213,123,0.08);
  color: var(--good);
  border: 1px solid rgba(95,213,123,0.28);
  display: inline-flex; align-items: center; gap: 5px;
}
.profile-meta-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
}
.profile-meta-table th,
.profile-meta-table td {
  padding: 8px 0;
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.profile-meta-table th {
  width: 110px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  padding-right: 16px;
}
.profile-meta-table td { color: var(--text); }
.profile-meta-table tr:last-child th,
.profile-meta-table tr:last-child td { border-bottom: 0; }
.profile-rsi-link {
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.profile-rsi-link:hover { color: var(--accent-bright); }
.profile-verified-badge {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--good); margin-left: 8px;
}
.profile-unverified-badge {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); margin-left: 8px;
}
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Profile sections */
.profile-main { min-height: 60vh; }
.profile-section { padding: 48px 0; }
.profile-section.section-band { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   Fleet Page
   ============================================================ */
.fleet-page-header {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.fleet-page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.fleet-page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 8px;
}
.fleet-page-h1 {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.fleet-summary-band {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.fleet-grid-section {
  padding: 48px 0 80px;
}
.fleet-grid-section .mbt-fleet { width: 100%; }

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(800px 600px at 50% 40%, rgba(46,182,214,0.07), transparent 70%),
    var(--bg-0);
}
.login-page-inner { display: grid; place-items: center; width: 100%; }
.login-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 48px 44px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.login-logo { display: inline-block; margin-bottom: 12px; opacity: 0.9; }
.login-tagline {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 32px;
}
.login-divider {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}
.login-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.login-divider span {
  position: relative;
  background: var(--bg-2);
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.login-discord-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 13px;
}
.login-note {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 20px 0 0;
  text-align: left;
}
.login-footer-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.login-footer-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
}
.login-footer-links a:hover { color: var(--accent-bright); }
