/* ── Expedition Modal ────────────────────────────────────────────────────── */
.exped-modal {
  /* Everything inside is 20% bigger (text, buttons, padding) via zoom; the
     viewport-based outer constraints are divided by 1.2 so the modal keeps the
     same on-screen footprint instead of overflowing. */
  zoom: 1.2;
  max-width: 650px;
  width: 80vw;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.exped-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #d0a0f0;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Two-Column Layout ──────────────────────────────────────────────────── */
.exped-columns {
  display: flex;
  gap: 12px;
  min-height: 0;
  flex: 1;
  margin: 10px 0 14px;
}
.exped-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.exped-col-left  { flex: 1 1 48%; min-width: 0; }
.exped-col-right { flex: 1 1 48%; min-width: 0; }

/* ── Active Expedition Banner ───────────────────────────────────────────── */
.exped-active-card {
  background: #1c0c1e;
  border: 1px solid #3a1540;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.exped-active-card.exped-done {
  border-color: #408020;
  box-shadow: 0 0 10px rgba(80, 180, 40, 0.15);
}
.exped-active-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.exped-active-tier {
  font-size: 12px;
  font-weight: 700;
  color: #c0a0e0;
}
.exped-active-npc {
  font-size: 11px;
  font-weight: 600;
}
.exped-progress-wrap {
  height: 4px;
  background: #0a0510;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}
.exped-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6030a0, #a060e0);
  border-radius: 2px;
  transition: width 1s linear;
}
.exped-done .exped-progress-bar {
  background: linear-gradient(90deg, #308020, #60c030);
}
.exped-active-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exped-active-time {
  font-size: 11px;
  color: #9070b0;
  font-weight: 600;
}
.exped-done .exped-active-time { color: #80d050; }
.exped-claim-btn {
  background: linear-gradient(135deg, #204010, #102808);
  border: 1px solid #408020;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #a0e060;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  animation: expedClaimPulse 1.2s ease infinite;
}
.exped-claim-btn:hover {
  background: linear-gradient(135deg, #305818, #183810);
  border-color: #60c030;
  color: #c0ff80;
}
@keyframes expedClaimPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(80,180,40,0.2); }
  50%      { box-shadow: 0 0 12px rgba(80,180,40,0.45); }
}
.exped-cancel-btn {
  background: #2a1020;
  border: 1px solid #60303055;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #a07080;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exped-cancel-btn:hover {
  background: #3a1525;
  border-color: #a04050;
  color: #e08090;
}
.exped-finish-btn {
  background: linear-gradient(135deg, #102a3a, #081828);
  border: 1px solid #3080c0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #80d0ff;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exped-finish-btn:hover {
  background: linear-gradient(135deg, #18405a, #0c2238);
  border-color: #50b0f0;
  color: #c0e8ff;
}
.exped-finish-btn.exped-finish-disabled,
.exped-finish-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.exped-finish-btn.exped-finish-disabled:hover,
.exped-finish-btn:disabled:hover {
  background: linear-gradient(135deg, #102a3a, #081828);
  border-color: #3080c0;
  color: #80d0ff;
}

/* ── Locked message (expedition in progress) ────────────────────────────── */
.exped-locked-msg {
  text-align: center;
  color: #7060a0;
  font-size: 12px;
  font-style: italic;
  padding: 28px 12px;
  line-height: 1.6;
}

/* ── Sort Tabs ──────────────────────────────────────────────────────────── */
.exped-sort-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.exped-sort-tab {
  flex: 1;
  background: #120820;
  border: 1px solid #3a1540;
  border-radius: 5px;
  padding: 3px 0;
  font-size: 10px;
  font-weight: 700;
  color: #8070a0;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.exped-sort-tab:hover {
  background: #1c1030;
  border-color: #6040a0;
  color: #b0a0d0;
}
.exped-sort-tab.exped-sort-active {
  background: #2a1840;
  border-color: #8050c0;
  color: #d0b0ff;
}

/* ── NPC Picker ─────────────────────────────────────────────────────────── */
.exped-npc-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 50vh;
  padding-right: 4px;
}
.exped-npc-grid::-webkit-scrollbar { width: 6px; }
.exped-npc-grid::-webkit-scrollbar-track { background: #1a0820; border-radius: 2px; }
.exped-npc-grid::-webkit-scrollbar-thumb { background: #5a2080; border-radius: 2px; }
.exped-npc-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c0c1e;
  border: 1.5px solid #3a1540;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.exped-npc-card:hover:not(.exped-npc-disabled) {
  background: #241430;
  border-color: #6040a0;
}
.exped-npc-card.exped-npc-sel {
  border-color: #a060e0;
  background: #2a1840;
  box-shadow: 0 0 10px rgba(140, 60, 220, 0.2);
}
.exped-npc-card.exped-npc-disabled {
  opacity: 0.45;
  cursor: default;
}
.exped-npc-cyl {
  width: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 6px var(--cyl-color, #9060d0);
  background: var(--cyl-bg, var(--cyl-color, #9060d0));
  flex-shrink: 0;
}
.exped-npc-detail {
  min-width: 0;
  flex: 1;
}
.exped-npc-name {
  font-size: 11px;
  font-weight: 700;
  color: #e0c0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exped-npc-train {
  font-size: 9px;
  font-weight: 700;
  color: #80c050;
  background: #102008;
  padding: 0 4px;
  border-radius: 4px;
  margin-left: 3px;
}
.exped-npc-rarity {
  font-size: 9px;
  font-weight: 700;
}
.exped-npc-dps {
  font-size: 10px;
  color: #90c0f0;
}
.exped-no-npcs {
  text-align: center;
  color: #7060a0;
  font-size: 12px;
  padding: 16px 0;
  font-style: italic;
}

/* ── Tier List (right column, vertical stack) ───────────────────────────── */
.exped-col-right .exped-tier-card {
  background: #1c0c1e;
  border: 1.5px solid #3a1540;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  margin-bottom: 5px;
}
.exped-col-right .exped-tier-card:hover {
  background: #241430;
  border-color: #7040a0;
}
.exped-col-right .exped-tier-card.exped-tier-sel {
  border-color: #a060e0;
  background: #2a1840;
  box-shadow: 0 0 14px rgba(140, 60, 220, 0.25);
}
.exped-tier-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.exped-tier-emoji { font-size: 14px; }
.exped-tier-label {
  font-size: 13px;
  font-weight: 700;
  color: #e0c0f0;
  flex: 1;
}
.exped-tier-dur {
  font-size: 10px;
  color: #8070a0;
  font-weight: 600;
  white-space: nowrap;
}
.exped-tier-desc {
  font-size: 10px;
  color: #6a5080;
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.3;
}
.exped-tier-rewards {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #9080b0;
}
.exped-tier-cos {
  color: #c0a0e0;
  font-weight: 600;
}

/* ── Estimate & Send ────────────────────────────────────────────────────── */
.exped-estimate {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: #a090c0;
  font-weight: 600;
  margin: 8px 0 6px;
}
.exped-send-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2a1050, #1a0838);
  border: 1.5px solid #8040c0;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  color: #d0a0ff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.exped-send-btn:hover {
  background: linear-gradient(135deg, #3a1870, #241050);
  border-color: #b060ff;
  color: #e0c0ff;
  box-shadow: 0 0 16px rgba(140, 60, 220, 0.3);
}

/* ── Reward Modal ───────────────────────────────────────────────────────── */
.exped-reward-modal {
  max-width: 360px;
  text-align: center;
}
.exped-reward-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0d080;
  margin-bottom: 4px;
}
.exped-reward-sub {
  font-size: 12px;
  color: #a090c0;
  margin-bottom: 10px;
}
.exped-reward-divider {
  height: 1px;
  background: #3a1550;
  margin: 8px 0 12px;
}
.exped-reward-line {
  font-size: 14px;
  color: #d0c0e0;
  margin-bottom: 6px;
}
.exped-reward-cosmetic {
  background: #120820;
  border: 1.5px solid #5a2080;
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: #e0d0f0;
  animation: expedCosmeticGlow 1.5s ease infinite;
}
@keyframes expedCosmeticGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(140,60,220,0.2); }
  50%      { box-shadow: 0 0 20px rgba(140,60,220,0.45); }
}
.exped-rarity-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.exped-reward-ok {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #2a1050, #1a0838);
  border: 1.5px solid #8040c0;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 700;
  color: #d0a0ff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.exped-reward-ok:hover {
  background: linear-gradient(135deg, #3a1870, #241050);
  border-color: #b060ff;
}

/* ── Expedition Button (with embedded progress bar) ─────────────────────── */
#exped-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2040, #101830);
  border: 1.5px solid #3050a0;
  border-radius: 8px;
  color: #90b0e0;
  /* Matches .cylarmy-import-header-btn so the two harem-header buttons are the
     same size. */
  font-size: 13.2px;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px 2px rgba(80, 130, 220, 0.35), 0 0 20px 4px rgba(80, 130, 220, 0.18);
}
#exped-btn:hover {
  border-color: #5080d0;
  color: #b0d0ff;
  box-shadow: 0 0 14px 3px rgba(110, 160, 255, 0.55), 0 0 28px 6px rgba(80, 130, 220, 0.3);
}
.exped-btn-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6030a0, #a060e0);
  border-radius: 0 0 6px 6px;
  transition: width 1s linear;
  pointer-events: none;
}
.exped-btn-bar.exped-btn-bar-done {
  background: linear-gradient(90deg, #308020, #60c030);
  animation: expedBtnDonePulse 1.2s ease infinite;
}
@keyframes expedBtnDonePulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
#exped-btn-text {
  position: relative;
  z-index: 1;
}
.cylarmy-exped-btn-wrap {
  position: absolute;
  /* Aligned vertically with the Import NPC button in the harem header
     (modal padding-top + header padding-top). */
  top: 46px;
  right: 60px;
  z-index: 10;
}
