/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', 'Proxima Nova', Helvetica, Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.is-page-ready {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== HEADER / NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px 10px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav ul li a {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 16px;
  position: relative;
  border-radius: 999px;
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 64%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.65);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

nav ul li a:hover {
  color: #c4a882;
  background: rgba(196, 168, 130, 0.14);
  transform: translateY(-1px);
}

nav ul li a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

nav ul li a.active {
  color: #c4a882;
  background: rgba(196, 168, 130, 0.18);
}

nav ul li a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

nav ul li a:focus-visible {
  outline: 2px solid rgba(196, 168, 130, 0.85);
  outline-offset: 3px;
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 30px 80px;
  min-height: 100vh;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.03em;
}

/* ===== FOOTER ===== */
footer {
  padding: 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #888888;
  letter-spacing: 0.02em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== BACK LINK (shared by paintings + gallery pages) ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #c4a882;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  transition: color 0.3s ease, gap 0.3s ease;
}

.back-link:hover {
  color: #ffffff;
  gap: 12px;
}

.back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== SHARED FORM STYLES ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group.mb-20 {
  margin-bottom: 20px;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #cccccc;
}

.form-group label .required {
  color: #c4a882;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 12px 16px;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #ffffff;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c4a882;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 14px 40px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #333333;
  border: 2px solid #333333;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.submit-btn:hover {
  background: transparent;
  color: #c4a882;
  border-color: #c4a882;
}

/* ===== SOCIAL LINKS (shared by contact + newsletter) ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: border-color 0.3s ease, background 0.3s ease;
  box-shadow: none;
  filter: none;
}

.social-links a:hover {
  border-color: #c4a882;
  background: rgba(196, 168, 130, 0.1);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  transition: fill 0.3s ease;
  filter: none;
  opacity: 1;
}

.social-links a:hover svg {
  fill: #c4a882;
}

.social-links a svg path {
  fill: inherit;
}

/* ===== ACCOUNT FAB (floating button) ===== */
.account-fab {
  height: auto;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.account-fab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 64%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.65);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.account-fab__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

.account-fab__text {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}

.account-fab:hover {
  color: #c4a882;
  background: rgba(196, 168, 130, 0.14);
  transform: translateY(-1px);
}

.account-fab:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.account-fab:hover .account-fab__text {
  color: #c4a882;
}

.account-fab.is-logged-in .account-fab__text {
  color: #c4a882;
}

.message-center-btn {
  height: auto;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.35s ease, background 0.35s ease;
  position: relative;
}

.message-center-btn:hover {
  color: #c4a882;
  background: rgba(196, 168, 130, 0.14);
}

.message-center-btn__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.message-center-btn__icon svg {
  width: 100%;
  height: 100%;
}

.message-center-btn__text {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.message-center-btn__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d44343;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.message-center-modal {
  position: fixed;
  inset: 0;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.message-center-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.message-center-modal__card {
  width: min(860px, 100%);
  max-height: min(84vh, 920px);
  overflow: auto;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 18px;
}

.message-center-modal__close {
  float: right;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  cursor: pointer;
}

.message-center-modal__title {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #f0ece4;
}

.message-center-modal__subtitle {
  margin: 4px 0 14px;
  color: #9b9b9b;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.message-center-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.message-center-item.is-unread {
  border-left: 2px solid rgba(196, 168, 130, 0.8);
}

.message-center-item__meta {
  color: #a7a7a7;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
}

.message-center-item__email-row {
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.message-center-item__email {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #f0ece4;
}

.message-center-item__copy-email {
  border: 1px solid rgba(196, 168, 130, 0.4);
  background: rgba(196, 168, 130, 0.1);
  color: #e9d2b1;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.message-center-item__body {
  color: #d6d6d6;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  white-space: pre-wrap;
}

.message-center-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-center-item__replybox {
  margin-top: 8px;
}

.message-center-item__replybox textarea {
  width: 100%;
  min-height: 78px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f0ece4;
  padding: 10px;
  box-sizing: border-box;
}

.message-center-item__replies {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.message-center-reply__meta {
  color: #9f9f9f;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
}

.message-center-reply p {
  margin: 4px 0 8px;
  color: #d7d7d7;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.auth-email-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-email-confirm-modal.is-open {
  display: flex;
}

.auth-email-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.auth-email-confirm-modal__card {
  position: relative;
  width: min(420px, 100%);
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.auth-email-confirm-modal__title {
  margin: 0 0 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #f0ece4;
}

.auth-email-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.auth-email-confirm-modal__cancel,
.auth-email-confirm-modal__delete {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

.auth-email-confirm-modal__cancel {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

.auth-email-confirm-modal__delete {
  background: #d44343;
  color: #ffffff;
  border-color: #d44343;
}

/* ===== AUTH MODAL ===== */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.auth-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.auth-modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 32px 32px;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s ease;
}

.auth-modal.is-open .auth-modal__card {
  transform: translateY(0) scale(1);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.auth-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal__rabbit {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-modal__rabbit img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.auth-modal__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal__tab {
  flex: 1;
  padding: 10px 0;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-modal__tab.is-active {
  color: #c4a882;
  border-bottom-color: #c4a882;
}

.auth-field {
  margin-bottom: 18px;
  position: relative;
}

.auth-field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.auth-field input:focus {
  border-color: #c4a882;
  background: rgba(196, 168, 130, 0.06);
}

.auth-email-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  background: #111111;
  z-index: 20;
}

.auth-email-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-email-option:last-child {
  border-bottom: none;
}

.auth-email-option__select {
  flex: 1;
  text-align: left;
  background: transparent;
  border: none;
  color: #e8e8e8;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.auth-email-option__remove {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #c4a882;
  cursor: pointer;
}

.auth-checkbox span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #aaa;
}

.auth-modal__submit {
  display: block;
  width: 100%;
  padding: 13px 0;
  margin-top: 6px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: #c4a882;
  border: 2px solid #c4a882;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.auth-modal__submit:hover {
  background: transparent;
  color: #c4a882;
}

.auth-modal__msg {
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #e07c5a;
  text-align: center;
  min-height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1120px) and (min-width: 769px) {
  .header-inner {
    max-width: 100%;
    padding: 12px 14px 9px;
  }

  nav ul {
    gap: 4px;
    flex-wrap: nowrap;
  }

  nav ul li a {
    font-size: 15px;
    padding: 8px 10px;
    letter-spacing: 0.04em;
  }

  .account-fab {
    padding: 8px 10px;
    gap: 6px;
  }

  .account-fab__icon {
    width: 28px;
    height: 28px;
  }

  .account-fab__text {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .message-center-btn {
    padding: 8px 10px;
    gap: 6px;
  }

  .message-center-btn__text {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }

  nav.open {
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    gap: 14px;
  }

  nav ul li a {
    font-size: 22px;
    padding: 14px 22px;
  }

  .mobile-logo {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #ffffff;
  }

  .page-content {
    padding: 100px 16px 60px;
  }

  .page-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .mobile-logo {
    display: none;
  }
}

@media (max-width: 480px) {
  nav ul li a {
    font-size: 18px;
  }

  footer p {
    font-size: 12px;
  }

  .account-fab {
    padding: 14px 22px;
  }

  .account-fab__icon {
    width: 36px;
    height: 36px;
  }

  .account-fab__text {
    font-size: 22px;
  }

  .auth-modal {
    padding: 16px;
  }

  .auth-modal__card {
    padding: 32px 20px 24px;
  }
}
