/* Only the items for the current status are shown */
[data-account="signed-out"] .is-signed-in-only,
[data-account="signed-in"] .is-signed-out-only {
  display: none !important;
}

/* REGISTER / SIGN IN form */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s;
}

.auth-box {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 26px 22px;
  background: rgba(11, 11, 14, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-10px);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.auth-modal.is-open .auth-box {
  transform: none;
}

.auth-box h2 {
  margin: 0 0 18px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(240, 230, 200);
}

.auth-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: 0;
  color: rgba(240, 230, 200, 0.7);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover,
.auth-close:focus-visible {
  color: #00b5ff;
  outline: none;
}

.auth-box label {
  display: block;
  margin-bottom: 14px;
}

.auth-box label span {
  display: block;
  margin-bottom: 6px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 200, 0.7);
}

.auth-box input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: #f0e6c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.4);
  outline: none;
}

.auth-box input:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.auth-error {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 13px;
  color: #ff8a8a;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgb(240, 230, 200);
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.62), rgba(11, 11, 14, 0.82));
  border: 1px solid rgb(212, 175, 55);
  cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  box-shadow: 0 0 14px rgba(0, 181, 255, 0.45);
  outline: none;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-switch {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: rgba(240, 230, 200, 0.75);
  text-decoration: underline;
  cursor: pointer;
}

.auth-switch:hover,
.auth-switch:focus-visible {
  color: #00b5ff;
  outline: none;
}

/* Sign in mode hides the name field */
.auth-box.is-signin .auth-name-field {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal,
  .auth-box {
    transition: none;
  }
}

/* MEMBER ACCOUNT page (PROFILE and SETTINGS) */
.ac-page {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: rgba(8, 8, 10, 0.97);
}

.ac-page[hidden] {
  display: none;
}

.ac-inner {
  box-sizing: border-box;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.ac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ac-header .mb-kicker {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #00b5ff;
}

.ac-close {
  padding: 8px 14px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgb(240, 230, 200);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.6);
  cursor: pointer;
}

.ac-close:hover,
.ac-close:focus-visible {
  color: #00b5ff;
  border-color: #00b5ff;
  outline: none;
}

.ac-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ac-tabs .mb-tab {
  padding: 10px 16px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 200, 0.75);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: pointer;
}

.ac-tabs .mb-tab.is-active,
.ac-tabs .mb-tab:hover,
.ac-tabs .mb-tab:focus-visible {
  color: rgb(240, 230, 200);
  border-color: rgb(212, 175, 55);
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.4), rgba(11, 11, 14, 0.82));
  outline: none;
}

.ac-signedout {
  padding: 30px 0;
  color: rgba(240, 230, 200, 0.85);
}

.ac-panel label {
  display: block;
  margin-bottom: 16px;
}

.ac-panel label span {
  display: block;
  margin-bottom: 6px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 200, 0.7);
}

.ac-panel input[type="text"],
.ac-panel input[type="password"],
.ac-panel textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #f0e6c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.4);
  outline: none;
  resize: vertical;
}

.ac-panel input:focus,
.ac-panel textarea:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.ac-status {
  margin: 0 0 18px;
  font-size: 14px;
  color: #00b5ff;
}

.ac-block {
  padding: 22px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.ac-block h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(240, 230, 200);
}

.ac-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(240, 230, 200, 0.6);
}

.ac-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ac-check span {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  color: rgb(240, 230, 200) !important;
}

.ac-check input {
  width: 18px;
  height: 18px;
  accent-color: #00b5ff;
}

.ac-narrow {
  width: auto !important;
  min-width: 220px;
}

.ac-danger h3 {
  color: #ff8a8a;
}

.ac-danger-btn {
  border-color: #ff8a8a !important;
}

@media (max-width: 700px) {
  .ac-narrow {
    width: 100% !important;
  }
}

/* ADMIN menu item: owners only */
[data-admin="no"] .is-admin-only {
  display: none !important;
}

/* ADMIN page */
.ad-section {
  padding: 22px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.ad-section h3 {
  margin: 0 0 14px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(240, 230, 200);
}

.ad-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.ad-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 8px;
}

.ad-head strong {
  font-size: 16px;
  font-weight: 600;
  color: rgb(240, 230, 200);
}

.ad-meta {
  font-size: 13px;
  color: rgba(240, 230, 200, 0.65);
}

