* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #07192b;
  min-height: 100vh;
  color: #10223a;
}

button {
  font-family: inherit;
}

.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f7fbff;
}

/* HEADER */

.header {
  height: 95px;
  background: #082640;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header h1 {
  font-size: 34px;
  letter-spacing: 2px;
}

.settings-btn {
  position: absolute;
  right: 22px;
  border: none;
  background: transparent;
  color: white;
  font-size: 27px;
  cursor: pointer;
}

/* CLOCKS */

.clocks {
  background: #082640;
  padding: 0 12px 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.clock-card {
  min-width: 0;
  min-height: 142px;
  padding: 10px 4px;
  border: 1px solid #36526a;
  border-radius: 14px;
  background: #0b2d49;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag {
  font-size: 31px;
  margin-bottom: 6px;
}

.clock-card span {
  font-size: 12px;
  font-weight: bold;
}

.clock-card strong {
  display: block;
  font-size: 20px;
  margin-top: auto;
  margin-bottom: 3px;
}

.clock-card small {
  color: #c9d4df;
  font-size: 10px;
}

/* PROFILE */

.profile {
  margin: 14px;
  padding: 15px;
  min-height: 100px;
  border: 1px solid #d6e0e9;
  border-radius: 17px;
  background: white;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 3px 12px rgba(20, 50, 80, 0.06);
}

.profile-circle {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2877d5;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 21px;
  margin-bottom: 4px;
}

.profile-info p {
  color: #6c7a8b;
}

.profile-arrow {
  color: #75869a;
  font-size: 38px;
}

/* CONTACTS */

.contacts-section {
  padding: 3px 18px 30px;
}

.contacts-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.contacts-heading h2 {
  font-size: 25px;
}

#add-contact-btn {
  border: none;
  border-radius: 22px;
  padding: 10px 15px;
  background: #2377ed;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 12px;
}

.contact {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #10223a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact > span {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.contact-circle {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: bold;
}

.pink {
  background: #ffc1c8;
}

.blue {
  background: #b9d8ff;
}

.green {
  background: #c2edc5;
}

.yellow {
  background: #ffe099;
}

.purple {
  background: #d4c0ff;
}

.mint {
  background: #aeead7;
}

.unread {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ef2929;
  color: white;
  border: 2px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .clock-card strong {
    font-size: 17px;
  }

  .clock-card span {
    font-size: 10px;
  }

  .contact-circle {
    width: 68px;
    height: 68px;
  }
}

/* COUNTRY FLAG IMAGES */

.flag {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.flag img {
  width: 48px;
  height: 32px;
  object-fit: contain;
  display: block;
}

/* =========================
   HERBST UNIVERSAL CHAT
   ========================= */

.chat-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eef5fb;
}

/* CHAT HEADER */

.chat-header {
  min-height: 92px;
  padding: 16px 18px;
  background: #082640;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: white;
  font-size: 42px;
  line-height: 30px;
  cursor: pointer;
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffc1c8;
  color: #10223a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.chat-person h1 {
  font-size: 21px;
  font-weight: 600;
}

/* CONNECTION STATUS */

.connection-status {
  padding: 6px;
  background: #fff2c7;
  color: #705500;
  text-align: center;
  font-size: 12px;
}

/* MESSAGE AREA */

.messages {
  flex: 1;
  padding: 22px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* MESSAGE BUBBLES */

.message {
  max-width: 76%;
  padding: 10px 13px 7px;
  border-radius: 17px;
  box-shadow: 0 2px 6px rgba(20, 50, 80, 0.08);
}

.message p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
}

.message time {
  display: block;
  font-size: 10px;
}

/* RECEIVED MESSAGE */

.message.received {
  align-self: flex-start;
  background: white;
  color: #10223a;
  border-bottom-left-radius: 5px;
}

.message.received time {
  color: #788797;
}

/* SENT MESSAGE */

.message.sent {
  align-self: flex-end;
  background: #2377ed;
  color: white;
  border-bottom-right-radius: 5px;
}

.message.sent time {
  color: #dceaff;
  text-align: right;
}

/* MESSAGE BAR */

.message-form {
  padding: 12px;
  background: white;
  border-top: 1px solid #d8e2eb;
  display: flex;
  align-items: center;
  gap: 9px;
}

#message-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #cbd7e2;
  border-radius: 23px;
  outline: none;
  color: #10223a;
  font-size: 15px;
  background: #f8fbfd;
}

#message-input:focus {
  border-color: #2377ed;
}

.send-btn {
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 23px;
  background: #2377ed;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.send-btn:hover {
  background: #1767d6;
}

/* =========================
   ADD CONTACT MODAL
   ========================= */

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 32, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

.modal-card h2 {
  color: #10223a;
  font-size: 25px;
  margin-bottom: 7px;
}

.modal-description {
  color: #6c7a8b;
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: none;
  background: transparent;
  color: #75869a;
  font-size: 30px;
  cursor: pointer;
}

#contact-search-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#contact-id-input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #cbd7e2;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
}

#contact-id-input:focus {
  border-color: #2377ed;
}

.contact-search-btn {
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #2377ed;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.contact-result {
  margin-top: 18px;
}

/* CONTACT SEARCH RESULT */

.found-contact {
  padding: 14px;
  border: 1px solid #d6e0e9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f8fbfd;
}

.found-contact-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffc1c8;
  color: #10223a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.found-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.found-contact-info strong {
  color: #10223a;
  font-size: 14px;
}

.found-contact-info span {
  margin-top: 3px;
  color: #6c7a8b;
  font-size: 12px;
}

.send-request-btn {
  border: none;
  border-radius: 18px;
  padding: 9px 12px;
  background: #2377ed;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.contact-error {
  color: #c23838;
  font-size: 13px;
  text-align: center;
}

.send-request-btn.request-sent {
  background: #8b9aaa;
  cursor: default;
}

/* =========================
   HERBST LOGIN
   ========================= */

.login-page {
  min-height: 100vh;
  padding: 30px 18px;
  background: #082640;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-brand h1 {
  color: #082640;
  font-size: 36px;
  letter-spacing: 3px;
  margin-bottom: 7px;
}

.login-brand p {
  color: #75869a;
  font-size: 14px;
}

#login-view h2,
#request-account-view h2 {
  color: #10223a;
  font-size: 23px;
  margin-bottom: 20px;
}

#login-form,
#request-account-form {
  display: flex;
  flex-direction: column;
}

#login-form label,
#request-account-form label {
  margin: 0 0 6px;
  color: #405269;
  font-size: 13px;
  font-weight: bold;
}

#login-form input,
#request-account-form input {
  width: 100%;
  height: 48px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #cbd7e2;
  border-radius: 12px;
  outline: none;
  color: #10223a;
  font-size: 15px;
}

#login-form input:focus,
#request-account-form input:focus {
  border-color: #2377ed;
}

.login-primary-btn,
.login-secondary-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.login-primary-btn {
  border: none;
  background: #2377ed;
  color: white;
}

.login-secondary-btn {
  border: 1px solid #2377ed;
  background: white;
  color: #2377ed;
}

.login-divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  color: #9aa7b5;
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce4eb;
}

.login-divider span {
  padding: 0 12px;
}

.login-back-btn {
  margin-bottom: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #2377ed;
  font-size: 14px;
  cursor: pointer;
}

.request-description {
  margin: -8px 0 20px;
  color: #75869a;
  font-size: 13px;
  line-height: 1.5;
}

.password-rules {
  margin: -8px 4px 14px;
  color: #75869a;
  font-size: 11px;
  line-height: 1.4;
}

/* ACCOUNT REQUEST SUCCESS */

#request-success-view {
  text-align: center;
  padding: 15px 0 5px;
}

.request-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #e7f6ed;
  color: #28a45f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: bold;
}

.request-success-title {
  color: #10223a;
  font-size: 24px;
  margin-bottom: 14px;
}

.request-success-text {
  color: #75869a;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ========================================
   HERBST ADMIN PAGE
======================================== */

.admin-page {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fb;
  font-family: Arial, sans-serif;
  color: #10223a;
}

.admin-container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 1px;
}

.admin-header p {
  margin: 4px 0 0;
  color: #7b8a9c;
  font-size: 14px;
}

.admin-logout-btn {
  border: 1px solid #d9e0e8;
  background: white;
  color: #10223a;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}

.admin-section {
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(16, 34, 58, 0.08);
}

.admin-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.admin-section-description {
  margin: 0 0 26px;
  color: #7b8a9c;
  font-size: 14px;
}

.admin-empty-state {
  padding: 35px 15px;
  text-align: center;
  color: #8a98a8;
  background: #f8fafc;
  border-radius: 12px;
}

/* ========================================
   HERBST ADMIN - PHONE LAYOUT
======================================== */

@media (max-width: 600px) {

  .admin-container {
    width: calc(100% - 28px);
    padding: 22px 0;
  }

  .admin-header {
    margin-bottom: 24px;
  }

  .admin-header h1 {
    font-size: 26px;
  }

  .admin-logout-btn {
    padding: 9px 14px;
  }

  .admin-section {
    padding: 20px;
    border-radius: 16px;
  }

  .admin-section h2 {
    font-size: 20px;
  }

  .admin-empty-state {
    padding: 28px 10px;
  }
}

/* ========================================
   HERBST ADMIN - ACCOUNT REQUESTS
======================================== */

.admin-request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e4e9ef;
  border-radius: 14px;
}

.admin-request-info h3 {
  margin: 0 0 10px;
  color: #10223a;
  font-size: 18px;
}

.admin-request-info p {
  margin: 5px 0;
  color: #66788c;
  font-size: 14px;
}

.admin-request-actions {
  display: flex;
  gap: 10px;
}

