/* Zasamix - Custom styles (Bootstrap complement) */

/* ===== Theme: Dark + Gold ===== */
:root {
    --bs-primary: #1a1a2e;
    --bs-primary-rgb: 26,26,46;
    --bs-secondary: #f2d123;
    --bs-secondary-rgb: 242,209,35;
    --bs-secondary-color: #6c757d;
    --bs-link-color: #c9a800;
    --bs-link-hover-color: #a88e00;
}
.btn-primary {
    --bs-btn-bg: #1a1a2e;
    --bs-btn-border-color: #1a1a2e;
    --bs-btn-hover-bg: #2a2a44;
    --bs-btn-hover-border-color: #2a2a44;
    --bs-btn-active-bg: #12121f;
    --bs-btn-active-border-color: #12121f;
    --bs-btn-disabled-bg: #1a1a2e;
    --bs-btn-disabled-border-color: #1a1a2e;
}
.btn-outline-primary {
    --bs-btn-color: #1a1a2e;
    --bs-btn-border-color: #1a1a2e;
    --bs-btn-hover-bg: #1a1a2e;
    --bs-btn-hover-border-color: #1a1a2e;
    --bs-btn-active-bg: #12121f;
    --bs-btn-active-border-color: #12121f;
}
.text-primary { color: #1a1a2e !important; }
.text-secondary { color: #6c757d !important; }
.bg-secondary-subtle { background-color: rgba(108,117,125,.12) !important; }
.bg-primary-subtle { background-color: rgba(26,26,46,.08) !important; }
.text-primary-emphasis { color: #12121f !important; }

/* Spinner */
.spinner {
    display: none;
}

/* Page transition */
.page-transition {
    animation: fadeIn .2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Toast animation */
.toast-enter {
    animation: toastSlideIn .3s ease-out;
}
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Coin card hover */
.coin-card .aspect-square {
    border-radius: var(--bs-card-inner-border-radius, .375rem) var(--bs-card-inner-border-radius, .375rem) 0 0;
}
.coin-card:hover img {
    transform: scale(1.05);
    transition: transform .3s;
}
.coin-card img {
    transition: transform .3s;
}
.coin-sold-overlay { position: absolute; top: 8px; left: 8px; z-index: 2; }
.coin-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.coin-thumb:hover .coin-thumb-overlay {
    opacity: 1;
}
.coin-thumb-likes {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.coin-thumb-likes i {
    color: #ef4444;
    font-size: 1.1rem;
}

/* Pixabay-style overlay on coin cards */
.coin-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: 2;
}
.coin-card:hover .coin-card-overlay,
.sale-card:hover .coin-card-overlay {
    opacity: 1;
    pointer-events: auto;
}
.coin-card-stat {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.sale-card-seller {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    z-index: 1;
    gap: .25rem;
}
.sale-card-seller-name {
    color: #fff;
    font-size: .7rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    min-width: 0;
}
.sale-card-seller-type {
    color: rgba(255,255,255,.8);
    font-size: .6rem;
    font-weight: 500;
    background: rgba(255,255,255,.15);
    padding: 1px 6px;
    border-radius: .25rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.coin-card-likes {
    cursor: pointer;
    transition: transform .15s ease;
}
.coin-card-likes:hover {
    transform: scale(1.2);
}
.coin-card-likes[data-liked="1"] i {
    color: #ef4444;
}
@media (hover: none) {
    .coin-card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

.coin-owner-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 3;
}
.coin-card:hover .coin-owner-actions {
    opacity: 1;
}
.coin-owner-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform .15s ease, background .15s ease;
}
.coin-owner-btn:hover {
    transform: scale(1.1);
}
.coin-edit-btn {
    background: rgba(255,255,255,0.9);
    color: var(--bs-primary);
}
.coin-edit-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}
.coin-delete-btn {
    background: rgba(255,255,255,0.9);
    color: var(--bs-danger);
}
.coin-delete-btn:hover {
    background: var(--bs-danger);
    color: #fff;
}

/* Coin detail carousel */
.coin-carousel-wrap { position: relative; }
.coin-carousel-arrow {
    opacity: 0;
    transition: opacity .3s ease;
    width: 3rem;
}
.coin-carousel-wrap:hover .coin-carousel-arrow {
    opacity: .85;
}
.coin-carousel-arrow:hover { opacity: 1 !important; }
.coin-carousel-arrow .carousel-control-prev-icon,
.coin-carousel-arrow .carousel-control-next-icon {
    background-color: rgba(0,0,0,.45);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50%;
}
.coin-thumb { opacity: .6; transition: opacity .2s, border-color .2s; }
.coin-thumb:hover, .coin-thumb.border-primary { opacity: 1; }

/* 4-image grid for coin detail */
.coin-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.coin-detail-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bs-tertiary-bg);
    cursor: pointer;
}
.coin-detail-img:first-child {
    border-radius: .75rem 0 0 .75rem;
}
.coin-detail-img:last-child {
    border-radius: 0 .75rem .75rem 0;
}
.coin-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.coin-detail-img:hover img {
    transform: scale(1.03);
}
.coin-detail-img-label {
    position: absolute;
    top: .5rem;
    left: .5rem;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: .15rem .5rem;
    border-radius: .25rem;
    z-index: 1;
}
.coin-detail-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--bs-secondary-color);
    font-size: 2rem;
}
/* Price badge */
.coin-detail-price {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(25, 135, 84, .3);
}
.coin-detail-price-label {
    font-weight: 500;
    font-size: .85rem;
    opacity: .85;
    margin-right: .5rem;
}
.coin-detail-price-value {
    font-size: 1.35rem;
    letter-spacing: .02em;
}

/* Description yellow translucent box */
.coin-detail-desc-box {
    background: rgba(242, 209, 35, .1);
    border-left: 3px solid #f2d123;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
}
.coin-detail-hist-note {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(242, 209, 35, .3);
    font-size: .85rem;
    font-style: italic;
    color: #a68a00;
}
/* Related coins carousel */
.coin-related-carousel {
    position: relative;
    overflow: hidden;
}
.coin-related-track {
    display: flex;
    gap: 12px;
    will-change: transform;
}
.coin-related-card {
    flex: 0 0 180px;
    text-decoration: none;
    color: inherit;
    border-radius: .5rem;
    overflow: hidden;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition: box-shadow .2s;
}
.coin-related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.coin-related-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
}
.coin-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coin-related-info {
    padding: .5rem .65rem;
}
.coin-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    cursor: pointer;
}
.coin-related-carousel:hover .coin-related-arrow {
    opacity: 1;
}
.coin-related-prev { left: .5rem; }
.coin-related-next { right: .5rem; }
.coin-related-arrow:hover { background: rgba(0,0,0,.75); }
@media (hover: none) {
    .coin-related-arrow { opacity: .7; }
}

/* User block (Unify #04 style) */
.coin-user-block {
    box-shadow: 0 1px 10px rgba(0,0,0,.08);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    overflow: hidden;
    transition: box-shadow .3s;
}
.coin-user-block:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
}
.coin-user-block-main {
    background: #fff;
    padding: 1.5rem 1.25rem 1rem;
}
.coin-user-block-avatar {
    width: 130px;
    height: 130px;
}
.coin-user-block-footer {
    background: var(--bs-light-bg-subtle, #f8f9fa);
    padding: .65rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}
.coin-user-block-icons {
    display: flex;
    border-top: 1px solid var(--bs-border-color);
}
.coin-user-block-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 0;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: color .2s, background .2s;
    font-size: 1.1rem;
}
.coin-user-block-icon:not(:last-child) {
    border-right: 1px solid var(--bs-border-color);
}
.coin-user-block-icon:hover {
    color: #f2d123;
    background: rgba(242, 209, 35, .12);
}

/* Detail rows — dashed separator */
.zs-row-dashed {
    border-bottom: 1px dashed var(--bs-border-color);
    border-radius: .375rem;
    padding-left: .5rem;
    padding-right: .5rem;
    transition: background .2s;
}
.zs-row-dashed:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

/* Sidebar tags box */
.zs-sidebar-tags-box {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1rem;
    min-height: 120px;
}

/* Tag buttons */
.zs-tag-btn {
    display: inline-block;
    padding: .3rem .7rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color);
    border-radius: 2rem;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.zs-tag-btn:hover {
    color: #1a1a2e;
    background: rgba(242, 209, 35, .12);
    border-color: #f2d123;
}

/* Sidebar sticky — sticks below topbar, full height, no internal scroll */
.coin-detail-sidebar {
    position: sticky;
    top: 74px; /* 60px topbar + 14px gap */
}
/* The col must not stretch to row height for sticky to work */
.coin-detail-sidebar-col {
    align-self: start;
}
@media (max-width: 767.98px) {
    .coin-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .coin-detail-img:first-child  { border-radius: .75rem 0 0 0; }
    .coin-detail-img:nth-child(2) { border-radius: 0 .75rem 0 0; }
    .coin-detail-img:nth-child(3) { border-radius: 0 0 0 .75rem; }
    .coin-detail-img:last-child   { border-radius: 0 0 .75rem 0; }
    .coin-detail-sidebar { position: static; }
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.zs-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zsLightboxFadeIn 0.3s ease;
}
.zs-lightbox-hidden { display: none !important; }
.zs-lightbox-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}
.zs-lightbox-content {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.zs-lightbox-image-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
}
.zs-lightbox-image-wrapper img {
  max-width: 90vw; max-height: calc(100vh - 140px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.zs-lightbox-close,
.zs-lightbox-prev,
.zs-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.zs-lightbox-close:hover,
.zs-lightbox-prev:hover,
.zs-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.zs-lightbox-close { top: 20px; right: 20px; }
.zs-lightbox-close i { font-size: 24px; }
.zs-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.zs-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.zs-lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.zs-lightbox-next:hover { transform: translateY(-50%) scale(1.1); }
.zs-lightbox-prev i,
.zs-lightbox-next i { font-size: 28px; }
.zs-lightbox-info {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 80%;
  z-index: 11;
}
.zs-lightbox-title {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zs-lightbox-counter {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(10px);
}
.zs-lightbox.single-image .zs-lightbox-prev,
.zs-lightbox.single-image .zs-lightbox-next { display: none; }
@keyframes zsLightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 768px) {
  .zs-lightbox-content { padding: 40px 10px 60px; }
  .zs-lightbox-close,
  .zs-lightbox-prev,
  .zs-lightbox-next { width: 40px; height: 40px; }
  .zs-lightbox-close i { font-size: 20px; }
  .zs-lightbox-prev i,
  .zs-lightbox-next i { font-size: 24px; }
  .zs-lightbox-close { top: 10px; right: 10px; }
  .zs-lightbox-prev { left: 10px; }
  .zs-lightbox-next { right: 10px; }
  .zs-lightbox-toolbar { padding: 6px 12px; }
  .zs-lb-tool-btn { width: 36px; height: 36px; }
}
/* Zoom toolbar */
.zs-lightbox-toolbar {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 16px;
  z-index: 12;
}
.zs-lb-tool-btn {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s;
}
.zs-lb-tool-btn:hover { background: rgba(255,255,255,.15); }
.zs-lb-zoom-level {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
  user-select: none;
}
.zs-lb-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.25);
  margin: 0 4px;
}
/* Zoomed state */
.zs-lightbox-image-wrapper.zs-zoomed { cursor: grab; }
.zs-lightbox-image-wrapper.zs-dragging { cursor: grabbing !important; }
/* Aspect ratio squares (for coin images) */
.aspect-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Cloak */
[data-cloak] { display: none !important; }

/* Admin sidebar active */
.admin-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-radius: 0.375rem;
}

/* Badge coin colors */
.badge-coin {
    background-color: #f59e0b;
    color: #78350f;
}
.badge-grade {
    background-color: #e9d5ff;
    color: #6b21a8;
}

/* ===== Topbar ===== */
.zs-topbar {
    background: #fff;
    border-bottom: none !important;
    box-shadow: 0 .375rem 1.5rem 0 rgba(140,152,164,.125);
}
.zs-topbar .navbar-brand { font-size: 1.125rem; }

/* Topbar separator */
.zs-topbar-sep {
    width: 1px; height: 1.75rem; background: var(--bs-border-color); opacity: .5;
    margin: 0 .5rem; flex-shrink: 0;
}

/* Topbar nav links */
.zs-topbar .navbar-nav {
    height: 100%;
    align-items: stretch;
    gap: .125rem;
}
.zs-topbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    position: relative;
}
.zs-topbar .navbar-nav .nav-link {
    position: relative;
    border-radius: .3125rem;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #51596c;
    transition: background .2s ease, color .2s ease;
}
.zs-topbar .navbar-nav .nav-item:has(.nav-link)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    transform: translateX(-50%);
    height: 2px;
    background: #f2d123;
    border-radius: 2px;
    transition: width .3s cubic-bezier(.68,-.55,.27,1.55);
}
.zs-topbar .navbar-nav .nav-link:hover {
    background: rgba(242,209,35,.08);
    color: #1a1a2e;
}
.zs-topbar .navbar-nav .nav-item:has(.nav-link):hover::after {
    width: 100%;
}
.zs-topbar .navbar-nav .nav-link.active {
    background: rgba(242,209,35,.1);
    color: #1a1a2e;
    font-weight: 600;
}
.zs-topbar .navbar-nav .nav-item:has(.nav-link.active)::after {
    width: 100%;
}
/* Topbar buttons */
.zs-topbar .btn-sm { font-size: .8125rem; padding: .5rem .875rem; }
.zs-topbar .btn-link { font-size: 1.25rem; padding: .25rem .4rem; }
.zs-topbar .btn-dark.btn-sm { font-size: .8125rem; padding: .4rem .75rem; }

/* Search form (Zkriva style) */
.zs-search-form {
    --zs-search-collapsed: 200px;
    --zs-search-expanded: 420px;
    position: relative;
    flex: 0 1 auto;
    width: var(--zs-search-collapsed);
    align-items: center;
    transition: width .28s ease;
}
.zs-search-form:focus-within {
    width: min(var(--zs-search-expanded), calc(100vw - 420px));
}
.zs-topbar .zs-search-input {
    position: relative;
    z-index: 1;
    height: 36px;
    border-radius: 999px;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
    border: 1px solid #dee2e6;
    font-size: .875rem;
    background: #f8f9fa;
    transition: background .15s, border-color .15s;
}
.zs-topbar .zs-search-input:focus {
    background: #fff;
}
.zs-search-left-btn {
    position: absolute;
    left: .65rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    color: #8b8b8b;
    cursor: pointer;
    z-index: 3;
    font-size: .85rem;
}
.zs-search-left-btn:hover {
    color: #5f5f5f;
}
.zs-search-clear-btn {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    color: #8b8b8b;
    cursor: pointer;
    z-index: 3;
    font-size: .75rem;
}
.zs-search-clear-btn:hover {
    color: #333;
}

/* Mobile search overlay */
.zs-mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1065;
}
.zs-mobile-search-overlay.active {
    display: block;
}
.zs-mobile-search-input {
    border-radius: 999px;
    padding-left: 2.2rem;
    height: 40px;
}
.zs-mobile-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8b8b;
}

/* ===== 3-Column Layout ===== */
.app-wrapper {
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Main scroll area (content + footer) */
.main-scroll-area {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 60px);
}

/* Left Sidebar — base dimensions; positioning is mobile-first in responsive section */
.sidebar {
    width: 260px;
    min-width: 260px;
    border-right: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width .25s ease, min-width .25s ease, opacity .25s ease, left .25s ease;
}

/* Sidebar icons bar */
.sidebar-top-icons {
    padding: .625rem .75rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.sidebar-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .5rem .75rem;
    border: none;
    border-radius: .5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #12121f 100%);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .15s;
    box-shadow: 0 2px 6px rgba(26,26,46,.25);
}
.sidebar-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,26,46,.35);
    background: linear-gradient(135deg, #2a2a44 0%, #1a1a2e 100%);
}
.sidebar-add-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(26,26,46,.2);
}
.sidebar-add-btn i {
    font-size: .9rem;
}
.sidebar-bottom-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-bottom: none;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* Sidebar scrollable middle */
.sidebar-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Thin auto-hide scrollbar — all sidebars + main scroll */
.sidebar-scroll,
.main-scroll-area,
.ns-scroll,
.cs-scroll,
.us-scroll,
.ms-scroll,
.messenger-rooms-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.sidebar-scroll:hover,
.main-scroll-area:hover,
.ns-scroll:hover,
.cs-scroll:hover,
.us-scroll:hover,
.ms-scroll:hover,
.messenger-rooms-scroll:hover {
    scrollbar-color: rgba(0,0,0,.15) transparent;
}
.sidebar-scroll::-webkit-scrollbar,
.main-scroll-area::-webkit-scrollbar,
.ns-scroll::-webkit-scrollbar,
.cs-scroll::-webkit-scrollbar,
.us-scroll::-webkit-scrollbar,
.ms-scroll::-webkit-scrollbar,
.messenger-rooms-scroll::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-track,
.main-scroll-area::-webkit-scrollbar-track,
.ns-scroll::-webkit-scrollbar-track,
.cs-scroll::-webkit-scrollbar-track,
.us-scroll::-webkit-scrollbar-track,
.ms-scroll::-webkit-scrollbar-track,
.messenger-rooms-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb,
.main-scroll-area::-webkit-scrollbar-thumb,
.ns-scroll::-webkit-scrollbar-thumb,
.cs-scroll::-webkit-scrollbar-thumb,
.us-scroll::-webkit-scrollbar-thumb,
.ms-scroll::-webkit-scrollbar-thumb,
.messenger-rooms-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}
.sidebar-scroll:hover::-webkit-scrollbar-thumb,
.main-scroll-area:hover::-webkit-scrollbar-thumb,
.ns-scroll:hover::-webkit-scrollbar-thumb,
.cs-scroll:hover::-webkit-scrollbar-thumb,
.us-scroll:hover::-webkit-scrollbar-thumb,
.ms-scroll:hover::-webkit-scrollbar-thumb,
.messenger-rooms-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover,
.main-scroll-area::-webkit-scrollbar-thumb:hover,
.ns-scroll::-webkit-scrollbar-thumb:hover,
.cs-scroll::-webkit-scrollbar-thumb:hover,
.us-scroll::-webkit-scrollbar-thumb:hover,
.ms-scroll::-webkit-scrollbar-thumb:hover,
.messenger-rooms-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.25);
}
[data-theme="dark"] .sidebar-scroll:hover,
[data-theme="dark"] .main-scroll-area:hover,
[data-theme="dark"] .ns-scroll:hover,
[data-theme="dark"] .cs-scroll:hover,
[data-theme="dark"] .us-scroll:hover,
[data-theme="dark"] .ms-scroll:hover,
[data-theme="dark"] .messenger-rooms-scroll:hover {
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
[data-theme="dark"] .sidebar-scroll:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .main-scroll-area:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .ns-scroll:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .cs-scroll:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .us-scroll:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .ms-scroll:hover::-webkit-scrollbar-thumb,
[data-theme="dark"] .messenger-rooms-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
}
[data-theme="dark"] .sidebar-scroll::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .main-scroll-area::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .ns-scroll::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .cs-scroll::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .us-scroll::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .ms-scroll::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .messenger-rooms-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.25);
}
.sidebar-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: all .2s ease;
    text-decoration: none;
}
.sidebar-icon-btn i {
    font-size: 1.15rem;
    transition: transform .2s ease;
}
.sidebar-icon-btn:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #f2d123;
    transform: translateY(-1px);
}
.sidebar-icon-btn:hover i {
    transform: scale(1.1);
}
.sidebar-icon-btn.active {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
    box-shadow: 0 2px 8px rgba(254,243,199,.5);
}

/* Sidebar sections */
.sidebar-section {
    padding: .25rem 0;
}
.sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .375rem .75rem;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}
.sidebar-section-title:hover {
    color: #212529;
}
.sidebar-section-title .bi-chevron-down {
    transition: transform .2s;
    font-size: .65rem;
}
.sidebar-section-title.collapsed-section .bi-chevron-down {
    transform: rotate(-90deg);
}
.sidebar-section-body {
    overflow: hidden;
    transition: max-height .25s ease;
}
.sidebar-section-body.collapsed-body {
    max-height: 0 !important;
    overflow: hidden;
}

/* Sidebar menu links */
.sidebar-menu a,
.sidebar-tree a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .625rem;
    color: #495057;
    text-decoration: none;
    font-size: .85rem;
    border-radius: 8px;
    margin: 2px .375rem;
    transition: background-color .12s ease, color .12s ease;
}
.sidebar-menu a:hover,
.sidebar-tree a:hover {
    background: #f5f6f7;
    color: #212529;
}
.sidebar-menu a.active,
.sidebar-tree a.active {
    background: rgba(242,209,35,.12);
    color: #b8960a;
    font-weight: 500;
}