.ad-status {
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #00b5ff;
}

.ad-details summary {
  cursor: pointer;
  font-size: 13px;
  color: rgba(240, 230, 200, 0.75);
}

.ad-body {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(240, 230, 200, 0.85);
  white-space: pre-line;
}

.ad-body p {
  margin: 0 0 6px;
}

.ad-body b {
  color: rgb(240, 230, 200);
}

.ad-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ad-select {
  min-width: 220px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #f0e6c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.ad-select option {
  background: #0b0b0e;
}

.ad-empty {
  margin: 0;
  font-size: 14px;
  color: rgba(240, 230, 200, 0.6);
}

/* Account windows: hidden until opened */
.ac-win[hidden] {
  display: none !important;
}

/* Desktop: the account pages open as windows in the main area, like EXPLORE and MEMBERS.
   The top menu, the music and sound buttons and the side menu stay usable. */
@media (min-width: 701px) {
  .ac-page.ac-win {
    top: 110px;
    right: 26px;
    bottom: 76px;
    left: 248px;
    z-index: 16;
    overflow-y: auto;
    background: rgba(8, 8, 10, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  }

  .ac-page.ac-win .ac-inner {
    width: min(1000px, 100%);
    padding: 28px 30px 40px;
  }

  /* Desktop: REGISTER, PROFILE, SETTINGS and ADMIN are pages. They close by choosing another top-menu item, not with a close button. */
  #authClose,
  #acClose,
  #adClose {
    display: none !important;
  }

  .auth-modal.ac-win {
    inset: auto;
    top: 110px;
    right: 248px;
    bottom: 76px;
    left: 248px;
    z-index: 16;
    align-items: center;
    padding: 40px 20px 20px;
    overflow-y: auto;
    background: rgba(8, 8, 10, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Desktop PROFILE and SETTINGS window: transparent, fits without a scrollbar */
@media (min-width: 701px) {
  #accountPage.ac-win {
    overflow: hidden;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  #accountPage.ac-win .ac-inner {
    padding: 16px 24px 16px;
  }

  #accountPage.ac-win .ac-header {
    margin-bottom: 10px;
  }

  #accountPage.ac-win .ac-tabs {
    margin-bottom: 12px;
  }

  #accountPage.ac-win .ac-panel label {
    margin-bottom: 8px;
  }

  #accountPage.ac-win .ac-panel label span {
    margin-bottom: 4px;
  }

  #accountPage.ac-win .ac-panel input[type="text"],
  #accountPage.ac-win .ac-panel input[type="password"],
  #accountPage.ac-win .ac-panel textarea {
    padding: 6px 10px;
    font-size: 14px;
    resize: none;
    background: rgba(0, 0, 0, 0.88);
  }

  #accountPage.ac-win .ac-status {
    margin: 0 0 10px;
    font-size: 13px;
  }

  #accountPage.ac-win .ac-block {
    padding: 12px 0;
  }

  #accountPage.ac-win .ac-block h3 {
    margin-bottom: 8px;
  }

  #accountPage.ac-win .ac-note {
    margin-bottom: 8px;
    font-size: 12px;
  }
}



/* AI CONNECT window text (placeholder content until the sections are written) */
.ai-body {
  padding: 0;
}

.ai-title {
  margin: 0 0 14px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgb(240, 230, 200);
}

.ai-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(240, 230, 200, 0.8);
}

/* AI CONNECT window: no panel behind it, the background shows through like the EXPLORE page */
@media (min-width: 701px) {
  #aiWindow.ac-win {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* AI CONNECT: model dropdown on CREATE A PROMPT */
.ai-models {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  max-width: 920px;
}

.ai-models-col {
  flex: 1 1 280px;
  min-width: 0;
}

.ai-models label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 200, 0.75);
}

.ai-models select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #f0e6c8;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.5);
  outline: none;
}

.ai-models select:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.ai-models select option {
  background: #0b0b0e;
  color: #f0e6c8;
}

/* AI CONNECT window: the CREATE A PROMPT dropdowns sit level with the submenu buttons */
#aiWindow .ac-inner {
  padding-top: 16px;
}

#aiWindow .ac-header {
  display: none;
}

/* AI CONNECT: CREATE A PROMPT box (left) and prompt output (right) */
.ai-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  max-width: 920px;
}

