/* Visual mobile separado: o desktop continua no CSS principal do acervo.html. */

:root {
  --mobile-gap: 12px;
  --mobile-radius: 20px;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-size: 15px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.wrap {
  width: calc(100% - 24px) !important;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(5, 13, 21, .88) !important;
  border-bottom-color: rgba(138, 255, 194, .14);
}

.header-inner {
  min-height: 64px;
  gap: 8px;
}

.header .brand {
  gap: 9px;
  min-width: 0;
}

.header .brand-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px;
  flex: 0 0 40px;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  font-size: .92rem;
  white-space: nowrap;
}

.brand-text span {
  font-size: .58rem;
  letter-spacing: .1em;
  white-space: nowrap;
}

.header .nav-links {
  display: none !important;
}

.nav-actions {
  gap: 7px;
  min-width: 0;
}

.language-switch {
  max-width: 112px !important;
  min-width: 92px !important;
  height: 34px !important;
  padding: 0 8px !important;
  font-size: .7rem;
}

.header .theme-switch {
  width: 50px;
  height: 38px;
  min-height: 38px;
  padding: 4px;
}

.header .theme-switch .switch-bg {
  display: none;
}

.switch-thumb {
  width: 30px;
  height: 30px;
  transform: translateX(0) !important;
}

.nav-actions .btn.discord,
.nav-actions .btn.danger {
  display: none !important;
}

.user-chip {
  max-width: 138px;
  padding: 7px 9px;
  gap: 8px;
  border-radius: 999px;
}

.user-chip .avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.user-chip b,
.user-chip small {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sky-scene .moon,
.sky-scene .sun {
  width: 58px !important;
  height: 58px !important;
  right: 18px !important;
  top: 24px !important;
}

section {
  padding-top: 28px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2,
h2 {
  font-size: clamp(2rem, 12vw, 2.7rem) !important;
  line-height: .98;
}

h1 {
  font-size: clamp(2.45rem, 13vw, 3.25rem) !important;
  line-height: .98;
}

.section-head p,
.hero p {
  font-size: .98rem;
  line-height: 1.65;
}

.hero {
  min-height: auto;
  padding: 34px 0 88px;
}

.hero-grid,
.dashboard,
.profile-layout {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: var(--mobile-gap);
}

.hero-panel,
.archive-stats-card {
  display: none;
}

.hero-actions {
  display: grid;
  gap: 10px;
}

.hero-actions .btn,
.btn,
button,
input,
textarea,
select {
  min-height: 46px;
}

.btn {
  border-radius: 999px;
  justify-content: center;
}

.tools {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
  padding: 10px;
  border-radius: var(--mobile-radius);
  margin-bottom: 12px;
}

input,
textarea,
select {
  border-radius: 15px;
  font-size: 16px;
}

.filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  padding: 9px 13px;
}

.file-grid,
.mission-grid,
.activity-grid,
.form-row,
.detail-gallery.multi {
  grid-template-columns: 1fr !important;
}

.file-card,
.panel,
.empty-state,
.locked-state {
  border-radius: var(--mobile-radius);
  padding: 14px;
  box-shadow: 0 16px 42px rgba(0,0,0,.2);
}

.file-card {
  contain-intrinsic-size: 330px;
}

.file-preview {
  border-radius: 17px;
}

.file-card h3 {
  font-size: 1rem;
}

.file-card p {
  font-size: .9rem;
}

.file-meta {
  gap: 6px;
}

.file-meta span {
  font-size: .72rem;
}

.file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.file-actions .btn {
  width: 100%;
}

.dashboard {
  padding-bottom: 34px;
}

.account {
  border-radius: 18px;
  padding: 12px;
}

.account .avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.note,
.account-settings {
  border-radius: 17px;
}

.dropzone {
  min-height: 178px;
  border-radius: var(--mobile-radius);
  padding: 18px 14px;
}

.dropzone .big {
  font-size: 1.8rem;
}

.dropzone p {
  font-size: .9rem;
}

.selected-file.show {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.selected-file .btn {
  width: 100%;
}

.my-post-item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
}

.my-post-thumb {
  width: 58px;
  border-radius: 14px;
}

.my-post-item > div:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-page {
  padding-bottom: 48px;
}

.profile-summary {
  grid-template-columns: auto minmax(0, 1fr);
  border-radius: 18px;
}

.profile-summary .avatar,
.profile-summary .mini-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.profile-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  flex: 0 0 auto;
}