/* Sidebar country flags */
.sidebar-flag {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Sidebar count badges (coin counts per category) */
.sidebar-menu a > span:not(.sidebar-count-badge) { flex: 1; min-width: 0; }
.sidebar-count-badge {
    margin-left: auto;
    font-size: .65rem;
    font-weight: 600;
    min-width: 22px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    background: var(--bs-tertiary-bg, #e9ecef);
    color: var(--bs-secondary-color, #6c757d);
    padding: 0 6px;
    flex-shrink: 0;
}
[data-theme="dark"] .sidebar-count-badge {
    background: rgba(255,255,255,.1);
    color: #8892a4;
}

/* Sidebar tree (collections) */
.sidebar-tree .tree-item {
    padding-left: .5rem;
}
.sidebar-tree .tree-children {
    padding-left: 1rem;
}
.sidebar-tree .tree-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: 16px;
    color: #adb5bd;
    transition: transform .2s;
}
.sidebar-tree .tree-toggle.open {
    transform: rotate(90deg);
}

/* Sidebar add collection: trigger link uses .sidebar-tree a style, just mute color */
.sidebar-add-col-trigger { color: #8892a4 !important; }
.sidebar-add-col-trigger:hover { color: #b8960a !important; }
[data-theme="dark"] .sidebar-add-col-trigger { color: #5a6270 !important; }
[data-theme="dark"] .sidebar-add-col-trigger:hover { color: #6ea8fe !important; }
/* Sidebar add collection: inline input */
.sidebar-add-col-input-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .625rem;
}
.sidebar-add-col-input-group i {
    color: #d4a017;
    font-size: .8rem;
    flex-shrink: 0;
}
.sidebar-add-col-input-group input {
    flex: 1;
    border: none;
    border-bottom: 1.5px solid #d4a017;
    background: transparent;
    font-size: .85rem;
    padding: .2rem 0;
    outline: none;
    color: inherit;
}
.sidebar-add-col-input-group input::placeholder {
    color: #adb5bd;
    font-style: italic;
}
[data-theme="dark"] .sidebar-add-col-input-group i { color: #6ea8fe; }
[data-theme="dark"] .sidebar-add-col-input-group input { border-bottom-color: #6ea8fe; color: #c0c7d0; }

/* Sidebar collection drag & drop */
.sidebar-tree .tree-item[draggable] {
    cursor: grab;
    position: relative;
}
.sidebar-tree .tree-item[draggable] .drag-grip {
    opacity: 0;
    font-size: .65rem;
    color: #adb5bd;
    margin-right: 2px;
    cursor: grab;
    transition: opacity .15s;
}
.sidebar-tree .tree-item[draggable]:hover .drag-grip {
    opacity: .6;
}
.sidebar-tree .tree-item.dragging {
    opacity: .4;
}
.sidebar-tree .tree-item.drag-over {
    border-top: 2px solid #f2d123;
}
.drag-clone {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: .8;
    transform: translate(-50%, -50%);
    background: var(--bs-body-bg, #fff);
    border-radius: 4px;
    padding: 2px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    font-size: .85rem;
}

/* Sidebar toggle button (chevron at topbar level) */
.sidebar-toggle-stack {
    position: absolute;
    left: 260px;
    top: 10px;
    z-index: 1050;
    transition: left .25s ease;
}
.sidebar.collapsed ~ .sidebar-toggle-stack {
    left: 0;
}
.sidebar-chevron-btn {
    width: 18px;
    height: 36px;
    border: 1px solid rgba(0,0,0,.08);
    border-left: none;
    background: var(--bs-body-bg, #fff);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(0,0,0,.25);
    font-size: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: background .2s, color .2s, border-color .2s;
}
.sidebar-chevron-btn:hover {
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.6);
}
[data-theme="dark"] .sidebar-chevron-btn {
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.25);
}
[data-theme="dark"] .sidebar-chevron-btn:hover {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
}
/* Home page variant — hero "view all" style */
.sidebar-chevron-btn.zs-chevron-home {
    background: rgba(0,0,0,.4);
    background-clip: padding-box;
    border: 4px solid rgba(0,0,0,.4);
    border-left: none;
    color: #ddd;
    box-shadow: none;
    transition: color .35s ease, background .35s ease, border-color .35s ease;
}
.sidebar-chevron-btn.zs-chevron-home:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
    background-clip: padding-box;
    border-color: rgba(0,0,0,.4);
}
.sidebar-chevron-btn.zs-chevron-home:active {
    background: rgba(255,255,255,.25);
    background-clip: padding-box;
    border-color: rgba(0,0,0,.4);
}

/* Sidebar badge */
.sidebar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
}

/* Main content area — padding is set in responsive section below */

/* User sidebar (right offcanvas) */
.user-sidebar-width {
    width: 320px !important;
    top: 60px !important;
    bottom: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    position: fixed !important;
}

/* Notification sidebar (right offcanvas) */
.notif-sidebar-width {
    width: 320px !important;
    top: 60px !important;
    bottom: 0 !important;
    height: auto !important;
}
.notif-sidebar-width #notif-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.ns-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}
.ns-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.ns-bottom {
    flex-shrink: 0;
    border-top: 1px solid #eee;
}
/* Cart sidebar items */
.cart-sidebar-item {
    cursor: pointer;
    transition: background-color .2s ease;
    border-radius: 0;
}
.cart-sidebar-item:hover {
    background-color: rgba(var(--bs-primary-rgb, 13,110,253), .06);
}
.cart-sidebar-item .cart-remove-btn {
    color: var(--bs-body-color);
    opacity: .5;
    transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
.cart-sidebar-item .cart-remove-btn:hover {
    color: #dc3545;
    background-color: rgba(220,53,69,.1);
    opacity: 1;
}
/* Cart sidebar (right offcanvas) */
.cart-sidebar-width {
    width: 320px !important;
    top: 60px !important;
    bottom: 0 !important;
    height: auto !important;
}
.cart-sidebar-width #cart-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.cs-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}
.cs-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.cs-bottom {
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.offcanvas {
    z-index: 1051;
    top: 60px;
    border-top: 1px solid var(--bs-border-color);
}
.offcanvas-backdrop {
    z-index: 1050;
    top: 60px !important;
}

/* Sidebar mobile close button (hidden, sidebar is below topbar) */
.sidebar-close-mobile {
    display: none;
}

/* Mobile-friendly sidebars — touch targets min 44px */
@media (max-width: 991.98px) {
    /* Left sidebar */
    .sidebar {
        width: 280px;
        min-width: 280px;
    }
    .sidebar-menu a,
    .sidebar-tree a {
        min-height: 44px;
        padding: .5rem .625rem;
        font-size: .95rem;
        border-radius: 8px;
    }
    .sidebar-menu a i,
    .sidebar-tree a i {
        font-size: 1.1rem;
    }
    .sidebar-section-title {
        min-height: 40px;
        padding: .5rem .75rem;
        font-size: .75rem;
    }
    .sidebar-add-btn {
        min-height: 44px;
        font-size: .9rem;
    }
    .sidebar-icon-btn {
        width: 44px;
        height: 44px;
    }
    .sidebar-bottom-icons {
        padding: .5rem .75rem;
    }
    /* Right offcanvas sidebars */
    .us-menu a {
        min-height: 44px;
        padding: .55rem 1.25rem;
        font-size: .95rem;
    }
    .notif-item .d-flex {
        min-height: 52px;
        padding: .625rem !important;
    }
    .notif-item .small.fw-medium {
        font-size: .9rem !important;
    }
}

/* Mobile topbar layout */
@media (max-width: 991.98px) {
    #topbar .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0;
    }
    .mobile-topbar-left {
        flex: 0 0 auto;
    }
    .mobile-icons-bar {
        flex: 1 1 auto;
        justify-content: center;
    }
    .mobile-topbar-right {
        flex: 0 0 auto;
    }
}

/* Mobile icons bar - Facebook-style large touch targets */
.mobile-icons-bar .btn {
    color: var(--bs-body-color);
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: background .15s;
}
.mobile-icons-bar .btn:active {
    background: rgba(0,0,0,.08);
}
[data-theme="dark"] .mobile-icons-bar .btn:active {
    background: rgba(255,255,255,.1);
}

/* Mobile hamburger */
#btn-sidebar-mobile {
    color: var(--bs-body-color);
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
#btn-sidebar-mobile:not(.d-none) {
    display: flex !important;
}

/* Mobile avatar button */
#btn-user-sidebar-mobile {
    min-height: auto;
    line-height: 1;
    padding: 0 !important;
    text-decoration: none;
}

/* Coin-add media column: sticky on desktop only */
@media (min-width: 992px) {
    .coin-add-media-col {
        position: sticky;
        top: 1rem;
    }
}

/* Mobile auth buttons (login/register) */
.mobile-auth-btn {
    font-size: .75rem !important;
    padding: .25rem .5rem !important;
    min-height: auto !important;
    white-space: nowrap;
}
.user-sidebar-width #user-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.us-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem;
    border-bottom: 1px solid #dee2e6;
}
#us-username { color: var(--bs-body-color); }
.us-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.us-bottom {
    flex-shrink: 0;
    border-top: 1px solid #eee;
}
.us-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.us-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.us-section-title {
    padding: .5rem 1.25rem .25rem;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}
.us-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.25rem;
    color: #495057;
    text-decoration: none;
    font-size: .85rem;
    border-radius: 8px;
    margin: 2px .625rem;
    transition: background-color .12s ease, color .12s ease;
}
.us-menu a:hover {
    background: #f5f6f7;
    color: #212529;
}

/* Theme buttons */
.us-theme-btn {
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: .375rem;
    padding: .375rem .75rem;
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .375rem;
    transition: all .15s;
}
.us-theme-btn:hover {
    border-color: #f2d123;
}
.us-theme-btn.active {
    border-color: #f2d123;
    background: rgba(242,209,35,.1);
    color: #b8960a;
}

/* ===== Language Flag Circles ===== */
.zs-lang-flags {
    flex-wrap: wrap;
}
.zs-flag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(255,255,255,.08);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: width .3s cubic-bezier(.4,0,.2,1), background .2s, border-color .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.zs-flag-img {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.zs-flag-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    font-size: .75rem;
    font-weight: 500;
    color: #ccc;
    margin-left: 0;
    transition: max-width .3s cubic-bezier(.4,0,.2,1), opacity .2s .05s, margin-left .3s;
    white-space: nowrap;
}
.zs-flag-btn:hover {
    width: auto;
    padding: 0 .75rem 0 .4rem;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}
.zs-flag-btn:hover .zs-flag-label {
    max-width: 90px;
    opacity: 1;
    margin-left: .35rem;
}
.zs-flag-btn.active {
    width: auto;
    padding: 0 .75rem 0 .4rem;
    border-color: #f2d123;
    background: rgba(242,209,35,.12);
}
.zs-flag-btn.active .zs-flag-label {
    max-width: 90px;
    opacity: 1;
    margin-left: .35rem;
    color: #f2d123;
}

/* ===== Carrier Selection Cards ===== */
.zs-carrier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}
.zs-carrier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem .5rem;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    min-height: 100px;
    user-select: none;
}
.zs-carrier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border-color: var(--bs-primary, #0d6efd);
}
.zs-carrier-card.selected {
    border-color: var(--bs-success, #198754);
    background: rgba(25,135,84,.06);
}
.zs-carrier-card .zs-carrier-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bs-success, #198754);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
}
.zs-carrier-card.selected .zs-carrier-check {
    display: flex;
}
.zs-carrier-card .zs-carrier-logo {
    width: 48px;
    height: 48px;
    border-radius: .5rem;
    object-fit: contain;
}
.zs-carrier-card .zs-carrier-name {
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--bs-body-color, #212529);
}
[data-theme="dark"] .zs-carrier-card {
    border-color: #3a3a5a;
    background: #1e1e3a;
}
[data-theme="dark"] .zs-carrier-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    border-color: #6ea8fe;
}
[data-theme="dark"] .zs-carrier-card.selected {
    border-color: #75b798;
    background: rgba(117,183,152,.1);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] body,
[data-theme="dark"] {
    background-color: #1a1a2e !important;
    color: #e0e0e0;
}
[data-theme="dark"] .navbar,
[data-theme="dark"] #topbar {
    background-color: #16213e !important;
    border-color: #2a2a4a !important;
}
[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: #e0e0e0 !important;
}
[data-theme="dark"] .nav-link:hover {
    color: #fff !important;
}
[data-theme="dark"] .zs-topbar .navbar-nav .nav-link { color: #b0b8c8; }
[data-theme="dark"] .zs-topbar .navbar-nav .nav-link:hover {
    background: rgba(242,209,35,.1);
    color: #f2d123 !important;
}
[data-theme="dark"] .zs-topbar .navbar-nav .nav-link.active {
    background: rgba(242,209,35,.12);
    color: #f2d123 !important;
}
[data-theme="dark"] .sidebar {
    background: #16213e;
    border-color: #2a2a4a;
}
[data-theme="dark"] .sidebar-section-title {
    color: #8892a4;
}
[data-theme="dark"] .sidebar-menu a,
[data-theme="dark"] .sidebar-tree a {
    color: #c0c7d0;
}
[data-theme="dark"] .sidebar-menu a:hover,
[data-theme="dark"] .sidebar-tree a:hover {
    background: #1f2b47;
    color: #fff;
}
[data-theme="dark"] .sidebar-menu a.active,
[data-theme="dark"] .sidebar-tree a.active {
    background: #1a3a6b;
    color: #6ea8fe;
}
[data-theme="dark"] .sidebar-icon-btn {
    background: #1a1a1a;
    color: #aaa;
    border-color: #333;
}
[data-theme="dark"] .sidebar-icon-btn:hover {
    background: #fde68a;
    color: #1a1a1a;
    border-color: #fde68a;
}
[data-theme="dark"] .sidebar-icon-btn:hover i {
    color: #1a1a1a;
}
[data-theme="dark"] .sidebar-icon-btn.active {
    background: #fde68a;
    color: #1a1a1a;
    border-color: #fde68a;
}
[data-theme="dark"] .sidebar-top-icons,
[data-theme="dark"] .sidebar-bottom-icons {
    border-color: #333;
}
[data-theme="dark"] .sidebar-add-btn {
    background: linear-gradient(135deg, #f2d123 0%, #d4b80e 100%);
    color: #1a1a2e;
    box-shadow: 0 2px 6px rgba(242,209,35,.2);
}
[data-theme="dark"] .sidebar-add-btn:hover {
    box-shadow: 0 4px 12px rgba(242,209,35,.3);
    background: linear-gradient(135deg, #f7e05a 0%, #f2d123 100%);
}
[data-theme="dark"] .sidebar-chevron-btn {
    background: #1a1a1a;
    border-color: #333;
    color: #f2d123;
}
[data-theme="dark"] .sidebar-chevron-btn:hover {
    background: #f2d123;
    color: #fff;
}
[data-theme="dark"] .main-content {
    background: #1a1a2e;
}
[data-theme="dark"] .offcanvas {
    background: #16213e !important;
    color: #e0e0e0;
}
[data-theme="dark"] .us-header {
    border-color: #2a2a4a;
}
[data-theme="dark"] .us-bottom {
    border-color: #2a2a4a;
}
[data-theme="dark"] .us-section-title {
    color: #8892a4;
}
[data-theme="dark"] .us-menu a {
    color: #c0c7d0;
}
[data-theme="dark"] .us-menu a:hover {
    background: #1f2b47;
    color: #fff;
}
[data-theme="dark"] .us-theme-btn {
    background: #1f2b47;
    border-color: #2a2a4a;
    color: #c0c7d0;
}
[data-theme="dark"] .us-theme-btn.active {
    background: #1a3a6b;
    border-color: #6ea8fe;
    color: #6ea8fe;
}
[data-theme="dark"] .card {
    background: #16213e !important;
    border-color: #2a2a4a !important;
    color: #e0e0e0;
}
/* Dark form-control and form-select overrides */
[data-theme="dark"] .btn-outline-secondary {
    border-color: #2a2a4a;
    color: #c0c7d0;
}
[data-theme="dark"] .btn-outline-secondary:hover {
    background: #1f2b47;
    color: #fff;
}
[data-theme="dark"] .zs-topbar {
    background: #16213e;
    box-shadow: 0 .375rem 1.5rem 0 rgba(0,0,0,.3);
}
[data-theme="dark"] .zs-topbar-sep { background: rgba(255,255,255,.15); }
[data-theme="dark"] .zs-topbar .zs-search-input {
    background: #1f2b47;
    border-color: #2a2a4a;
    color: #e0e0e0;
}
[data-theme="dark"] .zs-topbar .zs-search-input:focus {
    background: #1a1a2e;
    border-color: #4a6da7;
}
[data-theme="dark"] .zs-search-left-btn,
[data-theme="dark"] .zs-search-clear-btn {
    color: #8892a4;
}
[data-theme="dark"] .zs-mobile-search-overlay {
    background: #1a1a2e;
}
[data-theme="dark"] .zs-mobile-search-input {
    background: #1f2b47;
    border-color: #2a2a4a;
    color: #e0e0e0;
}
[data-theme="dark"] .btn-light {
    background: #1f2b47;
    border-color: #2a2a4a;
    color: #e0e0e0;
}
[data-theme="dark"] .dropdown-menu {
    background: #16213e;
    border-color: #2a2a4a;
}
[data-theme="dark"] .dropdown-item {
    color: #c0c7d0;
}
[data-theme="dark"] .dropdown-item:hover {
    background: #1f2b47;
    color: #fff;
}
[data-theme="dark"] .border-bottom {
    border-color: #2a2a4a !important;
}
[data-theme="dark"] .text-muted {
    color: #8892a4 !important;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1050;
}
.sidebar-overlay.show {
    display: block;
}

/* ===== Mobile-First Responsive ===== */

/* --- Base (mobile, < 576px) --- */
.main-content {
    padding: .75rem;
}
.sidebar {
    position: fixed;
    top: 60px;
    left: -280px;
    bottom: 0;
    z-index: 1051;
    transition: left .25s ease;
    box-shadow: none;
    border-top: 1px solid var(--bs-border-color);
}
.sidebar.show-mobile {
    left: 0;
    box-shadow: 4px 0 12px rgba(0,0,0,.15);
}
.sidebar.collapsed {
    left: -280px;
}
.sidebar-toggle-stack { display: none; }
.user-sidebar-width,
.cart-sidebar-width {
    width: 100% !important;
    max-width: 320px;
}
.pp-cover-wrap {
    height: 140px !important;
}

/* Touch-friendly tap targets */
.btn {
    min-height: 2.5rem;
}
.btn-sm {
    min-height: 2rem;
}

/* Mobile typography */
h1, .fs-2 { font-size: 1.375rem; }
h2, .fs-3 { font-size: 1.15rem; }
.display-5 { font-size: 1.5rem; }

/* Mobile cards spacing */
.card-body { padding: .875rem; }

/* Mobile form adjustments */
.form-control,
.form-select {
    font-size: 1rem; /* prevents iOS zoom on focus */
}

/* Mobile wall post */
.wall-post .card-body { padding: .75rem; }

/* Mobile discover scrollers */
#discover-suggested,
#trending-collectors {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
#discover-suggested > *,
#trending-collectors > * {
    scroll-snap-align: start;
}

/* --- SM (>= 576px) --- */
@media (min-width: 576px) {
    .main-content { padding: 1rem; }
    h1, .fs-2 { font-size: 1.5rem; }
    h2, .fs-3 { font-size: 1.25rem; }
    .display-5 { font-size: 1.75rem; }
    .pp-cover-wrap { height: 160px !important; }
}

/* --- MD (>= 768px) --- */
@media (min-width: 768px) {
    .main-content { padding: 1.25rem; }
    h1, .fs-2 { font-size: 1.75rem; }
    h2, .fs-3 { font-size: 1.35rem; }
    .display-5 { font-size: 2.25rem; }
    .pp-cover-wrap { height: 200px !important; }
}

/* --- LG (>= 992px) --- */
@media (min-width: 992px) {
    .main-content { padding: 1.5rem; }
    .sidebar {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        z-index: auto;
        box-shadow: none;
        border-top: none;
        height: calc(100vh - 60px);
        transition: width .25s ease, min-width .25s ease, opacity .25s ease;
    }
    .sidebar.collapsed {
        left: auto;
        width: 0;
        min-width: 0;
        opacity: 0;
        border-right-color: transparent;
    }
    .sidebar-toggle-stack { display: block !important; z-index: 1050; }
    h1, .fs-2 { font-size: 2rem; }
    h2, .fs-3 { font-size: 1.5rem; }
    .display-5 { font-size: 2.75rem; }
    .pp-cover-wrap { height: 250px !important; }
}

/* --- XL (>= 1200px) --- */
@media (min-width: 1200px) {
    .display-5 { font-size: 3rem; }
}

/* ===== Social / Wall Posts ===== */

/* Wall posts */
.wall-post {
    transition: box-shadow .15s;
}
.wall-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.wall-post .btn-link:hover {
    opacity: .8;
}

.notif-item {
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.notif-item:hover {
    background: rgba(0,0,0,.03);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item.unread {
    background: rgba(242, 209, 35, .06);
}
.notif-item.unread::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f2d123;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
}
.notif-item {
    position: relative;
    padding-left: 4px;
}

/* Bell shake animation */
@keyframes bellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(6deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}
.bell-shake {
    animation: bellShake .6s ease-in-out;
}

/* Follow button */
.btn-follow-animated {
    transition: all .2s ease;
}

/* Coin detail — breadcrumb */
.zs-coin-breadcrumb { padding: .4rem 0 .6rem; border-bottom: 1px solid var(--bs-border-color); margin-bottom: .5rem; }
.zs-coin-breadcrumb .breadcrumb { gap: .1rem; }
.zs-coin-breadcrumb .breadcrumb-item a {
    color: #f2d123; text-decoration: none; font-size: .8125rem; transition: color .15s;
}
.zs-coin-breadcrumb .breadcrumb-item a:hover { color: #ffd700; text-decoration: underline; }
.zs-coin-breadcrumb .breadcrumb-item.active { color: var(--bs-body-color); font-size: .8125rem; font-weight: 600; }
.zs-coin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #f2d123; content: "\203A"; font-size: 1rem;
}

/* Collection view — breadcrumb below header band */
.cv-breadcrumb {
    background: var(--pp-card-bg);
    border-bottom: 1px solid var(--pp-border);
    padding: .6rem 0;
}
.cv-breadcrumb .breadcrumb {
    gap: .1rem;
}
.cv-breadcrumb .breadcrumb-item a {
    color: #f2d123;
    text-decoration: none;
    font-size: .9375rem;
    transition: color .15s;
}
.cv-breadcrumb .breadcrumb-item a:hover {
    color: #ffd700;
    text-decoration: underline;
}
.cv-breadcrumb .breadcrumb-item.active {
    color: var(--pp-text);
    font-size: .9375rem;
    font-weight: 600;
}
.cv-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #f2d123;
    content: "\203A";
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 .4rem;
    opacity: .6;
}

/* Discover - horizontal scroll cards */
#discover-suggested::-webkit-scrollbar {
    height: 4px;
}
#discover-suggested::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Dark theme - notification sidebar */
[data-theme="dark"] .ns-header {
    border-color: #2a2a4a;
}
[data-theme="dark"] .ns-bottom {
    border-color: #2a2a4a;
}
[data-theme="dark"] .cs-header {
    border-color: #2a2a4a;
}
[data-theme="dark"] .cs-bottom {
    border-color: #2a2a4a;
}
[data-theme="dark"] .notif-item:hover {
    background: rgba(255,255,255,.05);
}
[data-theme="dark"] .notif-item.unread {
    background: rgba(110, 168, 254, .1);
}
[data-theme="dark"] .notif-item {
    border-color: #2a2a4a;
}

/* Fraud alert notifications */
.notif-item.notif-fraud-alert { background: rgba(220,53,69,.08); border-left: 3px solid var(--bs-danger); }
.notif-item.notif-fraud-alert.unread { background: rgba(220,53,69,.15); }

[data-theme="dark"] .wall-post:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ===== Coin Intent Cards ===== */
button.coin-intent-card {
    /* Reset button defaults */
    background: var(--bs-card-bg, #fff);
    color: inherit;
    font: inherit;
    line-height: inherit;
    width: 100%;
    min-height: 0;
    appearance: none;
    -webkit-appearance: none;
}
.coin-intent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: .75rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
/* Hover effects only for mouse/trackpad devices */
@media (hover: hover) and (pointer: fine) {
    .coin-intent-card:hover {
        border-color: #f2d123;
        box-shadow: 0 4px 16px rgba(242,209,35,.18);
        transform: translateY(-2px);
    }
}
/* Active state (works on both desktop + mobile tap) */
.coin-intent-card:active {
    border-color: #f2d123;
    box-shadow: 0 4px 16px rgba(242,209,35,.18);
    transform: scale(.97);
}
.coin-intent-icon {
    font-size: 2.25rem;
    margin-bottom: .75rem;
}
[data-theme="dark"] .coin-intent-card {
    border-color: #2a2a4a;
    background: #16213e;
    color: #e0e0e0;
}
@media (hover: hover) and (pointer: fine) {
    [data-theme="dark"] .coin-intent-card:hover {
        border-color: #6ea8fe;
        box-shadow: 0 4px 16px rgba(110,168,254,.15);
    }
}
[data-theme="dark"] .coin-intent-card:active {
    border-color: #6ea8fe;
    box-shadow: 0 4px 16px rgba(110,168,254,.15);
}

/* ===== Coin Image Slots ===== */
.coin-img-slot:hover {
    border-color: var(--bs-primary) !important;
    opacity: .85;
}
.coin-img-slot .coin-img-actions {
    opacity: 0;
    transition: opacity .2s;
}
.coin-img-slot:hover .coin-img-actions {
    opacity: 1;
}
/* Mobile: always show action buttons when slot has an image */
@media (hover: none) {
    .coin-img-slot .coin-img-actions:not(.d-none) { opacity: 1; }
}
[data-theme="dark"] .coin-img-slot {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
}
[data-theme="dark"] .coin-img-slot:hover {
    border-color: #6ea8fe !important;
}

/* ===== AI Scan Animation ===== */
.coin-img-slot .ai-scan-line,
.coin-img-slot .ai-scan-glow {
    display: none;
}
.coin-img-slot.ai-scanning {
    border-color: rgba(242, 209, 35, .6) !important;
    box-shadow: 0 0 20px rgba(242, 209, 35, .25);
    pointer-events: none;
}
.coin-img-slot.ai-scanning .ai-scan-line {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f2d123;
    box-shadow: 0 0 15px 5px rgba(242, 209, 35, .8),
                0 0 40px 10px rgba(242, 209, 35, .5),
                0 0 80px 20px rgba(242, 209, 35, .2);
    animation: aiScanMove 3s linear infinite;
    z-index: 10;
}
.coin-img-slot.ai-scanning .ai-scan-glow {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(242, 209, 35, .3) 40%,
        rgba(242, 209, 35, .4) 50%,
        rgba(242, 209, 35, .3) 60%,
        transparent 100%);
    animation: aiScanGlow 3s linear infinite;
    z-index: 9;
    pointer-events: none;
}
@keyframes aiScanMove {
    0%   { top: 0; }
    100% { top: calc(100% - 4px); }
}
@keyframes aiScanGlow {
    0%   { top: -13px; }
    100% { top: calc(100% - 17px); }
}

/* ===== Form inputs ===== */
.form-control {
    border: 0.0625rem solid rgba(0,34,28,.1);
    border-radius: 0.3125rem;
    padding: 0.6125rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e2022;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    border-color: rgba(140,152,164,.25);
    box-shadow: 0 0 1rem 0 rgba(140,152,164,.25);
    color: #1e2022;
    background-color: #fff;
    outline: 0;
}
.form-control::placeholder {
    color: #8c98a4;
    opacity: 1;
}
.form-control:disabled,
.form-control[readonly] {
    background-color: #f8fafd;
    opacity: 1;
}

/* Labels */
.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: #1e2022;
    margin-bottom: .5rem;
}
.form-label-secondary {
    font-size: .875rem;
    color: #8c98a4;
    font-weight: 400;
}

/* Helper text */
.form-text {
    font-size: .8125rem;
    color: #8c98a4;
    margin-top: .25rem;
}

/* Select */
.form-select {
    border: 0.0625rem solid rgba(0,34,28,.1);
    border-radius: 0.3125rem;
    padding: 0.6125rem 3rem 0.6125rem 1rem;
    font-size: 1rem;
    color: #1e2022;
    background-color: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-select:focus {
    border-color: rgba(140,152,164,.25);
    box-shadow: 0 0 1rem 0 rgba(140,152,164,.25);
    outline: 0;
}

/* Input group */
.input-group-text {
    border: 0.0625rem solid rgba(0,34,28,.1);
    border-radius: 0.3125rem;
    padding: 0.6125rem 1rem;
    background-color: #fff;
    color: #8c98a4;
    font-size: .875rem;
}

/* Sizes */
.form-control-sm,
.form-select-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 0.3125rem;
    min-height: calc(1.5em + 1.125rem);
}
.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border-radius: 0.3125rem;
    min-height: calc(1.5em + 1.625rem);
}

/* Textarea */
textarea.form-control {
    min-height: calc(1.5em + 1.225rem + 2px);
}

