
/* =================================
   AON ID - MAIN DESIGN SYSTEM
   ================================= */

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

body {
  font-family: Arial, sans-serif;
  background: #101827;
  color: #ffffff;
  min-height: 100vh;
}

.app-header {
  padding: 20px;
  border-bottom: 1px solid #263449;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: bold;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #101827;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.app-container {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 45px 22px;
}

.welcome-section {
  text-align: center;
}

.welcome-section h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.welcome-section p {
  color: #a8b5c8;
  line-height: 1.6;
}

.connection-card {
  margin-top: 35px;
  padding: 16px;
  background: #1c293b;
  border: 1px solid #304158;
  border-radius: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.status-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #f0ad4e;
  border-radius: 50%;
  margin-right: 8px;
}

footer {
  text-align: center;
  padding: 25px;
  color: #78869a;
  font-size: 12px;
}


/* =================================
   AON ID - AUTHENTICATION DESIGN
   ================================= */

.auth-card {
  margin-top: 30px;
  padding: 25px 20px;
  background: #1c293b;
  border: 1px solid #304158;
  border-radius: 16px;
}

.auth-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.auth-description {
  color: #a8b5c8;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  font-size: 13px;
  margin: 17px 0 8px;
  color: #d7dfeb;
}

.auth-card input {
  width: 100%;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #3a4b62;
  background: #101827;
  color: white;
  font-size: 15px;
  outline: none;
}

.auth-card input:focus {
  border-color: #60a5fa;
}

.auth-card button {
  width: 100%;
  padding: 15px;
  margin-top: 22px;
  border: none;
  border-radius: 9px;
  background: #2563eb;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.auth-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch {
  margin-top: 23px;
  text-align: center;
  color: #a8b5c8;
  font-size: 13px;
}

.auth-switch button,
.text-button {
  background: none !important;
  color: #60a5fa !important;
  padding: 5px !important;
  margin: 0 !important;
  width: auto !important;
  font-weight: bold;
}

.auth-message {
  display: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.auth-message:not(:empty) {
  display: block;
}

.auth-message.error {
  background: #451f2a;
  color: #fecaca;
}

.auth-message.success {
  background: #163c30;
  color: #bbf7d0;
}

.verification-icon {
  font-size: 48px;
  text-align: center;
  margin: 25px 0;
}

.verification-note {
  margin-top: 20px;
  color: #a8b5c8;
  font-size: 13px;
  line-height: 1.6;
}


/* ==========================================
   AON ID - MEMBER DASHBOARD
   ========================================== */

.member-dashboard {
  width: 100%;
}

.member-welcome {
  margin: 25px 0;
}

.member-welcome h2 {
  font-size: 23px;
  margin-bottom: 8px;
}

.member-welcome p,
.member-section > p {
  color: #a8b5c8;
  font-size: 14px;
  line-height: 1.6;
}

.aon-id-card {
  background: linear-gradient(135deg, #1d4ed8, #172554);
  padding: 24px;
  border-radius: 15px;
  text-align: center;
  margin: 20px 0 30px;
}

.aon-id-card p {
  color: #dbeafe;
  font-size: 13px;
}

.aon-id-card h2 {
  font-size: 30px;
  letter-spacing: 4px;
  margin: 12px 0;
}

.aon-id-card button,
.member-section button,
.member-result-card button,
.chat-screen button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.member-section {
  background: #1c293b;
  border: 1px solid #304158;
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}

.member-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.member-section input,
.message-form textarea {
  width: 100%;
  padding: 14px;
  margin: 14px 0 10px;
  background: #101827;
  border: 1px solid #3a4b62;
  border-radius: 9px;
  color: white;
  font-size: 15px;
  outline: none;
}

.member-section input:focus,
.message-form textarea:focus {
  border-color: #60a5fa;
}

.member-section button:disabled,
.chat-screen button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.member-result-card {
  background: #101827;
  border: 1px solid #304158;
  border-radius: 10px;
  padding: 16px;
  margin-top: 15px;
}

.member-result-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.member-result-card p {
  color: #a8b5c8;
  font-size: 13px;
  margin-bottom: 12px;
}

.conversation-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: #101827;
  border: 1px solid #304158;
  border-radius: 10px;
  color: white;
  text-align: left;
  cursor: pointer;
}

.conversation-item strong {
  font-size: 15px;
}

.conversation-item span {
  color: #a8b5c8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.conversation-item small {
  color: #7f91aa;
  font-size: 11px;
}

/* ==========================================
   AON ID - PRIVATE CHAT SCREEN
   ========================================== */

.chat-screen {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  background: #1c293b;
  border: 1px solid #304158;
  border-radius: 14px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: #172438;
  border-bottom: 1px solid #304158;
}

.chat-header h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.chat-header small {
  color: #a8b5c8;
  font-size: 12px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 300px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 18px 12px;
}

.message-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 13px;
  overflow-wrap: anywhere;
}