.admin-approve-btn,
.admin-reject-btn {
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-approve-btn {
  background: #1769e0;
  color: white;
}

.admin-reject-btn {
  background: #eef1f5;
  color: #c43d3d;
}


/* Phone layout */

@media (max-width: 600px) {

  .admin-request-card {
    display: block;
    padding: 18px;
  }

  .admin-request-actions {
    margin-top: 18px;
  }

  .admin-approve-btn,
  .admin-reject-btn {
    flex: 1;
    min-height: 44px;
  }

}

/* ========================================
   HERBST ADMIN - ACCOUNT REQUEST CARDS
======================================== */

.admin-request-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e3e9f0;
  border-radius: 14px;
}

.admin-request-info h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #10223a;
}

.admin-request-info p {
  margin: 6px 0;
  color: #65758a;
  font-size: 14px;
}

.admin-request-info strong {
  color: #34465c;
}

.admin-request-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.admin-approve-btn,
.admin-reject-btn {
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.admin-approve-btn {
  background: #287ff0;
  color: white;
}

.admin-reject-btn {
  background: #eef1f5;
  color: #c83d4d;
}

.admin-approve-btn:disabled,
.admin-reject-btn:disabled {
  opacity: 0.55;
  cursor: default;
}


/* PHONE */

@media (max-width: 600px) {

  .admin-request-card {
    display: block;
    padding: 18px;
  }

  .admin-request-actions {
    margin-top: 18px;
  }

  .admin-approve-btn,
  .admin-reject-btn {
    flex: 1;
    padding: 12px;
  }
}

/* ========================================
   HERBST - REAL CONTACTS + ADMIN POLISH
   ======================================== */


/* ---------- ADMIN BUTTON ON HOME ---------- */

.admin-btn {
    border: none;
    background: #ffffff;
    color: #172554;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease,
                opacity 0.15s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.admin-btn.hidden {
    display: none;
}


/* ---------- BACK TO HERBST - ADMIN PAGE ---------- */

.admin-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-weight: 700;
    font-size: 14px;

    padding: 9px 14px;
    border-radius: 10px;

    background: #ffffff;
    color: #172554;

    margin-left: auto;
    margin-right: 10px;

    transition: transform 0.15s ease,
                opacity 0.15s ease;
}

.admin-back-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}


/* ---------- REAL CONTACT GRID ---------- */

.contacts-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(90px, 1fr));

    gap: 18px;
    margin-top: 18px;
}


/* ---------- REAL CONTACT BUTTON ---------- */

.contact {
    appearance: none;
    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    padding: 8px 4px;

    cursor: pointer;

    font-family: inherit;
    color: inherit;

    min-width: 0;
}

.contact:hover {
    transform: translateY(-2px);
}


/* ---------- CONTACT INITIALS CIRCLE ---------- */

.contact .avatar {
    width: 62px;
    height: 62px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2d5df;
    color: #172554;

    font-size: 18px;
    font-weight: 800;

    box-shadow: 0 3px 10px
        rgba(0, 0, 0, 0.08);
}


/* ---------- CONTACT NAME ---------- */

.contact span {
    display: block;

    width: 100%;

    font-size: 13px;
    font-weight: 600;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================
   INCOMING CONTACT REQUESTS
   ======================================== */

.incoming-contact-requests {
    margin-top: 14px;
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.incoming-contact-requests.hidden {
    display: none;
}


/* Handles request elements even before
   we give them more specific classes */

.incoming-contact-requests > div {
    background: #ffffff;

    border: 1px solid
        rgba(23, 37, 84, 0.10);

    border-radius: 14px;

    padding: 14px;

    box-shadow: 0 4px 14px
        rgba(0, 0, 0, 0.06);
}


/* Buttons inside incoming request cards */

.incoming-contact-requests button {
    border: none;
    border-radius: 9px;

    padding: 8px 13px;
    margin-top: 10px;
    margin-right: 7px;

    font-family: inherit;
    font-weight: 700;
    font-size: 13px;

    cursor: pointer;
}


/* First button = Accept */

.incoming-contact-requests button:first-of-type {
    background: #172554;
    color: #ffffff;
}


/* Second button = Decline */

.incoming-contact-requests button:last-of-type {
    background: #eef0f5;
    color: #172554;
}


/* ---------- PHONE POLISH ---------- */

@media (max-width: 600px) {

    .admin-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .admin-back-btn {
        font-size: 12px;
        padding: 8px 10px;
        margin-right: 6px;
    }

    .contacts-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px 10px;
    }

    .contact .avatar {
        width: 56px;
        height: 56px;
        font-size: 16px;
    }

    .contact span {
        font-size: 12px;
    }

    .incoming-contact-requests > div {
        padding: 12px;
    }
}

/* ========================================
   INCOMING CONTACT REQUEST - FINAL STYLE
   ======================================== */

.incoming-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid rgba(23, 37, 84, 0.10);
    border-radius: 16px;

    padding: 14px 16px;
    margin-bottom: 12px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.incoming-request-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.incoming-request-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f2d5df;
    color: #172554;

    font-size: 15px;
    font-weight: 800;
}

.incoming-request-info > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.incoming-request-info strong {
    color: #172554;
    font-size: 14px;
    font-weight: 700;
}