.activity-list {
  max-height: 58vh;
}

.activity-person,
.attachment-row {
  align-items: flex-start;
}

.attachment-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
}

.attachment-thumb {
  width: 48px;
  height: 48px;
}

.attachment-copy strong {
  font-size: .88rem;
}

.attachment-copy span {
  font-size: .72rem;
}

.attachment-download {
  min-width: 72px;
  padding-inline: 10px;
}

.attachment-group summary {
  min-height: 50px;
  padding: 10px 12px;
}

.attachment-group-list {
  padding: 8px;
}

.modal-backdrop {
  align-items: end;
  padding: 0;
}

.modal {
  width: 100%;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  padding: 14px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.modal-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  padding: 10px 0;
  background: var(--panel-2);
}

body.account-page .post-detail-head {
  position: relative;
  top: auto;
  z-index: auto;
  padding: 5px 0 0;
  background: transparent;
}

.detail-gallery {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.detail-gallery-main .detail-preview {
  height: clamp(220px, 42vh, 340px);
  max-height: 42vh;
  border-radius: 17px;
}

.detail-gallery-main .detail-preview img,
.detail-gallery-main .detail-preview video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 17px;
  object-fit: contain;
}

.detail-gallery-thumbs {
  gap: 8px;
  max-width: 100%;
  touch-action: pan-x;
}

.detail-gallery-thumb {
  flex-basis: 76px;
  width: 76px;
  height: 60px;
  border-radius: 11px;
}

.reaction-row,
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comment-form input {
  grid-column: 1 / -1;
}