.ai-builder-col {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ai-builder-col label {
  display: block;
  margin-bottom: 8px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(240, 230, 200, 0.75);
}

.ai-request,
.ai-output {
  box-sizing: border-box;
  width: 100%;
  min-height: 260px;
  padding: 12px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #f0e6c8;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.5);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-request {
  resize: vertical;
  outline: none;
}

.ai-request:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.ai-output {
  color: rgba(240, 230, 200, 0.6);
  overflow-y: auto;
  max-height: 420px;
}

.ai-output:not(:empty) {
  color: #f0e6c8;
}

.ai-submit {
  margin-top: 12px;
  align-self: flex-start;
}

.ai-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.ai-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
  color: #00b5ff;
}

/* AI CONNECT: IMAGE / VIDEO toggle, model dropdown, categories and styles */
.ai-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  width: 100%;
}

.ai-toggle-btn {
  flex: 1 1 0;
  padding: 9px 12px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(240, 230, 200, 0.75);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.45);
  cursor: pointer;
}

.ai-toggle-btn + .ai-toggle-btn {
  border-left: 0;
}

.ai-toggle-btn:hover,
.ai-toggle-btn:focus-visible {
  color: rgb(240, 230, 200);
  border-color: rgba(212, 175, 55, 0.8);
  outline: none;
}

.ai-toggle-btn.is-active {
  color: rgb(240, 230, 200);
  border-color: #00b5ff;
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.4), rgba(11, 11, 14, 0.82));
}

.ai-select {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 14px;
  padding: 9px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #f0e6c8;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.5);
  outline: none;
}

.ai-select:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.ai-select option {
  background: #0b0b0e;
  color: #f0e6c8;
}

.ai-cats {
  margin-bottom: 14px;
}

.ai-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ai-cat-btn {
  padding: 8px 10px;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: left;
  color: rgba(240, 230, 200, 0.82);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.ai-cat-btn:hover,
.ai-cat-btn:focus-visible,
.ai-cat-btn.is-open {
  color: rgb(240, 230, 200);
  border-color: #00b5ff;
  outline: none;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.ai-chip {
  padding: 5px 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: rgba(240, 230, 200, 0.85);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.ai-chip:hover,
.ai-chip:focus-visible {
  color: rgb(240, 230, 200);
  border-color: #00b5ff;
  outline: none;
}

.ai-chip.is-selected {
  color: #04121a;
  background: #00b5ff;
  border-color: #00b5ff;
}

.ai-style-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(240, 230, 200, 0.6);
}

.ai-request {
  min-height: 120px;
}

/* AI CONNECT: builder starts level with the CREATE A PROMPT button */
#aiWindow .ai-builder {
  margin-top: 0;
}

/* Request box and button sit above the prompt output */
.ai-output-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

/* AI CONNECT: builder starts near the left menu instead of centered in the window */
#aiWindow .ac-inner {
  width: 100%;
  margin: 0;
  padding-left: 40px;
  padding-right: 40px;
}

#aiWindow .ai-builder {
  max-width: none;
}

#aiWindow .ai-builder-col:first-child {
  flex: 0 1 380px;
}

/* AI CONNECT: larger, higher-contrast text in the main page so it is easy to read */
#aiWindow .ai-builder-col label {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #f7f0dc;
  margin-bottom: 10px;
}

#aiWindow .ai-toggle-btn {
  padding: 12px 14px;
  font-size: 15px;
  color: #f7f0dc;
}

#aiWindow .ai-select {
  font-size: 17px;
  padding: 12px 14px;
}

#aiWindow .ai-cat-grid {
  gap: 8px;
}

#aiWindow .ai-cat-btn {
  padding: 11px 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #f7f0dc;
}

#aiWindow .ai-chip {
  padding: 8px 12px;
  font-size: 16px;
  color: #f7f0dc;
}

#aiWindow .ai-style-note {
  font-size: 16px;
  color: #f7f0dc;
  margin-top: 12px;
}

#aiWindow .ai-request,
#aiWindow .ai-output {
  font-size: 17px;
  line-height: 1.6;
  color: #fff8e6;
}

#aiWindow .ai-output {
  min-height: 320px;
}

#aiWindow .ai-status {
  font-size: 15px;
  color: #7fd8ff;
}

#aiWindow .ai-copy {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 15px;
  padding: 12px 28px;
}