.incoming-request-info span {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.incoming-request-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.accept-contact-btn,
.decline-contact-btn {
    border: none;
    border-radius: 9px;

    padding: 8px 12px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.accept-contact-btn {
    background: #172554;
    color: #ffffff;
}

.decline-contact-btn {
    background: #eef0f5;
    color: #172554;
}

.accept-contact-btn:disabled,
.decline-contact-btn:disabled {
    opacity: 0.55;
    cursor: default;
}


/* Phone layout */

@media (max-width: 600px) {

    .incoming-request-card {
        flex-direction: column;
        align-items: stretch;
        padding: 13px;
    }

    .incoming-request-actions {
        width: 100%;
    }

    .accept-contact-btn,
    .decline-contact-btn {
        flex: 1;
        padding: 9px 10px;
    }
}

/* ========================================
   HERBST CHAT - MOBILE SCREEN LOCK
   ======================================== */

html {
    height: 100%;
}

body:has(.chat-app) {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.app.chat-app {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header stays on screen */
.chat-app .chat-header {
    flex: 0 0 auto;
}

/* Only this middle section scrolls */
.chat-app .messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Message box stays on screen */
.chat-app .message-form {
    flex: 0 0 auto;
    position: relative;
    bottom: auto;
}

/* Older-browser fallback */
@supports not (height: 100dvh) {
    .app.chat-app {
        height: 100vh;
        max-height: 100vh;
    }
}

/* ========================================
   UNREAD MESSAGE BADGE
======================================== */

.avatar {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;

    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    max-width: 22px;
    min-height: 22px;
    max-height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0;

    background: #e53935;
    color: white;

    border: 2px solid white;
    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    box-sizing: border-box;
}

/* =========================================================
   HERBST V1.5 - BLACK / WHITE / RED BRANDING
   KEEP THIS SECTION AT THE BOTTOM
   ========================================================= */

:root {
  --herbst-black: #0b0b0d;
  --herbst-red: #d71920;
  --herbst-red-dark: #b51218;
  --herbst-white: #ffffff;
  --herbst-bg: #f5f5f5;
  --herbst-text: #171717;
  --herbst-muted: #737373;
  --herbst-border: #dddddd;
  --herbst-soft: #eeeeee;
}

/* GENERAL */

body {
  background: var(--herbst-black);
  color: var(--herbst-text);
}

.app {
  background: var(--herbst-bg);
}


/* HOME HEADER */

.header {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border-bottom: 3px solid var(--herbst-red);
}

.settings-btn {
  color: var(--herbst-white);
}


/* WORLD CLOCKS */

.clocks {
  background: var(--herbst-black);
}

.clock-card {
  background: #171719;
  border-color: #353535;
  color: var(--herbst-white);
}

.clock-card small {
  color: #bdbdbd;
}


/* HOME PROFILE */

.profile {
  background: var(--herbst-white);
  border-color: var(--herbst-border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.profile-circle {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.profile-info h2,
.contacts-heading h2,
.contact {
  color: var(--herbst-text);
}

.profile-info p,
.profile-arrow {
  color: var(--herbst-muted);
}


/* CONTACTS */

#add-contact-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

#add-contact-btn:hover {
  background: var(--herbst-red-dark);
}

.contact .avatar {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border: 2px solid var(--herbst-red);
}

.unread,
.unread-badge {
  background: var(--herbst-red);
  color: var(--herbst-white);
  border-color: var(--herbst-white);
}


/* CHAT */

.chat-app {
  background: var(--herbst-bg);
}

.chat-header {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border-bottom: 3px solid var(--herbst-red);
}

.back-btn {
  color: var(--herbst-white);
}

.chat-avatar {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.messages {
  background: var(--herbst-bg);
}


/* RECEIVED MESSAGE */

.message.received {
  background: var(--herbst-white);
  color: var(--herbst-text);
  border: 1px solid var(--herbst-border);
}

.message.received time {
  color: var(--herbst-muted);
}


/* SENT MESSAGE */

.message.sent {
  background: #000000;
  color: #ffffff;
}

.message.sent time {
  color: #bdbdbd;
}

/* MESSAGE COMPOSER */

.message-form {
  background: var(--herbst-white);
  border-top-color: var(--herbst-border);
}

#message-input {
  background: var(--herbst-bg);
  border-color: #cfcfcf;
  color: var(--herbst-text);
}

#message-input:focus {
  border-color: var(--herbst-red);
}

.send-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.send-btn:hover {
  background: var(--herbst-red-dark);
}


/* ADD CONTACT MODAL */

.modal {
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  background: var(--herbst-white);
}

.modal-card h2,
.found-contact-info strong {
  color: var(--herbst-text);
}

.modal-description,
.found-contact-info span,
.modal-close {
  color: var(--herbst-muted);
}

#contact-id-input:focus {
  border-color: var(--herbst-red);
}

.contact-search-btn,
.send-request-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.found-contact {
  background: var(--herbst-bg);
  border-color: var(--herbst-border);
}

.found-contact-avatar {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border: 2px solid var(--herbst-red);
}


/* CONTACT REQUESTS */

.incoming-contact-requests > div,
.incoming-request-card {
  background: var(--herbst-white);
  border-color: var(--herbst-border);
}

.incoming-request-avatar {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border: 2px solid var(--herbst-red);
}

.incoming-request-info strong {
  color: var(--herbst-text);
}

.incoming-request-info span {
  color: var(--herbst-muted);
}

.incoming-contact-requests button:first-of-type,
.accept-contact-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.incoming-contact-requests button:last-of-type,
.decline-contact-btn {
  background: var(--herbst-soft);
  color: var(--herbst-text);
}


/* LOGIN */

.login-page {
  background: var(--herbst-black);
}

.login-card {
  background: var(--herbst-white);
  border-top: 4px solid var(--herbst-red);
}

.login-brand h1 {
  color: var(--herbst-black);
}

.login-brand p,
.request-description,
.password-rules,
.request-success-text {
  color: var(--herbst-muted);
}

#login-view h2,
#request-account-view h2,
.request-success-title {
  color: var(--herbst-text);
}

#login-form label,
#request-account-form label {
  color: #444444;
}

#login-form input,
#request-account-form input {
  color: var(--herbst-text);
  border-color: #cfcfcf;
}

#login-form input:focus,
#request-account-form input:focus {
  border-color: var(--herbst-red);
}

.login-primary-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.login-primary-btn:hover {
  background: var(--herbst-red-dark);
}

.login-secondary-btn {
  border-color: var(--herbst-red);
  background: var(--herbst-white);
  color: var(--herbst-red);
}

.login-back-btn {
  color: var(--herbst-red);
}

.request-success-icon {
  background: #fbe7e8;
  color: var(--herbst-red);
}


/* ADMIN */

.admin-page {
  background: var(--herbst-bg);
  color: var(--herbst-text);
}

.admin-header {
  border-bottom: 3px solid var(--herbst-red);
  padding-bottom: 18px;
}

.admin-header h1,
.admin-section h2,
.admin-request-info h3 {
  color: var(--herbst-text);
}

.admin-header p,
.admin-section-description,
.admin-empty-state,
.admin-request-info p {
  color: var(--herbst-muted);
}

.admin-section {
  background: var(--herbst-white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.admin-empty-state,
.admin-request-card {
  background: #fafafa;
  border-color: var(--herbst-border);
}

.admin-btn,
.admin-back-btn {
  background: var(--herbst-white);
  color: var(--herbst-black);
  border: 1px solid var(--herbst-red);
}

.admin-logout-btn {
  background: var(--herbst-black);
  color: var(--herbst-white);
  border-color: var(--herbst-black);
}

.admin-approve-btn {
  background: var(--herbst-red);
  color: var(--herbst-white);
}

.admin-reject-btn {
  background: var(--herbst-soft);
  color: var(--herbst-red);
}


/* CONNECTION STATUS */

.connection-status {
  background: #fff0f0;
  color: #8f1015;
}

/* =========================================================
   HERBST V1.5 - MY HERBST PANEL
   ========================================================= */

.profile {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile:hover {
  transform: translateY(-1px);
}

.profile:focus-visible {
  outline: 2px solid var(--herbst-red);
  outline-offset: 2px;
}

.profile-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  justify-content: flex-end;

  background: rgba(0, 0, 0, 0.62);
}

.profile-panel {
  width: min(420px, 92vw);
  height: 100%;
  min-height: 100vh;

  padding:
    max(24px, env(safe-area-inset-top))
    20px
    max(24px, env(safe-area-inset-bottom));

  overflow-y: auto;

  background: var(--herbst-white);
  color: var(--herbst-text);

  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}

.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 18px;

  border-bottom: 3px solid var(--herbst-red);
}

.profile-panel-label {
  margin-bottom: 3px;

  color: var(--herbst-red);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.profile-panel-header h2 {
  color: var(--herbst-black);
  font-size: 27px;
}

.profile-panel-close {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: var(--herbst-soft);
  color: var(--herbst-black);

  font-size: 27px;
  line-height: 1;

  cursor: pointer;
}

.profile-panel-user {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 22px 0;
  padding: 18px;

  border-radius: 16px;

  background: var(--herbst-black);
  color: var(--herbst-white);
}

.profile-panel-avatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--herbst-red);
  color: var(--herbst-white);

  font-size: 19px;
  font-weight: 800;
}

.profile-panel-user-info {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.profile-panel-user-info strong {
  overflow: hidden;

  font-size: 18px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-panel-user-info span {
  margin-top: 4px;

  color: #c7c7c7;

  font-size: 13px;
}

.profile-panel-menu {
  overflow: hidden;

  border: 1px solid var(--herbst-border);
  border-radius: 16px;

  background: var(--herbst-white);
}

.profile-menu-item {
  width: 100%;
  min-height: 70px;

  padding: 14px 16px;

  border: none;
  border-bottom: 1px solid var(--herbst-border);

  background: var(--herbst-white);
  color: var(--herbst-text);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  text-align: left;
  cursor: pointer;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: #fafafa;
}

.profile-menu-item > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-item strong {
  font-size: 15px;
}

.profile-menu-item small {
  color: var(--herbst-muted);
  font-size: 12px;
}

.profile-menu-arrow {
  color: var(--herbst-muted);
  font-size: 27px;
}

.profile-panel-danger {
  margin-top: 24px;
}

.danger-item {
  margin-bottom: 12px;

  border: 1px solid #f0c5c7 !important;
  border-radius: 14px;

  color: var(--herbst-red);
}

.danger-item strong {
  color: var(--herbst-red);
}

.profile-logout-btn {
  width: 100%;
  min-height: 48px;

  border: 1px solid var(--herbst-black);
  border-radius: 12px;

  background: var(--herbst-black);
  color: var(--herbst-white);

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.profile-panel-open {
  overflow: hidden;
}

@media (max-width: 600px) {

  .profile-panel {
    width: 92vw;
  }
}

/* =========================================================
   HERBST V1.5 - CLOCK CARD SPACING FIX
   Keeps clock cards clear of the red header line
   ========================================================= */

.clocks {
  padding-top: 8px;
}

/* =========================================================
   HERBST V1.5 - WORLD CLOCK SETTINGS
   ========================================================= */

.world-clock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;

  display: flex;
  justify-content: flex-end;

  background: rgba(0, 0, 0, 0.62);
}

.world-clock-panel {
  width: min(420px, 92vw);
  height: 100%;
  min-height: 100vh;

  padding:
    max(24px, env(safe-area-inset-top))
    20px
    max(24px, env(safe-area-inset-bottom));

  overflow-y: auto;

  background: var(--herbst-white);
  color: var(--herbst-text);

  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}

.world-clock-header {
  display: flex;
  align-items: center;
  gap: 14px;

  padding-bottom: 18px;

  border-bottom: 3px solid var(--herbst-red);
}

.world-clock-back {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  border: none;
  border-radius: 50%;

  background: var(--herbst-soft);
  color: var(--herbst-black);

  font-size: 32px;
  line-height: 1;

  cursor: pointer;
}

.world-clock-label {
  margin-bottom: 3px;

  color: var(--herbst-red);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.world-clock-header h2 {
  color: var(--herbst-black);
  font-size: 27px;
}

.world-clock-description {
  margin: 20px 0 16px;

  color: var(--herbst-muted);

  font-size: 14px;
  line-height: 1.5;
}

.world-clock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-bottom: 18px;
}

.clock-action-btn {
  min-height: 44px;

  padding: 8px 12px;

  border: none;
  border-radius: 11px;

  background: var(--herbst-black);
  color: var(--herbst-white);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.clock-action-btn.secondary {
  border: 1px solid var(--herbst-border);

  background: var(--herbst-white);
  color: var(--herbst-text);
}

.world-clock-list {
  overflow: hidden;

  border: 1px solid var(--herbst-border);
  border-radius: 16px;

  background: var(--herbst-white);
}

.world-clock-option {
  min-height: 68px;

  padding: 11px 14px;

  display: flex;
  align-items: center;
  gap: 13px;

  border-bottom: 1px solid var(--herbst-border);

  cursor: pointer;
}

.world-clock-option:last-child {
  border-bottom: none;
}

.world-clock-option:hover {
  background: #fafafa;
}

.world-clock-option img {
  width: 48px;
  height: 32px;
  flex-shrink: 0;

  object-fit: contain;
}

.world-clock-option-info {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.world-clock-option-info strong {
  color: var(--herbst-text);

  font-size: 15px;
}

.world-clock-option-info small {
  color: var(--herbst-muted);

  font-size: 12px;
}

.world-clock-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;

  accent-color: var(--herbst-red);

  cursor: pointer;
}

.world-clock-limit-message {
  margin-top: 14px;
  padding: 11px 13px;

  border: 1px solid #f0c5c7;
  border-radius: 11px;

  background: #fff7f7;
  color: var(--herbst-red);

  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {

  .world-clock-panel {
    width: 92vw;
  }

}

/* =========================================================
   HERBST V1.5 - ANDROID CHAT VIEWPORT FIX
   ========================================================= */

body:has(.chat-app) {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
}

.app.chat-app {
    height: 100svh;
    max-height: 100svh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}

.chat-app .messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.chat-app .message-form {
    flex: 0 0 auto;
    position: relative;
    bottom: auto;
    padding: 12px;
}

/* =========================================================
   HERBST V1.5 - CHAT OPTIONS MENU
   ========================================================= */

.chat-app .chat-header {
    position: relative;
}

.chat-app .chat-person {
    flex: 1;
    min-width: 0;
}

.chat-options {
    position: relative;
    margin-left: auto;
    flex: 0 0 auto;
}

.chat-menu-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: var(--herbst-white);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.chat-menu-btn:hover,
.chat-menu-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.chat-menu {
    position: absolute;
    top: 48px;
    right: 0;

    width: 190px;
    overflow: hidden;

    z-index: 3000;

    border: 1px solid var(--herbst-border);
    border-radius: 14px;

    background: var(--herbst-white);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.chat-menu button {
    width: 100%;
    min-height: 50px;

    padding: 12px 16px;

    border: none;
    border-bottom: 1px solid var(--herbst-border);

    background: var(--herbst-white);
    color: var(--herbst-text);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;

    cursor: pointer;
}

.chat-menu button:last-child {
    border-bottom: none;
}

.chat-menu button:hover {
    background: #f5f5f5;
}

.chat-menu .chat-menu-danger {
    color: var(--herbst-red);
}

/* =========================================================
   HERBST V1.5 - HELP & SAFETY
   ========================================================= */

/* Main Help & Safety menu */

.help-safety-content {
    margin-top: 20px;
    padding-bottom: 28px;
}

.help-menu-list {
    overflow: hidden;
    border: 1px solid var(--herbst-border);
    border-radius: 16px;
    background: var(--herbst-white);
}

.help-menu-list .profile-menu-item {
    background: var(--herbst-white);
}

.help-menu-list .profile-menu-item:last-child {
    border-bottom: none;
}

.help-menu-list .profile-menu-item:active {
    background: var(--herbst-soft);
}


/* Policy / information pages */

.policy-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-safety-section {
    padding: 17px;
    border: 1px solid var(--herbst-border);
    border-radius: 15px;
    background: #fafafa;
}

.help-safety-section h3 {
    margin: 0 0 9px;
    color: var(--herbst-text);
    font-size: 17px;
    line-height: 1.25;
}

.help-safety-section p {
    margin: 0;
    color: var(--herbst-muted);
    font-size: 14px;
    line-height: 1.55;
}

.help-safety-section p + p {
    margin-top: 10px;
}

.help-safety-section strong {
    color: var(--herbst-text);
}

.policy-intro {
    background: var(--herbst-white);
    border-left: 4px solid var(--herbst-red);
}

.policy-note {
    background: var(--herbst-white);
}


/* Help & Support page */

#help-support-overlay .help-safety-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* Contact Support form */

#contact-support-overlay .help-safety-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#support-request-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--herbst-border);
    border-radius: 16px;
    background: var(--herbst-white);
}

#support-request-form label {
    margin-top: 4px;
    color: var(--herbst-text);
    font-size: 14px;
    font-weight: 700;
}

#support-category,
#support-message {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--herbst-border);
    border-radius: 12px;
    background: var(--herbst-white);
    color: var(--herbst-text);
    font: inherit;
    font-size: 15px;
}

#support-category {
    min-height: 48px;
    padding: 0 13px;
}

#support-message {
    min-height: 160px;
    padding: 13px;
    line-height: 1.5;
    resize: vertical;
}

#support-category:focus,
#support-message:focus {
    outline: none;
    border-color: var(--herbst-red);
    box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.12);
}

