* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #16213e;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 { font-size: 1.2rem; color: #e94560; }

.actions button {
  background: #0f3460;
  color: #e0e0e0;
  border: 1px solid #e94560;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 8px;
}

.actions button:disabled { opacity: 0.4; cursor: default; }

main { padding: 12px; max-width: 600px; margin: 0 auto; }

.empty-state { text-align: center; color: #666; margin-top: 40vh; }

.notification-card {
  display: flex;
  align-items: flex-start;
  background: #16213e;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-card:hover { background: #1a2744; }
.checkbox-wrap { margin-right: 12px; margin-top: 2px; }
.notification-content { flex: 1; min-width: 0; }
.notification-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: #fff; }
.notification-body { font-size: 0.85rem; color: #aaa; line-height: 1.4; margin-bottom: 6px; }
.notification-time { font-size: 0.75rem; color: #666; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.modal.hidden { display: none; }

.modal-content {
  background: #16213e;
  border-radius: 14px;
  padding: 24px;
  max-width: 540px; width: 90%; max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: #e94560;
  font-size: 1.5rem; cursor: pointer;
}

.modal-content h2 { font-size: 1.1rem; margin-bottom: 16px; color: #fff; padding-right: 30px; }
#detail-body { font-size: 0.9rem; line-height: 1.6; color: #ccc; margin-bottom: 16px; }
#detail-body b { color: #e94560; }

#detail-link {
  display: inline-block;
  background: #e94560; color: #fff;
  padding: 10px 20px; border-radius: 8px;
  text-decoration: none; font-size: 0.9rem;
}

.token-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #0f3460;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem;
  z-index: 10;
}
.token-footer.hidden { display: none; }
.token-footer span { color: #aaa; white-space: nowrap; }
.token-footer code {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #e0e0e0; background: #1a1a2e;
  padding: 4px 8px; border-radius: 4px;
}
.token-footer button {
  background: #e94560; color: #fff; border: none;
  padding: 4px 12px; border-radius: 4px;
  cursor: pointer; font-size: 0.75rem; white-space: nowrap;
}