.toast {
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.toast-item {
  width: 100%;
  border-radius: 18px;
}

.user-rain {
  display: none;
}

footer {
  padding-bottom: 70px;
}

/* Landing mobile premium */
@media (max-width: 768px) {
  body.landing-page {
    --landing-card: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
    background: #07131f;
    color: #f3f9ff;
  }

  body.landing-page img,
  body.landing-page svg {
    max-width: 100%;
    height: auto;
  }

  body.landing-page .container {
    width: min(100% - 40px, 1180px) !important;
  }

  body.landing-page .global-bg {
    position: fixed;
  }

  body.landing-page .grid-overlay {
    opacity: .24;
    background-size: 64px 64px;
  }

  body.landing-page .stars {
    opacity: .34;
    background-size: 420px 420px;
  }

  body.landing-page .moon,
  body.landing-page .sun {
    width: 70px !important;
    height: 70px !important;
    top: 96px !important;
    right: 20px !important;
    opacity: .38;
  }

  body.landing-page .orb {
    display: none !important;
  }

  body.landing-page .btn {
    min-height: 58px;
    height: 58px;
    padding: 0 18px;
    border-radius: 20px;
    font-size: .96rem;
    letter-spacing: 0;
    text-align: center;
  }

  body.landing-page .header {
    background: rgba(5, 12, 20, .92) !important;
    border-bottom-color: rgba(151, 255, 205, .13);
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  body.landing-page .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    min-height: 66px;
    gap: 12px;
    padding: 9px 0;
    position: relative;
  }

  body.landing-page .brand {
    width: fit-content;
    min-width: 0;
    gap: 10px;
  }

  body.landing-page .brand-mark {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px;
    border-radius: 14px;
  }

  body.landing-page .brand-text strong {
    font-size: 1rem;
    letter-spacing: 0;
  }

  body.landing-page .brand-text span {
    display: none !important;
  }

  body.landing-page .mobile-menu-toggle {
    position: relative;
    z-index: 3;
    display: inline-grid;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(151, 255, 205, .22);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(24, 55, 60, .96), rgba(9, 27, 38, .96));
    color: #f3f9ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .08);
    cursor: pointer;
  }

  body.landing-page .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .18s ease;
  }

  body.landing-page .header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.landing-page .header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.landing-page .header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.landing-page .actions {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    z-index: 2;
    width: 100vw;
    display: grid !important;
    grid-template-columns: minmax(104px, 116px) minmax(0, 156px);
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 14px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
    border: 0;
    border-bottom: 1px solid rgba(151, 255, 205, .18);
    border-radius: 0 0 24px 24px;
    background: linear-gradient(155deg, rgba(10, 29, 40, .98), rgba(5, 16, 27, .98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transform-origin: top center;
    transition: none;
  }

  body.landing-page .header.menu-open .actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  body.landing-page .theme-switch {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px;
    padding: 5px;
    border-radius: 18px;
  }

  body.landing-page .theme-switch .switch-bg {
    display: block !important;
  }

  body.landing-page .switch-thumb {
    width: 34px;
    height: 34px;
    transform: translateX(0) !important;
    transition: none;
  }

  body.landing-page.light .theme-switch .switch-thumb {
    transform: translateX(70px) !important;
  }

  body.landing-page .language-switch {
    width: 100%;
    max-width: 156px !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px;
    padding: 0 10px !important;
    border-radius: 18px;
    font-size: .78rem;
    letter-spacing: 0;
  }

  body.landing-page .actions > .btn:not(.btn-discord) {
    grid-column: 1 / -1;
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: .82rem;
  }

  body.landing-page .actions > .btn-discord {
    grid-column: 1 / -1;
    width: 100%;
    height: 58px;
    min-height: 58px;
    border-radius: 20px;
    font-size: 1rem;
  }

  body.landing-page .hero {
    min-height: auto !important;
    padding: 28px 0 42px !important;
    align-items: flex-start;
  }

  body.landing-page .hero-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body.landing-page .eyebrow {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 9px 12px;
    font-size: .76rem;
    line-height: 1.3;
    letter-spacing: 0;
  }

  body.landing-page .hero h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(2.55rem, 11vw, 3.25rem) !important;
    line-height: 1.04;
    letter-spacing: 0;
  }

  body.landing-page .hero p.lead {
    max-width: 100%;
    margin-bottom: 22px;
    color: #c5d1dd;
    font-size: 1rem;
    line-height: 1.6;
  }

  body.landing-page .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
  }

  body.landing-page .hero-actions .btn {
    width: 100%;
  }

  body.landing-page .mini-trust {
    display: none;
  }

  body.landing-page .hero-ground {
    height: 70px;
  }

  body.landing-page .preview-wrap {
    min-height: 0;
    margin-top: 0;
  }

  body.landing-page .window {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 24px;
    transform: none !important;
    animation: none !important;
    background: var(--landing-card);
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
  }

  body.landing-page .window-top {
    height: 46px;
    padding: 0 14px;
  }

  body.landing-page .window-dots {
    gap: 7px;
  }

  body.landing-page .window-dots i {
    width: 9px;
    height: 9px;
  }

  body.landing-page .window-title {
    max-width: 72%;
    overflow: hidden;
    color: #bfccd9;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.landing-page .window-body {
    padding: 16px;
  }

  body.landing-page .search {
    width: 100%;
    min-height: 48px;
    height: auto;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #b9c7d6;
    font-size: .84rem;
    line-height: 1.35;
  }

  body.landing-page .file-list {
    gap: 10px;
  }

  body.landing-page .file-item {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    min-height: 0;
    gap: 10px;
    padding: 12px !important;
    border-radius: 16px;
    animation: none !important;
  }

  body.landing-page .file-item.preview-extra,
  body.landing-page .upload-preview {
    display: none !important;
  }

  body.landing-page .file-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1rem;
  }

  body.landing-page .file-info strong {
    font-size: .9rem;
    line-height: 1.25;
  }

  body.landing-page .file-info span {
    font-size: .78rem;
    line-height: 1.35;
  }

  body.landing-page .tag {
    padding: 6px 9px;
    font-size: .68rem;
  }

  body.landing-page .ground-section {
    padding: 44px 0 !important;
  }

  body.landing-page #recursos {
    padding-top: 36px !important;
  }

  body.landing-page .section-head {
    margin-bottom: 18px;
  }

  body.landing-page .kicker {
    margin-bottom: 10px;
    font-size: .72rem;
    letter-spacing: .12em;
  }

  body.landing-page h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
    line-height: 1.05;
    letter-spacing: 0;
  }

  body.landing-page .section-head p,
  body.landing-page .feature p,
  body.landing-page .discord-card p,
  body.landing-page .step p,
  body.landing-page .cta p {
    color: #c4cfdb;
  }

  body.landing-page .features {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  body.landing-page .feature,
  body.landing-page .feature.feature-extra {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
    column-gap: 14px;
    align-items: start;
    padding: 18px !important;
    border-radius: 20px;
    background: var(--landing-card);
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
  }

  body.landing-page .feature .icon {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  body.landing-page .feature h3 {
    margin: 1px 0 6px;
    font-size: 1rem;
    letter-spacing: 0;
  }

  body.landing-page .feature p {
    font-size: .9rem;
    line-height: 1.55;
  }

  body.landing-page .steps-wrap {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  body.landing-page .discord-card {
    padding: 22px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
  }

  body.landing-page .discord-badge {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    font-size: 1.35rem;
  }

  body.landing-page .discord-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  body.landing-page .discord-card p {
    margin-bottom: 18px;
    font-size: .98rem;
    line-height: 1.6;
  }

  body.landing-page .discord-card .btn {
    width: 100%;
  }

  body.landing-page .steps {
    gap: 12px;
  }

  body.landing-page .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
  }

  body.landing-page .step-number {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  body.landing-page .step h3 {
    margin-bottom: 4px;
    font-size: .98rem;
  }

  body.landing-page .step p {
    font-size: .88rem;
    line-height: 1.48;
  }

  body.landing-page .cta {
    padding-top: 28px !important;
    padding-bottom: 54px !important;
  }

  body.landing-page .cta-box {
    padding: 24px !important;
    border-radius: 26px;
  }

  body.landing-page .cta-box::after {
    display: none;
  }

  body.landing-page .cta p {
    margin-bottom: 20px;
    font-size: .98rem;
    line-height: 1.6;
  }

  body.landing-page footer {
    overflow: hidden;
    padding: 26px 0 calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg, rgba(5, 13, 20, .96), rgba(5, 18, 17, .98)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.landing-page footer::before,
  body.landing-page footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
  }

  body.landing-page footer::before {
    bottom: 0;
    height: 96px;
    opacity: .5;
    background:
      radial-gradient(80% 72% at 50% 115%, rgba(51,255,153,.22), transparent 62%),
      linear-gradient(180deg, transparent, rgba(41, 104, 68, .34));
  }

  body.landing-page footer::after {
    bottom: 22px;
    height: 46px;
    opacity: .35;
    background-image:
      radial-gradient(circle at 11% 58%, #ff7eb6 0 3px, transparent 3.8px),
      radial-gradient(circle at 24% 38%, #ffd166 0 4px, transparent 4.8px),
      radial-gradient(circle at 42% 64%, #9bf6ff 0 3px, transparent 3.8px),
      radial-gradient(circle at 61% 42%, #fdffb6 0 4px, transparent 4.8px),
      radial-gradient(circle at 80% 60%, #bdb2ff 0 3px, transparent 3.8px);
  }

  body.landing-page .footer-inner {
    display: flex !important;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-2);
    font-size: .9rem;
  }

  body.landing-page .footer-inner > span,
  body.landing-page .footer-links {
    position: relative;
    z-index: 1;
  }

  body.landing-page .footer-inner > span {
    color: inherit;
    font-weight: inherit;
  }

  body.landing-page .footer-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  body.landing-page .footer-links a {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: .9rem;
    font-weight: inherit;
    text-align: left;
  }

  body.landing-page.light footer {
    background: linear-gradient(180deg, rgba(229, 249, 255, .96), rgba(215, 244, 220, .98)) !important;
  }

  body.landing-page.light .footer-links a {
    color: inherit;
    background: transparent;
    border-color: transparent;
  }

  body.landing-page.light .mobile-menu-toggle {
    color: #123649;
    border-color: rgba(20, 87, 105, .2);
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(220, 245, 238, .98));
    box-shadow: 0 10px 24px rgba(26, 86, 99, .14), inset 0 1px #fff;
  }

  body.landing-page.light .actions {
    border-color: rgba(20, 87, 105, .16);
    background: linear-gradient(155deg, rgba(247, 255, 253, .99), rgba(224, 247, 241, .99));
    box-shadow: 0 24px 60px rgba(30, 87, 101, .2), inset 0 1px #fff;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body.landing-page .hero h1 {
    font-size: clamp(3rem, 8vw, 3.8rem) !important;
  }
}

@media (max-width: 480px) {
  body.landing-page .container {
    width: min(100% - 40px, 1180px) !important;
  }

  body.landing-page .actions {
    grid-template-columns: minmax(104px, 116px) minmax(0, 150px);
    gap: 8px;
  }

  body.landing-page .theme-switch {
    width: 100% !important;
  }

  body.landing-page .language-switch {
    font-size: .72rem;
  }

  body.landing-page .actions > .btn:not(.btn-discord) {
    padding: 0 9px;
    font-size: .76rem;
  }

  body.landing-page .eyebrow {
    font-size: .72rem;
  }

  body.landing-page .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.25rem) !important;
  }

  body.landing-page .file-item {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body.landing-page .file-item .tag {
    grid-column: 2;
    width: fit-content;
  }
}

/* Cabeçalho compacto da área logada */
body.account-page .header-inner {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px 0;
  position: relative;
}

body.account-page .nav-actions {
  width: auto;
  min-width: 0;
  gap: 0;
  flex-wrap: nowrap;
}

body.account-page .notification-wrap {
  margin-right: 10px;
}

body.account-page .notification-panel {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100vw;
  box-sizing: border-box;
  max-height: min(68vh, 520px);
  margin: 0;
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  border: 0;
  border-bottom: 1px solid rgba(151, 255, 205, .18);
  border-radius: 0 0 24px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(155deg, rgba(10, 29, 40, .99), rgba(5, 16, 27, .99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .07);
}

body.account-page .user-chip {
  width: auto;
  height: 44px;
  max-width: 96px;
  padding: 4px 8px 4px 4px;
  gap: 7px;
  border-right: 0;
  border-radius: 15px 0 0 15px;
  flex: 0 1 auto;
  background: linear-gradient(145deg, rgba(24, 55, 60, .96), rgba(9, 27, 38, .96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .08);
}

body.account-page .user-chip > div:last-child {
  display: block;
  min-width: 0;
}

body.account-page .user-chip b {
  display: block;
  max-width: 42px;
  overflow: hidden;
  color: var(--text);
  font-size: .72rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.account-page .user-chip small {
  display: none;
}

body.account-page .user-chip .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

body.account-page .notification-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

body.account-page .account-menu-toggle {
  position: relative;
  z-index: 5;
  display: inline-grid;
  width: 42px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(151, 255, 205, .22);
  border-radius: 0 15px 15px 0;
  background: linear-gradient(145deg, rgba(24, 55, 60, .96), rgba(9, 27, 38, .96));
  color: #f3f9ff;
  box-shadow: 8px 10px 24px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .08);
  cursor: pointer;
}

body.account-page .account-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}

body.account-page .header.account-menu-open .account-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.account-page .header.account-menu-open .account-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.account-page .header.account-menu-open .account-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.account-page .account-mobile-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  z-index: 4;
  width: 100vw;
  display: grid !important;
  grid-template-columns: minmax(104px, 116px) minmax(0, 150px);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  border: 0;
  border-bottom: 1px solid rgba(151, 255, 205, .18);
  border-radius: 0 0 24px 24px;
  background: linear-gradient(155deg, rgba(10, 29, 40, .98), rgba(5, 16, 27, .98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .44), inset 0 1px rgba(255, 255, 255, .07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
}

body.account-page .header.account-menu-open .account-mobile-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.account-page .account-mobile-panel .theme-switch {
  width: 116px !important;
  height: 46px !important;
  min-height: 46px;
  padding: 5px;
}

body.account-page .account-mobile-panel .theme-switch .switch-bg {
  display: block !important;
}

body.account-page .account-mobile-panel .switch-thumb {
  width: 34px;
  height: 34px;
  transform: translateX(0) !important;
  transition: none;
}

body.account-page.light .account-mobile-panel .switch-thumb {
  transform: translateX(70px) !important;
}

body.account-page .account-mobile-panel .language-switch {
  width: 150px;
  max-width: 150px !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px;
  padding: 0 10px !important;
  font-size: .72rem;
}

body.account-page.light .account-menu-toggle {
  color: #123649;
  border-color: rgba(20, 87, 105, .2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(220, 245, 238, .98));
  box-shadow: 0 10px 24px rgba(26, 86, 99, .14), inset 0 1px #fff;
}

body.account-page.light .user-chip {
  border-color: rgba(20, 87, 105, .2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(220, 245, 238, .98));
  box-shadow: 0 10px 24px rgba(26, 86, 99, .12), inset 0 1px #fff;
}

@media (max-width: 360px) {
  body.account-page .brand-text {
    display: none;
  }
}

body.account-page.light .account-mobile-panel {
  border-bottom-color: rgba(20, 87, 105, .16);
  background: linear-gradient(155deg, rgba(247, 255, 253, .99), rgba(224, 247, 241, .99));
  box-shadow: 0 24px 60px rgba(30, 87, 101, .2), inset 0 1px #fff;
}

body.account-page.light .notification-panel {
  border-bottom-color: rgba(20, 87, 105, .16);
  background: linear-gradient(155deg, rgba(247, 255, 253, .99), rgba(224, 247, 241, .99));
  box-shadow: 0 24px 60px rgba(30, 87, 101, .2), inset 0 1px #fff;
}

/* Abas e cartões do perfil sempre contidos na tela */
body.account-page .profile-layout,
body.account-page .profile-panel,
body.account-page .profile-summary,
body.account-page .profile-summary > div,
body.account-page .wardrobe-shell,
body.account-page .wardrobe-hero,
body.account-page .wardrobe-grid,
body.account-page .wardrobe-card,
body.account-page .profile-edit-form,
body.account-page .activity-section,
body.account-page .activity-list {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.account-page .profile-tabs {
  width: 100%;
  max-width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  overflow: visible;
}

body.account-page .profile-tab {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 9px 8px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.account-page .profile-tab:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

body.account-page .profile-summary .name-row,
body.account-page .wardrobe-heading,
body.account-page .wardrobe-actions,
body.account-page .daily-title-row,
body.account-page .zcoin-balance {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

body.account-page .profile-bio,
body.account-page .activity-person small,
body.account-page .activity-person p,
body.account-page .wardrobe-card p,
body.account-page .wardrobe-card h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.account-page .profile-edit-form input,
body.account-page .profile-edit-form textarea,
body.account-page .profile-edit-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.account-page .wardrobe-actions .btn {
  flex: 1 1 130px;
  max-width: 100%;
}