#support-message::placeholder {
    color: #969696;
}

#submit-support-request {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: var(--herbst-red);
    color: var(--herbst-white);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

#submit-support-request:active {
    background: var(--herbst-red-dark);
}

#submit-support-request:disabled {
    opacity: 0.65;
    cursor: default;
}


/* Mobile spacing */

@media (max-width: 520px) {

    .help-safety-content {
        margin-top: 16px;
        padding-bottom: 24px;
    }

    .help-safety-section {
        padding: 15px;
        border-radius: 14px;
    }

    #support-request-form {
        padding: 15px;
        border-radius: 14px;
    }

    #support-message {
        min-height: 150px;
    }
}

/* =========================================================
   HERBST - CENTER SELECTED HOME WORLD CLOCKS
   ========================================================= */

#home-world-clocks {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 7px;
}

#home-world-clocks .clock-card {
  width: calc((100% - 28px) / 5);
  box-sizing: border-box;
}

/* =========================================================
   HERBST ADMIN - BROADCAST MESSAGE
   ========================================================= */

.admin-broadcast-box {
  margin-top: 16px;
}

.admin-broadcast-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  box-sizing: border-box;

  background: #111111;
  color: #ffffff;

  border: 1px solid #333333;
  border-radius: 10px;

  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;

  resize: vertical;
  outline: none;
}

.admin-broadcast-textarea:focus {
  border-color: #d60000;
}

.admin-broadcast-textarea::placeholder {
  color: #777777;
}

.admin-broadcast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
  margin-top: 12px;
}

#broadcast-character-count {
  color: #888888;
  font-size: 12px;
}