/* Checkbox & Radio */
.form-check-input {
    width: 1.125em;
    height: 1.125em;
    border: 0.0625rem solid rgba(0,34,28,.1);
    border-radius: 0.1875rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-check-input:focus {
    border-color: rgba(140,152,164,.25);
    box-shadow: 0 0 .5rem 0 rgba(140,152,164,.25);
}
.form-check-input:checked {
    background-color: #212529;
    border-color: #212529;
}
.form-check-input:checked:focus {
    box-shadow: 0 0 .5rem 0 rgba(33,37,41,.25);
}
.form-check-label {
    font-size: .875rem;
    color: #677788;
}

/* Validation */
.form-control.is-valid {
    border-color: #00c9a7;
}
.form-control.is-valid:focus {
    box-shadow: 0 0 1rem 0 rgba(0,201,167,.25);
}
.form-control.is-invalid {
    border-color: #ed4c78;
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 1rem 0 rgba(237,76,120,.25);
}
.valid-feedback { color: #00c9a7; font-size: .8125rem; }
.invalid-feedback { color: #ed4c78; font-size: .8125rem; }

/* Plaintext readonly */
.form-control-plaintext {
    padding: 0.6125rem 0;
    color: #1e2022;
    background-color: transparent;
    border: solid transparent;
    border-width: 0.0625rem 0;
}

/* Input card */
.input-card {
    background-color: #fff;
    border: 0.0625rem solid rgba(0,34,28,.1);
    border-radius: 0.5rem;
    padding: .5rem .5rem .5rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: box-shadow .15s ease-in-out;
}
.input-card:focus-within {
    box-shadow: 0 0 1rem 0 rgba(140,152,164,.25);
}
.input-card .form-control {
    border: none;
    padding: .375rem 0;
    box-shadow: none;
    background: transparent;
}
.input-card .form-control:focus {
    box-shadow: none;
}

/* Dark theme forms */
[data-theme="dark"] .form-control {
    background-color: #1a1d2e;
    border-color: rgba(255,255,255,.1);
    color: #cbd5e1;
}
[data-theme="dark"] .form-control:focus {
    border-color: rgba(110,168,254,.4);
    box-shadow: 0 0 1rem 0 rgba(110,168,254,.15);
    background-color: #1a1d2e;
    color: #e2e8f0;
}
[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-control[readonly] {
    background-color: #111322;
}
[data-theme="dark"] .form-label {
    color: #e2e8f0;
}
[data-theme="dark"] .form-text,
[data-theme="dark"] .form-label-secondary {
    color: #64748b;
}
[data-theme="dark"] .form-select {
    background-color: #1a1d2e;
    border-color: rgba(255,255,255,.1);
    color: #cbd5e1;
}
[data-theme="dark"] .form-select:focus {
    border-color: rgba(110,168,254,.4);
    box-shadow: 0 0 1rem 0 rgba(110,168,254,.15);
}
[data-theme="dark"] .input-group-text {
    background-color: #1a1d2e;
    border-color: rgba(255,255,255,.1);
    color: #64748b;
}
[data-theme="dark"] .form-check-input {
    background-color: #1a1d2e;
    border-color: rgba(255,255,255,.15);
}
[data-theme="dark"] .form-check-input:checked {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%231a1d2e' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
[data-theme="dark"] .form-check-label {
    color: #94a3b8;
}
[data-theme="dark"] .input-card {
    background-color: #1a1d2e;
    border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .form-control-plaintext {
    color: #cbd5e1;
}

/* ===== Tag input for countries ===== */
.tags-input-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    padding: .375rem .75rem;
    border: 1px solid rgba(0,34,28,.1);
    border-radius: .3125rem;
    background: #fff;
    min-height: 2.375rem;
    cursor: text;
}
.tags-input-wrap:focus-within {
    border-color: rgba(140,152,164,.25);
    box-shadow: 0 0 1rem 0 rgba(140,152,164,.25);
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .125rem .5rem;
    background: rgba(242,209,35,.12);
    color: #b8960a;
    border-radius: 1rem;
    font-size: .8rem;
    font-weight: 500;
}
.tag-badge button {
    border: none;
    background: none;
    color: #b8960a;
    cursor: pointer;
    padding: 0;
    font-size: .9rem;
    line-height: 1;
    opacity: .7;
}
.tag-badge button:hover {
    opacity: 1;
}
.tags-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 80px;
    font-size: .875rem;
    background: transparent;
}
[data-theme="dark"] .tags-input-wrap {
    background: #1a1d2e;
    border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .tags-input-wrap:focus-within {
    border-color: rgba(110,168,254,.4);
    box-shadow: 0 0 1rem 0 rgba(110,168,254,.15);
}
[data-theme="dark"] .tag-badge {
    background: #1a3a6b;
    color: #6ea8fe;
}
[data-theme="dark"] .tag-badge button {
    color: #6ea8fe;
}
[data-theme="dark"] .tags-input {
    color: #e0e0e0;
}
.item-type-btn.active {
    pointer-events: none;
}
.shipping-type-btn.active {
    pointer-events: none;
}

/* ===== Exchange Listings ===== */
.exchange-listing-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.exchange-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}

/* ── Staggered card reveal animation ── */
.zs-reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.zs-reveal-card.zs-reveal-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.exchange-wanted-tag {
    display: inline-block;
    padding: .125rem .5rem;
    background: rgba(13,110,253,.1);
    color: #0d6efd;
    border-radius: 1rem;
    font-size: .75rem;
    font-weight: 500;
}
[data-theme="dark"] .exchange-wanted-tag {
    background: rgba(110,168,254,.15);
    color: #6ea8fe;
}
/* Translation flag buttons */
.translate-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .82rem;
    font-weight: 500;
    color: var(--bs-body-color);
    user-select: none;
}
.translate-flag-btn:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.translate-flag-btn.active {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
}
.translate-flag-btn .flag-emoji {
    font-size: 1.3rem;
    line-height: 1;
}
.translate-flag-btn .check-icon {
    opacity: 0;
    transition: opacity .2s ease;
    font-size: .7rem;
}
.translate-flag-btn.active .check-icon {
    opacity: 1;
}
.translate-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease;
    opacity: 0;
}
.translate-collapse.open {
    max-height: 200px;
    opacity: 1;
}

.proposal-card {
    border-left: 3px solid transparent;
}
.proposal-card.border-warning { border-left-color: #ffc107; }
.proposal-card.border-success { border-left-color: #198754; }
.proposal-card.border-danger  { border-left-color: #dc3545; }
.proposal-card.border-secondary { border-left-color: #6c757d; }

/* Proposal modal coin selection */
.proposal-coins-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
    gap: 12px;
}
.proposal-coin-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    overflow: hidden;
}
.proposal-coin-item:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.proposal-coin-item.selected {
    border-color: #f2d123;
    background: linear-gradient(135deg, #fffef5 0%, #fff9e0 100%);
    box-shadow: 0 4px 16px rgba(242,209,35,.25);
}
.proposal-coin-item.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,209,35,.3);
}
.proposal-coin-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #f2d123 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform .4s, opacity .4s;
}
.proposal-coin-item:active::before {
    opacity: .15;
    transform: scale(2);
    transition: transform 0s, opacity 0s;
}
.proposal-coin-img {
    width: 40px;
    height: 40px;
    border-radius: .375rem;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.proposal-coin-item:hover .proposal-coin-img {
    transform: scale(1.1);
}
.proposal-coin-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: #f2d123;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: .75rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.proposal-coin-item.selected .proposal-coin-badge {
    opacity: 1;
    transform: scale(1);
}
/* Dark mode */
[data-theme="dark"] .proposal-coin-item {
    background: #1f2937;
    border-color: #374151;
}
[data-theme="dark"] .proposal-coin-item:hover {
    border-color: #4b5563;
    background: #283548;
}
[data-theme="dark"] .proposal-coin-item.selected {
    border-color: #f2d123;
    background: linear-gradient(135deg, #2a2517 0%, #332d1a 100%);
}
[data-theme="dark"] .proposal-coin-badge {
    color: #1f2937;
}

/* ===== Auction Timer & Badges ===== */
.auction-timer {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
    font-weight: 600;
    font-size: .85rem;
}
.auction-timer.ending-soon {
    color: var(--bs-danger);
}
.auction-timer.ended {
    color: var(--bs-secondary);
    font-weight: 400;
}

/* Auction image overlay badges */
.auction-img-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
    font-variant-numeric: tabular-nums;
    z-index: 2;
    pointer-events: none;
}
.auction-img-badge-timer {
    background: rgba(0,0,0,.23);
    color: #fff;
    backdrop-filter: blur(4px);
}
.auction-img-badge-timer.ending-soon {
    background: rgba(220,53,69,.85);
    animation: auction-pulse 1.5s ease-in-out infinite;
}
@keyframes auction-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
.auction-img-badge-ended {
    background: rgba(0,0,0,.23);
    color: #fff;
    backdrop-filter: blur(4px);
}
.zs-badge-blur {
    background: rgba(0,0,0,.23);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* ===== Auth Split Layout (Claude.ai style) ===== */
.auth-split {
    min-height: calc(100vh - 60px);
}
.auth-split-form {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    overflow-y: auto;
}
.auth-form-inner {
    max-width: 380px;
    width: 100%;
}
.auth-form-inner h1 {
    font-size: 1.75rem;
    letter-spacing: -.02em;
}
.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.auth-form-fields .form-label {
    font-size: .8125rem;
    margin-bottom: .3rem;
}
.auth-form-fields .form-control,
.auth-form-fields .form-select {
    padding: .625rem .875rem;
    font-size: .9375rem;
    border-radius: .5rem;
}
.auth-btn-submit {
    margin-top: .25rem;
    padding: .7rem 1rem;
    font-size: .9375rem;
    border-radius: .5rem;
}
.auth-split-media {
    flex: 1 1 50%;
    background: #1a1a2e;
    overflow: hidden;
    border-radius: 1rem;
    margin: .5rem;
    aspect-ratio: 4 / 3;
    position: sticky;
    top: 60px;
    align-self: flex-start;
}
.auth-split-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
[data-theme="dark"] .auth-split-media {
    background: #0f0f1a;
}
[data-theme="dark"] .auth-form-inner h1 {
    color: #e0e0e0;
}

/* Auth separator */
.auth-separator {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
}
.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.auth-separator span {
    font-size: .8125rem;
    color: #999;
    white-space: nowrap;
    text-transform: lowercase;
}
[data-theme="dark"] .auth-separator::before,
[data-theme="dark"] .auth-separator::after {
    background: #2a2a4a;
}
[data-theme="dark"] .auth-separator span {
    color: #64748b;
}

/* Auth social buttons (round dark) */
.auth-social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.auth-social-btn span { display: none; }
.auth-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    background: #2a2a44;
}
.auth-social-btn:active {
    transform: translateY(0);
}
[data-theme="dark"] .auth-social-btn {
    background: #2a2a4a;
}
[data-theme="dark"] .auth-social-btn:hover {
    background: #3a3a5a;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* User type cards (register) */
.zs-utype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.zs-utype-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
    text-align: center;
    user-select: none;
}
.zs-utype-card:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.zs-utype-card.active {
    border-color: #212529;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.zs-utype-icon {
    font-size: 1.5rem;
    color: #6c757d;
    transition: color .2s, transform .2s;
}
.zs-utype-card:hover .zs-utype-icon { color: #495057; transform: scale(1.1); }
.zs-utype-card.active .zs-utype-icon { color: #212529; }
.zs-utype-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6c757d;
    transition: color .2s;
}
.zs-utype-card:hover .zs-utype-label { color: #495057; }
.zs-utype-card.active .zs-utype-label { color: #212529; }
.zs-utype-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #212529;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s, transform .2s;
}
.zs-utype-card.active .zs-utype-check {
    opacity: 1;
    transform: scale(1);
}
[data-theme="dark"] .zs-utype-card {
    background: #2a2d31;
    border-color: #3a3d42;
}
[data-theme="dark"] .zs-utype-card:hover {
    background: #33363b;
    border-color: #5a5d62;
}
[data-theme="dark"] .zs-utype-card.active {
    border-color: #f8f9fa;
    background: #33363b;
}
[data-theme="dark"] .zs-utype-icon { color: #9ca3af; }
[data-theme="dark"] .zs-utype-card:hover .zs-utype-icon { color: #c9cdd2; }
[data-theme="dark"] .zs-utype-card.active .zs-utype-icon { color: #f8f9fa; }
[data-theme="dark"] .zs-utype-label { color: #9ca3af; }
[data-theme="dark"] .zs-utype-card:hover .zs-utype-label { color: #c9cdd2; }
[data-theme="dark"] .zs-utype-card.active .zs-utype-label { color: #f8f9fa; }
[data-theme="dark"] .zs-utype-check { background: #f8f9fa; color: #212529; }

/* Account type toggle (register) */
.zs-actype-btn {
    background: #fff;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s;
}
.zs-actype-btn:hover {
    background: #f0f0f0;
    color: #495057;
    border-color: #ced4da;
}
.zs-actype-btn.active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}
.zs-actype-btn.active:hover {
    background: #2c3034;
    border-color: #2c3034;
}
[data-theme="dark"] .zs-actype-btn {
    background: #2a2d31;
    color: #9ca3af;
    border-color: #3a3d42;
}
[data-theme="dark"] .zs-actype-btn:hover {
    background: #3a3d42;
    color: #c9cdd2;
}
[data-theme="dark"] .zs-actype-btn.active {
    background: #f8f9fa;
    color: #212529;
    border-color: #f8f9fa;
}
[data-theme="dark"] .zs-actype-btn.active:hover {
    background: #e9ecef;
    border-color: #e9ecef;
}

/* ===== Settings Sidebar Swap ===== */
.sidebar-swap-enter {
    animation: sidebarSwapIn .2s ease;
}
@keyframes sidebarSwapIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== Footer Live Stats ===== */
.footer-stats-section {
    width: 100%;
}

/* ── Banner avec titre + stats dedans ── */
.footer-stats-banner {
    background: var(--bs-body-bg, #fff);
    padding: 3.5rem 0;
    text-align: center;
}
.footer-stats-banner-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--bs-body-color, #222);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
.footer-stats-banner-sub {
    font-size: .92rem;
    color: var(--bs-secondary-color, #666);
    margin: 0 0 2.5rem;
}

/* ── Grille stats ── */
.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}
.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 14px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    transition: all 0.2s ease;
}
.footer-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.footer-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-stat-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.footer-stat-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.footer-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bs-body-color, #222);
    line-height: 1.2;
    display: inline-block;
    overflow: hidden;
    height: 1.5em;
    vertical-align: bottom;
}
.footer-stat-value .fs-roll {
    display: inline-block;
    animation: fsRollUp .6s cubic-bezier(.2,.6,.3,1) forwards;
}
@keyframes fsRollUp {
    0%   { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}
.footer-stat-label {
    font-size: 0.82rem;
    color: var(--bs-secondary-color, #666);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .footer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-stats-banner { padding: 2.5rem 0; }
}
@media (max-width: 500px) {
    .footer-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .footer-stat-item {
        padding: 14px 14px;
        gap: 12px;
    }
    .footer-stat-icon {
        width: 40px;
        height: 40px;
    }
    .footer-stat-icon img {
        width: 40px;
        height: 40px;
    }
    .footer-stat-value {
        font-size: 1.15rem;
    }
    .footer-stats-banner { padding: 2rem 0; }
    .footer-stats-banner-title { font-size: 1.25rem; }
    .footer-stats-banner-sub { font-size: .82rem; margin-bottom: 1.8rem; }
}

/* ===== Footer Base ===== */
.zs-footer {
    background: #1a1a2e;
    color: #adb5bd;
}
.zs-footer-text {
    color: #adb5bd;
}
.zs-footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color .15s;
}
.zs-footer-link:hover {
    color: #fff;
}
.zs-footer-social-link {
    color: #adb5bd;
    font-size: 1.25rem;
    transition: color .2s, transform .2s;
}
.zs-footer-social-link:hover {
    color: #fff;
    transform: scale(1.15);
}
.zs-footer-bottom {
    border-top: 1px solid #2a2a44;
    padding-top: 1.5rem;
    text-align: center;
    font-size: .875rem;
    color: #6c757d;
}

/* ===== Public Profile - BuddyBoss Style ===== */
:root {
    --pp-bg: #f7f8fa;
    --pp-card-bg: #ffffff;
    --pp-text: #333333;
    --pp-text-muted: #6c757d;
    --pp-border: #e5e7eb;
    --pp-primary: #1a1a2e;
    --pp-primary-hover: #2a2a44;
    --pp-primary-rgb: 26, 26, 46;
    --pp-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --pp-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] {
    --pp-bg: #1a1a1a;
    --pp-card-bg: #2a2a2a;
    --pp-text: #e5e5e5;
    --pp-text-muted: #9ca3af;
    --pp-border: #3a3a3a;
    --pp-primary: #f2d123;
    --pp-primary-hover: #ffd700;
    --pp-primary-rgb: 242, 209, 35;
    --pp-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --pp-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Remove main content padding for full-bleed cover (profile + collection) */
.main-content:has(.public-profile),
.main-content:has(.collection-view-page),
.main-content:has(.my-collections-page),
.main-content:has(.user-shop-page) {
    padding: 0 !important;
}
.public-profile { min-height: 100vh; padding-bottom: 3rem; }
.user-shop-page { min-height: 100vh; padding-bottom: 3rem; }
.user-shop-body { padding-top: 1.25rem; padding-bottom: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.collection-view-page { min-height: 100vh; padding-bottom: 3rem; }
.my-collections-page { min-height: 100vh; padding-bottom: 3rem; }
.cv-body { padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.cv-empty-coins {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 3rem 1rem;
    border: 2px dashed var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
    text-align: center;
}
.cv-empty-coins i {
    font-size: 2.5rem;
    opacity: .35;
    color: var(--bs-secondary-color);
}
.cv-empty-coins p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .9rem;
}

/* Cover + Avatar */
.pp-cover-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.pp-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pp-cover-default {
    background: linear-gradient(135deg, #1a1a2e 0%, #f2d123 100%);
}
.pp-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}
.pp-cover-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.pp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.pp-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,26,46,.8);
    color: #f2d123;
    font-size: 3rem;
    font-weight: 700;
}
.pp-user-info {
    color: white;
    margin-bottom: 1rem;
}
.pp-display-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.pp-username {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    color: #ffffff !important;
}
.pp-user-meta-date {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.pp-user-meta-date i {
    margin-right: 0.25rem;
}
.pp-user-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.pp-user-type-badge i {
    font-size: 0.85rem;
    color: #fbbf24;
}
.pp-cover-separator {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.5);
    margin: 0.4rem 0.5rem 0 0.5rem;
    vertical-align: middle;
}
.pp-cover-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    color: #fbbf24;
    font-size: 0.85rem;
}
.pp-cover-rating i {
    font-size: 1.05rem;
}
.pp-cover-rating-interactive .pp-cover-star {
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform .12s, color .12s;
}
.pp-cover-rating-interactive .pp-cover-star:hover {
    transform: scale(1.25);
}
.pp-cover-rating-interactive .pp-cover-star.bi-star-fill {
    color: #fbbf24;
}
.pp-cover-rating-interactive .pp-cover-star.bi-star {
    color: rgba(255,255,255,.5);
}
.pp-cover-rating-text {
    color: rgba(255,255,255,.85);
    font-size: 0.75rem;
    font-weight: 500;
}
.pp-cover-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.pp-cover-actions .btn {
    opacity: 0.85;
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
}
.pp-cover-actions .btn:hover {
    opacity: 1;
}
.pp-cover-actions .pp-follow-btn {
    opacity: 0.9;
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}
.pp-cover-actions .pp-follow-btn:hover {
    opacity: 1;
}
.pp-cover-actions .pp-action-btn {
    opacity: 0.85;
    backdrop-filter: blur(4px);
}

/* --- Cover reposition mode --- */
.pp-cover-wrap.reposition-mode { cursor: grab; }
.pp-cover-wrap.reposition-mode:active { cursor: grabbing; }
.pp-cover-wrap.reposition-mode .pp-cover-overlay,
.pp-cover-wrap.reposition-mode .pp-cover-actions { opacity: 0; pointer-events: none; transition: opacity .2s; }
.pp-reposition-hint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.6); color: #fff; padding: .4rem 1rem;
    border-radius: 2rem; font-size: .8rem; font-weight: 500;
    pointer-events: none; z-index: 5;
    display: flex; align-items: center; gap: .4rem;
    animation: pp-repo-pulse 2s ease-in-out infinite;
}
@keyframes pp-repo-pulse { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.pp-reposition-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
    padding: .5rem 1rem; display: flex; justify-content: flex-end;
    gap: .5rem; z-index: 6;
}
.pp-reposition-bar .btn { font-size: .8rem; padding: .3rem .9rem; }

[data-theme="dark"] .pp-display-name { color: #fbbf24 !important; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
[data-theme="dark"] .pp-username { color: #fcd34d !important; }
[data-theme="dark"] .pp-user-meta-date { color: rgba(252,211,77,0.75); }
[data-theme="dark"] .pp-user-type-badge {
    background: linear-gradient(135deg, rgba(251,191,36,0.2) 0%, rgba(251,191,36,0.08) 100%);
    border-color: rgba(251,191,36,0.3);
    color: #fcd34d;
}

/* Header band */
.pp-header {
    background: var(--pp-card-bg);
    border-bottom: 1px solid var(--pp-border);
    padding: 1.5rem 0 0 0;
    margin-bottom: 0;
}
.pp-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.pp-bio-section {
    flex: 1;
    min-width: 280px;
}
.pp-bio {
    font-size: 1rem;
    color: var(--pp-text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.pp-meta {
    color: var(--pp-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.pp-meta i { margin-right: 0.25rem; }
.pp-meta a { color: var(--pp-primary); }
.pp-social-link {
    color: var(--pp-text-muted);
    transition: color .2s;
}
.pp-social-link:hover { color: var(--pp-primary); }

.pp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pp-badges-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 0.75rem;
}

/* Stats */
.pp-stats {
    display: flex;
    gap: 2rem;
}
.pp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pp-stat strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-text);
    line-height: 1;
}
.pp-stat span {
    font-size: 0.85rem;
    color: var(--pp-text-muted);
    margin-top: 0.25rem;
}

/* Tabs nav */
.pp-tabs-nav {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    position: relative;
    margin-bottom: -1px;
}
.pp-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--pp-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
}
.pp-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--pp-primary);
    transition: width 0.3s ease;
}
.pp-tab-btn:hover { color: var(--pp-text); }
.pp-tab-btn.active {
    color: var(--pp-primary);
    font-weight: 600;
    background: rgba(242, 209, 35, .12);
    border-radius: 4px 4px 0 0;
}
.pp-tab-btn.active::after { width: 100%; }

[data-theme="dark"] .pp-tab-btn:hover { color: #e5e5e5; }
[data-theme="dark"] .pp-tab-btn.active { color: #f2d123; }
[data-theme="dark"] .pp-tab-btn.active::after { background: #f2d123; }

/* Follow button */
.pp-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.pp-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a2e;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.pp-follow-btn:hover {
    background: #12121f;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #fff;
}
.pp-follow-btn.following {
    background: #fff;
    border-color: var(--pp-primary);
    color: var(--pp-primary);
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.2);
}
.pp-follow-btn.following:hover {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
.pp-edit-btn {
    background: var(--pp-card-bg);
    color: var(--pp-text);
    border: 1px solid var(--pp-border);
    box-shadow: var(--pp-shadow);
}
.pp-edit-btn:hover {
    background: var(--pp-primary);
    color: #fff;
    border-color: var(--pp-primary);
}
.pp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--pp-border);
    background: var(--pp-card-bg);
    color: var(--pp-text-muted);
    cursor: pointer;
    transition: all .2s;
}
.pp-action-btn:hover {
    background: var(--pp-primary);
    color: #fff;
    border-color: var(--pp-primary);
}

[data-theme="dark"] .pp-follow-btn {
    background: linear-gradient(135deg, #f2d123 0%, #fbbf24 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(242, 209, 35, 0.25);
}
[data-theme="dark"] .pp-follow-btn:hover {
    box-shadow: 0 4px 12px rgba(242, 209, 35, 0.35);
}
[data-theme="dark"] .pp-follow-btn.following {
    background: #2a2a2a;
    border-color: #f2d123;
    color: #f2d123;
}

/* 3-column layout */
.pp-body { padding-top: 1.5rem; }
.pp-sidebar-left, .pp-sidebar-right {
    align-self: flex-start;
    position: sticky;
    top: 1rem;
}
.pp-main-feed { min-width: 0; }

/* Widgets (sidebars) */
.profile-widget {
    background: var(--pp-card-bg);
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--pp-shadow);
}
.profile-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pp-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--pp-border);
}
[data-theme="dark"] .profile-widget {
    background: #1e1e2f;
    border: 1px solid #2a2a44;
}

/* Post category badges */
.post-badge { font-size: .7rem; padding: .15rem .5rem; border-radius: 1rem; font-weight: 500; }
.post-badge-general { background: #e9ecef; color: #495057; }
.post-badge-coin { background: #fff3cd; color: #856404; }
.post-badge-collection { background: #d4edda; color: #155724; }
.post-badge-exchange { background: #cce5ff; color: #004085; }
.post-badge-announcement { background: #f8d7da; color: #721c24; }

/* Pinned post indicator */
.post-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .7rem;
    color: var(--bs-primary, #1a1a2e);
    font-weight: 500;
}

/* Post images grid */
.post-images-grid {
    display: grid;
    gap: .375rem;
    border-radius: .5rem;
    overflow: hidden;
    margin-top: .5rem;
}
.post-images-grid.grid-1 { grid-template-columns: 1fr; }
.post-images-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.post-images-grid.grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.post-images-grid.grid-3 .post-img-item:first-child { grid-column: 1 / -1; }
.post-img-item {
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}
.post-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.post-img-item:hover img { transform: scale(1.03); }

/* Video embed */
.post-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: .5rem;
    margin-top: .5rem;
}
.post-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Poll styles */
.poll-container { margin-top: .5rem; }
.poll-question { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.poll-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .5rem .75rem;
    margin-bottom: .375rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    background: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: .875rem;
}
.poll-option-btn:hover {
    border-color: var(--bs-primary, #1a1a2e);
    background: rgba(26,26,46,.04);
}
.poll-result-bar {
    position: relative;
    padding: .5rem .75rem;
    margin-bottom: .375rem;
    border-radius: .5rem;
    overflow: hidden;
    font-size: .875rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}
.poll-result-bar .poll-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(26,26,46,.08);
    border-radius: .5rem;
    transition: width .4s ease;
}
.poll-result-bar.voted .poll-bar-fill {
    background: rgba(26,26,46,.15);
}
.poll-result-bar .poll-bar-text {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}
.poll-meta { font-size: .75rem; color: var(--bs-secondary-color, #6c757d); margin-top: .25rem; }

/* Date separator */
.date-separator {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    font-size: .75rem;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 500;
}
.date-separator::before, .date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bs-border-color, #dee2e6);
}

/* Inline comments */
.inline-comments {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding-top: .75rem;
    margin-top: .75rem;
}
.comment-item {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 600;
}
.comment-body { flex: 1; min-width: 0; }
.comment-input-row {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}
.comment-input-row input {
    flex: 1;
    border-radius: 1.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: .375rem .75rem;
    font-size: .8rem;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}
.gallery-item {
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Composer image preview */
.composer-image-preview {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.composer-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: .5rem;
    overflow: hidden;
}
.composer-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.composer-preview-item .btn-remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: .65rem;
    line-height: 1;
    border-radius: 50%;
}

/* About section */
.about-section { margin-bottom: 1.5rem; }
.about-section h6 { font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }

/* Network user card */
.network-user-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem;
    border-radius: .5rem;
    transition: background .15s;
}
.network-user-card:hover { background: var(--bs-tertiary-bg, #f8f9fa); }

/* Post dropdown menu */
.post-dropdown { position: relative; }
.post-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 10;
    padding: .25rem 0;
    display: none;
}
.post-dropdown-menu.show { display: block; }
.post-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    font-size: .8rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--bs-body-color, #212529);
}
.post-dropdown-item:hover { background: var(--bs-tertiary-bg, #f8f9fa); }
.post-dropdown-item.text-danger:hover { background: #f8d7da; }

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: .5rem;
}

/* Widget mini gallery */
.widget-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .25rem;
}
.widget-gallery-item {
    aspect-ratio: 1;
    border-radius: .375rem;
    overflow: hidden;
}
.widget-gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Shop card widget */
.pp-shop-card a {
    padding: 0;
    color: var(--pp-text);
}
.pp-shop-icon {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Following grid widget */
.pp-following-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.pp-following-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    color: var(--pp-text);
}
.pp-following-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .875rem;
}
.pp-following-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pp-following-name {
    max-width: 100%;
    text-align: center;
    font-size: .7rem;
}

/* Popular posts truncation */
.pp-popular-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Activity feed widget */
.pp-activity-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.pp-activity-item {
    display: flex;
    gap: .625rem;
    align-items: flex-start;
}
.pp-activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}
.pp-activity-content {
    min-width: 0;
    flex: 1;
}

/* Reviews / Ratings */
.pp-reviews-avg {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pp-text, inherit);
}
.pp-reviews-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin: .25rem 0;
}
.pp-rating-bar-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}
.pp-rating-bar-label {
    width: 36px;
    font-size: .75rem;
    text-align: right;
    white-space: nowrap;
    color: var(--bs-secondary-color);
}
.pp-rating-bar-label i {
    font-size: .6rem;
    color: #fbbf24;
}
.pp-rating-bar {
    flex: 1;
    height: 8px;
    background: var(--bs-tertiary-bg);
    border-radius: 4px;
    overflow: hidden;
}
.pp-rating-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
    transition: width .3s;
}
.pp-rating-bar-count {
    width: 20px;
    font-size: .7rem;
    color: var(--bs-secondary-color);
}
.pp-review-card {
    transition: box-shadow .2s;
}
.pp-review-card:hover {
    box-shadow: var(--pp-shadow, 0 2px 8px rgba(0,0,0,.08));
}
.pp-review-stars {
    font-size: .85rem;
}
.pp-star-selector {
    display: flex;
    align-items: center;
}
.pp-star-select {
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--bs-tertiary-color);
    transition: color .15s, transform .15s;
    padding: 0 .1rem;
}
.pp-star-select.bi-star-fill,
.pp-star-select.active {
    color: #fbbf24;
}
.pp-star-select:hover {
    transform: scale(1.15);
}
#pp-rating-modal {
    border: 2px solid var(--bs-primary);
    animation: ppFadeIn .2s;
}
@keyframes ppFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Videos widget */
.pp-videos-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.pp-video-item {
    display: flex;
    gap: .625rem;
    align-items: center;
    color: var(--pp-text, inherit);
}
.pp-video-thumb {
    width: 80px;
    height: 50px;
    border-radius: .375rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bs-tertiary-bg);
}
.pp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pp-video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-secondary-color);
}
.pp-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity .2s;
}
.pp-video-item:hover .pp-video-play {
    opacity: 1;
}
.pp-video-title {
    flex: 1;
    min-width: 0;
}

