/* Giami app overlays — keep template CSS intact */

.flash-stack {
  position: sticky;
  top: 58px;
  z-index: 90;
  padding: 10px 15px 0;
}
.flash-msg {
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.flash-msg.error { background: #ffe8e8; color: #b42318; }
.flash-msg.success { background: #e7f8ee; color: #027a48; }

.Like__link.liked,
.Like__link.liked i { color: #e44d4d; }

.user-post .more-options form,
.follow-inline {
  display: inline;
}
.follow-inline button,
.more-options button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #92929e;
}
.empty-state i {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

.auth-error {
  color: #e44d4d;
  font-size: 13px;
  margin: 0 0 12px;
}

.post-media {
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  max-height: 420px;
  object-fit: cover;
}
.post-media.video {
  background: #000;
  max-height: 360px;
}

.cover-fallback,
.profile-pic > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.user-dp > figure img,
.user-avatar > figure img,
.change-photo > figure img {
  object-fit: cover;
}
.change-photo.is-avatar > figure {
  width: 120px;
  height: 120px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--input-bg, #efefef);
}
.change-photo.is-avatar > figure img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
}
.change-photo.is-cover > figure {
  width: 100%;
  max-width: 520px;
  height: 160px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--input-bg, #efefef);
}
.change-photo.is-cover > figure img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 12px;
  object-fit: cover;
}
.pic > img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.comment-delete {
  float: right;
  color: #c4c4c4;
  font-size: 12px;
}

.stat-tools .Like__link { cursor: pointer; }

.follow-men > form { float: right; }
.follow-men button {
  border-radius: 30px;
  color: #fff;
  font-size: 12px;
  margin-top: 10px;
  padding: 6px 12px;
  background: #fa6342;
  border: 0;
  cursor: pointer;
}

html:has(.giami-messages-page),
body:has(.giami-messages-page) {
  height: 100%;
  overflow: hidden !important;
  background: var(--bg-color);
}
body:has(.giami-messages-page) {
  float: none;
}
body:has(.giami-messages-page) .app-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  float: none;
  overflow: hidden;
  background: var(--bg-color);
}
body:has(.giami-messages-page) .topbar {
  display: none;
}
body:has(.giami-messages-page) .flash-stack {
  position: static;
  flex: 0 0 auto;
  padding: 8px 12px 0;
}
body.giami-thread-open .bottom-header,
body.giami-story-open .bottom-header {
  display: none;
}
.giami-messages-page {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0 0 56px;
  background: var(--bg-color);
  overflow: hidden;
  color: var(--text-color);
}
body.giami-thread-open .giami-messages-page {
  padding-bottom: 0;
}
.giami-chat {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.giami-inbox,
.giami-messages-page .giami-thread.conversation {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex !important;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  float: none;
}
.giami-inbox-head,
.giami-messages-page .giami-thread .chat-head {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 4px;
  flex: 0 0 56px;
  width: 100%;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: visible;
}
.giami-inbox-head {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}
.giami-inbox-head h2 {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}
.giami-inbox-search {
  flex: 1 1 auto;
  min-width: 0;
}
.giami-messages-page .giami-thread .chat-head {
  background: var(--header-bg) !important;
  z-index: 6;
}
.giami-messages-page .giami-thread .active-user {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none;
  vertical-align: middle;
  overflow: hidden;
}
.giami-messages-page .giami-thread .active-user > figure {
  margin: 0;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.giami-messages-page .giami-thread .active-user > figure img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
}
.giami-messages-page .giami-thread .active-user-name {
  min-width: 0;
  padding-left: 10px;
}
.giami-messages-page .giami-thread .active-user-name > h2 {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.giami-messages-page .giami-thread .active-user-name > span {
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.giami-messages-page .giami-thread .head-options {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto !important;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}
.giami-messages-page .giami-thread .head-options > li {
  display: flex;
  margin: 0 !important;
  color: var(--text-color);
  position: relative;
}
.giami-icon-btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}
.giami-icon-btn i {
  color: inherit;
  font-size: inherit;
  line-height: 1;
}
.giami-messages-page .giami-thread .chat-head .giami-icon-btn {
  color: var(--text-color);
  font-size: 22px;
  width: 40px;
  height: 40px;
}
.giami-messages-page .giami-thread .chat-head .giami-icon-btn:hover,
.giami-messages-page .giami-thread .chat-head .giami-icon-btn:focus-visible,
.giami-icon-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
}
.giami-chat-search {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  z-index: 20;
}
.giami-chat-search[hidden] {
  display: none !important;
}
.giami-chat-search input {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 8px 12px;
  background: var(--input-bg);
  color: var(--text-color);
}
.giami-chat-search input::placeholder {
  color: var(--text-muted);
}
.giami-thread-search-pop .giami-chat-search {
  min-width: 220px;
}
.giami-thread-search-pop .giami-chat-search input {
  background: var(--input-bg);
}
.giami-chat-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 240px;
  overflow: auto;
  color: #f5f5f5;
}
.giami-search-hit {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #2a2a2a;
  padding: 10px 12px;
  cursor: pointer;
  color: #f5f5f5;
}
.giami-search-hit span { color: #a8a8a8; font-size: 12px; }
.giami-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  background: #1a1a1a;
  color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.giami-pop[hidden] {
  display: none !important;
}
.giami-settings-menu {
  min-width: 180px;
  padding: 12px;
  text-align: left;
}
.giami-settings-menu p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a8a8a8;
}
.giami-settings-menu select {
  width: 100%;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 10px;
  background: #262626;
  color: #fff;
}
.giami-menu-danger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 8px 2px;
  border: 0;
  border-top: 1px solid #333;
  background: transparent;
  color: #ff6b6b;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.giami-menu-danger:hover {
  color: #ff8a8a;
}
.giami-msg-menu {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  padding: 0;
}
.giami-messages-page .giami-thread .chat-desc > li.me .giami-msg-menu {
  color: #fff;
  opacity: 0.55;
}
@media (hover: hover) {
  .giami-messages-page .giami-thread .chat-desc > li.me .giami-msg-menu {
    opacity: 0;
  }
  .giami-messages-page .giami-thread .chat-desc > li.me:hover .giami-msg-menu,
  .giami-messages-page .giami-thread .chat-desc > li.me.is-menu-open .giami-msg-menu,
  .giami-msg-menu:focus {
    opacity: 1;
  }
}
.giami-messages-page .giami-thread .chat-desc > li.me.is-menu-open .giami-msg-menu,
.giami-msg-menu:focus {
  opacity: 1;
}
.giami-msg-actions {
  position: absolute;
  top: 28px;
  right: 4px;
  min-width: 120px;
  padding: 6px;
  border-radius: 10px;
  background: var(--bg-elevated, #1a1a1a);
  color: var(--text-color, #f5f5f5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 5;
}
.giami-msg-actions[hidden] {
  display: none !important;
}
.giami-msg-actions button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.giami-msg-actions button:hover {
  background: rgba(255, 107, 107, 0.12);
}
.giami-confirm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
}
.giami-confirm[hidden] {
  display: none !important;
}
.giami-confirm-card {
  width: min(360px, 100%);
  background: var(--bg-elevated, #fff);
  color: var(--text-color, #111);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.giami-confirm-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.4;
}
.giami-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.giami-btn-danger {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #e03131;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.giami-btn-danger:disabled {
  opacity: 0.6;
  cursor: default;
}
.giami-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1300;
  max-width: min(90vw, 320px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.giami-toast[hidden] {
  display: none !important;
}
.giami-toast.is-error {
  background: rgba(176, 35, 24, 0.95);
}
.giami-inbox-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.giami-inbox-list:empty {
  flex: 0 0 auto;
  padding: 0;
}
.giami-inbox .empty-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
}
.giami-inbox .empty-state h5 {
  color: var(--text-color);
}
.giami-inbox .empty-state[hidden] {
  display: none !important;
}
.giami-messages-page .giami-inbox .user-chat {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}
.giami-messages-page .giami-inbox .user-chat:hover {
  box-shadow: none;
  background: var(--bg-elevated);
}
.giami-messages-page .giami-inbox .user-short-mesg {
  width: auto;
  flex: 1;
  min-width: 0;
}
.giami-messages-page .giami-inbox .user-short-mesg > h5 {
  color: var(--text-color);
}
.giami-messages-page .giami-inbox .user-short-mesg > p {
  color: var(--text-muted);
}
.giami-unread {
  background: #fa6342;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 6px;
}
.giami-messages-page .giami-thread .chat-desc {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none !important;
  width: 100%;
  margin: 0;
  padding: 12px 12px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  float: none;
  background: var(--bg-color);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  overflow-anchor: none;
  list-style: none;
}
.giami-messages-page .giami-thread .chat-desc > li {
  position: relative;
  float: none !important;
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 78%;
  width: auto;
  background: var(--bubble-in);
  color: var(--text-color);
  border-radius: 22px;
  box-shadow: none;
  padding: 8px 14px;
  margin-bottom: 6px;
}
.giami-messages-page .giami-thread .chat-desc > li.giami-chat-spacer {
  flex: 1 1 auto;
  min-height: 8px;
  max-width: none;
  width: 100%;
  align-self: stretch;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.giami-messages-page .giami-thread .chat-desc > li.giami-chat-loading {
  align-self: center;
  max-width: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 18px 8px;
  margin: 0;
}
.giami-messages-page .giami-thread .chat-desc > li::before {
  display: none;
}
.giami-messages-page .giami-thread .chat-desc > li > p {
  color: var(--text-color);
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.giami-messages-page .giami-thread .chat-desc > li > em {
  color: var(--text-muted);
  float: none;
  display: block;
  text-align: right;
  font-size: 10px;
  margin-top: 4px;
}
.giami-messages-page .giami-thread .chat-desc > li.me {
  align-self: flex-end;
  background: var(--accent-color);
  color: #fff;
}
.giami-messages-page .giami-thread .chat-desc > li.me > p {
  color: #fff;
}
.giami-messages-page .giami-thread .chat-desc > li.me > em {
  color: rgba(255, 255, 255, 0.8);
}
.giami-messages-page .giami-thread .chat-desc > li.media-only {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.giami-messages-page .giami-thread .chat-desc > li.media-only > em {
  padding: 0 8px 0 0;
}
.giami-compose {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px 14px;
  background: var(--bg-color);
  border-top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 6;
}
.giami-compose-pill {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 4px 6px 4px 4px;
  background: var(--input-bg);
  border-radius: 28px;
  box-sizing: border-box;
}
.giami-compose-camera {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.giami-compose-camera i {
  font-size: 18px;
  line-height: 1;
}
.giami-compose #chat-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 6px;
  border-radius: 0;
  outline: none;
  color: var(--text-color);
  font-size: 15px;
}
.giami-compose #chat-input::placeholder {
  color: var(--text-muted);
}
.giami-compose-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}
.giami-compose.has-text .giami-compose-actions {
  display: none;
}
.giami-compose-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.giami-compose-icon:hover,
.giami-compose-icon:focus-visible,
.giami-compose-icon[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}
.giami-compose-icon i {
  font-size: 20px;
  line-height: 1;
}
.giami-compose-send {
  display: none;
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px 0 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}
.giami-compose.has-text .giami-compose-send {
  display: inline-flex;
  align-items: center;
}
.giami-compose-send:hover,
.giami-compose-send:focus-visible {
  filter: none;
  color: #4db5ff;
}
.giami-compose-send i {
  font-size: 16px;
  line-height: 1;
}
.giami-emoji-pop {
  left: 8px;
  right: auto;
  top: auto;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
  min-width: 220px;
  background: #1a1a1a;
}
.giami-emoji-pop button {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
}
.giami-emoji-pop button:hover {
  background: #2a2a2a;
}
@media (max-width: 520px) {
  .giami-icon-btn,
  .giami-compose-icon,
  .giami-compose-send {
    width: 32px;
    height: 32px;
  }
  .giami-compose-icon i,
  .giami-icon-btn {
    font-size: 16px;
  }
  .giami-thread-search-pop {
    right: -80px;
  }
  .giami-thread-search-pop .giami-chat-search {
    min-width: 180px;
  }
}
.giami-chat-img {
  max-width: min(240px, 70vw);
  width: 100%;
  border-radius: 18px;
  display: block;
  margin: 0;
}
.giami-chat-media {
  margin: 0 !important;
}
.giami-ttl {
  display: block;
  font-size: 10px;
  color: #8e8e8e;
  margin-top: 4px;
}
.giami-typing {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #262626;
  border-radius: 16px;
  width: fit-content;
  min-width: 56px;
  margin: 0 15px 8px;
  padding: 10px 14px;
  box-shadow: none;
}
.giami-typing:not([hidden]) {
  display: inline-flex;
}
.giami-typing span {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 1px;
  animation: giami-typing-dot 1s infinite ease-in-out;
}
.giami-typing span:nth-child(2) { animation-delay: 0.15s; }
.giami-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes giami-typing-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.active-user > figure {
  position: relative;
}

.giami-thread[hidden],
.giami-messages-page .giami-thread.conversation[hidden],
#chat-inbox[hidden] {
  display: none !important;
}

.giami-call {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  overflow: hidden;
  background: #14141c;
  color: #fff;
}
.giami-call:not([hidden]) {
  display: block;
}
body.call-open {
  overflow: hidden;
}
.giami-call-bg {
  position: absolute;
  inset: -50px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(40px) saturate(1.3) brightness(0.85);
  transform: scale(1.12);
}
.giami-call-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 18, 0.35) 0%,
    rgba(10, 10, 18, 0.12) 42%,
    rgba(10, 10, 18, 0.62) 100%
  );
}
.giami-call-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}
.giami-call-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.giami-call-top-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.giami-call-top-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.giami-call-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(12px, 10vh, 96px);
  min-height: 0;
  overflow: hidden;
}
.giami-call video {
  display: none;
  position: absolute;
}
.giami-call.is-video.is-live #call-remote {
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: 14px;
}
.giami-call.is-video.is-cam #call-local {
  display: block;
  top: 0;
  right: 0;
  width: 28%;
  max-width: 132px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.giami-call-peer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.giami-call.is-video.is-live:not(.is-minimized) .giami-call-peer {
  display: none;
}
.giami-call-avatar {
  width: clamp(84px, 26vh, 132px);
  height: clamp(84px, 26vh, 132px);
  margin: 0 auto clamp(10px, 3vh, 20px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.giami-call-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.giami-call[data-mode='outgoing'] .giami-call-avatar,
.giami-call[data-mode='incoming'] .giami-call-avatar {
  animation: giamiCallPulse 1.9s ease-out infinite;
}
@keyframes giamiCallPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.34); }
  100% { box-shadow: 0 0 0 28px rgba(255, 255, 255, 0); }
}
#call-name {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(19px, 5vh, 26px);
  font-weight: 600;
  line-height: 1.2;
}
.giami-call-status {
  margin: 0;
  font-size: clamp(14px, 3.4vh, 17px);
  color: rgba(255, 255, 255, 0.82);
}
.giami-call-voice {
  flex-shrink: 0;
  align-self: center;
  width: min(420px, 100%);
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(30, 30, 38, 0.86);
  backdrop-filter: blur(14px);
}
.giami-call-voice[hidden] {
  display: none;
}
.giami-call-voice > p {
  margin: 0 0 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.giami-call-voice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.giami-call-voice-list button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 7px 14px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.giami-call-voice-list button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.giami-call-voice-list button.is-active {
  background: #fff;
  border-color: #fff;
  color: #14141c;
  font-weight: 600;
}
.giami-call-bar {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.giami-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 44px;
  background: rgba(40, 40, 48, 0.82);
  backdrop-filter: blur(14px);
}
.giami-call-actions[hidden] {
  display: none;
}
.giami-call-actions[data-role='incoming'] {
  gap: 72px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.giami-call-btn {
  position: relative;
  width: clamp(48px, 12vh, 58px);
  height: clamp(48px, 12vh, 58px);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.giami-call-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.giami-call-btn.is-on {
  background: #fff;
  color: #14141c;
}
.giami-call-btn.is-hangup,
.giami-call-btn.is-hangup:hover {
  background: #f5334f;
}
.giami-call-btn.is-accept,
.giami-call-btn.is-accept:hover {
  background: #1fc45a;
}
.giami-call-actions[data-role='incoming'] .giami-call-btn {
  width: clamp(56px, 14vh, 66px);
  height: clamp(56px, 14vh, 66px);
  font-size: 26px;
}
.giami-call-btn.is-hangup i {
  transform: rotate(134deg);
}
.giami-call-btn.is-off::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.giami-call.is-minimized {
  inset: auto auto calc(90px + env(safe-area-inset-bottom)) 50%;
  width: min(330px, calc(100% - 24px));
  height: 66px;
  transform: translateX(-50%);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.giami-call.is-minimized .giami-call-top,
.giami-call.is-minimized .giami-call-bar,
.giami-call.is-minimized .giami-call-voice,
.giami-call.is-minimized video {
  display: none;
}
.giami-call.is-minimized .giami-call-screen {
  flex-direction: row;
  align-items: center;
  padding: 0 14px;
}
.giami-call.is-minimized .giami-call-stage {
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}
.giami-call.is-minimized .giami-call-peer {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.giami-call.is-minimized .giami-call-avatar {
  width: 42px;
  height: 42px;
  margin: 0;
  animation: none;
  box-shadow: none;
}
.giami-call.is-minimized #call-name {
  margin: 0;
  font-size: 15px;
}
.giami-call.is-minimized .giami-call-status {
  font-size: 12px;
}
@media (min-width: 992px) and (min-height: 700px) {
  .giami-call-avatar {
    width: 148px;
    height: 148px;
  }
}
/* Landscape phones and short windows: keep the whole screen clear of the bar. */
@media (max-height: 430px) {
  .giami-call-stage {
    padding-top: 8px;
  }
  .giami-call-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
  }
  #call-name {
    font-size: 17px;
  }
  .giami-call-status {
    font-size: 12px;
  }
  .giami-call-btn {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
  .giami-call-top-btn {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
}
.giami-btn-ghost {
  background: #333;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
}

html:has(body.auth-page),
body.auth-page {
  height: auto;
  min-height: 100%;
}
body.auth-page {
  float: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: #0a0820;
  color: #f5f5f5;
}
body.auth-page .loader-screen {
  display: none !important;
}
.ig-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  float: none;
  overflow: hidden;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(138, 51, 255, 0.42), transparent 55%),
    radial-gradient(820px 480px at 108% 108%, rgba(46, 92, 255, 0.38), transparent 52%),
    linear-gradient(165deg, #1c0b3d 0%, #0c1433 48%, #070b1c 100%);
}
.ig-auth::before,
.ig-auth::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}
.ig-auth::before {
  width: 340px;
  height: 340px;
  left: -140px;
  top: -90px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 68%);
}
.ig-auth::after {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(59, 91, 255, 0.42), transparent 68%);
}
.ig-auth-hero {
  display: none;
}
.ig-auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}
.ig-auth-panel-inner {
  width: 100%;
  max-width: 400px;
}
.ig-auth-headblock {
  text-align: center;
  margin: 0 0 28px;
}
.ig-auth-logo {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  filter:
    drop-shadow(0 0 16px rgba(255, 92, 196, 0.55))
    drop-shadow(0 0 28px rgba(88, 140, 255, 0.4));
}
.ig-auth-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  object-fit: contain;
}
.ig-auth-titleline {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.ig-auth-wordmark {
  background: linear-gradient(90deg, #ff4d9d 0%, #c44bff 46%, #4da6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ig-auth-tagline {
  margin: 8px 0 0;
  color: #9aa4cc;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.ig-auth .flash-stack {
  position: static;
  top: auto;
  padding: 0 0 16px;
}
.ig-auth .flash-msg.error {
  background: rgba(237, 73, 86, 0.16);
  color: #ff8a93;
}
.ig-auth .flash-msg.success {
  background: rgba(2, 122, 72, 0.2);
  color: #7ddea8;
}
.ig-auth .flash-msg {
  word-break: break-word;
}
.ig-auth-form {
  display: block;
}
.ig-auth-form.is-hidden,
.ig-auth-create.is-hidden,
.ig-auth-switch.is-hidden {
  display: none;
}
.ig-auth-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ig-auth-field {
  display: block;
  position: relative;
  margin-bottom: 14px;
}
.ig-auth-field .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ig-auth-control {
  position: relative;
  display: block;
}
.ig-auth-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #8b95c9;
  pointer-events: none;
}
.ig-auth-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ig-auth-field input,
.ig-auth-field select {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 46px;
  border: 1px solid rgba(150, 168, 230, 0.28);
  border-radius: 999px;
  background: rgba(12, 18, 42, 0.62);
  color: #eef1ff;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}
.ig-auth-country .ig-auth-field select,
.ig-auth-country select {
  padding-left: 16px;
}
.ig-auth-field select {
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b95c9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.ig-auth-field input::placeholder {
  color: #7d87b0;
}
.ig-auth-field input:focus,
.ig-auth-field select:focus {
  border-color: rgba(170, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 90, 255, 0.16);
}
.ig-auth-field.is-invalid input,
.ig-auth-field.is-invalid select,
.ig-auth-phone.is-invalid input,
.ig-auth-phone.is-invalid select {
  border-color: #e53935;
}
.ig-auth-error {
  display: none;
  margin: 6px 8px 0;
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.ig-auth-field.is-invalid > .ig-auth-error,
.ig-auth-phone.is-invalid > .ig-auth-error,
.ig-auth-error:not(:empty) {
  display: block;
}
.ig-auth-phone {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.ig-auth-phone .ig-auth-field {
  margin-bottom: 0;
}
.ig-auth-phone .ig-auth-error {
  grid-column: 1 / -1;
}
.ig-auth-field input[type="password"],
.ig-auth-field input.has-toggle {
  padding-right: 48px;
}
.ig-auth .password-toggle {
  right: 16px;
  color: #8b95c9;
}
.ig-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ee4dff 0%, #7b5cff 48%, #3aa0ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(90, 80, 255, 0.32);
}
.ig-auth-submit::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ig-auth-submit:hover {
  filter: brightness(1.06);
}
.ig-auth-forgot {
  display: block;
  margin: 16px 0 0;
  color: #4fa3ff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.ig-auth-forgot:hover,
.ig-auth-forgot:focus {
  color: #79b8ff;
}
.ig-auth-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 18px -8px;
  color: #f5f5f5;
  text-decoration: none;
}
.ig-auth-chevron:hover,
.ig-auth-chevron:focus {
  color: #fff;
}
.ig-auth-title {
  margin: 0 0 10px;
  color: #f5f5f5;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.ig-auth-lead {
  margin: 0 0 22px;
  color: #9aa4cc;
  font-size: 14px;
  line-height: 1.45;
}
.ig-auth-lead a {
  color: #4fa3ff;
  text-decoration: none;
}
.ig-auth-lead a:hover {
  text-decoration: underline;
}
.ig-auth-hint {
  margin: 0 0 18px;
  color: #8b95c9;
  font-size: 12px;
  line-height: 1.45;
}
.ig-auth-alts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.ig-auth-create,
.ig-auth-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid rgba(150, 168, 230, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(12, 18, 42, 0.45);
  box-sizing: border-box;
}
.ig-auth-alt-ico,
.ig-auth-alt-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #c9d0ee;
  flex: 0 0 auto;
}
.ig-auth-alt-ico svg,
.ig-auth-alt-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ig-auth-alt-arrow {
  margin-left: auto;
}
.ig-auth-create:hover,
.ig-auth-switch:hover {
  color: #fff;
  border-color: rgba(180, 160, 255, 0.55);
  background: rgba(20, 28, 64, 0.7);
}
@media (max-width: 480px) {
  .ig-auth-logo {
    width: 76px;
    height: 76px;
  }
  .ig-auth-titleline {
    font-size: 26px;
  }
  .ig-auth-field input,
  .ig-auth-field select,
  .ig-auth-submit,
  .ig-auth-create,
  .ig-auth-switch {
    font-size: 16px;
  }
}
.password-toggle {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: auto;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px;
  color: #cfcfd8;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form2 .password-toggle,
.form2 button.password-toggle {
  width: auto;
  margin-top: 0;
  padding: 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #cfcfd8;
  display: inline-flex;
  font-size: 16px;
}
.password-toggle.is-on {
  color: #fff;
}

/* --- Admin dashboard --- */
body.admin-page {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  background: #0b0b0c;
  color: #f5f5f5;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
}
body.admin-page .loader-screen {
  display: none !important;
}
.admin-shell,
.admin-shell *,
body.admin-page section,
body.admin-page form,
body.admin-page article,
body.admin-page main,
body.admin-page header,
body.admin-page div {
  float: none !important;
}
.admin-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #0b0b0c;
  box-sizing: border-box;
  clear: both;
}
.admin-stats,
.admin-filters,
.admin-user-list,
.admin-edit-form {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both;
  float: none !important;
}
.admin-user-card,
.admin-edit-card,
.admin-empty-card,
.admin-stat {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}
body.admin-page article {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #262626;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-top-brand {
  min-width: 0;
}
.admin-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 10px;
}
.admin-sub {
  color: #8e8e8e;
  font-size: 13px;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.admin-top-actions a,
.admin-top-actions button {
  color: #cfcfd8;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.admin-main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-stat {
  background: #161618;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-stat strong {
  display: block;
  font-size: 24px;
  color: #fff;
}
.admin-stat span {
  color: #8e8e8e;
  font-size: 13px;
}
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 10px;
  margin-bottom: 16px;
}
.admin-filters input,
.admin-filters select,
.admin-filters button,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #161618;
  color: #f5f5f5;
  padding: 0 12px;
  font: inherit;
  box-sizing: border-box;
}
.admin-field textarea {
  height: auto;
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
}
.admin-filters button {
  background: #1877f2;
  border-color: #1877f2;
  cursor: pointer;
  font-weight: 600;
  width: auto;
}
.admin-user-list {
  display: grid;
  gap: 12px;
}
.admin-user-card,
.admin-edit-card,
.admin-empty-card {
  background: #111;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 14px;
}
.admin-empty-card {
  color: #8e8e8e;
  text-align: center;
  padding: 28px 14px;
}
.admin-user-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-user-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}
.admin-edit-hero img {
  width: 64px;
  height: 64px;
}
.admin-user strong {
  display: block;
  color: #fff;
  word-break: break-word;
}
.admin-user span {
  color: #8e8e8e;
  font-size: 12px;
  word-break: break-word;
}
.admin-user-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.admin-user-meta dt {
  color: #8e8e8e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.admin-user-meta dd {
  margin: 0;
  color: #f5f5f5;
  font-size: 13px;
  word-break: break-word;
}
.admin-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.admin-badge.is-active {
  background: rgba(46, 160, 67, 0.18);
  color: #3ddc84;
}
.admin-badge.is-suspended {
  background: rgba(237, 73, 86, 0.18);
  color: #ff8a93;
}
.admin-badge.is-admin {
  background: rgba(24, 119, 242, 0.18);
  color: #7ab7ff;
}
.admin-badge.is-member {
  background: rgba(255, 255, 255, 0.08);
  color: #cfcfd8;
}
.admin-actions,
.admin-edit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-actions form {
  display: inline;
  margin: 0;
}
.admin-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  color: #fff !important;
  text-decoration: none !important;
  min-height: 36px;
  box-sizing: border-box;
  line-height: 1.2 !important;
  background-image: none !important;
}
.admin-btn.is-warn { background: #c77700; }
.admin-btn.is-ok { background: #1f8f4d; }
.admin-btn.is-danger { background: #c62828; }
.admin-btn.is-role { background: #4b5563; }
.admin-btn.is-neutral {
  background: #262626;
  color: #f5f5f5;
}
.admin-muted {
  color: #8e8e8e;
  font-size: 12px;
}
.admin-footnote {
  margin-top: 12px;
  color: #8e8e8e;
  font-size: 12px;
}
.admin-page .flash-stack {
  position: static;
  padding: 0 0 14px;
}
.admin-edit-main {
  max-width: 560px;
  display: grid;
  gap: 16px;
}
.admin-edit-hero {
  margin-bottom: 18px;
}
.admin-edit-form {
  display: grid;
  gap: 12px;
}
.admin-section-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.admin-section-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8e8e8e;
  line-height: 1.4;
}
.admin-danger-card {
  border: 1px solid rgba(198, 40, 40, 0.28);
}
.admin-field {
  display: grid;
  gap: 6px;
}
.admin-field span {
  color: #8e8e8e;
  font-size: 12px;
  font-weight: 600;
}

/* Admin login */
.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(24, 119, 242, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 50%),
    #0b0b0c;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #161618;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 28px 22px 22px;
  box-sizing: border-box;
}
.admin-login-brand {
  text-align: center;
  margin-bottom: 18px;
}
.admin-login-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}
.admin-login-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.admin-login-brand p {
  margin: 6px 0 0;
  color: #8e8e8e;
  font-size: 13px;
}
.admin-login-form {
  display: grid;
  gap: 10px;
}
.admin-login-field input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0f0f10;
  color: #f5f5f5;
  padding: 0 12px;
  font: inherit;
  box-sizing: border-box;
}
.admin-login-form button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #1877f2;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.admin-login-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #8e8e8e;
  text-decoration: none;
  font-size: 13px;
}
.admin-login-back:hover {
  color: #fff;
}
.admin-login-page .flash-stack {
  position: static;
  margin-bottom: 12px;
}
.admin-login .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .admin-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .admin-sub {
    display: block;
    margin-top: 2px;
  }
  .admin-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .admin-filters {
    grid-template-columns: 1fr !important;
  }
  .admin-filters button {
    width: 100%;
  }
  .admin-user-card-head {
    flex-direction: column;
  }
  .admin-user-card-badges {
    justify-content: flex-start;
  }
  .admin-user-meta {
    grid-template-columns: 1fr !important;
  }
  .admin-actions .admin-btn,
  .admin-edit-actions .admin-btn {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 520px) {
  .admin-stats {
    grid-template-columns: 1fr !important;
  }
  .admin-actions .admin-btn,
  .admin-edit-actions .admin-btn {
    flex: 1 1 100%;
  }
}