.admin-broadcast-publish-btn {
  padding: 11px 16px;

  background: #d60000;
  color: #ffffff;

  border: none;
  border-radius: 8px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.admin-broadcast-publish-btn:active {
  transform: scale(0.98);
}

.admin-broadcast-publish-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-broadcast-status {
  min-height: 20px;
  margin-top: 10px;

  color: #aaaaaa;
  font-size: 13px;
}

/* =========================================================
   HERBST HOME - BROADCAST MESSAGE
   ========================================================= */

.home-broadcast {
  margin: 12px 16px;
  padding: 14px 16px;

  background: #111111;
  color: #ffffff;

  border-left: 4px solid #d60000;
  border-radius: 10px;
}

.home-broadcast-label {
  margin-bottom: 6px;

  color: #d60000;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.home-broadcast p {
  margin: 0;

  color: #ffffff;

  font-size: 14px;
  line-height: 1.5;

  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* =========================================================
   HERBST ADMIN - CLEAR BROADCAST
   ========================================================= */

.admin-broadcast-clear-btn {
  padding: 11px 16px;

  background: transparent;
  color: #ffffff;

  border: 1px solid #555555;
  border-radius: 8px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.admin-broadcast-clear-btn:hover {
  border-color: #888888;
}

.admin-broadcast-clear-btn:active {
  transform: scale(0.98);
}

.admin-broadcast-clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* HERBST ADMIN - CLEAR BROADCAST BUTTON FIX */

.admin-broadcast-clear-btn {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
}

.admin-broadcast-clear-btn:hover {
  background: #222222;
  border-color: #222222;
}

/* =========================================================
   HERBST HOME - PERSONAL GREETING
   ========================================================= */

.home-greeting {
  padding: 14px 16px 4px;
  background: #0b0b0d;
}

.home-greeting p {
  margin: 0;

  color: #ffffff;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================================
   HERBST ADMIN - PREVENT HORIZONTAL OVERFLOW
   ========================================================= */

.admin-section,
.admin-broadcast-box,
.admin-broadcast-textarea,
.admin-broadcast-footer {
  max-width: 100%;
  box-sizing: border-box;
}

.admin-broadcast-footer {
  flex-wrap: wrap;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================================================
   HERBST ADMIN - MATCH HOME APP WIDTH
   ========================================================= */

body.admin-page .admin-shell {
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   HERBST ADMIN - MATCH HOME WIDTH
   ========================================================= */

.admin-page .admin-container {
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* =========================================================
   HERBST ADMIN - STACK BROADCAST BUTTONS
   ========================================================= */

.admin-broadcast-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px 12px;
}

#broadcast-character-count {
  grid-column: 1;
  grid-row: 1;
}

.admin-broadcast-publish-btn {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.admin-broadcast-clear-btn {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
}

/* =========================================================
   HERBST ADMIN - COMPACT BROADCAST CARD
   ========================================================= */

/* Lift the Broadcast card closer to the header */
.admin-broadcast-section {
  margin-top: 4px;
  padding-bottom: 18px;
}

/* Shorter message box */
.admin-broadcast-textarea {
  min-height: 90px;
  height: 90px;
}

/* Remove unnecessary space below the controls */
.admin-broadcast-box {
  margin-bottom: 0;
}

.admin-broadcast-footer {
  margin-bottom: 0;
}

.admin-broadcast-status:empty {
  display: none;
}

/* =========================================================
   HERBST ADMIN - HEADER SPACING
   ========================================================= */

.admin-page .admin-header {
  margin-bottom: 12px;
}

/* =========================================================
   HERBST ADMIN - SEASONAL THEMES
   ========================================================= */

.admin-themes-section {
  padding-bottom: 22px;
}

.admin-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.admin-theme-btn {
  min-width: 0;
  min-height: 72px;
  padding: 8px 4px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  background: #111111;
  color: #ffffff;

  border: 2px solid #111111;
  border-radius: 10px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;

  cursor: pointer;
  box-sizing: border-box;
}

.admin-theme-icon {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.admin-theme-btn:hover {
  background: #222222;
  border-color: #222222;
}

.admin-theme-btn:active {
  transform: scale(0.96);
}

/* This will be used when Firebase is connected */
.admin-theme-btn.active {
  background: #d60000;
  border-color: #d60000;
}

.admin-theme-btn.active::after {
  content: "ACTIVE";
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.8px;
}

.admin-theme-status {
  margin: 14px 0 0;
  color: #7b8a9c;
  font-size: 12px;
}

/* =========================================================
   HERBST HOME - ADMIN BUTTON SPACING
   ========================================================= */

.admin-link {
  margin-left: 10px;
}

/* Christmas green replaces the main HERBST red accents */
body[data-herbst-theme="christmas"] {
  --herbst-red: #16823b;
}

/* Header line */
body[data-herbst-theme="christmas"]
.app-header {
  border-bottom-color: #16823b;
}

/* World clock cards */
body[data-herbst-theme="christmas"]
.clock-card {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 10px rgba(22, 130, 59, 0.14);
}

/* Add Contact */
body[data-herbst-theme="christmas"]
.add-contact-btn {
  background: #16823b;
}

/* Profile avatar */
body[data-herbst-theme="christmas"]
.profile-avatar {
  background: #16823b;
}

/* Contact circles */
body[data-herbst-theme="christmas"]
.contact-avatar {
  border-color: #16823b;
}

/* Broadcast keeps a Christmas accent */
body[data-herbst-theme="christmas"]
.home-broadcast {
  border-left-color: #16823b;
}

body[data-herbst-theme="christmas"]
.home-broadcast-label {
  color: #16823b;
}

/* =========================================================
   HERBST CHRISTMAS BANNER - FINAL
   ========================================================= */

#herbst-seasonal-banner {
  display: none;
}

body[data-herbst-theme="christmas"]
#herbst-seasonal-banner {
  display: block;

  margin: 6px 16px 4px;
  padding: 6px 10px;

  background-color: #0b0b0d !important;
  color: #ffffff !important;

  border: 0 !important;
  border-bottom: 3px solid #16823b !important;

  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;

  box-sizing: border-box;
}

/* =========================================================
   HERBST CHRISTMAS - CLEAN BANNER + LIGHTS
   ========================================================= */

body[data-herbst-theme="christmas"]
#herbst-seasonal-banner {
  display: block;

  width: calc(100% - 32px);
  margin: 6px auto 8px;
  padding: 10px;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #16823b !important;
  outline: none !important;
  box-shadow: none !important;

  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;

  box-sizing: border-box;
}

/* =========================================================
   HERBST CHRISTMAS - HOME APP BACKGROUND
   ========================================================= */

body[data-herbst-theme="christmas"] .app {
  background: #0b0b0d;
}

/* =========================================================
   HERBST CHRISTMAS - CONTACT TEXT VISIBILITY
   ========================================================= */

/* Contacts heading */
body[data-herbst-theme="christmas"] .contacts-section h2 {
  color: #ffffff !important;
}

/* Contact names underneath the circles */
body[data-herbst-theme="christmas"] .contact-name {
  color: #ffffff !important;
}

/* Fallback for contact labels if they use another element */
body[data-herbst-theme="christmas"] .contact-item {
  color: #ffffff;
}

 /* =========================================================
   HERBST CHRISTMAS - CONTACT NAMES
   ========================================================= */

body[data-herbst-theme="christmas"] .contact {
  color: #ffffff;
}

/* =========================================================
   HERBST CHRISTMAS - HEADER LIGHTS
   ========================================================= */

body[data-herbst-theme="christmas"]
.app-header {
  position: relative;
  padding-bottom: 16px;
}

/* =========================================================
   HERBST CHRISTMAS - COLORED HEADER LIGHTS
   ========================================================= */

body[data-herbst-theme="christmas"] .header::after {
  content: "🔴  🟢  🟡  ⚪  🔴  🟢  🟡  ⚪  🔴  🟢";

  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);

  width: 100%;
  text-align: center;

  font-size: 7px;
  letter-spacing: 2px;
  line-height: 1;

  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 7px rgba(255, 215, 80, 0.5));

  animation:
    herbstColoredHeaderLights 1.5s ease-in-out infinite;

  pointer-events: none;
}

@keyframes herbstColoredHeaderLights {

  0%,
  100% {
    opacity: 0.55;

    filter:
      drop-shadow(0 0 2px rgba(255, 70, 70, 0.7))
      drop-shadow(0 0 5px rgba(40, 255, 90, 0.5));
  }

  50% {
    opacity: 1;

    filter:
      drop-shadow(0 0 5px rgba(255, 70, 70, 1))
      drop-shadow(0 0 9px rgba(40, 255, 90, 0.9))
      drop-shadow(0 0 12px rgba(255, 220, 80, 0.7));
  }
}

/* =========================================================
   HERBST CHRISTMAS - MINI COLOURED LIGHTS
   ========================================================= */

.christmas-mini-lights {
  display: none;
}

body[data-herbst-theme="christmas"]
.christmas-mini-lights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

body[data-herbst-theme="christmas"]
.christmas-mini-lights span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: herbstMiniChristmasTwinkle 1.6s ease-in-out infinite alternate;
}

/* RED */
body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(4n + 1) {
  background: #ff3030;
  box-shadow:
    0 0 4px #ff3030,
    0 0 9px #ff3030,
    0 0 14px rgba(255, 48, 48, 0.8);
}

/* GREEN */
body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(4n + 2) {
  background: #32e04f;
  box-shadow:
    0 0 4px #32e04f,
    0 0 9px #32e04f,
    0 0 14px rgba(50, 224, 79, 0.8);
}

/* GOLD */
body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(4n + 3) {
  background: #ffd43b;
  box-shadow:
    0 0 4px #ffd43b,
    0 0 9px #ffd43b,
    0 0 14px rgba(255, 212, 59, 0.8);
}

/* WHITE */
body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(4n + 4) {
  background: #ffffff;
  box-shadow:
    0 0 4px #ffffff,
    0 0 9px #ffffff,
    0 0 14px rgba(255, 255, 255, 0.8);
}

/* Make different bulbs pulse at different moments */

body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(2n) {
  animation-delay: 0.35s;
}

body[data-herbst-theme="christmas"]
.christmas-mini-lights span:nth-child(3n) {
  animation-delay: 0.7s;
}

@keyframes herbstMiniChristmasTwinkle {
  from {
    opacity: 0.45;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   HERBST SEASONAL THEME - HALLOWEEN
   ========================================================= */

/* Halloween accent colour */
body[data-herbst-theme="halloween"] {
  --herbst-red: #ff6a00;
}

/* Header accent line */
body[data-herbst-theme="halloween"]
.header {
  border-bottom-color: #ff6a00 !important;
}

/* Seasonal banner */
body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  display: block;

  margin: 8px 16px 4px;
  padding: 10px;

  background-color: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-top: 3px solid #ff6a00 !important;
  border-bottom: 3px solid #7b2cff !important;

  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;

  box-sizing: border-box;
}

/* Add Contact button */
body[data-herbst-theme="halloween"]
#add-contact-btn {
  background: #ff6a00 !important;
}

/* Profile avatar */
body[data-herbst-theme="halloween"]
.profile-avatar {
  background: #ff6a00 !important;
}

/* Contact circles */
body[data-herbst-theme="halloween"]
.contact-circle {
  border-color: #ff6a00 !important;

  box-shadow:
    0 0 5px rgba(255, 106, 0, 0.55),
    0 0 10px rgba(123, 44, 255, 0.25);
}

/* World clock cards */
body[data-herbst-theme="halloween"]
.clock-card {
  border-color: rgba(255, 106, 0, 0.45);

  box-shadow:
    0 0 8px rgba(255, 106, 0, 0.12);
}

/* Broadcast */
body[data-herbst-theme="halloween"]
.home-broadcast {
  border-left-color: #ff6a00;
}

body[data-herbst-theme="halloween"]
.home-broadcast-label {
  color: #ff6a00;
}

/* =========================================================
   HERBST STANDARD - CLOCK ACCENT
   ========================================================= */

body:not([data-herbst-theme])
.clock-card {
  border-color: #d60000;
}

/* =========================================================
   HERBST CHRISTMAS - CLOCK ACCENTS
   ========================================================= */

body[data-herbst-theme="christmas"]
.clock-card:nth-child(odd) {
  border-color: #16823b !important;

  box-shadow:
    0 0 7px rgba(22, 130, 59, 0.22);
}

body[data-herbst-theme="christmas"]
.clock-card:nth-child(even) {
  border-color: #d60000 !important;

  box-shadow:
    0 0 7px rgba(214, 0, 0, 0.22);
}

/* Christmas middle clock - gold */
body[data-herbst-theme="christmas"]
.clock-card:nth-child(3) {
  border-color: #ffd84d !important;

  box-shadow:
    0 0 7px rgba(255, 216, 77, 0.28);
}

/* =========================================================
   HERBST HALLOWEEN - SEASONAL BANNER FINAL FIX
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  display: block !important;

  margin: 8px 16px 4px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-top: 3px solid #ff6a00 !important;
  border-bottom: 3px solid #ff6a00 !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

body[data-herbst-theme="halloween"]
#herbst-seasonal-message {
  display: block !important;
  color: #ffffff !important;
  background: transparent !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
}

/* Christmas lights must disappear on Halloween */
body[data-herbst-theme="halloween"]
.christmas-mini-lights {
  display: none !important;
}

/* Kill old Christmas pseudo-lights during Halloween */
body[data-herbst-theme="halloween"]
#herbst-seasonal-banner::before,
body[data-herbst-theme="halloween"]
#herbst-seasonal-banner::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   HERBST HALLOWEEN - REMOVE WHITE BANNER BACKGROUND
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  background: #0b0b0d !important;

  border-left: none !important;
  border-right: none !important;

  border-top: 3px solid #ff6a00 !important;
  border-bottom: 3px solid #ff6a00 !important;
}
/* =========================================================
   HERBST HALLOWEEN - BANNER MATCH CHRISTMAS STRUCTURE
   Final override: matches the working Christmas banner geometry
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #ff6a00 !important;
  outline: none !important;
  box-shadow: none !important;

  text-align: center !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;

  box-sizing: border-box !important;
}

/* =========================================================
   HERBST HALLOWEEN - FINAL CLEAN BANNER
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  display: block !important;
  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-top: 3px solid #ff6a00 !important;
  border-bottom: 3px solid #ff6a00 !important;

  outline: none !important;
  box-shadow: none !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

body[data-herbst-theme="halloween"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
}

/* =========================================================
   HERBST SEASONAL THEME - VALENTINE'S DAY
   ========================================================= */

/* Valentine's main accent */
body[data-herbst-theme="valentine"] {
  --herbst-red: #e91e63;
}

/* Keep the upper HERBST area dark */
body[data-herbst-theme="valentine"] .app {
  background: #0b0b0d;
}

/* Header accent */
body[data-herbst-theme="valentine"] .header,
body[data-herbst-theme="valentine"] .app-header {
  border-bottom-color: #e91e63 !important;
}

/* =========================================================
   VALENTINE'S BANNER
   ========================================================= */