#aiWindow .ai-copy.is-copied {
  border-color: #00b5ff;
}

/* AI CONNECT: everything fits inside the window with no scrollbar.
   The window is a fixed-height box, and the builder fills it. */
@media (min-width: 701px) {
  #aiWindow.ac-win {
    overflow: hidden;
  }

  #aiWindow .ac-inner {
    box-sizing: border-box;
    height: 100%;
    padding: 16px 40px 16px;
    display: flex;
    flex-direction: column;
  }

  #aiWindow .ai-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #aiWindow #aiText:empty {
    display: none;
  }

  #aiWindow .ai-builder {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
    gap: 22px;
  }

  #aiWindow .ai-builder-col {
    min-height: 0;
  }

  #aiWindow .ai-builder-col label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  #aiWindow .ai-toggle {
    margin-bottom: 10px;
  }

  #aiWindow .ai-toggle-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  #aiWindow .ai-select {
    font-size: 15px;
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  #aiWindow .ai-cat-grid {
    gap: 6px;
  }

  #aiWindow .ai-cat-btn {
    padding: 8px 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  #aiWindow .ai-chips {
    gap: 5px;
    margin-top: 6px;
    padding: 8px;
  }

  #aiWindow .ai-chip {
    padding: 5px 9px;
    font-size: 13px;
  }

  #aiWindow .ai-style-note {
    font-size: 13px;
    margin-top: 8px;
  }

  #aiWindow .ai-request {
    height: 120px;
    min-height: 0;
    font-size: 15px;
    resize: none;
  }

  #aiWindow .ai-submit {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px 24px;
  }

  #aiWindow .ai-status {
    margin: 6px 0 0;
    font-size: 13px;
    min-height: 1.2em;
  }

  #aiWindow .ai-output-wrap {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 10px;
  }

  #aiWindow .ai-output {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    font-size: 15px;
    line-height: 1.5;
    overflow-y: auto;
    scrollbar-width: none;
  }

  #aiWindow .ai-output::-webkit-scrollbar {
    display: none;
  }

  #aiWindow .ai-copy {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px 24px;
  }
}

/* ACCOUNT menu open: hide the page's own left tabs so the two menus don't overlap */
@media (min-width: 701px) {
  body.ac-menu-open #jnTabs,
  body.ac-menu-open #mbTabs {
    visibility: hidden;
  }
}

/* AI CONNECT: hidden pieces stay hidden (CREATE AN IMAGE and CREATE A VIDEO show only "Coming soon") */
#aiWindow [hidden] {
  display: none !important;
}

#aiWindow .ai-text {
  font-size: 18px;
  color: #f7f0dc;
}

/* AI CONNECT top button: greyed out and not clickable unless the member has access */
.top-menu button#navAi:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ACCOUNT dropdown: opens under the ACCOUNT button (REGISTER, SIGN IN, PROFILE, SETTINGS, ADMIN, SIGN OUT) */
.account-dropdown {
  position: fixed;
  z-index: 300;
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 6px;
  background: rgba(8, 8, 10, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.account-dropdown.is-visible {
  display: flex;
}

.account-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-family: "Cinzel", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #f7f0dc;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
}

.account-dropdown button:last-child {
  border-bottom: 0;
}

.account-dropdown button:hover,
.account-dropdown button:focus-visible {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 181, 255, 0.35), rgba(0, 181, 255, 0.05));
  outline: none;
}

.account-dropdown [hidden] {
  display: none !important;
}

/* Country dropdowns (register form and profile): same look as the text boxes */
.auth-box select,
.ac-panel select {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #f0e6c8;
  background: #0b0b0e;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 0;
  outline: none;
}

.auth-box select:focus,
.ac-panel select:focus {
  border-color: #00b5ff;
  box-shadow: 0 0 10px rgba(0, 181, 255, 0.35);
}

.auth-box select option,
.ac-panel select option {
  background: #0b0b0e;
  color: #f0e6c8;
}

/* Sign-in checkboxes: REMEMBER ME and REMEMBER PASSWORD (shown on sign-in only) */
.auth-box .auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(240, 230, 200, 0.85);
  cursor: pointer;
}

.auth-box .auth-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #00b5ff;
  cursor: pointer;
}

.auth-box:not(.is-signin) .auth-signin-only {
  display: none;
}
