/* ============================================================ */
/* BAZAR ROSTER SWIPE SUBPAGE STYLES — Premium Emerald Edition  */
/* ============================================================ */

/* --- Duty card: premium gradient + glass feel --- */
.br-swipe-next-card {
  position: relative;
  background: linear-gradient(135deg, #064E3B 0%, #065F46 40%, #047857 100%);
  border: 1.5px solid rgba(167, 243, 208, 0.18);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(5, 150, 105, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(167, 243, 208, 0.10);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Subtle decorative circle glows inside the card */
.br-swipe-next-card::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -20px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.br-swipe-next-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 30px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.br-swipe-next-card:hover {
  box-shadow:
    0 8px 28px rgba(5, 150, 105, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(167, 243, 208, 0.12);
  transform: translateY(-1px);
}

/* No-duty fallback card — stays light/muted */
.br-swipe-next-card.no-duty {
  background: #FFFFFF;
  border: 1.5px solid #D1FAE5;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.07);
  padding: 14px 16px;
  border-radius: 16px;
}

.br-swipe-next-card.no-duty::before,
.br-swipe-next-card.no-duty::after {
  display: none;
}

.br-no-duty-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.br-no-duty-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.br-no-duty-content {
  flex: 1;
  min-width: 0;
}

.br-no-duty-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065F46;
  margin: 0 0 2px 0;
}

.br-no-duty-desc {
  font-size: 0.76rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.35;
}

/* --- Left section: date badge + info --- */
.br-swipe-next-left {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}

/* Date badge — frosted glass over the dark gradient */
.br-swipe-date-badge {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(167, 243, 208, 0.35);
  color: #FFFFFF;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transition: transform 0.2s ease;
}

.br-swipe-next-card:hover .br-swipe-date-badge {
  transform: scale(1.04);
}

.br-swipe-date-badge .day-name {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6EE7B7;
  line-height: 1;
  margin-bottom: 2px;
}

.br-swipe-date-badge .day-num {
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* Info text — white on dark gradient */
.br-swipe-next-info {
  position: relative;
  z-index: 1;
}

.br-swipe-next-info h4 {
  font-size: 0.97rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.br-swipe-next-info p {
  font-size: 0.70rem;
  color: #6EE7B7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* --- Request Swipe button — crisp pill with shimmer --- */
.br-btn-request-swipe {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1.5px solid rgba(167, 243, 208, 0.40);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer sweep on hover */
.br-btn-request-swipe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.br-btn-request-swipe:hover::before {
  left: 135%;
}

.br-btn-request-swipe:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(167, 243, 208, 0.65);
  transform: translateY(-1px);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.br-btn-request-swipe:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.br-swipe-section-wrapper {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.br-swipe-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.br-swipe-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.br-swipe-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.br-swipe-badge.neutral {
  background: #F1F5F9;
  color: #64748B;
  border-color: #E2E8F0;
}

.br-swipe-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Signature Messliner Ultra-Compact Mini Card for Bazar Swipes */
.br-mini-card-wrap {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 13px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.br-mini-card-wrap:hover {
  border-color: #CBD5E1;
  box-shadow: 0 3px 10px -2px rgba(15, 23, 42, 0.05);
}

/* Top Member Banner */
.br-mini-member-banner {
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.br-mini-member-banner.incoming {
  background: #ECFDF5;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.br-mini-member-banner.outgoing {
  background: #ECFDF5;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.br-mini-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.br-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #D1FAE5;
  color: #059669;
}

.br-mini-user-info {
  min-width: 0;
}

.br-mini-user-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

/* Mini Details Box with Row Icons */
.br-mini-details-box {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
}

.br-mini-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4.5px 0;
}

.br-mini-detail-row:not(:last-child) {
  border-bottom: 1px solid #F8FAFC;
}

.br-mini-row-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.br-mini-icon-sq {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.br-mini-row-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.br-mini-row-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  text-align: right;
  word-break: break-word;
}

.br-mini-row-value.date-badge {
  background: #F8FAFC;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #E2E8F0;
  font-size: 0.72rem;
}

.br-mini-status-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #059669;
}

.br-mini-status-badge.declined {
  color: #DC2626;
}

/* Full Width Red Cancel Button */
.br-mini-btn-cancel-req {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.br-mini-btn-cancel-req:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #B91C1C;
}

/* Incoming Dual Actions */
.br-mini-dual-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.br-mini-btn-accept {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #059669;
  color: #FFFFFF;
  border: 1px solid #059669;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease;
}

.br-mini-btn-accept:hover {
  background: #047857;
  border-color: #047857;
}

.br-mini-btn-decline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.br-mini-btn-decline:hover {
  background: #FEE2E2;
  border-color: #F87171;
}

/* Empty State Card for Bazar Swipe */
.br-swipe-empty-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
}

.br-swipe-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.br-swipe-empty-icon.neutral {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.br-swipe-empty-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  margin: 0;
  line-height: 1.45;
  flex: 1;
}

/* ============================================================ */
/* BAZAR SWIPE REQUEST MODAL - FULL WIDTH & RESPONSIVE DESIGN   */
/* ============================================================ */
.br-swipe-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.br-swipe-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.bazar-swipe-modal-dialog {
  width: 100% !important;
  max-width: 520px !important;
  background: #FFFFFF !important;
  border-radius: 24px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  margin: auto;
}

.br-swipe-modal-overlay.active .bazar-swipe-modal-dialog {
  transform: scale(1) translateY(0);
}

.br-swipe-modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

#bazarSwipeRequestModal .btn-close,
.br-swipe-modal-header .btn-close,
.bazar-swipe-modal-dialog .btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  flex-shrink: 0;
}

#bazarSwipeRequestModal .btn-close:hover,
.br-swipe-modal-header .btn-close:hover,
.bazar-swipe-modal-dialog .btn-close:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.22);
}

#bazarSwipeRequestModal .btn-close:active,
.br-swipe-modal-header .btn-close:active,
.bazar-swipe-modal-dialog .btn-close:active {
  transform: rotate(90deg) scale(0.95);
}

.br-swipe-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.2px;
}

.br-swipe-modal-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0;
}

.br-swipe-modal-body {
  padding: 20px 22px 22px;
  background: #FFFFFF;
}

.br-swipe-field-group {
  margin-bottom: 16px;
}

.br-swipe-field-group:last-of-type {
  margin-bottom: 20px;
}

.br-swipe-field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
}

.br-swipe-duty-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-weight: 700;
  color: #0F172A;
  font-size: 0.92rem;
}

.br-swipe-select,
.br-swipe-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.br-swipe-select {
  cursor: pointer;
  appearance: auto;
}

.br-swipe-select:focus,
.br-swipe-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.15);
  background: #FFFFFF;
}

.br-swipe-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.br-swipe-btn-cancel {
  flex: 1;
  max-width: 130px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.br-swipe-btn-cancel:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.br-swipe-btn-submit {
  flex: 2;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.br-swipe-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.br-swipe-btn-submit:active {
  transform: translateY(0);
}

/* Mobile full width / bottom-sheet styling */
@media (max-width: 640px) {
  .br-swipe-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .bazar-swipe-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .br-swipe-modal-header {
    padding: 18px 20px 14px;
  }

  .br-swipe-modal-body {
    padding: 16px 20px 20px;
  }
}