body[data-herbst-theme="valentine"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #e91e63 !important;

  outline: none !important;
  box-shadow:
    0 3px 8px rgba(233, 30, 99, 0.15) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Valentine's message */
body[data-herbst-theme="valentine"]
#herbst-seasonal-message {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* Christmas lights must not appear */
body[data-herbst-theme="valentine"]
.christmas-mini-lights {
  display: none !important;
}

/* Remove old banner pseudo decorations */
body[data-herbst-theme="valentine"]
#herbst-seasonal-banner::before,
body[data-herbst-theme="valentine"]
#herbst-seasonal-banner::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   VALENTINE'S WORLD CLOCKS
   Pink → Red → Light Pink → Red → Pink
   ========================================================= */

body[data-herbst-theme="valentine"]
.clock-card {
  border: 1px solid #e91e63 !important;

  box-shadow:
    0 0 7px rgba(233, 30, 99, 0.24);
}

/* Clock 1 */
body[data-herbst-theme="valentine"]
.clock-card:nth-child(1) {
  border-color: #ff5c93 !important;
}

/* Clock 2 */
body[data-herbst-theme="valentine"]
.clock-card:nth-child(2) {
  border-color: #d60000 !important;
}

/* Middle clock */
body[data-herbst-theme="valentine"]
.clock-card:nth-child(3) {
  border-color: #ffb3cf !important;

  box-shadow:
    0 0 8px rgba(255, 179, 207, 0.30);
}

/* Clock 4 */
body[data-herbst-theme="valentine"]
.clock-card:nth-child(4) {
  border-color: #d60000 !important;
}

/* Clock 5 */
body[data-herbst-theme="valentine"]
.clock-card:nth-child(5) {
  border-color: #ff5c93 !important;
}

/* =========================================================
   VALENTINE'S PROFILE + CONTACTS
   ========================================================= */

/* Profile circle */
body[data-herbst-theme="valentine"]
.profile-circle,
body[data-herbst-theme="valentine"]
.profile-avatar {
  background: #e91e63 !important;
}

/* Add Contact button */
body[data-herbst-theme="valentine"]
#add-contact-btn,
body[data-herbst-theme="valentine"]
.add-contact-btn {
  background: #e91e63 !important;
  color: #ffffff !important;
}

/* Contact circles */
body[data-herbst-theme="valentine"]
.contact-circle,
body[data-herbst-theme="valentine"]
.contact .avatar {
  border-color: #e91e63 !important;

  box-shadow:
    0 0 5px rgba(233, 30, 99, 0.38);
}

/* IMPORTANT - keep contact text readable */
body[data-herbst-theme="valentine"]
.contacts-section,
body[data-herbst-theme="valentine"]
.contacts-heading,
body[data-herbst-theme="valentine"]
.contact,
body[data-herbst-theme="valentine"]
.contact > span {
  color: #10223a;
}

/* =========================================================
   VALENTINE'S BROADCAST
   ========================================================= */

body[data-herbst-theme="valentine"]
.home-broadcast {
  border-left-color: #e91e63 !important;
}

body[data-herbst-theme="valentine"]
.home-broadcast-label {
  color: #e91e63 !important;
}

/* =========================================================
   VALENTINE'S SUBTLE HEARTS
   ========================================================= */

/* Small decorative hearts around the message */
body[data-herbst-theme="valentine"]
#herbst-seasonal-message::before {
  content: "♥";
  display: inline-block;

  margin-right: 9px;

  color: #ff5c93;
  font-size: 11px;

  text-shadow:
    0 0 5px rgba(255, 92, 147, 0.75);

  animation:
    herbstValentineHeart 1.8s ease-in-out infinite;
}

body[data-herbst-theme="valentine"]
#herbst-seasonal-message::after {
  content: "♥";
  display: inline-block;

  margin-left: 9px;

  color: #d60000;
  font-size: 11px;

  text-shadow:
    0 0 5px rgba(214, 0, 0, 0.75);

  animation:
    herbstValentineHeart 1.8s ease-in-out infinite 0.4s;
}

@keyframes herbstValentineHeart {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   HERBST VALENTINE - FINAL VISIBILITY FIX
   ========================================================= */

/* Contacts heading */
body[data-herbst-theme="valentine"] .contacts-title,
body[data-herbst-theme="valentine"] .contacts-heading,
body[data-herbst-theme="valentine"] .contacts-section h2,
body[data-herbst-theme="valentine"] .contacts-section h3 {
  color: #ffffff !important;
}

/* Contact names */
body[data-herbst-theme="valentine"] .contact,
body[data-herbst-theme="valentine"] .contact-name,
body[data-herbst-theme="valentine"] .contact span,
body[data-herbst-theme="valentine"] .contact > span {
  color: #ffffff !important;
}

/* Keep contact initials white */
body[data-herbst-theme="valentine"] .contact .avatar {
  color: #ffffff !important;
}

/* Valentine banner/message text */
body[data-herbst-theme="valentine"] #herbst-seasonal-banner,
body[data-herbst-theme="valentine"] #herbst-seasonal-message {
  color: #ffffff !important;
}

/* =========================================================
   HERBST VALENTINE - MATCHING PINK CLOCK FRAMES
   ========================================================= */

body[data-herbst-theme="valentine"] .clock-card,
body[data-herbst-theme="valentine"] .clock-card:nth-child(1),
body[data-herbst-theme="valentine"] .clock-card:nth-child(2),
body[data-herbst-theme="valentine"] .clock-card:nth-child(3),
body[data-herbst-theme="valentine"] .clock-card:nth-child(4),
body[data-herbst-theme="valentine"] .clock-card:nth-child(5) {
  border-color: #ff4f8b !important;

  box-shadow:
    0 0 7px rgba(255, 79, 139, 0.30) !important;
}

/* =========================================================
   HERBST SEASONAL THEME - CHINESE NEW YEAR
   Theme ID: chinese-new-year
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] {
  --herbst-red: #d71920;
}

/* Keep Home background dark */
body[data-herbst-theme="chinese-new-year"] .app {
  background: #0b0b0d;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] .header,
body[data-herbst-theme="chinese-new-year"] .app-header {
  border-bottom-color: #d4af37 !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="chinese-new-year"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #d4af37 !important;

  outline: none !important;

  box-shadow:
    0 3px 8px rgba(212, 175, 55, 0.18) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Seasonal message */

body[data-herbst-theme="chinese-new-year"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* Remove decorations belonging to other themes */

body[data-herbst-theme="chinese-new-year"]
.christmas-mini-lights {
  display: none !important;
}

/* =========================================================
   GOLD DECORATIONS
   ========================================================= */

body[data-herbst-theme="chinese-new-year"]
#herbst-seasonal-message::before {
  content: "◆";

  display: inline-block;

  margin-right: 10px;

  color: #ffd700;
  font-size: 10px;

  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.85);

  animation:
    herbstCnyGoldGlow 1.7s ease-in-out infinite;
}

body[data-herbst-theme="chinese-new-year"]
#herbst-seasonal-message::after {
  content: "◆";

  display: inline-block;

  margin-left: 10px;

  color: #ffd700;
  font-size: 10px;

  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.85);

  animation:
    herbstCnyGoldGlow 1.7s ease-in-out infinite 0.4s;
}

@keyframes herbstCnyGoldGlow {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* =========================================================
   WORLD CLOCKS - ALL GOLD
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] .clock-card,
body[data-herbst-theme="chinese-new-year"] .clock-card:nth-child(1),
body[data-herbst-theme="chinese-new-year"] .clock-card:nth-child(2),
body[data-herbst-theme="chinese-new-year"] .clock-card:nth-child(3),
body[data-herbst-theme="chinese-new-year"] .clock-card:nth-child(4),
body[data-herbst-theme="chinese-new-year"] .clock-card:nth-child(5) {

  border-color: #d4af37 !important;

  box-shadow:
    0 0 7px rgba(212, 175, 55, 0.30) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] .profile-circle,
body[data-herbst-theme="chinese-new-year"] .profile-avatar {
  background: #d71920 !important;

  box-shadow:
    0 0 0 2px #d4af37;
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] #add-contact-btn,
body[data-herbst-theme="chinese-new-year"] .add-contact-btn {
  background: #d71920 !important;
  color: #ffffff !important;

  border: 1px solid #d4af37 !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] .contact-circle,
body[data-herbst-theme="chinese-new-year"] .contact .avatar {
  border-color: #d4af37 !important;

  box-shadow:
    0 0 5px rgba(212, 175, 55, 0.35);
}

/* Contact heading + names */

body[data-herbst-theme="chinese-new-year"] .contacts-title,
body[data-herbst-theme="chinese-new-year"] .contacts-heading,
body[data-herbst-theme="chinese-new-year"] .contacts-section h2,
body[data-herbst-theme="chinese-new-year"] .contacts-section h3,
body[data-herbst-theme="chinese-new-year"] .contact,
body[data-herbst-theme="chinese-new-year"] .contact-name,
body[data-herbst-theme="chinese-new-year"] .contact span,
body[data-herbst-theme="chinese-new-year"] .contact > span {
  color: #ffffff !important;
}

/* Contact initials */

body[data-herbst-theme="chinese-new-year"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="chinese-new-year"] .home-broadcast {
  border-left-color: #d4af37 !important;
}

body[data-herbst-theme="chinese-new-year"] .home-broadcast-label {
  color: #ffd700 !important;
}

/* =========================================================
   HERBST SEASONAL THEME - NEW YEAR
   Theme ID: new-year
   ========================================================= */

body[data-herbst-theme="new-year"] {
  --herbst-red: #4da6ff;
}

/* Keep Home dark */
body[data-herbst-theme="new-year"] .app {
  background: #0b0b0d;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="new-year"] .header,
body[data-herbst-theme="new-year"] .app-header {
  border-bottom-color: #c9e6ff !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="new-year"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #4da6ff !important;

  outline: none !important;

  box-shadow:
    0 3px 9px rgba(77, 166, 255, 0.20) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Banner wording */

body[data-herbst-theme="new-year"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.8px !important;
}

/* Hide Christmas decoration */

body[data-herbst-theme="new-year"]
.christmas-mini-lights {
  display: none !important;
}

/* =========================================================
   MIDNIGHT SPARKLES
   ========================================================= */

body[data-herbst-theme="new-year"]
#herbst-seasonal-message::before {
  content: "✦";

  display: inline-block;
  margin-right: 10px;

  color: #ffffff;
  font-size: 12px;

  text-shadow:
    0 0 5px #ffffff,
    0 0 9px rgba(77, 166, 255, 0.9);

  animation:
    herbstNewYearSparkle 1.4s ease-in-out infinite;
}

body[data-herbst-theme="new-year"]
#herbst-seasonal-message::after {
  content: "✦";

  display: inline-block;
  margin-left: 10px;

  color: #c9e6ff;
  font-size: 12px;

  text-shadow:
    0 0 5px #ffffff,
    0 0 9px rgba(77, 166, 255, 0.9);

  animation:
    herbstNewYearSparkle 1.4s ease-in-out infinite 0.45s;
}

@keyframes herbstNewYearSparkle {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.75) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.25) rotate(45deg);
  }
}