.message-bubble p {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-bubble small {
  display: block;
  font-size: 10px;
  color: #c1cbd9;
  text-align: right;
  margin-top: 7px;
}

.my-message {
  align-self: flex-end;
  background: #1d4ed8;
  border-bottom-right-radius: 3px;
}

.their-message {
  align-self: flex-start;
  background: #334155;
  border-bottom-left-radius: 3px;
}

.message-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #172438;
  border-top: 1px solid #304158;
}

.message-form textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  margin: 0;
}

.message-form button {
  min-height: 48px;
}

@media (max-width: 400px) {
  .member-section {
    padding: 15px;
  }

  .aon-id-card h2 {
    font-size: 25px;
  }

  .message-bubble {
    max-width: 90%;
  }
}


/* ==========================================
   AON ID - UNREAD MESSAGE COUNTS
   ========================================== */

.conversation-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.unread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 50px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ==========================================
   AON ID - ONLINE / OFFLINE INDICATORS
   ========================================== */

.member-presence {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}

.member-presence.presence-online {
  color: #16a34a;
}

.member-presence.presence-offline {
  color: #888888;
}

.chat-header .member-presence {
  margin-top: 4px;
}

.conversation-item .member-presence {
  margin-bottom: 5px;
}


/* =====================================
   AON ID - MESSAGE DELETE BUTTON
   ===================================== */

.delete-message-button {
  display: block;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid #dc2626;
  border-radius: 5px;
  background: transparent;
  color: #dc2626;
  font-size: 12px;
  cursor: pointer;
}

.delete-message-button:hover {
  background: #dc2626;
  color: #ffffff;
}

.delete-message-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =====================================
   AON ID - MEMBER BLOCKING STYLES
   ===================================== */

/* Chat header layout */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Block and unblock button */
#blockMemberButton {
  padding: 9px 13px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
  cursor: pointer;
}

#blockMemberButton:hover {
  background: #dc2626;
  color: #ffffff;
}

#blockMemberButton.member-blocked {
  border-color: #16a34a;
  color: #16a34a;
}

#blockMemberButton.member-blocked:hover {
  background: #16a34a;
  color: #ffffff;
}

#blockMemberButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Blocked member cards */
.blocked-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: transparent;
}

.blocked-member-card div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.blocked-member-card strong {
  overflow-wrap: anywhere;
}

.blocked-member-card small {
  opacity: 0.7;
}

.unblock-member-button {
  padding: 8px 13px;
  border: 1px solid #16a34a;
  border-radius: 6px;
  background: transparent;
  color: #16a34a;
  cursor: pointer;
  flex-shrink: 0;
}

.unblock-member-button:hover {
  background: #16a34a;
  color: #ffffff;
}

.unblock-member-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile chat header */
@media (max-width: 480px) {

  .chat-header {
    align-items: flex-start;
  }

  #blockMemberButton {
    width: 100%;
  }

  .blocked-member-card {
    align-items: flex-start;
  }

}


/* =====================================
   AON ID - REPORTING INTERFACE
   ===================================== */

.report-button,
.report-message-button {
  padding: 8px 13px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
  cursor: pointer;
}

.report-button:hover,
.report-message-button:hover {
  background: #dc2626;
  color: #ffffff;
}

.report-button:disabled,
.report-message-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-message-button {
  display: inline-block;
  margin-top: 8px;
}

@media (max-width: 480px) {

  .chat-member-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .chat-member-actions button {
    width: 100%;
  }

}


/* =====================================
   AON ID - ADMIN DASHBOARD STYLES
   ===================================== */

.admin-container {
  width: 100%;
  max-width: 1000px;
  margin: 25px auto;
  padding: 15px;
}