[data-theme="dark"] .pp-shop-icon {
    background: var(--bs-primary);
}
[data-theme="dark"] .pp-activity-icon {
    background: rgba(var(--bs-primary-rgb), .15);
}

/* Profile responsive */
@media (max-width: 991px) {
    .pp-cover-wrap { height: 180px; }
    .pp-avatar { width: 90px; height: 90px; }
    .pp-display-name { font-size: 1.5rem; }
    .pp-header-content { flex-direction: column; gap: 1rem; }
    .pp-stats { gap: 1.25rem; }
    .pp-stat strong { font-size: 1.25rem; }
    .pp-tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pp-tabs-nav::-webkit-scrollbar { height: 0; }
}
@media (max-width: 575px) {
    .pp-cover-wrap { height: 140px; }
    .pp-avatar { width: 72px; height: 72px; }
    .pp-display-name { font-size: 1.25rem; }
    .pp-username { font-size: .85rem; }
    .pp-user-meta-date { font-size: .75rem; }
    .pp-user-type-badge { font-size: .7rem; padding: 0.15rem 0.5rem; }
    .pp-cover-actions { bottom: 8px; right: 8px; gap: 0.35rem; }
    .pp-cover-actions .btn { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
    .pp-cover-content { gap: 1rem; }
    .pp-stats { gap: 1rem; flex-wrap: wrap; }
    .pp-tab-btn { padding: 0.25rem 1rem; font-size: .85rem; }
    .pp-follow-btn { padding: 0.5rem 1rem; font-size: .85rem; }
}
@media (max-width: 767px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Featured Collection card image hover ===== */
.fc-img-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.fc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .fc-img {
    transform: scale(1.08);
}

/* ===== Create Collection Form ===== */
.ccf-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: .75rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px dashed var(--bs-border-color);
    transition: border-color .2s;
}
.ccf-img-wrap:hover { border-color: var(--bs-primary); }
.ccf-img-wrap.has-image { border-style: solid; }
.ccf-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
}
.ccf-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ccf-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
}
.ccf-img-wrap:hover .ccf-img-overlay { opacity: 1; }
.ccf-img-wrap.has-image .ccf-img-placeholder { display: none; }
.ccf-img-wrap.positionable { cursor: grab; user-select: none; }
.ccf-img-wrap.positionable.dragging { cursor: grabbing; }
.ccf-img-wrap.positionable .ccf-img-overlay { display: none; }
.ccf-img-wrap.positionable .ccf-img-preview { cursor: grab; }
.ccf-img-wrap.positionable.dragging .ccf-img-preview { cursor: grabbing; }
.ccf-pos-hint { color: var(--bs-primary); }

/* Zoom bar */
.ccf-zoom-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 4px 8px;
    opacity: 0;
    transition: opacity .2s;
    z-index: 3;
}
.ccf-img-wrap.positionable:hover .ccf-zoom-bar,
.ccf-img-wrap.positionable .ccf-zoom-bar:focus-within,
.ccf-img-wrap.dragging .ccf-zoom-bar { opacity: 1; }
.ccf-zoom-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: .85rem;
    padding: 2px 4px;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
}
.ccf-zoom-btn:hover { background: rgba(255,255,255,.2); }
.ccf-zoom-range {
    width: 60px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,.3);
    border-radius: 2px;
    cursor: pointer;
    margin: 0;
}
.ccf-zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.ccf-zoom-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}
.ccf-img-hint {
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: .78rem;
    color: var(--bs-secondary-color);
    line-height: 1.35;
}

/* Search type toggle — scrollable on mobile */
#search-type-toggle {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#search-type-toggle::-webkit-scrollbar { display: none; }

/* Search view toggle (grid / list) */
.search-view-toggle {
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}
.search-view-btn {
    border: none;
    background: transparent;
    color: var(--bs-secondary-color);
    padding: .35rem .55rem;
    border-radius: .375rem;
    font-size: .875rem;
    line-height: 1;
    transition: all .2s ease;
    cursor: pointer;
}
.search-view-btn.active {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.search-view-btn:hover:not(.active) {
    color: var(--bs-body-color);
}

/* Visibility toggle carousel */
.ccf-vis-toggle {
    display: inline-flex;
    position: relative;
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: 3px;
    gap: 0;
}
.ccf-vis-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: .35rem .75rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    border-radius: .4rem;
    cursor: pointer;
    transition: color .2s;
    white-space: nowrap;
}
.ccf-vis-btn.active { color: var(--bs-emphasis-color); }
.ccf-vis-slider {
    position: absolute;
    top: 3px;
    height: calc(100% - 6px);
    background: var(--bs-body-bg);
    border-radius: .4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: left .25s ease, width .25s ease;
    z-index: 0;
}

/* ===== Collection card hover ===== */
.collection-card {
    cursor: pointer;
    transition: box-shadow .25s ease, transform .2s ease;
}
.collection-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}
[data-theme="dark"] .collection-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