/* =========================================================
   WORLD CLOCKS - MATCHING MIDNIGHT BLUE/SILVER
   ========================================================= */

body[data-herbst-theme="new-year"] .clock-card,
body[data-herbst-theme="new-year"] .clock-card:nth-child(1),
body[data-herbst-theme="new-year"] .clock-card:nth-child(2),
body[data-herbst-theme="new-year"] .clock-card:nth-child(3),
body[data-herbst-theme="new-year"] .clock-card:nth-child(4),
body[data-herbst-theme="new-year"] .clock-card:nth-child(5) {

  border-color: #7fc4ff !important;

  box-shadow:
    0 0 7px rgba(127, 196, 255, 0.32) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="new-year"] .profile-circle,
body[data-herbst-theme="new-year"] .profile-avatar {
  background: #4da6ff !important;

  box-shadow:
    0 0 0 2px #c9e6ff,
    0 0 8px rgba(77, 166, 255, 0.40);
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="new-year"] #add-contact-btn,
body[data-herbst-theme="new-year"] .add-contact-btn {
  background: #4da6ff !important;
  color: #ffffff !important;

  border: 1px solid #c9e6ff !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="new-year"] .contact-circle,
body[data-herbst-theme="new-year"] .contact .avatar {
  border-color: #7fc4ff !important;

  box-shadow:
    0 0 6px rgba(127, 196, 255, 0.38);
}

/* Keep heading and names visible */

body[data-herbst-theme="new-year"] .contacts-title,
body[data-herbst-theme="new-year"] .contacts-heading,
body[data-herbst-theme="new-year"] .contacts-section h2,
body[data-herbst-theme="new-year"] .contacts-section h3,
body[data-herbst-theme="new-year"] .contact,
body[data-herbst-theme="new-year"] .contact-name,
body[data-herbst-theme="new-year"] .contact span,
body[data-herbst-theme="new-year"] .contact > span {
  color: #ffffff !important;
}

body[data-herbst-theme="new-year"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="new-year"] .home-broadcast {
  border-left-color: #4da6ff !important;
}

body[data-herbst-theme="new-year"] .home-broadcast-label {
  color: #7fc4ff !important;
}

/* =========================================================
   HERBST SEASONAL THEME - ST. PATRICK'S DAY
   Theme ID: st-patricks
   ========================================================= */

body[data-herbst-theme="st-patricks"] {
  --herbst-red: #159447;
}

/* Keep Home dark */
body[data-herbst-theme="st-patricks"] .app {
  background: #0b0b0d;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="st-patricks"] .header,
body[data-herbst-theme="st-patricks"] .app-header {
  border-bottom-color: #159447 !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="st-patricks"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #159447 !important;

  outline: none !important;

  box-shadow:
    0 3px 9px rgba(21, 148, 71, 0.20) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Banner message */

body[data-herbst-theme="st-patricks"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* Hide Christmas decorations */

body[data-herbst-theme="st-patricks"]
.christmas-mini-lights {
  display: none !important;
}

/* =========================================================
   FLASHING SHAMROCKS
   ========================================================= */

body[data-herbst-theme="st-patricks"]
#herbst-seasonal-message::before {
  content: "☘";

  display: inline-block;
  margin-right: 10px;

  color: #32cd72;
  font-size: 13px;

  text-shadow:
    0 0 6px rgba(50, 205, 114, 0.85);

  animation:
    herbstPatrickGlow 1.6s ease-in-out infinite;
}

body[data-herbst-theme="st-patricks"]
#herbst-seasonal-message::after {
  content: "☘";

  display: inline-block;
  margin-left: 10px;

  color: #32cd72;
  font-size: 13px;

  text-shadow:
    0 0 6px rgba(50, 205, 114, 0.85);

  animation:
    herbstPatrickGlow 1.6s ease-in-out infinite 0.4s;
}

@keyframes herbstPatrickGlow {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

/* =========================================================
   WORLD CLOCKS - ALL EMERALD GREEN
   ========================================================= */

body[data-herbst-theme="st-patricks"] .clock-card,
body[data-herbst-theme="st-patricks"] .clock-card:nth-child(1),
body[data-herbst-theme="st-patricks"] .clock-card:nth-child(2),
body[data-herbst-theme="st-patricks"] .clock-card:nth-child(3),
body[data-herbst-theme="st-patricks"] .clock-card:nth-child(4),
body[data-herbst-theme="st-patricks"] .clock-card:nth-child(5) {

  border-color: #32cd72 !important;

  box-shadow:
    0 0 7px rgba(50, 205, 114, 0.30) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="st-patricks"] .profile-circle,
body[data-herbst-theme="st-patricks"] .profile-avatar {
  background: #159447 !important;

  box-shadow:
    0 0 0 2px #32cd72;
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="st-patricks"] #add-contact-btn,
body[data-herbst-theme="st-patricks"] .add-contact-btn {
  background: #159447 !important;
  color: #ffffff !important;

  border: 1px solid #32cd72 !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="st-patricks"] .contact-circle,
body[data-herbst-theme="st-patricks"] .contact .avatar {
  border-color: #32cd72 !important;

  box-shadow:
    0 0 6px rgba(50, 205, 114, 0.35);
}

/* Keep heading and contact names visible */

body[data-herbst-theme="st-patricks"] .contacts-title,
body[data-herbst-theme="st-patricks"] .contacts-heading,
body[data-herbst-theme="st-patricks"] .contacts-section h2,
body[data-herbst-theme="st-patricks"] .contacts-section h3,
body[data-herbst-theme="st-patricks"] .contact,
body[data-herbst-theme="st-patricks"] .contact-name,
body[data-herbst-theme="st-patricks"] .contact span,
body[data-herbst-theme="st-patricks"] .contact > span {
  color: #ffffff !important;
}

/* Contact initials */

body[data-herbst-theme="st-patricks"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="st-patricks"] .home-broadcast {
  border-left-color: #159447 !important;
}

body[data-herbst-theme="st-patricks"] .home-broadcast-label {
  color: #27da71 !important;
}

/* =========================================================
   HERBST SEASONAL THEME - THANKSGIVING
   Theme ID: thanksgiving
   ========================================================= */

body[data-herbst-theme="thanksgiving"] {
  --herbst-red: #d96b18;
}

/* Keep Home dark */
body[data-herbst-theme="thanksgiving"] .app {
  background: #0b0b0d;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="thanksgiving"] .header,
body[data-herbst-theme="thanksgiving"] .app-header {
  border-bottom-color: #d96b18 !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="thanksgiving"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #d96b18 !important;

  outline: none !important;

  box-shadow:
    0 3px 9px rgba(217, 107, 24, 0.22) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Banner message */

body[data-herbst-theme="thanksgiving"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* Hide Christmas decorations */

body[data-herbst-theme="thanksgiving"]
.christmas-mini-lights {
  display: none !important;
}

/* =========================================================
   AUTUMN LEAVES
   ========================================================= */

body[data-herbst-theme="thanksgiving"]
#herbst-seasonal-message::before {
  content: "🍂";

  display: inline-block;
  margin-right: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 4px rgba(255, 159, 28, 0.65));

  animation:
    herbstThanksgivingGlow 1.8s ease-in-out infinite;
}

body[data-herbst-theme="thanksgiving"]
#herbst-seasonal-message::after {
  content: "🍂";

  display: inline-block;
  margin-left: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 4px rgba(255, 159, 28, 0.65));

  animation:
    herbstThanksgivingGlow 1.8s ease-in-out infinite 0.4s;
}

@keyframes herbstThanksgivingGlow {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9) rotate(-5deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
  }
}

/* =========================================================
   WORLD CLOCKS - ALL AUTUMN ORANGE
   ========================================================= */

body[data-herbst-theme="thanksgiving"] .clock-card,
body[data-herbst-theme="thanksgiving"] .clock-card:nth-child(1),
body[data-herbst-theme="thanksgiving"] .clock-card:nth-child(2),
body[data-herbst-theme="thanksgiving"] .clock-card:nth-child(3),
body[data-herbst-theme="thanksgiving"] .clock-card:nth-child(4),
body[data-herbst-theme="thanksgiving"] .clock-card:nth-child(5) {

  border-color: #e8842c !important;

  box-shadow:
    0 0 7px rgba(232, 132, 44, 0.32) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="thanksgiving"] .profile-circle,
body[data-herbst-theme="thanksgiving"] .profile-avatar {
  background: #d96b18 !important;

  box-shadow:
    0 0 0 2px #e6a23c;
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="thanksgiving"] #add-contact-btn,
body[data-herbst-theme="thanksgiving"] .add-contact-btn {
  background: #d96b18 !important;
  color: #ffffff !important;

  border: 1px solid #e6a23c !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="thanksgiving"] .contact-circle,
body[data-herbst-theme="thanksgiving"] .contact .avatar {
  border-color: #e8842c !important;

  box-shadow:
    0 0 6px rgba(232, 132, 44, 0.35);
}

/* Keep heading and names visible */

body[data-herbst-theme="thanksgiving"] .contacts-title,
body[data-herbst-theme="thanksgiving"] .contacts-heading,
body[data-herbst-theme="thanksgiving"] .contacts-section h2,
body[data-herbst-theme="thanksgiving"] .contacts-section h3,
body[data-herbst-theme="thanksgiving"] .contact,
body[data-herbst-theme="thanksgiving"] .contact-name,
body[data-herbst-theme="thanksgiving"] .contact span,
body[data-herbst-theme="thanksgiving"] .contact > span {
  color: #ffffff !important;
}

/* Contact initials */

body[data-herbst-theme="thanksgiving"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="thanksgiving"] .home-broadcast {
  border-left-color: #d96b18 !important;
}

body[data-herbst-theme="thanksgiving"] .home-broadcast-label {
  color: #e6a23c !important;
}

/* =========================================================
   HERBST SEASONAL THEME - HALLOWEEN
   Theme ID: halloween
   ========================================================= */

body[data-herbst-theme="halloween"] {
  --herbst-red: #ff6a00;
}

/* Keep Home dark */
body[data-herbst-theme="halloween"] .app {
  background: #0b0b0d !important;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="halloween"] .header,
body[data-herbst-theme="halloween"] .app-header {
  border-bottom-color: #ff6a00 !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #ff6a00 !important;

  outline: none !important;

  box-shadow:
    0 3px 9px rgba(255, 106, 0, 0.22) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Banner message */

body[data-herbst-theme="halloween"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* Hide Christmas decorations */

body[data-herbst-theme="halloween"]
.christmas-mini-lights {
  display: none !important;
}

/* =========================================================
   HALLOWEEN PUMPKINS
   ========================================================= */

body[data-herbst-theme="halloween"]
#herbst-seasonal-message::before {
  content: "🎃";

  display: inline-block;
  margin-right: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 5px rgba(255, 106, 0, 0.75));

  animation:
    herbstHalloweenGlow 1.7s ease-in-out infinite;
}

body[data-herbst-theme="halloween"]
#herbst-seasonal-message::after {
  content: "🎃";

  display: inline-block;
  margin-left: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 5px rgba(255, 106, 0, 0.75));

  animation:
    herbstHalloweenGlow 1.7s ease-in-out infinite 0.4s;
}

@keyframes herbstHalloweenGlow {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   WORLD CLOCKS - ALL HALLOWEEN ORANGE
   ========================================================= */

body[data-herbst-theme="halloween"] .clock-card,
body[data-herbst-theme="halloween"] .clock-card:nth-child(1),
body[data-herbst-theme="halloween"] .clock-card:nth-child(2),
body[data-herbst-theme="halloween"] .clock-card:nth-child(3),
body[data-herbst-theme="halloween"] .clock-card:nth-child(4),
body[data-herbst-theme="halloween"] .clock-card:nth-child(5) {

  border-color: #ff6a00 !important;

  box-shadow:
    0 0 7px rgba(255, 106, 0, 0.32) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="halloween"] .profile-circle,
body[data-herbst-theme="halloween"] .profile-avatar {
  background: #ff6a00 !important;

  box-shadow:
    0 0 0 2px #ff9a3c;
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="halloween"] #add-contact-btn,
body[data-herbst-theme="halloween"] .add-contact-btn {
  background: #ff6a00 !important;
  color: #ffffff !important;

  border: 1px solid #ff9a3c !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="halloween"] .contact-circle,
body[data-herbst-theme="halloween"] .contact .avatar {
  border-color: #ff6a00 !important;

  box-shadow:
    0 0 6px rgba(255, 106, 0, 0.38);
}

/* Keep Contacts heading and names visible */

body[data-herbst-theme="halloween"] .contacts-title,
body[data-herbst-theme="halloween"] .contacts-heading,
body[data-herbst-theme="halloween"] .contacts-section h2,
body[data-herbst-theme="halloween"] .contacts-section h3,
body[data-herbst-theme="halloween"] .contact,
body[data-herbst-theme="halloween"] .contact-name,
body[data-herbst-theme="halloween"] .contact span,
body[data-herbst-theme="halloween"] .contact > span {
  color: #ffffff !important;
}

/* Contact initials */

body[data-herbst-theme="halloween"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="halloween"] .home-broadcast {
  border-left-color: #ff6a00 !important;
}

body[data-herbst-theme="halloween"] .home-broadcast-label {
  color: #ff9a3c !important;
}

/* =========================================================
   HERBST SEASONAL THEME - CHRISTMAS
   Theme ID: christmas
   FINAL CLEAN OVERRIDE
   ========================================================= */

body[data-herbst-theme="christmas"] {
  --herbst-red: #16823b;
}

/* Keep Home dark */
body[data-herbst-theme="christmas"] .app {
  background: #0b0b0d !important;
}

/* =========================================================
   HEADER
   ========================================================= */

body[data-herbst-theme="christmas"] .header,
body[data-herbst-theme="christmas"] .app-header {
  border-bottom-color: #16823b !important;
}

/* =========================================================
   SEASONAL BANNER
   ========================================================= */

body[data-herbst-theme="christmas"]
#herbst-seasonal-banner {
  display: block !important;

  width: calc(100% - 32px) !important;
  margin: 6px auto 8px !important;
  padding: 10px !important;

  background: #0b0b0d !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 3px solid #16823b !important;

  outline: none !important;

  box-shadow:
    0 3px 9px rgba(22, 130, 59, 0.22) !important;

  text-align: center !important;
  box-sizing: border-box !important;
}

/* Banner message */

body[data-herbst-theme="christmas"]
#herbst-seasonal-message {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 20px !important;
  letter-spacing: 0.7px !important;
}

/* =========================================================
   CHRISTMAS TREES
   ========================================================= */

body[data-herbst-theme="christmas"]
#herbst-seasonal-message::before {
  content: "🎄";

  display: inline-block;
  margin-right: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 4px rgba(22, 130, 59, 0.75));

  animation:
    herbstChristmasTreeGlow 1.8s ease-in-out infinite;
}

