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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #6B21A8 0%, #a7f3d0 100%);
    min-height: 100vh;
    color: #374151;
}

.activate-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e879f9 100%);
  padding: 2rem 0;
}
.activate-container {
  background: #fef5d8;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 #845ef728;
  padding: 2.5rem 2rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.activate-title {
  font-size: 2rem;
  font-weight: 700;
  color: #845ef7;
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
  text-align: center;
}
.activate-form label,
.alias-form label {
  color: #22223b;
  font-weight: 500;
  margin-bottom: .5rem;
  display: block;
  font-size: 1rem;
}
.activate-input {
  width: 100%;
  border: 1.5px solid #e879f9;
  border-radius: .9em;
  padding: .9em 1em;
  font-size: 1.1em;
  background: #f4f0ff;
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.activate-input:focus {
  outline: none;
  border-color: #845ef7;
  background: #fff;
}
#claimModeWrap label {
  background: #a5d8ff;
  border-radius: 2em;
  padding: .5em 1.2em;
  font-size: 1em;
  color: #2d3a60;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .18s, border-color .18s;
}
#claimModeWrap input[type="radio"]:checked + span,
#claimModeWrap label:has(input[type="radio"]:checked) {
  background: #845ef7;
  color: #fff;
  border-color: #e879f9;
}
.activate-btn {
  background: linear-gradient(90deg, #845ef7 0%, #e879f9 100%);
  color: #fff;
  border: none;
  border-radius: 2em;
  font-size: 1.1em;
  font-weight: 600;
  padding: .9em 2.1em;
  margin: 1.2em 0 .3em 0;
  cursor: pointer;
  transition: background .18s, transform .12s;
  box-shadow: 0 2px 12px #845ef715;
}
.activate-btn:hover, .activate-btn:focus {
  background: linear-gradient(90deg, #6f45ba 0%, #e879f9 100%);
  transform: translateY(-2px) scale(1.03);
}
.activate-status {
  margin-top: 0.7em;
  font-size: 1em;
  min-height: 1.5em;
  color: #059669;
  background: #dcfce7;
  border-radius: 0.5em;
  padding: 0.4em 0.9em;
  display: inline-block;
}
.activate-status.error {
  color: #dc2626;
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
}
.alias-form {
  margin-top: 1.5em;
}
@media (max-width: 600px) {
  .activate-container {
    padding: 1.2rem .7rem 1.2rem .7rem;
    max-width: 98vw;
  }
  .activate-main {
    padding: .6rem 0;
  }
}
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.key-icon {
  width: 44px;
  height: 44px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #6B21A8, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
}
.echokey-id {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6B21A8;
}
.key-status {
  font-size: 0.97em;
  color: #888;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 0.45em;
}
.key-status.active { color: #10b981;}
.key-status.locked { color: #ef4444;}
.key-status.unclaimed { color: #ffb4a2;}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 33, 168, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 12px;
    /* Try 32px–40px for a compact look */
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #6B21A8;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #8B5CF6;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B21A8, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(51, 1, 66);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: rgba(51, 1, 66, 0.9);
    font-weight: 300;
}

/* Cards Container */
.cards-container {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.1);
    margin-bottom: 2rem;
}
/* === 1. Dashboard Grid & Card === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 4rem;
}
.echokey-card {
  background: #eae7b8;
  border-radius: 2rem;
  box-shadow: 0 6px 24px rgba(90,50,150,0.12), 0 1.5px 8px rgba(100,80,190,0.10);
  max-width: 440px;
  min-width: 300px;
  margin: 0 auto;
  padding: 2.1rem 2rem 2.1rem 2rem;
  position: relative;
  border: 2px solid #f3eaff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === 2. Header, Logo, Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 33, 168, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-slogan {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.logo-slogan img {
  height: 45px;
  width: auto;
  display: block;
}
.slogan {
  font-family: 'Quicksand', 'Poppins', Arial, sans-serif;
  color: #a18cd1;
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  color: #7c2ae8;
  font-weight: 600;
  text-decoration: none;
  padding: 0.27rem 0.8rem;
  border-radius: 7px;
  transition: background 0.15s;
}
.nav a:hover {
  background: #f3eaff;
  color: #5a189a;
}
.user-settings {
  position: relative;
}
.settings-gear-btn {
  background: none;
  border: none;
  color: #a18cd1;
  font-size: 1.4em;
  cursor: pointer;
  margin-left: 0.3rem;
}
.settings-dropdown {
  position: absolute;
  right: 0;
  top: 140%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(110, 54, 160, 0.13);
  min-width: 185px;
  z-index: 60;
  padding: 0.6rem 0;
}
.settings-action {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #6b21a8;
  text-align: left;
  font-weight: 500;
  font-size: 1.03em;
  padding: 0.62em 1.18em;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.14s;
}
.settings-action:hover {
  background: #f3eaff;
  color: #4a148c;
}

/* === 3. Buttons & Inputs === */
button, .btn, .cta-btn, .add-device-btn, .add-sender-btn, .mode-option, .sender-remove, .remove-device-btn, .trigger-safetap-btn, .ritual-add-btn, .decoy-randomize-btn, .decoy-save-btn {
  font-family: inherit;
  font-size: 1em;
  outline: none;
  border: none;
  transition: background 0.14s, color 0.13s;
}
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 1em;
  cursor: pointer;
  border: none;
  margin: 0 0.08rem;
}
.btn-outline, .add-device-btn {
  background: #f5f3fc;
  color: #8257e5;
  border: 1.5px solid #ded7fb;
}
.btn-main, .add-sender-btn {
  background: #8257e5;
  color: #fff;
  font-weight: 500;
}
.btn-secondary, .decoy-randomize-btn {
  background: #e0c3fc;
  color: #5e338e;
}
.btn-link {
  background: none;
  color: #8e44ad;
  text-decoration: underline;
  border: none;
  font-size: 1em;
  padding: 0 3px;
}
.btn-alert, .trigger-safetap-btn {
  background: #ffe7f1;
  color: #cb2d6f;
  border: 1.5px solid #fac0d5;
}
.btn-small {
  font-size: 0.93em;
  padding: 0.26rem 0.6rem;
  margin-left: 0.4rem;
}
.btn-success {
  background: #6cd47f;
  color: #fff;
}
.btn-danger {
  background: #fc6b6b;
  color: #fff;
}
input[type="email"], .add-sender-input, .ew-input {
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  border: 1.5px solid #e1e0f7;
  font-size: 1em;
  margin-right: 0.2em;
}
input[type="range"], .threshold-slider {
  accent-color: #8f6bf7;
  width: 100px;
}

/* === 4. Pending Requests, Empty States, Feedback === */
.pending-section h2 {
  color: #efd3f2;
  font-size: 1.13em;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.pending-requests-list {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(180,110,230,0.10);
  padding: 1.15em 1.2em;
  margin-top: 0.8em;
}
.empty-state {
  color: #b6a1d2;
  font-size: 1.01em;
  background: #f6effc;
  border-radius: 8px;
  padding: 0.55em 1.1em;
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.claim-echokey-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.claim-input-section {
  margin-top: 1.1em;
}
.cta-btn {
  background: #7d4be8;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.13em;
  padding: 0.85em 2em;
  margin-top: 0.5em;
  box-shadow: 0 2px 6px #ebdbfa2c;
}
.cta-btn:hover {
  background: #6c2ed9;
}

/* === 5. Modals === */
.modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(100, 70, 200, 0.13);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 28px #7a59c02a;
  padding: 2.4em 2em 1.9em 2em;
  min-width: 330px;
  max-width: 95vw;
  position: relative;
}
.modal-title {
  color: #7c2ae8;
  font-size: 1.24em;
  font-weight: 600;
  margin-bottom: 1.1em;
}
.reset-key-btn {
  background: #e0c3fc;
  color: #7e3af2;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  font-size: 1.07em;
  padding: 7px 14px;
  margin-bottom: 1.2em;
  cursor: pointer;
}
.modal-cancel-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: #ba83ec;
  font-size: 1.3em;
  cursor: pointer;
}
.modal-feedback {
  color: #cd3b8e;
  margin-top: 0.7em;
  font-size: 1.02em;
}

/* === 6. Card Sections: Devices, Senders, SafeTap, Threshold, Decoy, Rituals, Alerts === */
.card-section { margin-bottom: 0.6rem; }
.section-title { 
  font-weight: 600; 
  font-size: 1.07rem; 
  color: #8559e1; 
  margin-bottom: 0.2rem; 
  letter-spacing: 0.5px;
}

/* Devices */
.devices-list { 
  display: flex; 
  flex-direction: column; 
  gap: 7px; 
  margin-bottom: 0.5rem;
}
.device-chip, .device-detail { 
  display: flex; 
  align-items: center; 
  gap: 0.4rem; 
  padding: 3px 0;
}
.device-icon { font-size: 1.07em; }
.device-chip-empty { 
  color: #bab6c9; 
  font-size: 1em; 
  padding: 4px 1em;
}
.remove-device-btn { 
  background: none; 
  border: none; 
  color: #ff4360; 
  font-size: 1.2em; 
  cursor: pointer; 
  margin-left: 7px;
}
.add-device-btn { 
  background: #ebe8fa; 
  color: #7d4be8; 
  font-weight: 600; 
  border-radius: 8px; 
  padding: 6px 16px; 
  border: 1.5px solid #ded7fb; 
  cursor: pointer; 
}

/* Senders */
.trusted-senders { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem;
}
.sender-chip { 
  background: #ecebfc; 
  border-radius: 7px; 
  padding: 4px 12px 4px 8px; 
  display: flex; 
  align-items: center; 
  gap: 7px; 
  font-size: 1em;
}
.sender-initials { 
  font-weight: bold; 
  color: #864ec8; 
  background: #ded7fb; 
  border-radius: 50%; 
  width: 26px; 
  height: 26px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.sender-remove { 
  background: none; 
  border: none; 
  color: #ff4360; 
  font-size: 1.2em; 
  cursor: pointer;
}
.sender-status-pending { 
  color: #ef6b5d; 
  font-weight: 500; 
  margin-right: 4px;
}
.sender-empty { 
  color: #b6a1d2; 
  background: #f6effc;
}
.add-sender-section { 
  display: flex; 
  align-items: center; 
  gap: 7px; 
  margin: 8px 0;
}
.add-sender-input { 
  padding: 7px 13px; 
  border-radius: 8px; 
  border: 1.5px solid #e1e0f7; 
  font-size: 1em;
}
.add-sender-btn { 
  background: #8257e5; 
  color: #fff; 
  font-weight: 500; 
  border-radius: 8px; 
  padding: 6px 18px; 
  cursor: pointer;
}

/* SafeTap Mode */
.mode-switch { 
  display: flex; 
  gap: 1.2rem; 
  margin-bottom: 0.5rem;
}
.mode-option { 
  border-radius: 7px; 
  border: 1.5px solid #d1b6f4; 
  background: #f7f3fd; 
  color: #8652c7; 
  font-weight: 500; 
  padding: 0.34rem 0.88rem; 
  cursor: pointer;
}
.mode-option.active, .mode-option:hover { 
  background: #bca8f4; 
  color: #fff;
}
.test-safetap-btn, .trigger-safetap-btn { 
  background: #ffe7f1; 
  color: #cb2d6f; 
  border-radius: 8px; 
  border: 1.5px solid #fac0d5; 
  font-weight: 600; 
  padding: 7px 22px; 
  cursor: pointer; 
}

/* Alert Threshold */
.threshold-section { margin-bottom: 0.8rem;}
.threshold-label { font-weight: 600; color: #8559e1;}
.threshold-controls { display: flex; align-items: center; gap: 1.1rem;}
.threshold-slider { accent-color: #8f6bf7; width: 110px;}
.threshold-value { font-weight: 600; color: #8559e1; font-size: 1.1em;}

/* Decoy Message */
.decoy-section { margin-bottom: 0.8rem;}
.decoy-preview, .decoy-current { 
  background: #f7f3fd; 
  border-radius: 8px; 
  padding: 0.7em 1em; 
  margin-bottom: 0.5em; 
  font-size: 1em;
}
.decoy-randomize-btn, .decoy-save-btn { 
  background: #e0c3fc; 
  color: #5e338e; 
  border-radius: 7px; 
  border: none; 
  font-weight: 600; 
  padding: 6px 12px; 
  margin-right: 0.4em; 
  cursor: pointer;
}

/* Rituals */
.rituals-section { margin-bottom: 0.8rem;}
.rituals-list { 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
  margin-bottom: 5px;
}
.ritual-item { 
  background: #f6effc; 
  border-radius: 7px; 
  padding: 0.6em 1.1em; 
  font-size: 1em;
}
.ritual-empty { 
  color: #b6a1d2; 
  background: #f6effc; 
  border-radius: 8px; 
  padding: 0.5em 1.1em;
}
.ritual-add-btn { 
  background: #e0c3fc; 
  color: #6a21a7; 
  border-radius: 7px; 
  border: none; 
  font-weight: 600; 
  padding: 6px 12px; 
  cursor: pointer;
}

/* Alerts */
.alerts-section { margin-bottom: 0.8rem;}
.alerts-list { 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem;
}
.alert-bubble { 
  background: #fff8e1; 
  border-radius: 9px; 
  padding: 0.65em 1em; 
  font-size: 1em; 
  display: flex; 
  align-items: flex-start; 
  gap: 1em; 
  margin-bottom: 0.3em;
}
.bubble-icon { font-size: 1.7em; margin-right: 0.3em;}
.bubble-main { flex: 1;}
.bubble-header { display: flex; align-items: center; gap: 0.7em;}
.bubble-type { 
  background: #e4c1ff; 
  color: #6a1fa7; 
  border-radius: 6px; 
  font-size: 0.97em; 
  padding: 1px 7px;
}
.bubble-device { 
  background: #e9e2f7; 
  border-radius: 6px; 
  padding: 2px 7px; 
  margin-right: 0.3em;
}
.bubble-time { color: #90908e; font-size: 0.97em;}
.bubble-status { 
  background: #c6e0fb; 
  color: #2263aa; 
  border-radius: 6px; 
  font-size: 0.97em; 
  padding: 1px 7px;
}
.bubble-status.pending { background: #ffe082; color: #ad8200;}
.bubble-status.resolved { background: #c3e6cb; color: #22633a;}
.bubble-details { margin-top: 0.32em; font-size: 0.99em; }
.details-toggle-btn, .mark-resolved-btn, .clear-alert-btn { 
  background: none; 
  border: none; 
  cursor: pointer; 
  font-size: 1.16em; 
  margin-left: 0.23em;
}
.alert-bubble.resolved { opacity: 0.7; background: #f1f5f9;}
.alert-bubble.pending { border: 1.5px dashed #fbc02d; }
.alerts-empty { color: #b6a1d2; padding: 0.6em 0;}

/* === 7. Miscellaneous Helpers & Utility === */
.ew-watermark {
  position: absolute; 
  bottom: 10px; 
  right: 16px;
  background: url('/assets/img/echowall-logo-d.png') no-repeat center center;
  background-size: 28px 28px; 
  opacity: 0.12; 
  width: 28px; 
  height: 28px; 
  pointer-events: none;
}
.divider, .ew-divider, hr {
  border: none;
  border-top: 1.5px solid #f1e4fc;
  margin: 1.15rem 0 1.1rem 0;
}
.bubble-map-link { 
  color: #8559e1; 
  text-decoration: underline; 
  font-weight: 500; 
}

/* === 8. Footer === */
.footer {
  background: #f8f4fe;
  border-top: 1.5px solid #eadffb;
  text-align: center;
  padding: 2.2em 0 1.4em 0;
  margin-top: 3.5em;
}
.footer-icons {
  margin-bottom: 1em;
}
.footer-icon {
  color: #7e3af2;
  font-size: 1.25em;
  margin: 0 0.7em;
  transition: color 0.14s;
}
.footer-icon:hover {
  color: #b388ff;
}
.footer-note {
  color: #ad9bcc;
  font-size: 0.97em;
  margin-top: 0.4em;
}

/* === 9. Responsive Mobile Styles === */
@media (max-width: 640px) {
  .echokey-card { 
    padding: 1.1rem 0.5rem; 
    max-width: 99vw; 
    min-width: 90vw;
  }
}
  .cards-grid { 
    flex-direction: column; 
    gap: 1.2rem;
  }
  .header, .nav, .logo-slogan, .footer { 
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8em;
    padding-left: 1em;
    padding-right: 1em;
  }
  .modal-content {
    min-width: 90vw;
    padding: 1.3em 0.7em;
  }
}

/* === VISUAL ENHANCEMENTS - JULY 2025 === */

/* 1. Airy page background */
body {
  background: linear-gradient(135deg, #f5f1fa 40%, #f9e7ff 100%);
}

/* 2. Center card grid and space it on big screens */
.cards-grid {
  margin-top: 2.5rem;
  justify-content: center;
}
@media (min-width: 800px) {
  .cards-grid {
    gap: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 3. Card pop, depth, and animated hover */
.echokey-card {
  border: 2.5px solid #f0e6fa;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 40px 0 rgba(141, 106, 200, 0.13), 0 1.5px 8px rgba(122,98,190,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}
.echokey-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 20px 50px 0 rgba(127, 67, 220, 0.13), 0 3px 15px rgba(127,67,220,0.07);
}

/* Optional: Soft pastel gradient card border */
.echokey-card {
  border: 3px solid;
  border-image: linear-gradient(120deg,#efd3f2,#e1e1f7,#b4aee8,#ffe082) 1;
}

/* 4. Card header row visual */
.echokey-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.2em;
}
.echokey-alias {
  font-weight: 700;
  color: #8248e5;
  font-size: 1.18em;
  letter-spacing: 0.4px;
}
.echokey-status {
  background: #e7e0fa;
  color: #6b21a8;
  border-radius: 10px;
  font-size: 0.93em;
  padding: 0.17em 0.78em;
  font-weight: 600;
  margin-left: 0.8em;
}
.echokey-icon {
  font-size: 1.85em;
  background: #f3eaff;
  border-radius: 1.3em;
  padding: 0.14em 0.3em 0.14em 0.18em;
}

/* 5. Section titles: more color and pop */
.section-title {
  color: #7d4be8;
  font-size: 1.13em;
  font-weight: 700;
  border-left: 4px solid #efd3f2;
  padding-left: 0.7em;
  margin-bottom: 0.4em;
  letter-spacing: 0.5px;
}

/* 6. Card section vertical spacing for airiness */
.card-section {
  margin-bottom: 1.2rem;
  margin-top: 0.7rem;
}

/* 7. Buttons: bolder, rounded, modern gradient and hover */
.btn, .add-device-btn, .add-sender-btn, .trigger-safetap-btn, .decoy-save-btn, .decoy-randomize-btn, .ritual-add-btn {
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 1.5px 8px #e4d0fa28;
  transition: background 0.16s, box-shadow 0.17s, color 0.15s;
}
.btn-main, .add-sender-btn {
  background: linear-gradient(90deg, #8e54e9 0%, #e6c3fa 100%);
}
.btn-main:hover, .add-sender-btn:hover {
  background: linear-gradient(90deg, #7b3fd5 0%, #efd6fd 100%);
  color: #5e338e;
}
.trigger-safetap-btn {
  background: linear-gradient(90deg, #ffe7f1 0%, #fac0d5 100%);
  color: #cb2d6f;
}
.trigger-safetap-btn:hover {
  background: #ffd6eb;
  color: #a81f5a;
}

/* 8. Alerts: make info cards visually bold and status tags strong */
.alert-bubble {
  border: 2px solid #ffe082;
  background: linear-gradient(95deg, #fffbe8 85%, #fff0e7 100%);
  box-shadow: 0 4px 14px #fae1c644;
  font-size: 1.03em;
}
.bubble-status.pending {
  background: #ffe082;
  color: #b86b00;
  font-weight: bold;
}
.bubble-status.resolved {
  background: #d4f2d9;
  color: #25774a;
  font-weight: bold;
}
.bubble-type {
  background: #e7d6fd;
  color: #8559e1;
}

/* 9. Card subtle hover animation */
.echokey-card {
  transition: box-shadow 0.22s, transform 0.20s;
}
.echokey-card:hover {
  box-shadow: 0 16px 48px 0 #b388ff29, 0 2px 8px #f3eaff;
  transform: translateY(-4px) scale(1.01);
}
/* --- Prevent alert content overflow and handle long IDs --- */
.alert-bubble {
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bubble-header, .bubble-details {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.bubble-header .bubble-type,
.bubble-header .bubble-status,
.bubble-header .bubble-device {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

.bubble-header .bubble-id {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
  word-break: break-all;
  font-size: 0.95em;
}

/* Responsive fix for alert section */
@media (max-width: 800px) {
  .alerts-section,
  .alert-bubble {
    font-size: 0.97em;
    padding: 0.35em 0.3em;
  }
  .bubble-header .bubble-id {
    max-width: 85px;
  }
}
/* Desktop: always row layout for header and nav */
@media (min-width: 641px) {
  .header, .nav, .logo-slogan, .footer {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.1em !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .cards-grid {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 2.5rem !important;
  }
}

/* Wider cards */
.echokey-card {
  max-width: 540px;
  min-width: 360px;
}
.alert-bubble .bubble-details {
  display: none;
}
.alert-bubble.expanded .bubble-details {
  display: block;
}
/* === END VISUAL ENHANCEMENTS === */
@import url('/assets/css/fonts.css');
