:root {
  --bg-body: #edf2f5;
  --bg-gradient: linear-gradient(135deg, #f1f6fb 0%, #eef3ef 48%, #e8edf2 100%);
  --surface: rgba(248, 251, 254, 0.74);
  --surface-strong: rgba(247, 250, 253, 0.88);
  --text-main: #1a2128;
  --text-muted: #5f6974;
  --glass-bg: rgba(244, 248, 252, 0.62);
  --glass-border: rgba(26, 35, 47, 0.1);
  --glass-shadow: 0 18px 50px rgba(20, 30, 45, 0.12);
  --accent-color: #0a6f82;
  --accent-hover: #075c6b;
  --accent-soft: rgba(10, 111, 130, 0.12);
  --warm-accent: #a45d32;
  --success-color: #18794e;
  --success-soft: rgba(24, 121, 78, 0.14);
  --warning-color: #a15c00;
  --warning-soft: rgba(161, 92, 0, 0.16);
  --danger-color: #c7372f;
  --danger-soft: rgba(199, 55, 47, 0.14);
  --info-color: #0a6f82;
  --info-soft: rgba(10, 111, 130, 0.12);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg-body: #101317;
  --bg-gradient: linear-gradient(135deg, #101317 0%, #111815 48%, #17151b 100%);
  --surface: rgba(24, 28, 34, 0.82);
  --surface-strong: rgba(24, 28, 34, 0.96);
  --text-main: #f4f7f8;
  --text-muted: #abb5bc;
  --glass-bg: rgba(22, 27, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --accent-color: #61c4d8;
  --accent-hover: #8bd5e4;
  --accent-soft: rgba(97, 196, 216, 0.16);
  --warm-accent: #e0a06e;
  --success-color: #5fd2a0;
  --success-soft: rgba(95, 210, 160, 0.14);
  --warning-color: #f0b366;
  --warning-soft: rgba(240, 179, 102, 0.16);
  --danger-soft: rgba(233, 107, 107, 0.16);
  --info-color: #61c4d8;
  --info-soft: rgba(97, 196, 216, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: var(--bg-body);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  transition:
    background-image 0.35s ease,
    color 0.25s ease;
}

body[data-page="login"],
body[data-page="signup"],
body[data-page="forgot-password"],
body[data-page="reset-password"],
body[data-page="401"],
body[data-page="403"],
body[data-page="404"],
body[data-page="405"],
body[data-page="408"],
body[data-page="500"],
body[data-page="503"] {
  padding-top: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-main {
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 64px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-content {
  max-width: 820px;
}

.mini-content {
  max-width: 620px;
}

.page-content,
.section {
  margin-top: 44px;
}

.section {
  margin-bottom: 60px;
}

.page-panel {
  padding: 30px;
}

.section-header,
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2,
.page-header h1 {
  line-height: 1.1;
}

.section-eyebrow,
.page-kicker,
.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-subtitle,
.section-subtitle,
.text-muted-custom {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.w-full {
  width: 100%;
}

.glass,
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.section-divider {
  height: 1px;
  margin: 0 0 24px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.navbar {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.navbar__inner {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  min-height: 56px;
  margin: 0 auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 42px rgba(20, 30, 45, 0.14);
  pointer-events: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-main);
  text-decoration: none;
}

.nav-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 800;
}

.nav-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand__name {
  font-size: 0.98rem;
  font-weight: 800;
}

.nav-brand__sub {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
}

.nav-menu-toggle__lines,
.nav-menu-toggle__lines::before,
.nav-menu-toggle__lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-menu-toggle__lines {
  position: relative;
}

.nav-menu-toggle__lines::before,
.nav-menu-toggle__lines::after {
  position: absolute;
  left: 0;
}

.nav-menu-toggle__lines::before {
  top: -6px;
}

.nav-menu-toggle__lines::after {
  top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
}

.nav-links a,
.nav-menu-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-menu-action:hover {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.nav-link-with-icon {
  gap: 6px;
}

.nav-inline-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.nav-inline-icon svg {
  width: 100%;
  height: 100%;
}

.nav-mobile-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-user {
  max-width: 150px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: rgba(10, 111, 130, 0.28);
  color: var(--accent-color);
}

.btn-danger {
  background: var(--danger-color);
  color: #ffffff;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label,
.input-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface-strong);
}

textarea.form-control {
  resize: vertical;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.chip:hover,
.chip.active {
  border-color: transparent;
  background: var(--accent-color);
  color: #ffffff;
}

.chip-more-wrapper {
  position: relative;
  display: inline-block;
  z-index: 400;
}

.chip-expand-btn {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

.chip-expand-btn.active,
.chip-expand-btn[aria-expanded="true"] {
  border-color: transparent;
  background: var(--accent-color);
  color: #ffffff;
}

.chip-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
  max-width: 380px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.chip-more-wrapper.is-open .chip-dropdown-panel {
  display: flex;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

a.pagination-btn:hover {
  border-color: transparent;
  background: var(--accent-color);
  color: #ffffff;
}

.pagination-btn--active {
  border-color: transparent;
  background: var(--accent-color);
  color: #ffffff;
  cursor: default;
}

.pagination-btn--disabled {
  opacity: 0.35;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 5px 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.grid-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.album-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-4px);
}

.album-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.album-info h3 {
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.album-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.masonry-grid {
  column-count: 4;
  column-gap: 18px;
}

.masonry-item {
  position: relative;
  margin-bottom: 18px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(20, 30, 45, 0.12);
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.32s ease;
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-edit-btn {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.masonry-edit-btn:hover {
  background: #ffffff;
  color: var(--accent-color);
}

.photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.masonry-item:hover .photo-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 14, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.18s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-details-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text-main);
  font-weight: 800;
  text-decoration: none;
}

.auth-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
}

.auth-home-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-home-link:hover {
  color: var(--accent-color);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 900;
}

.auth-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.auth-footer-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.error-code {
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.text-accent,
.register-link,
.forgot-password-link {
  color: var(--accent-color);
  font-weight: 800;
  text-decoration: none;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 4px;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
  animation: slideIn 0.25s ease;
}

.toast__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.toast__body {
  min-width: 0;
}

.toast__title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.toast__message {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.toast__action {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--accent-color);
  text-decoration: underline;
}

.toast__action:hover {
  opacity: 0.8;
}

.toast__close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.toast__close:hover,
.toast__close:focus-visible {
  color: var(--text-main);
  transform: scale(1.05);
}

.toast__close:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.toast--success {
  border-left-color: var(--success-color);
}

.toast--success .toast__icon {
  background: var(--success-soft);
  color: var(--success-color);
}

.toast--warning {
  border-left-color: var(--warning-color);
}

.toast--warning .toast__icon {
  background: var(--warning-soft);
  color: var(--warning-color);
}

.toast--danger {
  border-left-color: var(--danger-color);
}

.toast--danger .toast__icon {
  background: var(--danger-soft);
  color: var(--danger-color);
}

.toast--info {
  border-left-color: var(--info-color);
}

.toast--info .toast__icon {
  background: var(--info-soft);
  color: var(--info-color);
}

@media (max-width: 640px) {
  .toast-container {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

@keyframes revealLeftToRight {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal-ltr {
  opacity: 0;
  transform: translateX(-26px);
  animation: revealLeftToRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--ltr-delay, 0ms);
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero {
  padding: 76px 0;
  text-align: center;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: rgba(10, 111, 130, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr:hover {
  background: rgba(10, 111, 130, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(44, 138, 88, 0.18);
  color: #2c8a58;
}

.badge-warning {
  background: rgba(164, 93, 50, 0.18);
  color: var(--warm-accent);
}

.badge-danger {
  background: rgba(199, 55, 47, 0.18);
  color: var(--danger-color);
}

.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--surface-strong);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.site-footer__copy {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__links a,
.site-footer__button {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-footer__links a:hover,
.site-footer__button:hover {
  color: var(--accent-color);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2600;
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(20, 30, 45, 0.2);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner h2 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.cookie-banner p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cookie-banner__btn {
  flex: 1 1 180px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.cookie-banner__btn:hover {
  border-color: rgba(10, 111, 130, 0.28);
  color: var(--accent-color);
}

.cookie-banner__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--accent-color);
  text-decoration: none;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 76px;
  }

  .navbar__inner {
    grid-template-columns: auto auto 1fr;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: var(--glass-shadow);
  }

  .navbar.open .nav-links {
    display: grid;
  }

  .nav-links a {
    justify-content: center;
    min-height: 42px;
  }

  .nav-links .nav-menu-action {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .nav-mobile-only {
    display: block;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-brand__sub {
    display: none;
  }

  .section-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-main {
    padding-bottom: 42px;
  }

  .nav-brand__text,
  .nav-user {
    display: none;
  }

  .nav-actions .btn-secondary:not(#theme-toggle) {
    display: none;
  }

  .glass-card,
  .page-panel {
    padding: 18px;
  }

  .hero {
    padding: 54px 0;
  }

  .grid-albums {
    grid-template-columns: 1fr;
  }

  .masonry-grid {
    column-count: 1;
  }

  .contact-actions,
  .comment-form,
  .responsive-flex-stack {
    flex-direction: column;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__links {
    flex-wrap: wrap;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .comment-form .btn,
  .contact-actions .btn,
  .auth-card .btn,
  .w-full {
    width: 100%;
  }

  .form-control {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ltr {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
