/* ═══════════════════════════════════════════════════════════════
   KanaStore — Modular Header Component
   ═══════════════════════════════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(145deg, var(--accent-d, #006DD6), #003A8A);
  border-bottom: 2px solid rgba(90, 180, 255, 0.3);
  width: 100%;
}

.hdr-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-dot {
  color: var(--gold, #FFB800);
}

.hdr-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 20px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  user-select: none;
}

/* Status variants */
.hdr-status.st-normal {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.hdr-status.st-maintenance {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FEF3C7;
  cursor: pointer;
}
.hdr-status.st-maintenance:hover {
  background: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.hdr-status.st-delay {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FEE2E2;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}
.status-dot.dot-maintenance {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.85);
  animation: pulse-dot 1.2s ease infinite;
}
.status-dot.dot-delay {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* ═══════════════════════════════════════════════════════════════
   Maintenance Announcement Modal Popup
   ═══════════════════════════════════════════════════════════════ */
.maint-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.maint-modal-wrap.active {
  opacity: 1;
  visibility: visible;
}
.maint-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 53, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.maint-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px rgba(10, 26, 53, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.15);
  overflow: hidden;
  animation: maintModalPop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes maintModalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.maint-modal-header {
  position: relative;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  padding: 22px 20px 16px;
  border-bottom: 1.5px solid #FDE68A;
  text-align: center;
}
.maint-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #B45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.maint-icon-bubble {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}
.maint-icon-bubble .material-symbols-rounded {
  font-size: 28px;
}
.maint-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #92400E;
  margin: 0 0 4px;
  line-height: 1.3;
}
.maint-modal-body {
  padding: 20px;
  color: #334E68;
  font-size: 13.5px;
  line-height: 1.55;
}
.maint-msg-text {
  font-size: 13.5px;
  color: #1E293B;
  font-weight: 600;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.maint-notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
}
.maint-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.maint-notice-item .material-symbols-rounded {
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.maint-notice-item.ok .material-symbols-rounded {
  color: #10B981;
}
.maint-notice-item.warn .material-symbols-rounded {
  color: #F59E0B;
}
.maint-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-maint-ack {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0088FF, #006DD6);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.28);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn-maint-ack:active {
  transform: translateY(1px);
}
.btn-maint-wa {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  background: #F0FDF4;
  color: #15803D;
  border: 1.5px solid #BBF7D0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-maint-wa:active {
  background: #DCFCE7;
}

@media (min-width: 600px) {
  .hdr {
    max-width: 520px;
    margin: 0 auto;
  }
  .hdr-inner {
    max-width: none;
  }
}