/* Collection card edit/delete actions */
.cc-actions {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    display: flex;
    gap: .25rem;
}
.cc-action-btn {
    padding: .15rem .4rem;
    font-size: .75rem;
    line-height: 1;
    border-radius: .35rem;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.cc-action-btn.btn-light {
    border: 1px solid rgba(0, 0, 0, .15);
}
.cc-action-delete {
    background: rgba(220, 53, 69, .15);
    color: var(--bs-danger);
    border: 1px solid rgba(220, 53, 69, .3);
}
.cc-action-delete:hover,
.cc-action-delete:focus-visible {
    background: var(--bs-danger);
    color: #fff;
    border-color: var(--bs-danger);
}
/* Desktop: hide by default, show on card hover */
@media (hover: hover) and (pointer: fine) {
    .cc-actions { opacity: 0; transition: opacity .2s; }
    .collection-card:hover .cc-actions { opacity: 1; }
}
/* Mobile (touch / no hover): always visible */
@media (hover: none), (pointer: coarse) {
    .cc-actions { opacity: 1; }
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    margin: -.75rem -.75rem 0;
    border-radius: 0 !important;
}
@media (min-width: 576px) { .hero-carousel { margin: -1rem -1rem 0; } }
@media (min-width: 768px) { .hero-carousel { margin: -1.25rem -1.25rem 0; } }
@media (min-width: 992px) { .hero-carousel { margin: -1.5rem -1.5rem 0; } }
.hero-carousel .carousel-item {
    transition: opacity .8s ease-in-out;
}
.hero-slide-content {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
.hero-vid {
    transition: opacity 1.2s ease-in-out;
}
.hero-anim-text {
    transition: opacity .5s ease, transform .5s ease;
}
.hero-anim-text.hero-text-out {
    opacity: 0;
    transform: translateY(12px);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 800px;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
    width: 5%;
}
.hero-carousel .carousel-indicators {
    z-index: 3;
}
@media (max-width: 768px) {
    .hero-slide-content { min-height: 240px; }
    .hero-text { padding: 2rem 1rem; }
    .hero-text .display-5 { font-size: 1.5rem; }
    .hero-text .fs-5 { font-size: 1rem !important; }
}

/* ===== Dark theme overrides for enhanced profile ===== */
[data-theme="dark"] .post-badge-general { background: #2a2a44; color: #adb5bd; }
[data-theme="dark"] .post-badge-coin { background: #3d3400; color: #f2d123; }
[data-theme="dark"] .post-badge-collection { background: #0d3320; color: #71dd8a; }
[data-theme="dark"] .post-badge-exchange { background: #0c2d48; color: #6cb4ee; }
[data-theme="dark"] .post-badge-announcement { background: #3d1520; color: #f2a0b0; }
[data-theme="dark"] .poll-option-btn { border-color: #2a2a44; color: #e9ecef; }
[data-theme="dark"] .poll-option-btn:hover { border-color: #f2d123; background: rgba(242,209,35,.06); }
[data-theme="dark"] .poll-result-bar { background: #2a2a44; }
[data-theme="dark"] .poll-result-bar .poll-bar-fill { background: rgba(242,209,35,.12); }
[data-theme="dark"] .poll-result-bar.voted .poll-bar-fill { background: rgba(242,209,35,.22); }
[data-theme="dark"] .post-dropdown-menu { background: #1e1e2f; border: 1px solid #2a2a44; }
[data-theme="dark"] .post-dropdown-item:hover { background: #2a2a44; }
[data-theme="dark"] .comment-input-row input { background: #1e1e2f; border-color: #2a2a44; color: #e9ecef; }
[data-theme="dark"] .network-user-card:hover { background: #2a2a44; }
[data-theme="dark"] .post-pinned-badge { color: #f2d123; }

/* ===== Authenticity Analysis ===== */
.auth-result-card {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}
.auth-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: .25rem .6rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
}
.auth-score-badge.auth-authentic { background: #198754; }
.auth-score-badge.auth-suspicious { background: #fd7e14; }
.auth-score-badge.auth-fake { background: #dc3545; }
.auth-score-badge.auth-uncertain { background: #6c757d; }
.auth-red-flags-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-red-flags-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: .85rem;
    line-height: 1.6;
}
.auth-red-flags-list li::before {
    content: "\f33a";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: .75rem;
}
.auth-red-flags-list li.text-success::before {
    content: "\f26a";
    color: #198754;
}
.auth-disclaimer {
    border-top: 1px solid var(--bs-border-color);
    padding-top: .5rem;
    margin-top: .5rem;
}
[data-theme="dark"] .auth-result-card {
    background: #1e1e2f;
    border-color: #2a2a44;
}

/* ===== Forgot Password Success ===== */
.forgot-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #059669;
}
.forgot-success-anim .forgot-success-icon,
.forgot-success-anim p {
    opacity: 0;
    transform: translateY(16px) scale(.9);
    transition: opacity .45s ease, transform .45s ease;
}
.forgot-success-anim p:nth-child(2) { transition-delay: .15s; }
.forgot-success-anim p:nth-child(3) { transition-delay: .3s; }
.forgot-success-anim.active .forgot-success-icon,
.forgot-success-anim.active p {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@keyframes forgot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,.35); }
    50%      { box-shadow: 0 0 0 14px rgba(5,150,105,0); }
}
.forgot-success-anim.active .forgot-success-icon {
    animation: forgot-pulse 1.6s ease-in-out 1;
}
[data-theme="dark"] .forgot-success-icon {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #6ee7b7;
}

/* ===== Certificate Upload Zone ===== */
.cert-upload-zone {
    border: 2px dashed var(--bs-border-color);
    border-radius: .75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-upload-zone:hover,
.cert-upload-zone.drag-over {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .05);
}
.cert-preview {
    position: relative;
    display: inline-block;
}
.cert-preview img {
    max-height: 160px;
    max-width: 100%;
    border-radius: .5rem;
    object-fit: contain;
}
.cert-remove-btn {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
}

/* ===== Photo Guide - Banner sections ===== */
.pg-banner {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: 2rem;
}
.pg-banner > * {
    position: relative;
    z-index: 1;
}
.pg-banner::after {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    content: "";
    border-radius: .75rem;
}
/* Banner-start: gradient covers the left side (text side) */
.pg-banner-start::after {
    background: linear-gradient(to left, rgba(255,255,255,0) 30%, var(--pg-tint) 30%);
}
/* Banner-end: gradient covers the right side (text side) */
.pg-banner-end::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 30%, var(--pg-tint) 30%);
}
@media (max-width: 767.98px) {
    .pg-banner-start::after,
    .pg-banner-end::after {
        background: var(--pg-tint);
        height: 100%;
        top: 0;
        bottom: 0;
    }
}
/* Color variants */
.pg-banner-gold   { --pg-tint: rgba(242,209,35,.08); }
.pg-banner-copper { --pg-tint: rgba(205,127,50,.08); }
.pg-banner-navy   { --pg-tint: rgba(26,26,46,.07); }

[data-theme="dark"] .pg-banner-gold  { --pg-tint: rgba(242,209,35,.06); }
[data-theme="dark"] .pg-banner-copper { --pg-tint: rgba(205,127,50,.06); }
[data-theme="dark"] .pg-banner-navy  { --pg-tint: rgba(100,120,200,.06); }

.pg-banner .pg-content {
    padding: 2rem 2.5rem;
}
.pg-banner .pg-text-cap {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}
.pg-banner-gold .pg-text-cap  { color: #c9a800; }
.pg-banner-copper .pg-text-cap { color: #b87333; }
.pg-banner-navy .pg-text-cap  { color: #4a5080; }

[data-theme="dark"] .pg-banner-gold .pg-text-cap  { color: #f2d123; }
[data-theme="dark"] .pg-banner-copper .pg-text-cap { color: #e0a060; }
[data-theme="dark"] .pg-banner-navy .pg-text-cap  { color: #8b9cf7; }

.pg-banner h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}
.pg-banner .pg-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border-radius: .5rem;
    background: rgba(0,0,0,.04);
    border: 2px dashed rgba(0,0,0,.12);
    color: rgba(0,0,0,.3);
}
[data-theme="dark"] .pg-banner .pg-img-placeholder {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.3);
}
.pg-banner .pg-info-item {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
}
.pg-banner .pg-info-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
}
.pg-banner-gold .pg-info-icon  { color: #c9a800; }
.pg-banner-copper .pg-info-icon { color: #b87333; }
.pg-banner-navy .pg-info-icon  { color: #4a5080; }

[data-theme="dark"] .pg-banner-gold .pg-info-icon  { color: #f2d123; }
[data-theme="dark"] .pg-banner-copper .pg-info-icon { color: #e0a060; }
[data-theme="dark"] .pg-banner-navy .pg-info-icon  { color: #8b9cf7; }

.pg-banner .pg-tip {
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    margin-top: 1rem;
}
.pg-banner-gold .pg-tip  { background: rgba(242,209,35,.12); }
.pg-banner-copper .pg-tip { background: rgba(205,127,50,.12); }
.pg-banner-navy .pg-tip  { background: rgba(26,26,46,.08); }

[data-theme="dark"] .pg-banner-gold .pg-tip  { background: rgba(242,209,35,.08); }
[data-theme="dark"] .pg-banner-copper .pg-tip { background: rgba(205,127,50,.08); }
[data-theme="dark"] .pg-banner-navy .pg-tip  { background: rgba(100,120,200,.08); }

.pg-banner .pg-tip i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.pg-banner-gold .pg-tip i  { color: #c9a800; }
.pg-banner-copper .pg-tip i { color: #b87333; }
.pg-banner-navy .pg-tip i  { color: #4a5080; }

@media (max-width: 767.98px) {
    .pg-banner .pg-content {
        padding: 1.5rem 1.25rem;
    }
}

/* ===== About / Founder Story page ===== */

.ab-hero { padding: 2rem 0 1rem; }
.ab-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a800 0%, #f2d123 50%, #b87333 100%);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(201,168,0,.25);
}
.ab-hero-subtitle {
    font-size: 1.15rem;
    color: var(--bs-secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.ab-hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a800, #b87333);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.ab-story-text {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--bs-body-color);
    opacity: .88;
}

.ab-img-tall { min-height: 320px; }
.ab-img { object-fit: cover; max-height: 380px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* Coin currency tags */
.ab-coin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.ab-coin-tag {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
    background: rgba(242,209,35,.15);
    color: #a08600;
}
[data-theme="dark"] .ab-coin-tag {
    background: rgba(242,209,35,.1);
    color: #f2d123;
}

/* Journey steps */
.ab-journey-steps {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.ab-journey-step {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 2rem;
    background: rgba(26,26,46,.08);
    font-size: .85rem;
    font-weight: 600;
    color: #4a5080;
}
[data-theme="dark"] .ab-journey-step {
    background: rgba(100,120,200,.12);
    color: #8b9cf7;
}
.ab-journey-arrow {
    color: var(--bs-secondary-color);
    opacity: .4;
    font-size: .75rem;
}

/* Quote block */
.ab-quote-block {
    text-align: center;
    padding: 2.5rem 2rem;
    margin: .5rem 0 2rem;
    position: relative;
}
.ab-quote-icon {
    font-size: 2.5rem;
    color: #c9a800;
    opacity: .3;
    display: block;
    margin-bottom: .5rem;
}
[data-theme="dark"] .ab-quote-icon { color: #f2d123; }
.ab-quote-block blockquote {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    color: var(--bs-body-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Why / features section */
.ab-why-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.ab-why-section .pg-text-cap { color: var(--bs-primary); }
.ab-why-section .ab-story-text { max-width: 700px; }
.ab-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    height: 100%;
    transition: transform .15s, box-shadow .15s;
}
.ab-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.ab-feature-card i {
    font-size: 1.6rem;
    color: #c9a800;
}
[data-theme="dark"] .ab-feature-card i { color: #f2d123; }
.ab-feature-card span {
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.35;
}

/* Closing section */
.ab-closing {
    padding: 3rem 0 2rem;
    margin-top: 1rem;
}
.ab-closing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(242,209,35,.12);
    color: #f2d123;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}
.ab-closing-icon i {
    animation: ab-heartbeat 2.5s ease-in-out infinite;
}
.ab-closing-icon::before,
.ab-closing-icon::after {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(242,209,35,.35);
    animation: ab-heart-ripple 2.5s ease-out infinite;
}
.ab-closing-icon::after {
    animation-delay: 1.25s;
}
@keyframes ab-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
@keyframes ab-heart-ripple {
    0% { transform: scale(.9); opacity: .5; }
    100% { transform: scale(2.5); opacity: 0; }
}
.ab-closing-quote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 1rem;
    color: var(--bs-body-color);
}

@media (max-width: 767.98px) {
    .ab-hero-subtitle { font-size: 1rem; }
    .ab-img-tall { min-height: 220px; }
    .ab-quote-block { padding: 1.5rem 1rem; }
    .ab-quote-block blockquote { font-size: 1.05rem; }
    .ab-why-section { padding: 2rem 0; }
    .ab-closing-quote { font-size: 1rem; }
    .ab-journey-arrow { display: none; }
    .ab-journey-steps { gap: .4rem; }
}

/* ===== Utility classes (replace inline styles) ===== */

/* Max-width containers */
.zs-mw-450  { max-width: 450px; }
.zs-mw-600  { max-width: 600px; }
.zs-mw-700  { max-width: 700px; }
.zs-mw-800  { max-width: 800px; }
.zs-mw-900  { max-width: 900px; }
.zs-mw-960  { max-width: 960px; }
.zs-mw-1000 { max-width: 1000px; }
.zs-mw-1100 { max-width: 1100px; }
.zs-mx-auto { margin: 0 auto; }

/* Hidden file input – NOT display:none so mobile browsers allow .click() */
.zs-file-hidden { position: fixed !important; left: -9999px !important; top: -9999px !important; opacity: 0 !important; pointer-events: none; }

/* Avatar / circle sizing */
.zs-sz-24 { width: 24px; height: 24px; }
.zs-sz-32 { width: 32px; height: 32px; }
/* Online dot on avatar */
.zs-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bs-body-bg);
    display: block;
}

.zs-sz-36 { width: 36px; height: 36px; }
.zs-sz-40 { width: 40px; height: 40px; }
.zs-sz-42 { width: 42px; height: 42px; }
.zs-sz-48 { width: 48px; height: 48px; }
.zs-sz-56 { width: 3.5rem; height: 3.5rem; }
.zs-sz-64 { width: 64px; height: 64px; }
.zs-sz-72 { width: 72px; height: 72px; }

/* Font sizes */
.zs-fs-xxs { font-size: .5rem; }
.zs-fs-xs  { font-size: .6rem; }
.zs-fs-sm  { font-size: .65rem; }
.zs-fs-caption { font-size: .7rem; }
.zs-fs-icon-sm { font-size: .8rem; }
.zs-fs-14  { font-size: 14px; }
.zs-fs-56  { font-size: 1.4rem; }
.zs-fs-jumbo { font-size: 4rem; }

/* Topbar */
.zs-topbar-height { height: 60px; }
.zs-z-topbar { z-index: 1050; }
.zs-z-toast  { z-index: 1090; top: 60px !important; }

/* Logo sizing */
.zs-logo-sm { height: 32px; }
.zs-logo-md { height: 36px; }

/* Coin image upload slot */
.coin-img-slot {
    width: 9rem;
    height: 9rem;
    border: 2px dashed var(--bs-border-color);
    border-radius: .75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--bs-tertiary-bg);
    transition: border-color .2s, opacity .2s;
}
@media (max-width: 400px) {
    .coin-img-slot { width: 7rem; height: 7rem; }
}
@media (max-width: 340px) {
    .coin-img-slot { width: 6rem; height: 6rem; }
}
.coin-img-filled {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.coin-img-actions {
    position: absolute;
    top: .35rem;
    right: .35rem;
    display: flex;
    gap: .25rem;
    z-index: 2;
}
.coin-img-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    min-height: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Sidebar metal color dots */
.zs-dot-gold     { color: #d4a017; font-size: .5rem; }
.zs-dot-silver   { color: #c0c0c0; font-size: .5rem; }
.zs-dot-bronze   { color: #cd7f32; font-size: .5rem; }
.zs-dot-copper   { color: #b87333; font-size: .5rem; }
.zs-dot-platinum  { color: #e5e4e2; font-size: .5rem; }

/* Gold accent link */
.zs-link-gold { color: #c9a800; }
.zs-link-gold:hover { color: #a88e00; }

/* Select auto width */
.zs-w-auto { width: auto; }
.zs-mw-150 { max-width: 150px; }
.zs-mw-180 { max-width: 180px; }
.zs-mw-200 { max-width: 200px; }
.zs-mw-250 { max-width: 250px; }
.zs-mw-300 { max-width: 300px; }
.zs-mw-500 { max-width: 500px; }

/* No text-decoration */
.zs-no-underline { text-decoration: none; }

/* Password toggle eye – reliable touch target */
#login-toggle-pw,
#register-toggle-pw,
#reset-toggle-pw {
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#login-toggle-pw i,
#register-toggle-pw i,
#reset-toggle-pw i {
    pointer-events: none;
}

/* Text transform */
.zs-uppercase { text-transform: uppercase; }

/* Cursor pointer */
.zs-pointer { cursor: pointer; }

/* Chat/messages layout */
.zs-chat-height { height: calc(100vh - 220px); }
.zs-msg-list  { max-height: 600px; }
.zs-msg-thread { min-height: 400px; max-height: 600px; }

/* Carousel hidden controls */
.zs-d-none-init { display: none; }

/* Certificate image */
.zs-cert-img { max-width: 300px; }

/* Collection owner link */
.zs-color-inherit { color: inherit; }

/* Settings back button gradient */
.zs-btn-settings-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 2px 6px rgba(108, 117, 125, .25);
}

/* Payment success icon */
.zs-success-circle { width: 64px; height: 64px; }

/* ── Soft backgrounds ── */
.bg-soft-primary       { background-color: rgba(var(--bs-primary-rgb), .1); }
.bg-soft-primary-light { background-color: rgba(var(--bs-primary-rgb), .05); }
.bg-soft-gold          { background-color: rgba(242,209,35,.08); }
#section-features h5   { color: #f2d123; }

.bg-img-center { background-size: cover; background-position: center; }
#home-features-img { background-image: url(/zasamix/assets/img/home-features.webp); }
#home-features-img-mobile { display: none; }
@media (max-width: 767.98px) {
    #home-features-img-mobile { display: block; }
    #home-features-img-mobile img { width: 100%; }
}

/* ── Home news cards ── */
#home-latest-news { display: flex; flex-direction: column; height: 0; flex-grow: 1; }
#home-latest-news .home-news-featured { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#home-latest-news .home-news-featured .card-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#home-latest-news .home-news-featured .card-body p {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
    text-align: justify;
}
#home-latest-news .home-news-featured .card-body p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, var(--bs-card-bg, #fff));
    pointer-events: none;
}
.home-news-featured { transition: transform .2s, box-shadow .2s, border-color .2s; border: 1px solid rgba(0,0,0,.06); border-radius: .625rem; overflow: hidden; }
.home-news-featured:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: rgba(var(--zs-home-gold-rgb), .2); }
.home-news-featured img { transition: transform .3s; }
.home-news-featured:hover img { transform: scale(1.03); }
[data-theme="dark"] .home-news-featured { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .home-news-featured:hover { border-color: rgba(var(--zs-home-gold-rgb), .25); }
.home-news-thumb { width: 64px; height: 64px; }
.home-activity-card,
.sale-card,
#latest-coins .coin-card,
#home-latest-additions .coin-card { transition: transform .2s, box-shadow .2s, border-color .2s; border-radius: .5rem; overflow: hidden; }
.home-activity-card:hover,
.sale-card:hover,
#latest-coins .coin-card:hover,
#home-latest-additions .coin-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); border-color: rgba(var(--zs-home-gold-rgb), .2); }
.home-activity-card img,
.sale-card img,
#home-latest-additions .coin-card img { transition: transform .3s; }
.home-activity-card:hover img,
.sale-card:hover img,
#home-latest-additions .coin-card:hover img { transform: scale(1.05); }
.sale-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: 2;
}
.sale-card:hover .sale-card-overlay { opacity: 1; pointer-events: auto; }
.sale-card-stat {
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
@media (hover: none) {
    .sale-card-overlay { opacity: 1; pointer-events: auto; }
}

/* ── CTA full-width + mascot ── */
.zs-cta-fullwidth { margin-left: -.75rem; margin-right: -.75rem; }
@media (min-width: 576px)  { .zs-cta-fullwidth { margin-left: -1rem;   margin-right: -1rem; } }
@media (min-width: 768px)  { .zs-cta-fullwidth { margin-left: -1.25rem; margin-right: -1.25rem; } }
@media (min-width: 992px)  { .zs-cta-fullwidth { margin-left: -1.5rem;  margin-right: -1.5rem; } }
.zs-cta-mascot {
    position: absolute;
    right: -20px;
    bottom: 0;
    height: 90%;
    max-height: 260px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.3));
    opacity: .85;
    pointer-events: none;
}
@media (max-width: 767.98px) {
    .zs-cta-mascot { height: 110px; right: -10px; }
}

/* CTA scroll animations */
.zs-cta-text {
    transform: translateX(-60px);
    opacity: 0;
    transition: transform .8s cubic-bezier(.25,.46,.45,.94), opacity .8s ease;
}
.zs-cta-mascot-anim {
    transform: translateX(100%);
    transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
.zs-cta-visible .zs-cta-text {
    transform: translateX(0);
    opacity: 1;
}
.zs-cta-visible .zs-cta-mascot-anim {
    transform: translateX(0);
}

/* ── Collector card ── */
.zs-collector-card {
    width: 230px; border-radius: .75rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .2s ease, border-color .25s ease;
}
.zs-collector-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
    border-color: rgba(var(--zs-home-gold-rgb), .25);
}
[data-theme="dark"] .zs-collector-card {
    border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .zs-collector-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    border-color: rgba(var(--zs-home-gold-rgb), .3);
}
.zs-cc-banner {
    height: 70px;
    background: linear-gradient(135deg, var(--bs-primary), #7c6cd9);
    background-size: cover;
    background-position: center;
    border-radius: .75rem .75rem 0 0;
    position: relative;
}
.zs-cc-banner-img { background-color: var(--bs-primary); }
.zs-cc-type {
    position: absolute; top: 6px; left: 6px;
    font-size: .6rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.3); border-radius: 3px;
    padding: 1px 5px; max-width: 55%; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
}
.zs-cc-rating {
    position: absolute; top: 6px; right: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.zs-cc-body { position: relative; padding-top: 0; }
.zs-cc-avatar-wrap { margin-top: -28px; z-index: 1; flex-shrink: 0; padding: 0 .75rem; }
.zs-cc-avatar {
    width: 56px; height: 56px; font-size: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.zs-cc-stat { min-width: 50px; padding-top: .5rem; font-size: .8rem; }
.zs-collector-card-grid { width: auto; }

/* ── Marquee / continuous carousel ── */
.zs-marquee-wrap {
    overflow: hidden;
    position: relative;
    padding: 4px 0 16px;
}
.zs-marquee-track {
    display: flex;
    gap: .75rem;
    width: max-content;
    will-change: transform;
}
/* Nav buttons */
.zs-marquee-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bs-body-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-body-color);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.zs-marquee-wrap:hover .zs-marquee-btn {
    opacity: 1;
    pointer-events: auto;
}
.zs-marquee-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}
.zs-marquee-btn-prev { left: 6px; }
.zs-marquee-btn-next { right: 6px; }

/* ── @ Mention dropdown ── */
.zs-mention-dropdown {
    z-index: 1060; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
    border-radius: .5rem; box-shadow: 0 4px 16px rgba(0,0,0,.15); max-height: 260px;
    overflow-y: auto; overflow-x: hidden;
}
[data-theme="dark"] .zs-mention-dropdown { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.zs-mention-item {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem;
    cursor: pointer; transition: background .15s;
}
.zs-mention-item:hover, .zs-mention-item.active { background: rgba(var(--bs-primary-rgb), .08); }
.zs-mention-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.zs-mention-avatar-placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary);
    font-size: .75rem; font-weight: 600;
}
.zs-mention-name { font-weight: 500; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-mention-username { color: var(--bs-secondary-color); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-mention-actions { display: flex; gap: .25rem; margin-left: auto; flex-shrink: 0; }
.zs-mention-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    color: var(--bs-secondary-color); text-decoration: none;
    transition: background .15s, color .15s;
}
.zs-mention-action:hover { background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); }
.zs-mention-action i { font-size: .9rem; }

/* ── Extra utility classes (JS module inline-style replacements) ── */

/* Sizes (square width=height) */
.zs-sz-8  { width: .5rem; height: .5rem; }
.zs-sz-20 { width: 20px; height: 20px; }
.zs-sz-28 { width: 28px; height: 28px; }
.zs-sz-44 { width: 44px; height: 44px; }
.zs-sz-50 { width: 50px; height: 50px; }
.zs-sz-52 { width: 52px; height: 52px; }
.zs-sz-60 { width: 60px; height: 60px; }

/* Fixed widths (cards / containers) */
.zs-fw-140 { width: 140px; }
.zs-fw-150 { width: 150px; }
.zs-fw-160 { width: 160px; }

/* Font sizes */
.zs-fs-12   { font-size: 12px; }
.zs-fs-075r { font-size: .75rem; }
.zs-fs-055r { font-size: .55rem; }
.zs-fs-078r { font-size: .78rem; }
.zs-fs-085r { font-size: .85rem; }
.zs-fs-25r  { font-size: 2.5rem; }
.zs-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zs-line-clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* Object fit */
.zs-obj-cover { object-fit: cover; }

/* Avatar & thumbnail utilities */
.zs-sz-22  { width: 22px; height: 22px; }
.zs-sz-110 { width: 110px; height: 110px; }
.zs-sz-130 { width: 130px; height: 130px; }
.zs-avatar-border { border: 3px solid var(--bs-border-color); }
.zs-avatar-overlay { background: rgba(0,0,0,.45); }

/* Dropdown & dots buttons */
.zs-dots-btn { font-size: .75rem; line-height: 1; }
.zs-dots-btn-lg { font-size: .85rem; line-height: 1; }
.zs-dropdown-sm { min-width: 120px; }

/* Comment editor post button */
.zs-comment-post-btn { position: absolute; bottom: 8px; right: 8px; z-index: 2; }
.zs-comment-wrap { position: relative; }

/* Preview card utilities */
.zs-sticky-80 { top: 80px; }
.zs-aspect-square { aspect-ratio: 1/1; }
.zs-preview-desc { max-height: 60px; overflow: hidden; font-size: .75rem; }
.zs-lh-13 { line-height: 1.3; }

/* Scrollable containers */
.zs-scroll-modal { max-height: 60vh; overflow-y: auto; }
.zs-scroll-modal-lg { max-height: 450px; overflow-y: auto; }
.zs-scroll-list { max-height: 350px; overflow-y: auto; }

/* Address cards */
.zs-border-left-primary { border-left: 3px solid var(--bs-primary); }
.zs-border-left-secondary { border-left: 3px solid var(--bs-secondary); }

/* Misc utilities */
.zs-noclick { pointer-events: none; }
.zs-badge-fit { width: fit-content; }
.zs-progress-slim { height: 10px; }
.zs-max-h-320 { max-height: 320px; }
.zs-reward-img { height: 140px; object-fit: cover; }
.zs-reward-placeholder { height: 140px; }

/* Collection select (coin-add page) */
.zs-collection-select { max-width: 220px; }
.zs-collection-select-icon {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--bs-primary);
    overflow: hidden;
}
.zs-collection-select-icon img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Layout / flex */
.min-width-0,
.zs-min-w-0 { min-width: 0; }
.zs-flex-1  { flex: 1; }

/* Max dimensions */
.zs-mw-70p  { max-width: 70%; }
.zs-mh-24r  { max-height: 24rem; }

/* Heights */
.zs-h-120 { height: 120px; }

/* Cursor */
.zs-cursor-zoom { cursor: zoom-in; }

/* Textarea reset */
.zs-no-resize { resize: none; box-shadow: none; }

/* White-space */
.zs-pre-wrap { white-space: pre-wrap; }

/* Transition */
.zs-transition-none { transition: none; }

/* Order stepper connector */
.zs-stepper-line { width: 30px; border-top: 2px solid #dee2e6; margin-top: 14px; }

/* Avatar fill (inside container) */
.zs-avatar-fill { width: 100%; height: 100%; object-fit: cover; border: 0; box-shadow: none; border-radius: inherit; }

/* ─── OTP Verification Grid ─── */
.zs-otp-grid { display: flex; gap: 10px; justify-content: center; margin: 8px 0 16px; }
.zs-otp-input {
    width: 56px; height: 60px; text-align: center; font-size: 28px; font-weight: 700;
    border: 1px solid var(--bs-border-color, #e5e7eb); border-radius: 12px; outline: none;
    background: var(--bs-body-bg); color: var(--bs-body-color);
    transition: box-shadow .15s, border-color .15s;
}
.zs-otp-input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.zs-otp-input.filled { border-color: var(--bs-body-color); }
[data-theme="dark"] .zs-otp-input { background: #1a1a1a; border-color: #333; color: #e5e5e5; }
[data-theme="dark"] .zs-otp-input:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .2); }
[data-theme="dark"] .zs-otp-input.filled { border-color: #888; }
@media (max-width: 480px) {
    .zs-otp-grid { gap: 6px; }
    .zs-otp-input { width: 44px; height: 50px; font-size: 22px; border-radius: 8px; }
}

/* ===== Exchange Finalization ===== */
.finalize-steps { display: flex; align-items: center; justify-content: center; gap: 0; padding: 16px 0; }
.finalize-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.finalize-step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bs-border-color); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--bs-secondary-color); background: var(--bs-body-bg); transition: all .3s; }
.finalize-step.active .finalize-step-circle { border-color: var(--bs-primary); color: var(--bs-primary); }
.finalize-step.done .finalize-step-circle { border-color: var(--bs-success); background: var(--bs-success); color: #fff; }
.finalize-step-label { font-size: 12px; color: var(--bs-secondary-color); white-space: nowrap; }
.finalize-step.done .finalize-step-label { color: var(--bs-success); }
.finalize-step.active .finalize-step-label { color: var(--bs-primary); font-weight: 500; }
.finalize-step-line { flex: 1; height: 2px; background: var(--bs-border-color); min-width: 40px; max-width: 100px; margin: 0 8px; margin-bottom: 22px; transition: background .3s; }
.finalize-step-line.done { background: var(--bs-success); }
.finalize-summary { background: var(--bs-tertiary-bg); }
.finalize-address-card { border: 1px solid var(--bs-border-color); }

/* ===== Coin Image Source Popup (mobile) ===== */
.coin-img-source-popup { position: fixed; z-index: 1062; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.15); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 180px; animation: fadeInUp .15s ease; }
.coin-img-source-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: none; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--bs-body-color); cursor: pointer; width: 100%; text-align: left; }
.coin-img-source-btn:hover, .coin-img-source-btn:active { background: var(--bs-tertiary-bg); }
.coin-img-source-btn i { font-size: 18px; width: 24px; text-align: center; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Discover Page Hero ===== */
.discover-hero {
    margin: -.75rem -.75rem 0 -.75rem;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 120px;
}
@media (min-width: 576px)  { .discover-hero { margin: -1rem -1rem 0 -1rem; } }
@media (min-width: 768px)  { .discover-hero { margin: -1.25rem -1.25rem 0 -1.25rem; } }
@media (min-width: 992px)  { .discover-hero { margin: -1.5rem -1.5rem 0 -1.5rem; } }
.discover-breadcrumb {
    margin-top: -1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}
.discover-breadcrumb .breadcrumb-item a { color: #f2d123; text-decoration: none; transition: color .15s; }
.discover-breadcrumb .breadcrumb-item a:hover { color: #ffd700; text-decoration: underline; }
.discover-breadcrumb .breadcrumb-item.active { color: var(--bs-body-color); font-weight: 600; }
.discover-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #f2d123; content: "\203A"; }
.discover-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a44 100%);
    background-size: cover;
    background-position: center;
}
.discover-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,.85) 0%, rgba(26,26,46,.5) 100%);
}
.discover-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    min-height: 120px;
}
.discover-hero-text { flex: 1; min-width: 0; }
.discover-hero-text h1 { color: #fff; }
.discover-hero-text p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.discover-hero-img-wrap { flex-shrink: 0; }
.discover-hero-img {
    width: 90px;
    height: 90px;
    border-radius: 20%;
    border: 2px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    object-fit: cover;
}
@media (max-width: 575.98px) {
    .discover-hero-inner { flex-direction: column; text-align: center; padding: 1rem; gap: 0.75rem; min-height: auto; }
    .discover-hero-img { width: 72px; height: 72px; }
    .discover-hero-bg::after { background: rgba(26,26,46,.75); }
}
/* Discover hero - dark theme */
[data-theme="dark"] .discover-hero-bg { background: linear-gradient(135deg, #111 0%, #1a1a2e 100%); }
/* Discover hero - lilia theme */
[data-theme="lilia"] .discover-hero-bg { background: linear-gradient(135deg, #3b1f6e 0%, #5b3d99 100%); }
[data-theme="lilia"] .discover-hero-bg::after { background: linear-gradient(90deg, rgba(59,31,110,.85) 0%, rgba(59,31,110,.5) 100%); }
/* Discover hero - natur theme */
[data-theme="natur"] .discover-hero-bg { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
[data-theme="natur"] .discover-hero-bg::after { background: linear-gradient(90deg, rgba(20,83,45,.85) 0%, rgba(20,83,45,.5) 100%); }

/* New Members cards (discover) */
.zs-member-card { background: var(--bs-tertiary-bg, #f8f8f8); border: 1px solid var(--bs-border-color, #e5e5e5); border-radius: .75rem; transition: box-shadow .15s ease; }
.zs-member-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.zs-member-card .zs-mc-type { color: var(--bs-secondary-color); font-size: .8rem; }
.zs-member-card .zs-mc-shop { color: var(--bs-secondary-color); opacity: .55; transition: opacity .15s; }
.zs-member-card .zs-mc-shop:hover { opacity: 1; color: var(--bs-primary); }

/* Popular Posts cards (discover) */
.zs-post-card { transition: box-shadow .2s ease, transform .2s ease; }
.zs-post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.zs-post-card-text {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; text-align: justify; line-height: 1.5;
}

/* ===== Feed - 3-column layout ===== */
.feed-body { padding-top: 1.25rem; }
.feed-sidebar {
    align-self: flex-start;
    position: sticky;
    top: 1rem;
}

/* Feed tabs */
.feed-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
    margin-bottom: 1rem;
}
.feed-tab {
    flex: 1;
    padding: .625rem 1rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: .95rem;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    text-align: center;
}
.feed-tab:hover { color: var(--bs-body-color); }
.feed-tab.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
}

/* Feed inline comments */
.feed-comments {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding-top: .75rem;
    margin-top: .75rem;
}
.feed-comment-list { margin-bottom: .5rem; }
.feed-comment-item {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}
.feed-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
}
.feed-comment-body { flex: 1; min-width: 0; }
.feed-comment-input {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    align-items: center;
}
.feed-comment-text {
    flex: 1;
    border-radius: 1.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: .375rem .75rem;
    font-size: .8rem;
    outline: none;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color);
}
.feed-comment-text:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(26, 26, 46, .1);
}

/* Feed dark theme overrides */
[data-theme="dark"] .feed-tabs { border-bottom-color: #2a2a44; }
[data-theme="dark"] .feed-tab { color: #9ca3af; }
[data-theme="dark"] .feed-tab:hover { color: #e9ecef; }
[data-theme="dark"] .feed-tab.active { color: #f2d123; border-bottom-color: #f2d123; }
[data-theme="dark"] .feed-comment-text { background: #1e1e2f; border-color: #2a2a44; color: #e9ecef; }
[data-theme="dark"] .feed-comments { border-top-color: #2a2a44; }

/* Feed user cards (suggested users, new members) */
.feed-user-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .625rem;
    margin-bottom: .25rem;
    border: 1px solid var(--bs-border-color, #e5e5e5);
    border-radius: .5rem;
    transition: background .15s, box-shadow .15s;
    color: var(--bs-body-color);
}
.feed-user-card:hover {
    background: var(--bs-tertiary-bg, #f8f8f8);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.feed-user-card .fw-semibold { color: var(--bs-body-color); }
[data-theme="dark"] .feed-user-card { border-color: #2a2a44; }
[data-theme="dark"] .feed-user-card:hover { background: #2a2a44; }

/* Feed Trending Coins Carousel */
.feed-coin-carousel { padding-bottom: 4px; }
.feed-coin-carousel .zs-marquee-track { gap: .5rem; }
.feed-coin-card {
    width: 120px;
    transition: transform .2s, box-shadow .2s;
}
.feed-coin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.feed-coin-card-img {
    width: 120px;
    height: 90px;
}
.feed-coin-card-img img { transition: transform .3s; }
.feed-coin-card:hover img { transform: scale(1.05); }

/* ===== Feed Page Hero ===== */
.feed-hero {
    margin: -.75rem -.75rem 0 -.75rem;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 120px;
    margin-bottom: 1rem;
}
@media (min-width: 576px)  { .feed-hero { margin: -1rem -1rem 0 -1rem; margin-bottom: 1rem; } }
@media (min-width: 768px)  { .feed-hero { margin: -1.25rem -1.25rem 0 -1.25rem; margin-bottom: 1rem; } }
@media (min-width: 992px)  { .feed-hero { margin: -1.5rem -1.5rem 0 -1.5rem; margin-bottom: 1.25rem; } }
.feed-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a44 100%);
    background-size: cover;
    background-position: center;
}
.feed-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,26,46,.85) 0%, rgba(26,26,46,.5) 100%);
}
.feed-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    min-height: 120px;
}
.feed-hero-text { flex: 1; min-width: 0; }
.feed-hero-text h1 { color: #fff; }
.feed-hero-text p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.feed-hero-img-wrap { flex-shrink: 0; }
.feed-hero-img {
    width: 90px;
    height: 90px;
    border-radius: 20%;
    border: 2px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    object-fit: cover;
}
@media (max-width: 575.98px) {
    .feed-hero-inner { flex-direction: column; text-align: center; padding: 1rem; gap: 0.75rem; min-height: auto; }
    .feed-hero-img { width: 72px; height: 72px; }
    .feed-hero-bg::after { background: rgba(26,26,46,.75); }
}
/* Feed hero - dark theme */
[data-theme="dark"] .feed-hero-bg { background: linear-gradient(135deg, #111 0%, #1a1a2e 100%); }
/* Feed hero - lilia theme */
[data-theme="lilia"] .feed-hero-bg { background: linear-gradient(135deg, #3b1f6e 0%, #5b3d99 100%); }
[data-theme="lilia"] .feed-hero-bg::after { background: linear-gradient(90deg, rgba(59,31,110,.85) 0%, rgba(59,31,110,.5) 100%); }
/* Feed hero - natur theme */
[data-theme="natur"] .feed-hero-bg { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
[data-theme="natur"] .feed-hero-bg::after { background: linear-gradient(90deg, rgba(20,83,45,.85) 0%, rgba(20,83,45,.5) 100%); }

/* ===== Mint Emissions Page Hero ===== */
.mint-hero {
    margin: -.75rem -.75rem 0 -.75rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}
@media (min-width: 576px)  { .mint-hero { margin: -1rem -1rem 0 -1rem; margin-bottom: 1rem; } }
@media (min-width: 768px)  { .mint-hero { margin: -1.25rem -1.25rem 0 -1.25rem; margin-bottom: 1rem; } }
@media (min-width: 992px)  { .mint-hero { margin: -1.5rem -1.5rem 0 -1.5rem; margin-bottom: 1.25rem; } }
.mint-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5c 50%, #2d5a3d 100%);
    background-size: cover;
    background-position: center;
}
.mint-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12,35,64,.85) 0%, rgba(12,35,64,.5) 100%);
}
.mint-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    min-height: 120px;
}
.mint-hero-text { flex: 1; min-width: 0; }
.mint-hero-text h1 { color: #fff; }
.mint-hero-text p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.mint-hero-img-wrap { flex-shrink: 0; }
.mint-hero-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: .625rem;
    border: 3px solid rgba(255,255,255,.2);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
@media (max-width: 575.98px) {
    .mint-hero-inner { flex-direction: column; text-align: center; padding: 1rem; gap: 0.75rem; min-height: auto; }
    .mint-hero-img { width: 72px; height: 72px; }
    .mint-hero-bg::after { background: rgba(12,35,64,.75); }
}
/* Mint hero - dark theme */
[data-theme="dark"] .mint-hero-bg { background: linear-gradient(135deg, #111 0%, #1a1a2e 100%); }
/* Mint hero - lilia theme */
[data-theme="lilia"] .mint-hero-bg { background: linear-gradient(135deg, #3b1f6e 0%, #5b3d99 100%); }
[data-theme="lilia"] .mint-hero-bg::after { background: linear-gradient(90deg, rgba(59,31,110,.85) 0%, rgba(59,31,110,.5) 100%); }
/* Mint hero - natur theme */
[data-theme="natur"] .mint-hero-bg { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
[data-theme="natur"] .mint-hero-bg::after { background: linear-gradient(90deg, rgba(20,83,45,.85) 0%, rgba(20,83,45,.5) 100%); }

/* ===== Referral Page Hero ===== */
.referral-hero {
    margin: -.75rem -.75rem 0 -.75rem;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    margin-bottom: 1rem;
}
@media (min-width: 576px)  { .referral-hero { margin: -1rem -1rem 0 -1rem; margin-bottom: 1rem; } }
@media (min-width: 768px)  { .referral-hero { margin: -1.25rem -1.25rem 0 -1.25rem; margin-bottom: 1rem; } }
@media (min-width: 992px)  { .referral-hero { margin: -1.5rem -1.5rem 0 -1.5rem; margin-bottom: 1.25rem; } }
.referral-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2d1b4e 0%, #4a2882 50%, #6a3daa 100%);
    background-size: cover;
    background-position: center;
}
.referral-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45,27,78,.85) 0%, rgba(45,27,78,.5) 100%);
}
.referral-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    min-height: 120px;
}
.referral-hero-text { flex: 1; min-width: 0; }
.referral-hero-text h1 { color: #fff; }
.referral-hero-text p { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.referral-hero-img-wrap { flex-shrink: 0; }
.referral-hero-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 20%;
    border: 2px solid rgba(255,255,255,.66);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
@media (max-width: 575.98px) {
    .referral-hero-inner { flex-direction: column; text-align: center; padding: 1rem; gap: 0.75rem; min-height: auto; }
    .referral-hero-img { width: 72px; height: 72px; }
    .referral-hero-bg::after { background: rgba(45,27,78,.75); }
}
/* Referral hero - dark theme */
[data-theme="dark"] .referral-hero-bg { background: linear-gradient(135deg, #111 0%, #1a1a2e 100%); }
/* Referral hero - lilia theme */
[data-theme="lilia"] .referral-hero-bg { background: linear-gradient(135deg, #3b1f6e 0%, #5b3d99 100%); }
[data-theme="lilia"] .referral-hero-bg::after { background: linear-gradient(90deg, rgba(59,31,110,.85) 0%, rgba(59,31,110,.5) 100%); }
/* Referral hero - natur theme */
[data-theme="natur"] .referral-hero-bg { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
[data-theme="natur"] .referral-hero-bg::after { background: linear-gradient(90deg, rgba(20,83,45,.85) 0%, rgba(20,83,45,.5) 100%); }

/* ===== Feed Header Band (stats + tabs) ===== */
.feed-band {
    margin: 0 -.75rem;
    padding: 1rem 1.25rem 0;
}
@media (min-width: 576px)  { .feed-band { margin: 0 -1rem; } }
@media (min-width: 768px)  { .feed-band { margin: 0 -1.25rem; } }
@media (min-width: 992px)  { .feed-band { margin: 0 -1.5rem; } }
.feed-band .pp-header-content {
    flex-direction: row;
    align-items: center;
}
.feed-band .pp-bio-section { flex: 1; min-width: 0; }
.feed-band .pp-tabs-nav { gap: 0; }
.feed-band .pp-stats { gap: 1.5rem; flex-shrink: 0; }
.feed-band .pp-stat strong { font-size: 1.5rem; }
.feed-band .pp-stat span { font-size: 0.85rem; }
@media (max-width: 767.98px) {
    .feed-band .pp-header-content { flex-direction: column; gap: .75rem; align-items: stretch; }
    .feed-band .pp-stats { justify-content: center; gap: 1.25rem; }
    .feed-band .pp-tabs-nav { justify-content: center; }
}

/* ===== Add to Collection modal ===== */
.atc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    padding: 1rem;
}
.atc-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    overflow: hidden;
    user-select: none;
}
.atc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    border-color: var(--bs-primary, #0d6efd);
}
.atc-card.selected {
    border-color: var(--bs-success, #198754);
    background: rgba(25,135,84,.06);
}
.atc-card .atc-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bs-success, #198754);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    z-index: 1;
}
.atc-card.selected .atc-check {
    display: flex;
}
.atc-card-img {
    width: 72px;
    min-height: 72px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bs-tertiary-bg);
}
.atc-card-body {
    padding: .5rem .625rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}
[data-theme="dark"] .atc-card {
    border-color: #3a3a5a;
    background: #1e1e3a;
}
[data-theme="dark"] .atc-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    border-color: #6ea8fe;
}
[data-theme="dark"] .atc-card.selected {
    border-color: #75b798;
    background: rgba(117,183,152,.1);
}
@media (max-width: 575.98px) {
    .atc-grid { grid-template-columns: 1fr; }
}

/* ===== Camera Guide Overlay ===== */
.camera-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.camera-guide-overlay.active { opacity: 1; }

.camera-guide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.camera-guide-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    border: 2px dashed rgba(255,255,255,.7);
    box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
}
.camera-guide-circle {
    width: 70vw;
    height: 70vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.camera-guide-rect {
    width: 88vw;
    height: calc(88vw * 9 / 16);
    max-width: 560px;
    max-height: 315px;
    border-radius: 6px;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.camera-guide-label {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    z-index: 2;
    padding: 6px 16px;
    background: rgba(0,0,0,.35);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camera-guide-close-btn {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.camera-guide-close-btn:active { background: rgba(0,0,0,.7); }

.camera-guide-flash-btn {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    left: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.camera-guide-flash-btn.active { background: rgba(255,200,0,.6); color: #000; }
.camera-guide-flash-btn:active { background: rgba(0,0,0,.7); }

.camera-guide-capture-btn {
    position: absolute;
    bottom: max(calc(env(safe-area-inset-bottom, 20px) + 16px), 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.camera-guide-capture-ring {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    transition: transform .12s ease;
}
.camera-guide-capture-btn:active .camera-guide-capture-ring {
    transform: scale(.85);
}

.camera-guide-fallback-btn {
    position: absolute;
    bottom: max(calc(env(safe-area-inset-bottom, 20px) + 16px), 36px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border: none;
    border-radius: 40px;
    background: #fff;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.camera-guide-fallback-btn:active {
    background: #e0e0e0;
    transform: translateX(-50%) scale(.96);
}

/* ===== Camera Crop Overlay ===== */
.camera-crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity .25s ease;
    overflow: hidden;
    touch-action: none;
}
.camera-crop-overlay.active { opacity: 1; }

.camera-crop-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.camera-crop-image {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform;
}

.camera-crop-guide {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    border: 2px dashed rgba(255,255,255,.6);
    box-shadow: 0 0 0 9999px rgba(0,0,0,.6);
}
.camera-crop-guide-circle {
    width: 70vw;
    height: 70vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}
.camera-crop-guide-rect {
    width: 88vw;
    height: calc(88vw * 9 / 16);
    max-width: 560px;
    max-height: 315px;
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.camera-crop-label {
    position: absolute;
    top: max(env(safe-area-inset-top, 10px), 10px);
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    z-index: 3;
    padding: 5px 14px;
    background: rgba(0,0,0,.35);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.camera-crop-actions {
    position: absolute;
    bottom: max(calc(env(safe-area-inset-bottom, 16px) + 12px), 28px);
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
}
.camera-crop-actions .btn {
    min-width: 130px;
    font-weight: 600;
    border-radius: 24px;
    padding: 10px 20px;
}

/* Mask overlays for crop (hidden — using box-shadow technique on guide instead) */
.camera-crop-mask-top,
.camera-crop-mask-bottom,
.camera-crop-mask-left,
.camera-crop-mask-right {
    display: none;
}

/* ===== Image Cropper (coin obverse/reverse) ===== */
.image-cropper-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity .25s ease;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}
.image-cropper-overlay.active { opacity: 1; }

.image-cropper-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.image-cropper-img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    will-change: transform;
    transform-origin: center center;
    pointer-events: none;
    max-width: none;
    max-height: none;
}

.image-cropper-frame {
    position: absolute;
    width: 70vmin;
    height: 70vmin;
    max-width: 400px;
    max-height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.6);
    pointer-events: none;
    z-index: 2;
}

/* Crosshair guides inside frame — visible during drag/zoom */
.image-cropper-crosshair {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.image-cropper-crosshair.visible { opacity: 1; }
.image-cropper-crosshair::before,
.image-cropper-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,.35);
}
.image-cropper-crosshair::before {
    /* vertical axis */
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
}
.image-cropper-crosshair::after {
    /* horizontal axis */
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

/* Zoom badge — fades in/out during zoom */
.image-cropper-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity .25s ease;
    font-variant-numeric: tabular-nums;
}
.image-cropper-zoom.visible { opacity: 1; }

.image-cropper-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255,255,255,.6);
    font-size: .75rem;
    text-align: center;
    pointer-events: none;
    animation: cropperHintFade 4s ease forwards;
}
@keyframes cropperHintFade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

.image-cropper-toolbar {
    position: absolute;
    top: max(env(safe-area-inset-top, 12px), 12px);
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.image-cropper-toolbar button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.image-cropper-toolbar button:hover,
.image-cropper-toolbar button:active {
    background: rgba(255,255,255,.3);
}

.image-cropper-actions {
    position: absolute;
    bottom: max(env(safe-area-inset-bottom, 20px), 20px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
    z-index: 3;
}
.image-cropper-actions .btn {
    min-width: 130px;
    font-weight: 600;
    border-radius: 24px;
    padding: 10px 20px;
}

/* ===== Facebook-style comment bubbles ===== */
.zs-comment-bubble {
    background: var(--bs-tertiary-bg, #f0f2f5);
    border-radius: 1rem;
    padding: .6rem .85rem .25rem;
    position: relative;
    transition: background .15s;
}
.zs-comment-bubble:hover {
    background: color-mix(in srgb, var(--bs-tertiary-bg, #f0f2f5) 96%, #000);
}
.zs-comment-bubble .zs-comment-body { line-height: 1.45; }
.zs-comment-bubble .zs-comment-body p:last-child { margin-bottom: 0; }
.zs-comment-bubble--reply {
    border-radius: .85rem;
    padding: .45rem .75rem .2rem;
}
/* Reactions inside bubble, separated by a top border */
.zs-comment-reactions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .4rem;
    padding-top: .35rem;
    border-top: 1px solid var(--bs-border-color, rgba(0,0,0,.1));
    font-size: .8rem;
}
.zs-comment-bubble--reply .zs-comment-reactions {
    font-size: .75rem;
    margin-top: .3rem;
    padding-top: .25rem;
}
/* Three-dots menu: visible on hover */
.zs-comment-menu { opacity: 0; transition: opacity .15s; }
.zs-comment-bubble:hover .zs-comment-menu,
.zs-comment-menu.show,
.zs-comment-menu:has(.dropdown-menu.show) { opacity: 1; }
/* Reaction buttons transitions */
.zs-comment-reactions .zs-comment-love,
.zs-comment-reactions .zs-comment-like,
.zs-comment-reactions .zs-comment-reply-btn { transition: color .15s; }
.zs-comment-reactions .zs-comment-love:hover { color: var(--bs-danger) !important; }
.zs-comment-reactions .zs-comment-like:hover { color: var(--bs-primary) !important; }
/* Dark theme */
[data-theme="dark"] .zs-comment-bubble {
    background: rgba(255,255,255,.08);
}
[data-theme="dark"] .zs-comment-bubble:hover {
    background: rgba(255,255,255,.10);
}
[data-theme="dark"] .zs-comment-reactions {
    border-top-color: rgba(255,255,255,.12);
}

/* ===== MESSENGER SIDEBAR (offcanvas) ===== */
.messenger-sidebar-width {
    width: 320px !important;
    top: 60px !important;
    bottom: 0 !important;
    height: auto !important;
}
.messenger-sidebar-width #messenger-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.ms-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}
.ms-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.ms-bottom {
    flex-shrink: 0;
    border-top: 1px solid #eee;
}
.messenger-sidebar-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    max-height: 40px;
    font-size: .85rem;
}
.messenger-sidebar-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}
.messenger-sidebar-item {
    cursor: pointer;
    transition: background-color .15s;
}
.messenger-sidebar-item:hover {
    background-color: rgba(var(--bs-primary-rgb, 13,110,253), .06);
}
.messenger-sidebar-item.unread {
    background-color: rgba(var(--bs-primary-rgb, 13,110,253), .04);
}
.messenger-sidebar-item.unread .fw-medium {
    font-weight: 700 !important;
}
.messenger-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-success);
    margin-left: 4px;
}

/* ===== MESSENGER PAGE (3 columns) ===== */
/* Chat page: lock scroll area, hide footer, frame the messenger */
.main-scroll-area:has(.messenger-wrapper) {
    overflow: hidden;
}
.main-content:has(.messenger-wrapper) {
    padding: 1rem !important;
    overflow: hidden;
    flex-grow: 1;
}
.main-content:has(.messenger-wrapper) ~ #footer-container {
    display: none;
}
.messenger-wrapper {
    height: calc(100vh - 60px - 2rem);
    height: calc(100dvh - 60px - 2rem);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    background: var(--bs-body-bg, #fff);
}
@media (max-width: 767.98px) {
    .main-content:has(.messenger-wrapper) {
        padding: .5rem !important;
    }
    .messenger-wrapper {
        height: calc(100vh - 60px - 1rem);
        height: calc(100dvh - 60px - 1rem);
        border-radius: .75rem;
    }
}
.messenger-row {
    height: 100%;
    flex-wrap: nowrap;
}
.messenger-col-left,
.messenger-col-center,
.messenger-col-right {
    height: 100%;
    overflow: hidden;
}
.messenger-col-left {
    display: flex;
    flex-direction: column;
}
.messenger-left-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #dee2e6;
    overflow: hidden;
}
.messenger-left-header {
    border-bottom: none;
    flex-shrink: 0;
}
.messenger-search-wrap {
    padding: .5rem .75rem .5rem;
    margin-top: .25rem;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}
.messenger-search-icon {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    color: #999;
    pointer-events: none;
}
.messenger-center-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.messenger-right-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid #dee2e6;
    overflow: hidden;
}
.messenger-avatar-md {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1rem;
}
.messenger-rooms-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.messenger-room-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .75rem;
    cursor: pointer;
    transition: background-color .15s;
}
.messenger-room-item:hover {
    background-color: rgba(var(--bs-primary-rgb), .06);
}
.messenger-room-item.active {
    background-color: rgba(var(--bs-primary-rgb), .10);
}
.messenger-room-item.unread .messenger-room-name {
    font-weight: 700;
}
.messenger-room-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.messenger-room-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: .9rem;
    flex-shrink: 0;
}
.messenger-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bs-body-bg, #fff);
}
.messenger-room-avatar-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: .8rem;
    flex-shrink: 0;
}
.messenger-room-info {
    flex: 1;
    min-width: 0;
}
.messenger-room-name {
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.messenger-room-time {
    font-size: .72rem;
    color: #999;
    flex-shrink: 0;
}
.messenger-room-preview {
    font-size: .78rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.messenger-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--bs-success);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Chat header */
.messenger-chat-header {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    min-height: 56px;
}

/* Messages scroll area */
.messenger-messages-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Bubble rows */
.messenger-bubble-row {
    display: flex;
    gap: .5rem;
    max-width: 80%;
}
.messenger-bubble-row.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.messenger-bubble-row.theirs {
    align-self: flex-start;
}
.messenger-bubble-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: .7rem;
    flex-shrink: 0;
    align-self: flex-end;
}
.messenger-bubble-content {
    display: flex;
    flex-direction: column;
}
.messenger-bubble-row.mine .messenger-bubble-content {
    align-items: flex-end;
}
.messenger-bubble-meta {
    font-size: .7rem;
    color: #999;
    margin-bottom: 2px;
    padding: 0 4px;
}
.messenger-bubble {
    padding: .5rem .875rem;
    border-radius: 1rem;
    font-size: .875rem;
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
}
.messenger-bubble-mine {
    background: var(--bs-primary);
    color: #fff;
    border-bottom-right-radius: .25rem;
}
.messenger-bubble-other {
    background: #f0f2f5;
    color: #1c1e21;
    border-bottom-left-radius: .25rem;
}
.messenger-bubble-naked {
    background: none !important;
    padding: .25rem 0;
}
.messenger-emoji-text {
    font-size: 2rem;
    line-height: 1.2;
}

/* Input bar */
.messenger-input-bar {
    padding: .75rem 1rem;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}

.messenger-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    padding: .25rem .25rem .25rem .75rem;
    min-width: 0;
    overflow: visible;
}
.messenger-input-wrap .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: .35rem .25rem;
    min-width: 0;
    flex: 1;
}
.messenger-input-wrap .form-control:focus {
    box-shadow: none;
}
.messenger-input-actions {
    display: flex;
    align-items: center;
    gap: .1rem;
    flex-shrink: 0;
}
.messenger-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color .15s;
    font-size: .9rem;
}
.messenger-send-btn:hover {
    background: var(--bs-primary);
    opacity: .85;
}
.messenger-attach-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: color .15s;
}
.messenger-attach-btn:hover {
    color: var(--bs-primary);
}
.msgr-inline-preview {
    position: relative;
    flex-shrink: 0;
    margin-right: .25rem;
    z-index: 2;
}
.msgr-inline-preview img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: .4rem;
    display: block;
    border: 2px solid var(--bs-primary);
}
.msgr-inline-preview-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: var(--bs-danger, #dc3545);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.msgr-inline-preview-close:hover {
    opacity: .85;
}
.messenger-bubble-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: .75rem;
    display: block;
    margin-bottom: 4px;
}
.messenger-bubble-mine .messenger-bubble-img {
    border-radius: .75rem .75rem .25rem .75rem;
}
.messenger-bubble-other .messenger-bubble-img {
    border-radius: .75rem .75rem .75rem .25rem;
}

/* Right column - contact info */
.messenger-contact-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* Sidebar stat cards */
.msgr-sidebar-stats {
    display: flex;
    gap: .75rem;
    padding: 0 1rem .75rem;
}
.msgr-sidebar-stat-card {
    flex: 1;
    background: var(--bs-light, #f0f2f5);
    border-radius: .75rem;
    padding: .65rem .75rem;
    transition: background .15s;
}
.msgr-sidebar-stat-card:hover {
    background: rgba(242, 209, 35, .15);
}
#msgr-shared-files-btn:hover {
    background: rgba(242, 209, 35, .15);
}
.msgr-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.msgr-sidebar-stat-card i {
    font-size: 1.3rem;
    color: var(--bs-primary);
}
.msgr-sidebar-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-body-color);
}
.msgr-sidebar-stat-label {
    font-size: .65rem;
    color: var(--bs-secondary);
    margin-top: .35rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.msgr-sidebar-section-title {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bs-secondary);
    padding: .5rem 1rem .25rem;
    letter-spacing: .02em;
}
.msgr-sidebar-coin-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    margin: 0 .5rem;
    border-radius: .75rem;
    transition: background .15s;
}
.msgr-sidebar-coin-card:hover {
    background: var(--bs-light, #f0f2f5);
}
.msgr-sidebar-coin-img {
    width: 56px;
    height: 56px;
    border-radius: .5rem;
    object-fit: cover;
    flex-shrink: 0;
}
.msgr-sidebar-coin-placeholder {
    width: 56px;
    height: 56px;
    border-radius: .5rem;
    background: var(--bs-light, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-secondary);
    flex-shrink: 0;
}
.msgr-sidebar-coin-info {
    min-width: 0;
    flex: 1;
}

/* Sidebar mini gallery */
.msgr-sidebar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
    padding: 0 .75rem .75rem;
}
.msgr-sidebar-gallery-thumb {
    aspect-ratio: 1;
    border-radius: .4rem;
    overflow: hidden;
    cursor: pointer;
    transition: opacity .15s;
}
.msgr-sidebar-gallery-thumb:hover {
    opacity: .75;
}
.msgr-sidebar-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shared files modal grid */
.msgr-shared-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}
@media (max-width: 575.98px) {
    .msgr-shared-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.msgr-shared-thumb {
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    transition: opacity .15s;
}
.msgr-shared-thumb:hover {
    opacity: .8;
}
.msgr-shared-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== MESSENGER MOBILE ===== */
@media (max-width: 767.98px) {
    .messenger-row {
        position: relative;
        overflow: hidden;
    }
    /* On mobile, each panel is absolute and fills the container */
    .messenger-col-left,
    .messenger-col-center {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: var(--bs-body-bg, #fff);
    }
    .messenger-col-center {
        z-index: 2;
    }
    .messenger-left-inner {
        border-right: none;
    }
}
[data-theme="dark"] .messenger-col-left,
[data-theme="dark"] .messenger-col-center {
    background: var(--bs-body-bg);
}

/* ===== MESSENGER DARK THEME ===== */
[data-theme="dark"] .ms-header {
    border-bottom-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .ms-bottom {
    border-top-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-sidebar-item:hover {
    background-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .messenger-sidebar-item.unread {
    background-color: rgba(255,255,255,.04);
}
[data-theme="dark"] .messenger-left-inner {
    border-right-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-left-header {
    border-bottom-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .messenger-search-wrap {
    border-top-color: rgba(255,255,255,.12);
    border-bottom-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-search-icon {
    color: rgba(255,255,255,.4);
}
[data-theme="dark"] .messenger-right-inner {
    border-left-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-chat-header {
    border-bottom-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-input-bar {
    border-top-color: rgba(255,255,255,.12);
}
[data-theme="dark"] .messenger-input-wrap {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
}
[data-theme="dark"] .messenger-attach-btn {
    color: rgba(255,255,255,.5);
}
[data-theme="dark"] .messenger-attach-btn:hover {
    color: var(--bs-primary);
}
[data-theme="dark"] .msgr-sidebar-stat-card {
    background: rgba(255,255,255,.08);
}
[data-theme="dark"] .msgr-sidebar-stat-card:hover {
    background: rgba(242, 209, 35, .15);
}
[data-theme="dark"] #msgr-shared-files-btn:hover {
    background: rgba(242, 209, 35, .15);
}
[data-theme="dark"] .msgr-sidebar-coin-card:hover {
    background: rgba(255,255,255,.08);
}
[data-theme="dark"] .msgr-sidebar-coin-placeholder {
    background: rgba(255,255,255,.08);
}
[data-theme="dark"] .messenger-room-item:hover {
    background-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .messenger-room-item.active {
    background-color: rgba(255,255,255,.10);
}
[data-theme="dark"] .messenger-bubble-other {
    background: rgba(255,255,255,.10);
    color: #e4e6eb;
}
[data-theme="dark"] .messenger-bubble-meta {
    color: rgba(255,255,255,.45);
}
[data-theme="dark"] .messenger-room-time,
[data-theme="dark"] .messenger-room-preview {
    color: rgba(255,255,255,.5);
}

/* ===== Chat message reactions (WhatsApp-style) ===== */
.messenger-bubble-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: visible;
}
.messenger-bubble-row.mine .messenger-bubble-wrap {
    flex-direction: row-reverse;
}
/* Space for the pills that straddle the bottom edge */
.messenger-bubble-content:has(.msgr-reactions-bar) .messenger-bubble-wrap {
    margin-bottom: 12px;
}
.messenger-bubble-content {
    overflow: visible;
}

/* Smiley trigger button */
.msgr-reaction-trigger {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(242, 209, 35, .18);
    color: #888;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, background .15s, transform .12s;
    padding: 0;
    z-index: 2;
    flex-shrink: 0;
    margin: 0 4px;
}
.messenger-bubble-wrap:hover .msgr-reaction-trigger,
.msgr-reaction-trigger:focus {
    opacity: 1;
}
.msgr-reaction-trigger:hover {
    background: rgba(242, 209, 35, .35);
    color: #333;
    transform: scale(1.1);
}

/* Reaction popup (horizontal emoji menu) */
.msgr-reaction-popup {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    padding: 4px 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 10;
    white-space: nowrap;
    animation: msgr-popup-in .15s ease-out;
}
@keyframes msgr-popup-in {
    from { opacity: 0; transform: translateX(-50%) translateY(4px) scale(.9); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.msgr-reaction-emoji {
    border: none;
    background: none;
    font-size: 1.25rem;
    padding: 2px 5px;
    border-radius: .5rem;
    cursor: pointer;
    transition: background .12s, transform .12s;
    line-height: 1;
}
.msgr-reaction-emoji:hover {
    background: rgba(242, 209, 35, .2);
    transform: scale(1.25);
}

/* Reactions bar — pills straddle the bottom edge of the bubble */
.msgr-reactions-bar {
    position: absolute;
    bottom: 0;
    transform: translateY(50%);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 8px;
    z-index: 3;
}
.messenger-bubble-row.theirs .msgr-reactions-bar {
    left: 0;
}
.messenger-bubble-row.mine .msgr-reactions-bar {
    right: 0;
}
.msgr-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .75rem;
    padding: 1px 8px;
    border-radius: 1rem;
    background: #f0f2f5;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    user-select: none;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.msgr-reaction-pill:hover {
    background: rgba(242, 209, 35, .15);
    border-color: rgba(242, 209, 35, .4);
}
.msgr-reaction-pill.mine {
    background: rgba(242, 209, 35, .18);
    border-color: rgba(242, 209, 35, .5);
}
.msgr-reaction-pill.mine:hover {
    background: rgba(242, 209, 35, .3);
}

/* Dark theme overrides for reactions */
[data-theme="dark"] .msgr-reaction-trigger {
    background: rgba(242, 209, 35, .12);
    color: rgba(255,255,255,.5);
}
[data-theme="dark"] .msgr-reaction-trigger:hover {
    background: rgba(242, 209, 35, .3);
    color: #fff;
}
[data-theme="dark"] .msgr-reaction-popup {
    background: #2a2a3e;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
[data-theme="dark"] .msgr-reaction-emoji:hover {
    background: rgba(242, 209, 35, .2);
}
[data-theme="dark"] .msgr-reaction-pill {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: #e4e6eb;
}
[data-theme="dark"] .msgr-reaction-pill:hover {
    background: rgba(242, 209, 35, .15);
    border-color: rgba(242, 209, 35, .3);
}
[data-theme="dark"] .msgr-reaction-pill.mine {
    background: rgba(242, 209, 35, .15);
    border-color: rgba(242, 209, 35, .4);
}
[data-theme="dark"] .msgr-reaction-pill.mine:hover {
    background: rgba(242, 209, 35, .25);
}

/* ===== CONTACT CHAT SIDEBAR (offcanvas) ===== */
.contact-chat-width {
    width: 320px !important;
    top: 60px !important;
    bottom: 0 !important;
    height: auto !important;
}
.contact-chat-width #contact-chat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.cc-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
}
.cc-header .min-width-0 { min-width: 0; }
.cc-context-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: background .15s;
}
.cc-context-card:hover {
    background: rgba(0,0,0,.03);
    color: inherit;
}
.cc-ctx-img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: .5rem;
    object-fit: cover;
}
.cc-ctx-img-placeholder {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: .5rem;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.2rem;
}
.cc-ctx-info {
    flex: 1;
    min-width: 0;
}
.cc-ctx-name {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc-ctx-price {
    display: block;
    font-size: .8rem;
    color: #198754;
    font-weight: 500;
}
.cc-ctx-chevron {
    color: #adb5bd;
    font-size: .875rem;
}
.cc-messages {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.cc-input-bar {
    padding: .625rem .75rem;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}
.cc-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    padding: .2rem .25rem .2rem .75rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.cc-input-wrap:focus-within {
    border-color: rgba(140,152,164,.25);
    box-shadow: 0 0 1rem 0 rgba(140,152,164,.25);
}
.cc-input-wrap .form-control {
    border: none;
    box-shadow: none !important;
    background: transparent;
    font-size: .875rem;
    padding: .25rem 0;
}
.cc-send-btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* Reuse messenger bubble styles in contact-chat */
.cc-messages .messenger-bubble-row { max-width: 85%; }

/* Dark theme */
[data-theme="dark"] .cc-header { border-bottom-color: rgba(255,255,255,.12); }
[data-theme="dark"] .cc-context-card { border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .cc-context-card:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .cc-ctx-img-placeholder { background: rgba(255,255,255,.08); color: #6c757d; }
[data-theme="dark"] .cc-ctx-price { color: #75b798; }
[data-theme="dark"] .cc-input-bar { border-top-color: rgba(255,255,255,.12); }
[data-theme="dark"] .cc-input-wrap { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); }
[data-theme="dark"] .cc-input-wrap:focus-within { border-color: rgba(110,168,254,.4); box-shadow: 0 0 1rem 0 rgba(110,168,254,.15); }

/* Mobile: full-width */
@media (max-width: 575.98px) {
    .contact-chat-width {
        width: 100% !important;
        max-width: 100%;
    }
}

/* ===== Coin Stats Button ===== */
.coin-stats-btn {
    width: 28px; height: 28px; min-height: auto; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: none;
    background: rgba(0,0,0,.04); color: #6c757d;
    font-size: .8rem; transition: all .2s;
    line-height: 1;
}
.coin-stats-btn:hover { background: var(--bs-primary); color: #fff; transform: scale(1.1); }

/* Coin stats modal */
#coin-stats-modal .modal-body { padding-bottom: 2rem; }
#coin-stats-modal .table { margin-bottom: 0; }
#coin-stats-modal #cs-period-btns .btn { font-size: .75rem; padding: .25rem .6rem; }
#coin-stats-modal #cs-ai-result { border-top: 1px solid rgba(0,0,0,.08); padding-top: .75rem; margin-top: .5rem; }

/* Dark theme */
[data-theme="dark"] .coin-stats-btn { background: rgba(255,255,255,.08); color: #adb5bd; }
[data-theme="dark"] .coin-stats-btn:hover { background: var(--bs-primary); color: #fff; }
[data-theme="dark"] #coin-stats-modal #cs-ai-result { border-top-color: rgba(255,255,255,.1); }
[data-theme="dark"] #coin-stats-modal .table { --bs-table-hover-bg: rgba(255,255,255,.04); }

/* ===== Email Compose Panel (Gmail-style) ===== */
.email-compose-panel {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 380px;
    max-height: 420px;
    z-index: 1090;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    background: var(--bs-body-bg, #fff);
}
.email-compose-panel.ecp-visible { transform: translateY(0); }
.email-compose-panel.ecp-minimized { transform: translateY(calc(100% - 40px)); }
.ecp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #1a1a2e;
    color: #fff;
    cursor: pointer;
    min-height: 40px;
    border-radius: 10px 10px 0 0;
}
.ecp-title { font-size: .85rem; font-weight: 600; }
.ecp-actions { display: flex; gap: 4px; }
.ecp-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .8rem;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.ecp-btn:hover { color: #fff; background: rgba(255,255,255,.15); }
.ecp-body { padding: 8px 12px 4px; flex: 1; overflow-y: auto; }
.ecp-field { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(0,0,0,.08); padding: 6px 0; }
.ecp-field label { font-size: .75rem; color: #6b7280; min-width: 40px; font-weight: 500; }
.ecp-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .85rem;
    background: transparent;
    color: var(--bs-body-color, #212529);
    padding: 2px 0;
}
.ecp-field input[readonly] { color: #6b7280; }
#ecp-message {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    min-height: 140px;
    font-size: .85rem;
    padding: 8px 0;
    background: transparent;
    color: var(--bs-body-color, #212529);
    font-family: inherit;
}
.ecp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid rgba(0,0,0,.08);
}
.ecp-char-count { font-size: .7rem; color: #9ca3af; margin-left: auto; }

/* Mobile responsive */
@media (max-width: 576px) {
    .email-compose-panel {
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .ecp-header { border-radius: 12px 12px 0 0; }
    #ecp-message { min-height: 120px; }
}

/* ── Theme variants ── */
/* Light theme (default) — no overrides needed */

/* Dark theme */
[data-theme="dark"] .ecp-header { background: #16181b; }
[data-theme="dark"] .email-compose-panel { background: #1e2025; box-shadow: 0 -4px 24px rgba(0,0,0,.4); }
[data-theme="dark"] .ecp-field { border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .ecp-footer { border-top-color: rgba(255,255,255,.08); }

/* Zkriva theme */
[data-theme="zkriva"] .ecp-header { background: #1a1a2e; }

/* Lilia theme */
[data-theme="lilia"] .ecp-header { background: #4a2d6b; }

/* Natur theme */
[data-theme="natur"] .ecp-header { background: #2d4a2d; }

/* ============================================
   HERO DRIFT ANIMATION (my-collections, etc.)
   ============================================ */
@keyframes heroDrift {
    0%   { background-position: 50% 50%; transform: scale(1.05); }
    50%  { background-position: 55% 45%; transform: scale(1.1); }
    100% { background-position: 50% 50%; transform: scale(1.05); }
}
.pp-cover-default.has-hero-bg {
    animation: heroDrift 20s ease-in-out infinite;
}

/* ============================================
   COLLECTION CARD BANNER
   ============================================ */
.collection-card-banner {
    height: 100px;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    position: relative;
}
.collection-card-vis {
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-size: .8rem;
    z-index: 1;
}
.collection-card-vis-badge {
    background: rgba(0, 0, 0, .55);
    color: #fff;
}
.collection-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.collection-card-banner .collection-card-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Collection card avatar (overlapping banner/body) ===== */
.collection-card-avatar {
    position: absolute;
    left: 16px;
    top: 68px; /* 100px banner - 32px (half of 64px avatar) */
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 16%;
    border: 3px solid var(--bs-card-bg, #fff);
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.collection-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.collection-card .card-body.has-avatar {
    padding-top: 2.5rem !important;
}

/* ═══════════════════════════════════════════════════
   HOME PAGE — Premium Redesign
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables for home ── */
:root {
    --zs-home-gold: #f2d123;
    --zs-home-gold-light: #f7e36b;
    --zs-home-gold-rgb: 242,209,35;
    --zs-home-surface: rgba(255,255,255,.6);
    --zs-home-surface-solid: #fff;
    --zs-home-text: #1a1a2e;
    --zs-home-text-muted: #6c757d;
    --zs-home-card-shadow: 0 2px 12px rgba(0,0,0,.06);
    --zs-home-card-shadow-hover: 0 12px 32px rgba(0,0,0,.12);
}
[data-theme="dark"] {
    --zs-home-surface: rgba(30,30,47,.6);
    --zs-home-surface-solid: #1e1e2f;
    --zs-home-text: #e9ecef;
    --zs-home-text-muted: #9ca3af;
    --zs-home-card-shadow: 0 2px 12px rgba(0,0,0,.2);
    --zs-home-card-shadow-hover: 0 12px 32px rgba(0,0,0,.35);
}

/* ── Hero buttons (YouTube ytp-time-display style) ── */
.zs-hero-yt-btn {
    display: inline-block;
    color: #ddd;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    padding: .5rem .9rem;
    background: rgba(0,0,0,.4);
    background-clip: padding-box;
    border: 5px solid rgba(0,0,0,.4);
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    transition: color .35s ease, background .35s ease, border-color .35s ease;
    white-space: nowrap;
}
.zs-hero-yt-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
    background-clip: padding-box;
    border-color: rgba(0,0,0,.4);
    text-decoration: none;
}
.zs-hero-yt-btn:active {
    background: rgba(255,255,255,.25);
    background-clip: padding-box;
    border-color: rgba(0,0,0,.4);
    transform: scale(.97);
}

/* ── Reveal animations ── */
.zs-home-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.zs-home-reveal.zs-home-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children of reveal sections */
.zs-home-revealed .col:nth-child(1) { transition-delay: 0ms; }
.zs-home-revealed .col:nth-child(2) { transition-delay: 50ms; }
.zs-home-revealed .col:nth-child(3) { transition-delay: 100ms; }
.zs-home-revealed .col:nth-child(4) { transition-delay: 150ms; }
.zs-home-revealed .col:nth-child(5) { transition-delay: 200ms; }
.zs-home-revealed .col:nth-child(6) { transition-delay: 250ms; }
.zs-home-revealed .col:nth-child(7) { transition-delay: 300ms; }
.zs-home-revealed .col:nth-child(8) { transition-delay: 350ms; }
.zs-home-revealed .col:nth-child(9) { transition-delay: 400ms; }
.zs-home-revealed .col:nth-child(10) { transition-delay: 450ms; }

/* ── Buttons (CTA) ── */
.zs-home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.5rem;
    background: var(--zs-home-gold);
    color: #1a1a2e;
    font-weight: 700;
    font-size: .875rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: all .25s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(var(--zs-home-gold-rgb), .25);
}
.zs-home-btn-primary:hover {
    background: var(--zs-home-gold-light);
    color: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(var(--zs-home-gold-rgb), .35);
}
.zs-home-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.5rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    border-radius: .5rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.3);
    transition: all .25s ease;
}
.zs-home-btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

/* ── Section headers ── */
.zs-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
[data-theme="dark"] .zs-home-section-head {
    border-bottom-color: rgba(255,255,255,.06);
}
.zs-home-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--zs-home-text);
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.2;
}
.zs-home-section-line {
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--zs-home-gold), rgba(var(--zs-home-gold-rgb), .2));
    border-radius: 2px;
    margin-top: .4rem;
}
.zs-home-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--zs-home-gold);
    text-decoration: none;
    white-space: nowrap;
    padding: .3rem .75rem;
    border-radius: .375rem;
    transition: gap .2s ease, background .2s ease, color .2s ease;
}
.zs-home-link:hover {
    color: var(--zs-home-gold-light);
    gap: .5rem;
    background: rgba(242,209,35,.1);
}
.zs-home-section-title-sm {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zs-home-text);
    margin: 0;
}
.zs-home-link-sm {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--zs-home-gold);
    text-decoration: none;
    white-space: nowrap;
    padding: .25rem .6rem;
    border-radius: .375rem;
    transition: gap .2s ease, background .2s ease, color .2s ease;
}
.zs-home-link-sm:hover { gap: .4rem; color: var(--zs-home-gold-light); background: rgba(242,209,35,.1); }

.zs-home-mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: .5rem;
    background: rgba(var(--zs-home-gold-rgb), .12);
    color: var(--zs-home-gold);
    font-size: .85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--zs-home-gold-rgb), .1);
}

/* ── Card enhancements ── */
.zs-home-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .625rem;
    box-shadow: var(--zs-home-card-shadow);
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.zs-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zs-home-card-shadow-hover);
    border-color: rgba(var(--zs-home-gold-rgb), .2);
}
[data-theme="dark"] .zs-home-card {
    border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .zs-home-card:hover {
    border-color: rgba(var(--zs-home-gold-rgb), .25);
}

/* Card text color — override link color */
.zs-home-card h3 { color: var(--zs-home-text) !important; }

/* Price color */
.zs-home-price { color: var(--zs-home-gold) !important; }

/* Card user avatar + username */
.zs-home-card-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 50%;
    font-size: .7rem;
    color: var(--zs-home-text-muted);
    line-height: 1;
}
.zs-home-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.zs-home-card-avatar-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zs-home-gold);
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
}
.zs-home-card-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Collection likes (heart) */
.zs-home-col-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--bs-secondary-color);
    font-weight: 500;
}

/* ── Features showcase ── */
.zs-home-features {
    position: relative;
    border-radius: .75rem;
    overflow: hidden;
    background: var(--zs-home-surface-solid);
    border: 1px solid rgba(var(--zs-home-gold-rgb), .1);
    box-shadow: 0 4px 24px rgba(var(--zs-home-gold-rgb), .06);
}
.zs-home-features-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .zs-home-features-inner {
        grid-template-columns: 1fr 1fr;
    }
}
.zs-home-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(var(--zs-home-gold-rgb), .08);
    padding: 0;
}
.zs-home-feat-card {
    position: relative;
    padding: 1.75rem 1.25rem;
    background: var(--zs-home-surface-solid);
    overflow: hidden;
    transition: background .3s ease;
}
.zs-home-feat-card:hover {
    background: rgba(var(--zs-home-gold-rgb), .04);
}
[data-theme="dark"] .zs-home-feat-card:hover {
    background: rgba(var(--zs-home-gold-rgb), .06);
}
.zs-home-feat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: rgba(var(--zs-home-gold-rgb), .1);
    color: var(--zs-home-gold);
    font-size: 1.2rem;
    margin-bottom: .75rem;
    transition: transform .3s ease, background .3s ease;
}
.zs-home-feat-card:hover .zs-home-feat-icon {
    transform: scale(1.1);
    background: rgba(var(--zs-home-gold-rgb), .18);
}
.zs-home-feat-card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--zs-home-text);
    margin-bottom: .4rem;
    line-height: 1.35;
}
.zs-home-feat-card p {
    font-size: .78rem;
    color: var(--zs-home-text-muted);
    line-height: 1.55;
    margin: 0;
}
.zs-home-feat-num {
    position: absolute;
    bottom: .5rem;
    right: .75rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(var(--zs-home-gold-rgb), .06);
    line-height: 1;
    letter-spacing: -.04em;
    pointer-events: none;
}
.zs-home-feat-card:hover .zs-home-feat-num {
    color: rgba(var(--zs-home-gold-rgb), .12);
}

.zs-home-features-visual {
    display: none;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .zs-home-features-visual {
        display: block;
    }
}
.zs-home-features-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767.98px) {
    .zs-home-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CTA redesign ── */
.zs-home-cta {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.zs-home-cta-inner {
    position: relative;
    padding: 3.5rem 2rem;
    background: #111;
    overflow: hidden;
}
/* ── Galaxy stars ── */
.zs-cta-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.zs-cta-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 3px 1px rgba(255,255,255,.3);
    animation: zsStarDrift 12s ease-in-out infinite, zsStarPulse 3s ease-in-out infinite;
}
.zs-cta-star:nth-child(odd) {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px 2px rgba(255,255,255,.25), 0 0 2px 0 rgba(242,209,35,.3);
}
.zs-cta-star:nth-child(3n) {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 0 0 2px 1px rgba(255,255,255,.2);
    animation-duration: 16s, 4s;
}
@keyframes zsStarPulse {
    0%, 100% { opacity: .15; transform: scale(.6); }
    50%      { opacity: .8;  transform: scale(1.2); }
}
@keyframes zsStarDrift {
    0%   { translate: 0 0; }
    25%  { translate: 15px -10px; }
    50%  { translate: -8px -18px; }
    75%  { translate: -12px 8px; }
    100% { translate: 0 0; }
}
.zs-home-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(var(--zs-home-gold-rgb), .08) 0%, transparent 70%);
    pointer-events: none;
}
.zs-home-cta-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}
.zs-home-cta-badge {
    display: inline-block;
    padding: .25rem .75rem;
    background: rgba(var(--zs-home-gold-rgb), .2);
    border: 1px solid rgba(var(--zs-home-gold-rgb), .3);
    border-radius: 2rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--zs-home-gold-light);
    margin-bottom: 1rem;
    animation: zsCtaBadgePulse 3s ease-in-out infinite;
}
@keyframes zsCtaBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--zs-home-gold-rgb), .3); }
    50%      { box-shadow: 0 0 0 6px rgba(var(--zs-home-gold-rgb), 0); }
}
.zs-home-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.zs-home-cta-content p {
    color: rgba(255,255,255,.55);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: .95rem;
}

/* ── Theme: lilia ── */
[data-theme="lilia"] .zs-home-cta-inner {
    background: linear-gradient(135deg, #3b1f6e 0%, #5b3d99 50%, var(--zs-home-gold) 200%);
}
/* ── Theme: natur ── */
[data-theme="natur"] .zs-home-cta-inner {
    background: linear-gradient(135deg, #14532d 0%, #166534 50%, var(--zs-home-gold) 200%);
}

/* ═══════════════════════════════════════════════════
   404 PAGE — Lost Coin
   ═══════════════════════════════════════════════════ */
.zs-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}

/* ── Floating particles (gold dust) ── */
.zs-404-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.zs-404-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--bs-secondary);
    opacity: 0;
    animation: zs404float 8s ease-in-out infinite;
}
.zs-404-p1 { width: 6px; height: 6px; left: 12%; top: 20%; animation-delay: 0s; }
.zs-404-p2 { width: 4px; height: 4px; right: 18%; top: 15%; animation-delay: 1.2s; }
.zs-404-p3 { width: 8px; height: 8px; left: 25%; bottom: 25%; animation-delay: 2.4s; }
.zs-404-p4 { width: 5px; height: 5px; right: 28%; bottom: 30%; animation-delay: 3.6s; }
.zs-404-p5 { width: 3px; height: 3px; left: 8%; top: 55%; animation-delay: 4.8s; }
.zs-404-p6 { width: 7px; height: 7px; right: 10%; top: 50%; animation-delay: 6s; }

@keyframes zs404float {
    0%   { opacity: 0; transform: translateY(0) scale(.5); }
    20%  { opacity: .6; }
    50%  { opacity: .4; transform: translateY(-40px) scale(1); }
    80%  { opacity: .2; }
    100% { opacity: 0; transform: translateY(-80px) scale(.3); }
}

/* ── Coin wrapper ── */
.zs-404-coin-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

/* ── The coin ── */
.zs-404-coin {
    width: 180px;
    height: 180px;
    position: relative;
    animation: zs404wobble 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(242,209,35,.35));
}

@keyframes zs404wobble {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}

/* Coin edge (thickness illusion) */
.zs-404-coin-edge {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(160deg, #d4a800 0%, #8a6e00 40%, #c9a200 60%, #f2d123 100%);
    box-shadow:
        inset 0 -3px 6px rgba(0,0,0,.3),
        inset 0 3px 6px rgba(255,255,255,.2);
}

/* Coin face */
.zs-404-coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7e36b 0%, #f2d123 35%, #d4a800 70%, #c49900 100%);
    box-shadow:
        inset 0 2px 8px rgba(255,255,255,.5),
        inset 0 -2px 6px rgba(0,0,0,.15);
    overflow: hidden;
}

/* Inner ring engraving */
.zs-404-coin-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.3),
        0 1px 0 rgba(255,255,255,.2);
}

/* 404 number */
.zs-404-coin-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zs-404-coin-num {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: rgba(0,0,0,.18);
    text-shadow:
        0 1px 0 rgba(255,255,255,.4),
        0 -1px 0 rgba(0,0,0,.08);
    letter-spacing: .08em;
    user-select: none;
}

/* Dots around the rim */
.zs-404-coin-dots {
    position: absolute;
    inset: 6px;
}
.zs-404-coin-dots span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    box-shadow: 0 .5px 0 rgba(255,255,255,.25);
    left: 50%;
    top: 50%;
}
.zs-404-coin-dots span:nth-child(1)  { transform: translate(-50%,-50%) rotate(0deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(2)  { transform: translate(-50%,-50%) rotate(30deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(3)  { transform: translate(-50%,-50%) rotate(60deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(4)  { transform: translate(-50%,-50%) rotate(90deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(5)  { transform: translate(-50%,-50%) rotate(120deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(6)  { transform: translate(-50%,-50%) rotate(150deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(7)  { transform: translate(-50%,-50%) rotate(180deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(8)  { transform: translate(-50%,-50%) rotate(210deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(9)  { transform: translate(-50%,-50%) rotate(240deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(10) { transform: translate(-50%,-50%) rotate(270deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(11) { transform: translate(-50%,-50%) rotate(300deg) translateY(-78px); }
.zs-404-coin-dots span:nth-child(12) { transform: translate(-50%,-50%) rotate(330deg) translateY(-78px); }

/* Coin shadow on surface */
.zs-404-shadow {
    width: 140px;
    height: 16px;
    margin: 8px auto 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.15) 0%, transparent 70%);
    animation: zs404shadowPulse 4s ease-in-out infinite;
}
@keyframes zs404shadowPulse {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50%      { transform: scaleX(.8); opacity: .6; }
}

/* ── Mascot peeking from bottom-right of coin ── */
.zs-404-mascot {
    position: relative;
    margin-top: -2rem;
    margin-left: 6rem;
    animation: zs404peek 3s ease-in-out infinite;
}
.zs-404-mascot img {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.zs-404-mascot-bubble {
    position: absolute;
    top: -8px;
    right: -20px;
    background: var(--bs-secondary);
    color: #1a1a2e;
    font-weight: 800;
    font-size: .75rem;
    padding: 3px 7px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    animation: zs404bubblePop 2s ease-in-out infinite;
}
@keyframes zs404peek {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30%      { transform: translateY(-4px) rotate(-5deg); }
    60%      { transform: translateY(-2px) rotate(3deg); }
}
@keyframes zs404bubblePop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

/* ── Typography ── */
.zs-404-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin: 1rem 0 .5rem;
    letter-spacing: -.01em;
}
.zs-404-text {
    font-size: .95rem;
    color: #6c757d;
    max-width: 420px;
    line-height: 1.7;
    margin: 0 auto 2rem;
}

/* ── Buttons ── */
.zs-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.zs-404-btn {
    border-radius: 50px !important;
    padding: .6rem 1.6rem !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.zs-404-btn:hover {
    transform: translateY(-2px);
}

/* ── Dark theme ── */
[data-theme="dark"] .zs-404-title { color: #e9ecef; }
[data-theme="dark"] .zs-404-text { color: #9ca3af; }
[data-theme="dark"] .zs-404-shadow {
    background: radial-gradient(ellipse, rgba(242,209,35,.08) 0%, transparent 70%);
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .zs-404 { min-height: 60vh; padding: 2rem 1rem; }
    .zs-404-coin { width: 140px; height: 140px; }
    .zs-404-coin-num { font-size: 3rem; }
    .zs-404-coin-ring { inset: 10px; }
    .zs-404-coin-dots span { display: none; }
    .zs-404-shadow { width: 110px; }
    .zs-404-mascot { margin-left: 4rem; }
    .zs-404-mascot img { width: 44px; height: 44px; }
    .zs-404-title { font-size: 1.4rem; }
    .zs-404-text { font-size: .88rem; }
    .zs-404-actions { flex-direction: column; width: 100%; padding: 0 1rem; }
    .zs-404-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   403 PAGE — Locked Vault
   ═══════════════════════════════════════════════════ */
.zs-403 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}

/* ── Subtle scan-line overlay (vault feel) ── */
.zs-403-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(220,38,38,.015) 3px,
        rgba(220,38,38,.015) 4px
    );
    z-index: 0;
}

/* ── Floating X / lock particles ── */
.zs-403-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.zs-403-particle {
    position: absolute;
    opacity: 0;
    color: rgba(220,38,38,.25);
    font-size: .7rem;
    animation: zs403drift 10s ease-in-out infinite;
}
.zs-403-xp1 { left: 10%; top: 18%; animation-delay: 0s; }
.zs-403-xp2 { right: 14%; top: 22%; animation-delay: 2s; }
.zs-403-xp3 { left: 22%; bottom: 20%; animation-delay: 4s; }
.zs-403-xp4 { right: 25%; bottom: 28%; animation-delay: 6s; font-size: .8rem; color: rgba(242,209,35,.2); }
.zs-403-xp5 { left: 6%; top: 50%; animation-delay: 8s; font-size: .8rem; color: rgba(242,209,35,.2); }

@keyframes zs403drift {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(.6); }
    25%  { opacity: .5; }
    50%  { opacity: .3; transform: translateY(-30px) rotate(90deg) scale(1); }
    75%  { opacity: .15; }
    100% { opacity: 0; transform: translateY(-60px) rotate(180deg) scale(.4); }
}

/* ── Lock wrapper ── */
.zs-403-lock-wrap {
    position: relative;
    margin-bottom: .5rem;
    z-index: 1;
    animation: zs403shake 4s ease-in-out infinite;
}
@keyframes zs403shake {
    0%, 30%, 100% { transform: rotate(0deg); }
    4%  { transform: rotate(-4deg); }
    8%  { transform: rotate(4deg); }
    12% { transform: rotate(-3deg); }
    16% { transform: rotate(2deg); }
    20% { transform: rotate(-1deg); }
    24% { transform: rotate(0deg); }
}

/* ── Shackle (U-shape on top) ── */
.zs-403-shackle {
    width: 80px;
    height: 50px;
    margin: 0 auto -6px;
    border: 8px solid #8b8b8b;
    border-bottom: none;
    border-radius: 44px 44px 0 0;
    position: relative;
    background: linear-gradient(180deg, #b0b0b0 0%, #888 100%);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.4),
        0 -2px 8px rgba(0,0,0,.15);
}
.zs-403-shackle-inner {
    position: absolute;
    inset: 0 8px;
    top: 8px;
    border-radius: 30px 30px 0 0;
    background: var(--bs-body-bg, #fff);
}

/* ── Lock body ── */
.zs-403-lock-body {
    width: 140px;
    height: 110px;
    margin: 0 auto;
    background: linear-gradient(165deg, #9a9a9a 0%, #6b6b6b 40%, #555 100%);
    border-radius: 12px;
    position: relative;
    box-shadow:
        inset 0 2px 6px rgba(255,255,255,.25),
        inset 0 -3px 8px rgba(0,0,0,.3),
        0 8px 24px rgba(0,0,0,.2);
}

/* ── Rivets ── */
.zs-403-rivet {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ccc 0%, #777 100%);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.5),
        0 1px 2px rgba(0,0,0,.3);
}
.zs-403-rivet-tl { top: 10px; left: 10px; }
.zs-403-rivet-tr { top: 10px; right: 10px; }
.zs-403-rivet-bl { bottom: 10px; left: 10px; }
.zs-403-rivet-br { bottom: 10px; right: 10px; }

/* ── Keyhole (coin-shaped) ── */
.zs-403-keyhole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zs-403-keyhole-coin {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7e36b 0%, #f2d123 40%, #d4a800 100%);
    border: 3px solid rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.5),
        inset 0 -2px 4px rgba(0,0,0,.15),
        0 0 12px rgba(242,209,35,.4);
    animation: zs403glow 2s ease-in-out infinite;
}
.zs-403-keyhole-coin span {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0,0,0,.2);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
    user-select: none;
}
.zs-403-keyhole-slot {
    width: 8px;
    height: 18px;
    background: rgba(0,0,0,.5);
    border-radius: 0 0 4px 4px;
    margin-top: -2px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
@keyframes zs403glow {
    0%, 100% { box-shadow: inset 0 2px 4px rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.15), 0 0 12px rgba(242,209,35,.3); }
    50%      { box-shadow: inset 0 2px 4px rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.15), 0 0 24px rgba(242,209,35,.5); }
}

/* ── Lock shadow ── */
.zs-403-shadow {
    width: 120px;
    height: 14px;
    margin: 10px auto 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.12) 0%, transparent 70%);
}

/* ── Mascot as guard ── */
.zs-403-mascot {
    position: relative;
    margin-top: -.5rem;
    margin-left: 7rem;
    z-index: 2;
    animation: zs403guard 3s ease-in-out infinite;
}
.zs-403-mascot img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.zs-403-mascot-badge {
    position: absolute;
    top: -4px;
    right: -12px;
    background: #dc2626;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    box-shadow: 0 2px 6px rgba(220,38,38,.4);
    animation: zs403badgePulse 2s ease-in-out infinite;
}
@keyframes zs403guard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40%      { transform: translateY(-3px) rotate(-4deg); }
    70%      { transform: translateY(-1px) rotate(2deg); }
}
@keyframes zs403badgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}

/* ── Typography ── */
.zs-403-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #dc2626;
    margin: 1rem 0 .5rem;
    letter-spacing: -.01em;
}
.zs-403-text {
    font-size: .95rem;
    color: #6c757d;
    max-width: 420px;
    line-height: 1.7;
    margin: 0 auto 1.5rem;
}

/* ── Reason box ── */
.zs-403-reasons {
    background: rgba(220,38,38,.04);
    border: 1px solid rgba(220,38,38,.12);
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 14px 18px;
    max-width: 400px;
    text-align: left;
    margin: 0 auto 2rem;
}
.zs-403-reasons-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .85rem;
    color: #dc2626;
    margin-bottom: 8px;
}
.zs-403-reasons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.zs-403-reasons li {
    font-size: .85rem;
    color: #6c757d;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.zs-403-reasons li::before {
    content: '\2022';
    color: #dc2626;
    font-weight: 700;
}

/* ── Buttons ── */
.zs-403-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.zs-403-btn {
    border-radius: 50px !important;
    padding: .6rem 1.6rem !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.zs-403-btn:hover {
    transform: translateY(-2px);
}

/* ── Contact link ── */
.zs-403-contact {
    margin-top: 1.5rem;
    font-size: .85rem;
    color: #9ca3af;
}
.zs-403-contact a {
    color: var(--bs-secondary);
    font-weight: 600;
    text-decoration: none;
}
.zs-403-contact a:hover {
    text-decoration: underline;
}

/* ── Dark theme ── */
[data-theme="dark"] .zs-403-title { color: #f87171; }
[data-theme="dark"] .zs-403-text { color: #9ca3af; }
[data-theme="dark"] .zs-403-reasons {
    background: rgba(220,38,38,.06);
    border-color: rgba(220,38,38,.15);
}
[data-theme="dark"] .zs-403-reasons li { color: #9ca3af; }
[data-theme="dark"] .zs-403-shackle-inner { background: var(--bs-body-bg, #1e1e2f); }
[data-theme="dark"] .zs-403-shadow {
    background: radial-gradient(ellipse, rgba(220,38,38,.06) 0%, transparent 70%);
}
[data-theme="dark"] .zs-403-contact { color: #6b7280; }

/* ── Responsive ── */
@media (max-width: 575.98px) {
    .zs-403 { min-height: 60vh; padding: 2rem 1rem; }
    .zs-403-lock-body { width: 110px; height: 88px; }
    .zs-403-shackle { width: 64px; height: 40px; }
    .zs-403-keyhole-coin { width: 40px; height: 40px; }
    .zs-403-keyhole-coin span { font-size: .85rem; }
    .zs-403-keyhole-slot { width: 6px; height: 14px; }
    .zs-403-mascot { margin-left: 5rem; }
    .zs-403-mascot img { width: 40px; height: 40px; }
    .zs-403-title { font-size: 1.4rem; }
    .zs-403-text { font-size: .88rem; }
    .zs-403-reasons { margin-left: 1rem; margin-right: 1rem; }
    .zs-403-actions { flex-direction: column; width: 100%; padding: 0 1rem; }
    .zs-403-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   SHARE MODAL
   ═══════════════════════════════════════════════════ */
.zs-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.zs-share-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.zs-share-card:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    text-decoration: none;
}
.zs-share-card:active { transform: translateY(-1px); }
.zs-share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform .2s ease, background .2s ease;
}
.zs-share-card:hover .zs-share-icon { transform: scale(1.1); }
.zs-share-whatsapp { background: #25D366; color: #fff; }
.zs-share-facebook { background: #1877F2; color: #fff; }
.zs-share-twitter { background: #000; color: #fff; }
.zs-share-copy { background: #6b7280; color: #fff; }
.zs-share-copied { background: #16a34a !important; }
.zs-share-card:hover .zs-share-whatsapp { background: #1ebe5d; }
.zs-share-card:hover .zs-share-facebook { background: #0d65d9; }
.zs-share-card:hover .zs-share-twitter { background: #333; }
.zs-share-card:hover .zs-share-copy { background: #4b5563; }
.zs-share-name {
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
}
[data-theme="dark"] .zs-share-card {
    background: #1f2937;
    border-color: #374151;
}
[data-theme="dark"] .zs-share-card:hover {
    border-color: #4b5563;
    background: #283548;
}
[data-theme="dark"] .zs-share-name { color: #d1d5db; }
@media (max-width: 575.98px) {
    .zs-share-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   STATS + SEO BANNER
   ═══════════════════════════════════════════════════ */
.zs-stats-banner {
    overflow: hidden;
    border-radius: 0;
}
.zs-stats-banner-inner {
    position: relative;
    background: rgba(242,209,35,.08);
    padding: 2.5rem 2rem 2.5rem 160px;
    overflow: hidden;
}

/* ── Mascot (dragon hanging from top) ── */
.zs-stats-mascot {
    position: absolute;
    left: 16px;
    top: 0;
    height: 160px;
    width: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.zs-stats-mascot.zs-mascot-visible {
    opacity: .9;
    transform: translateY(0);
}

/* ── Decorative floating coins ── */
.zs-stats-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.zs-stats-coin {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(242,209,35,.12);
    background: rgba(242,209,35,.05);
}
.zs-stats-coin-1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: -20px;
    animation: zs404wobble 8s ease-in-out infinite;
}
.zs-stats-coin-2 {
    width: 60px;
    height: 60px;
    bottom: -15px;
    left: 8%;
    animation: zs404wobble 10s ease-in-out infinite reverse;
}
.zs-stats-coin-3 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 35%;
    border-style: dashed;
    animation: zs404wobble 12s ease-in-out infinite;
}

/* ── SEO headline ── */
.zs-stats-headline {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2rem;
}
.zs-stats-headline h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a3f10;
    margin-bottom: .6rem;
    line-height: 1.3;
}
.zs-stats-headline p {
    font-size: .88rem;
    color: #6b6020;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Counters row ── */
.zs-stats-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.zs-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    min-width: 120px;
}
.zs-stats-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bs-secondary);
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(var(--zs-home-gold-rgb), .3);
}
.zs-stats-label {
    font-size: .75rem;
    color: #7a7030;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
    white-space: nowrap;
}
.zs-stats-sep {
    width: 1px;
    height: 40px;
    background: rgba(242,209,35,.2);
    flex-shrink: 0;
}

/* ── Tags row (SEO keywords) ── */
.zs-stats-tags {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}
.zs-stats-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: #6b6020;
    background: rgba(242,209,35,.06);
    border: 1px solid rgba(242,209,35,.18);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    cursor: default;
    transition: background .2s ease, color .2s ease;
}
.zs-stats-tag:hover {
    background: rgba(242,209,35,.15);
    color: #4a3f10;
    border-color: rgba(242,209,35,.3);
}
.zs-stats-tag i {
    font-size: .65rem;
    color: #b8a020;
    opacity: .7;
}

/* ── Dark theme ── */
[data-theme="dark"] .zs-stats-banner-inner { background: rgba(242,209,35,.05); }
[data-theme="dark"] .zs-stats-headline h2 { color: #f0e0a0; }
[data-theme="dark"] .zs-stats-headline p { color: rgba(255,255,255,.5); }
[data-theme="dark"] .zs-stats-label { color: rgba(255,255,255,.45); }
[data-theme="dark"] .zs-stats-sep { background: rgba(242,209,35,.12); }
[data-theme="dark"] .zs-stats-tag { color: rgba(255,255,255,.45); background: rgba(242,209,35,.06); border-color: rgba(242,209,35,.1); }
[data-theme="dark"] .zs-stats-tag:hover { color: rgba(255,255,255,.7); background: rgba(242,209,35,.12); border-color: rgba(242,209,35,.18); }
[data-theme="dark"] .zs-stats-coin { border-color: rgba(242,209,35,.08); background: rgba(242,209,35,.03); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .zs-stats-mascot { height: 130px; left: 10px; }
    .zs-stats-banner-inner { padding-left: 140px; }
}
@media (max-width: 767.98px) {
    .zs-stats-mascot { display: none; }
    .zs-stats-banner-inner { padding: 2rem 1.2rem; }
    .zs-stats-headline h2 { font-size: 1.2rem; }
    .zs-stats-headline p { font-size: .82rem; }
    .zs-stats-banner-content { gap: 4px; }
    .zs-stats-item { padding: 8px 1rem; min-width: 0; flex: 1 1 40%; }
    .zs-stats-num { font-size: 1.6rem; }
    .zs-stats-label { font-size: .65rem; }
    .zs-stats-sep { display: none; }
    .zs-stats-tags { gap: 6px; }
    .zs-stats-tag { font-size: .65rem; padding: 3px 8px; }
}

/* ===== Welcome Modal ===== */
#welcomeModal .modal-content { display: flex; flex-direction: column; max-height: 85vh; }
#welcomeModal .wm-modal-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.welcome-members-list { /* no max-height — body scrolls */ }
.welcome-member-card { cursor: pointer; transition: background .15s; border-bottom: 1px solid rgba(0,0,0,.06); }
.welcome-member-card:last-child { border-bottom: none; }
.welcome-member-card:hover { background: rgba(25,135,84,.04); }
.welcome-avatar-sm { width: 48px; height: 48px; flex-shrink: 0; }
.welcome-comments-section { flex-shrink: 0; }
.welcome-comments-section #wm-comments-list { max-height: 18vh; overflow-y: auto; }
#welcomeModal .modal-header.bg-dark { background: linear-gradient(135deg, #1a1a2e 0%, #2a2a44 100%) !important; }
/* Flag SVG */
.wm-flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: text-bottom; margin-right: 4px; }
.wm-comment-ce {
    min-height: 36px; max-height: 100px; overflow-y: auto;
    padding: 6px 60px 6px 10px;
    border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
    font-size: .875rem; line-height: 1.4;
    outline: none; word-break: break-word;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}
.wm-comment-ce:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
.wm-comment-ce:empty::before { content: attr(data-placeholder); color: #adb5bd; pointer-events: none; }
.wm-input-actions {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: flex; gap: 4px; align-items: center;
}
.wm-input-actions .btn { font-size: 1rem; line-height: 1; }
.wm-send-btn { height: 36px; width: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.wm-predefined-dropdown {
    position: absolute; bottom: 100%; left: 0; right: 0;
    background: var(--bs-body-bg, #fff); border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px 8px 0 0; box-shadow: 0 -4px 12px rgba(0,0,0,.08);
    z-index: 10; max-height: 180px; overflow-y: auto;
}
.wm-predefined-item {
    padding: 8px 12px; cursor: pointer; font-size: .85rem;
    border-bottom: 1px solid rgba(0,0,0,.04); transition: background .1s;
}
.wm-predefined-item:last-child { border-bottom: none; }
.wm-predefined-item:hover { background: rgba(25,135,84,.06); }
.wm-image-preview { position: relative; display: inline-block; margin-bottom: 8px; }
.wm-image-preview img { max-height: 120px; max-width: 100%; border-radius: 8px; object-fit: cover; }
.wm-remove-img {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; cursor: pointer;
}
.wm-remove-img:hover { background: rgba(220,53,69,.9); }
.wm-comment-img { max-height: 150px; max-width: 240px; cursor: pointer; border-radius: 8px; }
/* Gold buttons (#f2d123) */
.wm-follow-btn.wm-not-followed { background: #f2d123; color: #1a1a2e; border: 1px solid #f2d123; }
.wm-follow-btn.wm-not-followed:hover { background: #e5c410; border-color: #e5c410; }
.wm-follow-btn.wm-followed { background: transparent; color: #adb5bd; border: 1px solid #adb5bd; }
.wm-follow-btn.wm-followed:hover { border-color: #6c757d; color: #6c757d; }
.wm-btn-gold { background: #f2d123; color: #1a1a2e; border: 1px solid #f2d123; font-weight: 600; }
.wm-btn-gold:hover { background: #e5c410; border-color: #e5c410; color: #1a1a2e; }
/* Badges */
.wm-badge { font-size: .65rem; font-weight: 500; padding: 1px 6px; }
/* Image lightbox overlay */
.wm-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center;
    cursor: zoom-out; animation: wmFadeIn .15s ease;
}
.wm-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
@keyframes wmFadeIn { from { opacity: 0 } to { opacity: 1 } }
/* Dark theme */
[data-theme="dark"] .welcome-member-card { border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .welcome-member-card:hover { background: rgba(242,209,35,.06); }
[data-theme="dark"] .wm-comment-ce { border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .wm-predefined-dropdown { background: #1e1e2e; border-color: rgba(255,255,255,.1); box-shadow: 0 -4px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .wm-predefined-item:hover { background: rgba(242,209,35,.1); }
[data-theme="dark"] .wm-predefined-item { border-bottom-color: rgba(255,255,255,.05); }

/* ================================================
   SETTINGS REDESIGN
   ================================================ */
.zs-settings { max-width: 680px; margin: 0 auto; }
.zs-settings-header {
    margin-bottom: 2rem; padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}
.zs-settings-header h1 {
    font-size: 1.5rem; font-weight: 700; margin: 0 0 .35rem;
    display: flex; align-items: center; gap: .6rem;
}
.zs-settings-header h1 .zs-sh-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 70%, #000));
    color: #fff; box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), .25);
}
.zs-settings-header .zs-sh-desc {
    font-size: .85rem; color: var(--bs-secondary-color); margin: 0;
}

/* Section block */
.zs-stg-section {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px; padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: box-shadow .2s;
}
.zs-stg-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.zs-stg-section-title {
    font-size: .8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--bs-secondary-color);
    margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.zs-stg-section-title i { font-size: .9rem; opacity: .6; }

/* Form rows */
.zs-stg-row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 50%, transparent);
}
.zs-stg-row:last-child { border-bottom: none; padding-bottom: 0; }
.zs-stg-row:first-child { padding-top: 0; }
.zs-stg-row-label {
    flex: 0 0 140px; font-size: .82rem; font-weight: 500;
    padding-top: .45rem; color: var(--bs-body-color);
}
.zs-stg-row-field { flex: 1; min-width: 0; }

@media (max-width: 576px) {
    .zs-stg-row { flex-direction: column; gap: .25rem; }
    .zs-stg-row-label { flex: none; padding-top: 0; }
}

/* Save button */
.zs-stg-save {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.6rem; border-radius: 10px; border: none;
    font-weight: 600; font-size: .85rem;
    background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 75%, #000));
    color: #fff; cursor: pointer;
    box-shadow: 0 2px 10px rgba(var(--bs-primary-rgb), .25);
    transition: transform .15s, box-shadow .15s;
}
.zs-stg-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), .35);
    color: #fff;
}

/* Toggle switch refined */
.zs-stg-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 50%, transparent);
}
.zs-stg-toggle:last-child { border-bottom: none; }
.zs-stg-toggle-info { flex: 1; }
.zs-stg-toggle-label { font-size: .85rem; font-weight: 500; margin: 0; }
.zs-stg-toggle-desc { font-size: .78rem; color: var(--bs-secondary-color); margin: .15rem 0 0; }

/* Pill chips for interests */
.zs-stg-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.zs-stg-chip {
    position: relative; cursor: pointer;
}
.zs-stg-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.zs-stg-chip span {
    display: inline-block; padding: .35rem .85rem;
    border-radius: 50px; font-size: .78rem; font-weight: 500;
    border: 1.5px solid var(--bs-border-color);
    background: var(--bs-body-bg); color: var(--bs-body-color);
    transition: all .15s; user-select: none;
}
.zs-stg-chip input:checked + span {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), .3);
}
.zs-stg-chip:hover span { border-color: var(--bs-primary); }

/* Theme cards */
.zs-stg-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (max-width: 420px) { .zs-stg-themes { grid-template-columns: 1fr; } }
.zs-stg-theme-card {
    border: 2px solid var(--bs-border-color); border-radius: 12px;
    padding: 1rem; cursor: pointer; transition: all .2s; text-align: center;
    background: var(--bs-body-bg);
}
.zs-stg-theme-card:hover { border-color: var(--bs-primary); }
.zs-stg-theme-card.active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .15);
}
.zs-stg-theme-preview {
    width: 100%; height: 56px; border-radius: 8px; margin-bottom: .6rem;
}
.zs-stg-theme-preview-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #fff 100%);
    border: 1px solid #dee2e6;
}
.zs-stg-theme-preview-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 1px solid #2d2d44;
}
.zs-stg-theme-name { font-size: .82rem; font-weight: 600; }

/* Avatar redesign */
.zs-stg-avatar-zone {
    display: flex; align-items: center; gap: 1.25rem;
}
.zs-stg-avatar-ring {
    position: relative; width: 88px; height: 88px; flex-shrink: 0;
    border-radius: 50%; overflow: hidden; cursor: pointer;
    border: 3px solid var(--bs-border-color);
    transition: border-color .2s;
}
.zs-stg-avatar-ring:hover { border-color: var(--bs-primary); }
.zs-stg-avatar-actions { display: flex; flex-direction: column; gap: .4rem; }
.zs-stg-avatar-actions .btn { border-radius: 8px; font-size: .8rem; }

/* Danger zone */
.zs-stg-danger {
    border-color: var(--bs-danger) !important;
    background: color-mix(in srgb, var(--bs-danger) 3%, var(--bs-body-bg));
}
.zs-stg-danger-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1.4rem; border-radius: 10px;
    font-weight: 600; font-size: .85rem;
    border: 2px solid var(--bs-danger); background: transparent;
    color: var(--bs-danger); cursor: pointer; transition: all .15s;
}
.zs-stg-danger-btn:hover {
    background: var(--bs-danger); color: #fff;
}

/* Social link input group */
.zs-stg-social-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 0;
}
.zs-stg-social-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0;
    background: var(--bs-tertiary-bg); color: var(--bs-secondary-color);
}
.zs-stg-social-row .form-control { border-radius: 8px; }

/* Password strength hints */
.zs-stg-pw-hint {
    font-size: .75rem; color: var(--bs-secondary-color);
    margin-top: .25rem;
}

/* Dark theme overrides */
[data-theme="dark"] .zs-stg-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
[data-theme="dark"] .zs-stg-theme-preview-light { border-color: #444; }
[data-theme="dark"] .zs-stg-danger { background: color-mix(in srgb, var(--bs-danger) 5%, var(--bs-body-bg)); }