.admin-heading {
  margin-bottom: 25px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.admin-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-filter {
  padding: 9px 13px;
  border: 1px solid #777;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.admin-filter.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.admin-report-card {
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: var(--card-background, #fff);
  overflow-wrap: anywhere;
}

.admin-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-report-status {
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  font-size: 12px;
  text-transform: capitalize;
}

.admin-reported-message,
.admin-report-details {
  padding: 12px;
  margin: 12px 0;
  border-radius: 7px;
  background: #f3f4f6;
}

.admin-notes {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 14px;
  padding: 11px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.admin-report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-button {
  padding: 9px 12px;
  border: 1px solid #777;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.admin-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .admin-container {
    padding: 12px;
  }

  .admin-toolbar {
    align-items: stretch;

    
/* ==========================================
   AON ID - PREMIUM ADMIN DASHBOARD
   Modern dark SaaS administration interface
   ========================================== */

.admin-container {
  width: calc(100% - 32px);
  max-width: 1100px;
  margin: 35px auto;
  padding: 0;
  color: #e5e7eb;
}

/* Dashboard introduction */

.admin-heading {
  padding: 26px;
  margin-bottom: 22px;
  border: 1px solid #273449;
  border-radius: 16px;
  background: linear-gradient(135deg, #19283d, #111827);
}

.admin-heading h2 {
  margin: 0 0 9px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.admin-heading p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

/* Connection status */

.admin-container .system-status {
  padding: 13px 16px;
  margin-bottom: 25px;
  border: 1px solid #245b50;
  border-radius: 10px;
  background: #102c29;
  color: #5eead4;
  font-size: 13px;
}

/* Main report management section */

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 28px 0 18px;
}

.admin-toolbar h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
}

.admin-toolbar button {
  padding: 11px 17px;
  border: 1px solid #285e67;
  border-radius: 9px;
  background: #164e63;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.admin-toolbar button:active {
  transform: scale(0.98);
}

/* Report filters */

.admin-filters {
  display: flex;
  gap: 9px;
  padding: 5px 0 17px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid #334155;
  border-radius: 9px;
  background: #172033;
  color: #aebbd0;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-filter:hover {
  border-color: #0d9488;
  color: #5eead4;
}

.admin-filter.active {
  border-color: #0d9488;
  background: #115e59;
  color: #ccfbf1;
}

/* Individual report cards */

.admin-report-card {
  padding: 21px;
  margin-bottom: 17px;
  border: 1px solid #2b384d;
  border-radius: 15px;
  background: #182337;
  color: #dbe4f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
  overflow-wrap: anywhere;
}

.admin-report-card p {
  margin: 11px 0;
  color: #aab7ca;
  font-size: 13px;
  line-height: 1.65;
}

.admin-report-card strong {
  color: #e5e7eb;
  font-weight: 650;
}

.admin-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-report-header h3 {
  margin: 0;
  color: #f9fafb;
  font-size: 17px;
  font-weight: 750;
}

/* Report status */

.admin-report-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #92400e;
  border-radius: 30px;
  background: #422d16;
  color: #fcd34d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Evidence and additional details */

.admin-reported-message,
.admin-report-details {
  padding: 15px;
  margin: 16px 0;
  border: 1px solid #334155;
  border-radius: 11px;
  background: #111b2d;
}

.admin-reported-message strong,
.admin-report-details strong {
  display: block;
  margin-bottom: 9px;
  color: #5eead4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-reported-message p,
.admin-report-details p {
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
}

/* Administrative notes */

.admin-report-card label {
  display: block;
  margin: 19px 0 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 650;
}

.admin-notes {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  padding: 13px;
  margin-bottom: 17px;
  border: 1px solid #3b4a61;
  border-radius: 10px;
  outline: none;
  background: #101a2b;
  color: #f9fafb;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

.admin-notes::placeholder {
  color: #718096;
}

.admin-notes:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

/* Moderation action buttons */

.admin-report-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 5px;
}

.admin-action-button {
  padding: 11px 14px;
  border: 1px solid #3b4a61;
  border-radius: 9px;
  background: #243249;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-action-button:nth-child(1) {
  border-color: #2563eb;
  background: #172f59;
  color: #bfdbfe;
}

.admin-action-button:nth-child(2) {
  border-color: #0d9488;
  background: #10443f;
  color: #99f6e4;
}

.admin-action-button:nth-child(3) {
  border-color: #9f1239;
  background: #451b2b;
  color: #fda4af;
}

.admin-action-button:hover {
  filter: brightness(1.2);
}

.admin-action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Mobile optimization */

@media (max-width: 600px) {

  .admin-container {
    width: calc(100% - 24px);
    margin: 22px auto;
  }

  .admin-heading {
    padding: 21px 17px;
  }

  .admin-heading h2 {
    font-size: 23px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar button {
    width: 100%;
  }

  .admin-report-card {
    padding: 16px;
    border-radius: 12px;
  }

  .admin-report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-report-actions {
    flex-direction: column;
  }

  .admin-action-button {
    width: 100%;
    padding: 13px;
  }

}

    
/* ==========================================
   AON ID - ADMIN VISUAL CORRECTION
   High-priority dashboard styling
   ========================================== */

.admin-container {
  color: #e5e7eb !important;
}

.admin-container .admin-heading {
  background: linear-gradient(135deg, #19283d, #111827) !important;
  border: 1px solid #334155 !important;
  border-radius: 16px !important;
  padding: 22px !important;
}

.admin-container .admin-heading h2 {
  color: #ffffff !important;
}

.admin-container .admin-heading p {
  color: #aebbd0 !important;
}

.admin-container .admin-toolbar h3 {
  color: #ffffff !important;
}

.admin-container .admin-toolbar button {
  background: #164e63 !important;
  color: #ffffff !important;
  border: 1px solid #0d9488 !important;
  border-radius: 9px !important;
  padding: 11px 16px !important;
}

.admin-container .admin-filter {
  background: #172033 !important;
  color: #dbeafe !important;
  border: 1px solid #475569 !important;
}

.admin-container .admin-filter.active {
  background: #115e59 !important;
  color: #ffffff !important;
  border-color: #14b8a6 !important;
}

.admin-container #adminReportList .admin-report-card {
  background: #182337 !important;
  color: #e5e7eb !important;
  border: 1px solid #334155 !important;
  border-radius: 15px !important;
  padding: 20px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,.2) !important;
}

.admin-container .admin-report-card h3,
.admin-container .admin-report-card strong {
  color: #ffffff !important;
}

.admin-container .admin-report-card p {
  color: #cbd5e1 !important;
}

.admin-container .admin-report-status {
  background: #422d16 !important;
  color: #fcd34d !important;
  border: 1px solid #92400e !important;
}

.admin-container .admin-reported-message,
.admin-container .admin-report-details {
  background: #101a2b !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
}

.admin-container .admin-reported-message strong,
.admin-container .admin-report-details strong {
  color: #5eead4 !important;
}

.admin-container .admin-reported-message p,
.admin-container .admin-report-details p {
  color: #f1f5f9 !important;
}

.admin-container .admin-report-card label {
  color: #e2e8f0 !important;
}

.admin-container .admin-notes {
  background: #101a2b !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  border-radius: 10px !important;
}

.admin-container .admin-notes::placeholder {
  color: #94a3b8 !important;
}

.admin-container .admin-action-button {
  color: #ffffff !important;
  border-radius: 9px !important;
}

.admin-container .admin-action-button:nth-child(1) {
  background: #172f59 !important;
  border-color: #2563eb !important;
}

.admin-container .admin-action-button:nth-child(2) {
  background: #10443f !important;
  border-color: #0d9488 !important;
}

.admin-container .admin-action-button:nth-child(3) {
  background: #451b2b !important;
  border-color: #9f1239 !important;
}

.admin-container .admin-action-button:disabled {
  opacity: .5 !important;
}

    
/* ==========================================
   AON ID - HOMEPAGE AND RESPONSIVE DESIGN
   ========================================== */

/* Close the two unfinished blocks in the
   earlier admin mobile section. */
}
}

/* Global screen fitting */

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #101827;
}

.app-header {
  width: 100%;
  padding: 17px 22px;
  border-bottom: 0;
  background: #101827;
}

.brand {
  max-width: 1100px;
  margin: auto;
}

.app-container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 24px;
  min-height: calc(100vh - 130px);
}

footer {
  padding: 22px 15px;
}

/* Remove old connection indicator */

.status-indicator,
.connection-card {
  display: none !important;
}

/* Homepage */

.home-page {
  width: 100%;
  color: #ffffff;
}

.home-hero {
  min-height: 470px;
  padding: 75px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(37, 99, 235, 0.23),
      transparent 35%
    ),
    linear-gradient(135deg, #192b46, #111827 75%);
}

.home-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 65px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.home-hero h1 span {
  display: block;
  color: #60a5fa;
}

.home-description {
  max-width: 560px;
  margin-top: 22px;
  color: #b7c5d8;
  font-size: 16px;
  line-height: 1.8;
}

.home-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.home-primary-button,
.home-secondary-button {
  min-height: 50px;
  padding: 14px 23px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.home-primary-button {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.home-primary-button:hover {
  background: #1d4ed8;
}

.home-secondary-button {
  background: transparent;
  color: #ffffff;
  border: 1px solid #64748b;
}

.home-secondary-button:hover {
  background: #243249;
}

.home-primary-button:active,
.home-secondary-button:active {
  transform: scale(0.98);
}

/* Homepage features */

.home-features {
  padding: 65px 5px;
}

.home-features > h2,
.home-bottom h2 {
  font-size: 27px;
  margin-bottom: 12px;
}

.home-features > p,
.home-bottom p {
  color: #a8b5c8;
  line-height: 1.7;
  font-size: 14px;
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 28px;
}

.home-feature {
  padding: 25px 20px;
  background: #1c293b;
  border-radius: 14px;
}

.home-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #243d65;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
}

.home-feature h3 {
  margin-bottom: 11px;
  font-size: 16px;
}

.home-feature p {
  color: #a8b5c8;
  font-size: 13px;
  line-height: 1.7;
}

/* Homepage closing section */

.home-bottom {
  padding: 40px 25px;
  margin-bottom: 25px;
  text-align: center;
  border-radius: 16px;
  background: #1c293b;
}

.home-bottom button {
  margin-top: 22px;
}

/* Authentication screen corrections */

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 25px auto;
}

.auth-card select {
  width: 100%;
  padding: 14px;
  border: 1px solid #3a4b62;
  border-radius: 9px;
  background: #101827;
  color: #ffffff;
  font-size: 15px;
}

/* Dashboard screen fitting */

.member-dashboard {
  width: 100%;
  max-width: 100%;
}

.chat-screen {
  min-height: 65vh;
  max-height: calc(100dvh - 130px);
}

.message-list {
  overscroll-behavior: contain;
}

/* Mobile design */

@media (max-width: 650px) {

  .app-header {
    padding: 13px 17px;
  }

  .brand {
    font-size: 19px;
  }

  .app-container {
    padding: 12px;
    min-height: calc(100vh - 110px);
  }

  .home-hero {
    min-height: 430px;
    padding: 42px 23px;
    border-radius: 16px;
  }

  .home-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .home-description {
    font-size: 14px;
  }

  .home-actions {
    width: 100%;
    flex-direction: column;
  }

  .home-actions button {
    width: 100%;
  }

  .home-features {
    padding: 45px 5px;
  }

  .home-features > h2,
  .home-bottom h2 {
    font-size: 23px;
  }

  .home-feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-feature {
    padding: 20px;
  }

  .home-bottom {
    padding: 30px 18px;
  }

  .auth-card {
    margin: 15px auto;
    padding: 22px 17px;
  }

  .member-section {
    padding: 15px;
  }

  .chat-screen {
    min-height: 65vh;
    max-height: calc(100dvh - 110px);
  }

  .message-list {
    min-height: 250px;
    max-height: none;
  }

  footer {
    padding: 17px 10px;
  }
}

/* Smaller phones */

@media (max-width: 360px) {

  .home-hero {
    padding: 32px 17px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-primary-button,
  .home-secondary-button {
    width: 100%;
    padding: 13px;
  }

}


/* =====================================
   AON ID - BRAND HEADER
   Logo, name and tagline on one line
   ===================================== */

.app-header {
  width: 100%;
}

.app-header .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.app-header .brand-icon {
  flex-shrink: 0;
}

.app-header .brand-name {
  font-weight: 800;
  white-space: nowrap;
}

.app-header .brand-divider {
  width: 1px;
  height: 28px;
  background: #888;
  opacity: 0.45;
  flex-shrink: 0;
}

.app-header .brand-tagline {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .app-header .brand {
    gap: 7px;
  }

  .app-header .brand-tagline {
    font-size: 10px;
  }
}
