body {
  background-color: #1a1a2e;
  background-image: url("images/bg-pattern.png");
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.customer-public {
  justify-content: center;
}

.cust-lang-switch {
  position: fixed;
  top: 12px;
  inset-inline-end: 14px;
  z-index: 1070;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #eef0f8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.cust-lang-switch:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.customer-auth-card {
  max-width: 460px;
  width: 100%;
  margin: 24px auto;
  border-radius: 14px;
}

.customer-auth-card.wide {
  max-width: 560px;
}

.customer-navbar {
  background: rgba(13, 17, 30, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-app main {
  flex: 1 0 auto;
}

/* Chat thread */
.chat-thread {
  max-height: 460px;
  overflow-y: auto;
  padding: 4px 2px;
}

.chat-row {
  display: flex;
  margin-bottom: 12px;
}

.chat-row.mine {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.chat-row.mine .chat-bubble {
  background: #0d6efd;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-row.theirs .chat-bubble {
  background: rgba(255, 255, 255, 0.09);
  border-bottom-left-radius: 4px;
}

.chat-meta {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 2px;
}

/* Rendered topic body */
.topic-body img {
  max-width: 100%;
  height: auto;
}

.topic-body pre {
  padding: 0.75rem;
  overflow-x: auto;
  background: rgba(127, 127, 127, 0.15);
  border-radius: 6px;
}

.topic-body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.topic-body table td,
.topic-body table th {
  border: 1px solid rgba(127, 127, 127, 0.35);
  padding: 0.4rem 0.6rem;
}

.ticket-row {
  cursor: pointer;
}

/* Notifications: bell, red dots, dropdown */
.cust-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 2px #0d111e;
  pointer-events: none;
}
.cust-dot[hidden] {
  display: none;
}
.cust-nav-dot {
  top: 4px;
  right: -2px;
}
.cust-bell {
  position: relative;
}
.cust-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cust-bell-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.cust-bell-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cust-bell-btn .cust-dot {
  top: 5px;
  right: 6px;
}
.cust-bell-btn.ringing img {
  animation: cust-bell-ring 1s ease-in-out;
  transform-origin: 50% 10%;
}
@keyframes cust-bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}
.cust-bell-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 330px;
  max-width: calc(100vw - 20px);
  background: #1b2030;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1080;
  overflow: hidden;
}
.cust-bell-menu.show {
  display: block;
}
.cust-bell-head {
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#custBellList {
  max-height: 360px;
  overflow-y: auto;
}
.cust-bell-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.cust-bell-item:last-child {
  border-bottom: none;
}
.cust-bell-item:hover {
  background: rgba(255, 255, 255, 0.07);
}
.cust-bell-icon {
  margin-top: 2px;
  color: #4f9cfd;
}
.cust-bell-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cust-bell-meta {
  font-size: 0.76rem;
  opacity: 0.7;
}
.cust-bell-empty {
  padding: 1.4rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}
@media (max-width: 575.98px) {
  .cust-bell-menu {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}