body[data-herbst-theme="christmas"]
#herbst-seasonal-message::after {
  content: "🎄";

  display: inline-block;
  margin-left: 9px;

  font-size: 13px;

  filter:
    drop-shadow(0 0 4px rgba(22, 130, 59, 0.75));

  animation:
    herbstChristmasTreeGlow 1.8s ease-in-out infinite 0.4s;
}

@keyframes herbstChristmasTreeGlow {

  0%,
  100% {
    opacity: 0.60;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   KEEP EXISTING CHRISTMAS LIGHTS
   ========================================================= */

body[data-herbst-theme="christmas"]
.christmas-mini-lights {
  display: flex !important;
}

/* =========================================================
   WORLD CLOCKS - ALL CHRISTMAS GREEN
   ========================================================= */

body[data-herbst-theme="christmas"] .clock-card,
body[data-herbst-theme="christmas"] .clock-card:nth-child(1),
body[data-herbst-theme="christmas"] .clock-card:nth-child(2),
body[data-herbst-theme="christmas"] .clock-card:nth-child(3),
body[data-herbst-theme="christmas"] .clock-card:nth-child(4),
body[data-herbst-theme="christmas"] .clock-card:nth-child(5) {

  border-color: #20a64f !important;

  box-shadow:
    0 0 7px rgba(32, 166, 79, 0.32) !important;
}

/* =========================================================
   PROFILE
   ========================================================= */

body[data-herbst-theme="christmas"] .profile-circle,
body[data-herbst-theme="christmas"] .profile-avatar {
  background: #16823b !important;

  /* Small red Christmas accent */
  box-shadow:
    0 0 0 2px #d71920;
}

/* =========================================================
   ADD CONTACT
   ========================================================= */

body[data-herbst-theme="christmas"] #add-contact-btn,
body[data-herbst-theme="christmas"] .add-contact-btn {
  background: #16823b !important;
  color: #ffffff !important;

  border: 1px solid #d71920 !important;
}

/* =========================================================
   CONTACTS
   ========================================================= */

body[data-herbst-theme="christmas"] .contact-circle,
body[data-herbst-theme="christmas"] .contact .avatar {
  border-color: #20a64f !important;

  box-shadow:
    0 0 6px rgba(32, 166, 79, 0.35);
}

/* Keep Contacts heading and names visible */

body[data-herbst-theme="christmas"] .contacts-title,
body[data-herbst-theme="christmas"] .contacts-heading,
body[data-herbst-theme="christmas"] .contacts-section h2,
body[data-herbst-theme="christmas"] .contacts-section h3,
body[data-herbst-theme="christmas"] .contact,
body[data-herbst-theme="christmas"] .contact-name,
body[data-herbst-theme="christmas"] .contact span,
body[data-herbst-theme="christmas"] .contact > span {
  color: #ffffff !important;
}

/* Contact initials */

body[data-herbst-theme="christmas"] .contact .avatar {
  color: #ffffff !important;
}

/* =========================================================
   BROADCAST
   ========================================================= */

body[data-herbst-theme="christmas"] .home-broadcast {
  border-left-color: #16823b !important;
}

body[data-herbst-theme="christmas"] .home-broadcast-label {
  color: #20a64f !important;
}

/* ========================================
   HERBST CUSTOM EMOJI PICKER
   ======================================== */

.emoji-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #0b0b0d;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 72px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;

  max-height: 260px;
  overflow-y: auto;

  padding: 12px;
  border: 2px solid #d71920;
  border-radius: 16px;

  background: #0b0b0d;

  z-index: 1000;

  box-sizing: border-box;
}

.emoji-panel.hidden {
  display: none;
}

.herbst-emoji {
  border: 0;
  padding: 3px;
  margin: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1 / 1;
}

.herbst-emoji img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.herbst-emoji:active {
  transform: scale(0.9);
}

.emoji-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 72px;

  width: calc(100% - 36px);
  max-width: 360px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;

  max-height: 260px;
  overflow-y: auto;

  padding: 8px;
  border: 2px solid #d71920;
  border-radius: 18px;

  background: #0b0b0d;

  z-index: 1000;
  box-sizing: border-box;
}

.message-herbst-emoji {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.herbst-emoji-message {
  margin: 0;
}

.message-herbst-emoji-inline {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
}

/* ==========================================
   AUTO-GROW MESSAGE BOX
   ========================================== */

#message-input {
  resize: none;
  overflow-y: hidden;

  height: 42px;
  min-height: 42px;
  max-height: 120px;

  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;

  padding: 10px 14px;
}

.message-form {
  align-items: flex-end;
}

/* ==========================================
   PREVENT HORIZONTAL CHAT SCROLL
   ========================================== */

.messages {
  overflow-x: hidden;
}

.message {
  max-width: 76%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.message p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}