* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f1ec;
  color: #2a2a2a;
}

.admin-layout {
  min-height: 100vh;
}

.admin-mobile-topbar {
  display: none;
}

.admin-mobile-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #2a2a2a;
}

.admin-mobile-menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #3a3a3a;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.admin-mobile-menu-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.admin-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.admin-mobile-backdrop.is-visible {
  opacity: 1;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #2f2f2f;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  overflow-y: auto;
}

.admin-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-sidebar-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-mobile-head {
  display: block;
}

.admin-sidebar-close {
  display: none;
}

.admin-brand {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #e8e4dc;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.admin-menu-badge {
  align-items: center;
  background: #dc2626;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  min-width: 22px;
  padding: 4px 7px;
}

.admin-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-menu-link.is-active {
  background: #4a4a4a;
  color: #ffffff;
}

.admin-sidebar-bottom form {
  margin: 0;
}

.admin-logout-link {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #e8e4dc;
  font: inherit;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.admin-logout-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-logout-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.admin-main {
  margin-left: 260px;
  min-width: 0;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: #fcfbf8;
  border-bottom: 1px solid #ddd7cd;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 28px;
  color: #2a2a2a;
}

.admin-topbar-user {
  font-size: 14px;
  color: #6b665e;
}

.admin-content {
  padding: 32px;
}

.admin-panel {
  background: #fcfbf8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  border: 1px solid #e2ddd4;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.admin-card-link {
  text-decoration: none;
  color: inherit;
}

.admin-card-box {
  background: #fcfbf8;
  border-radius: 18px;
  padding: 20px;
  min-height: 140px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2ddd4;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.admin-card-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #2a2a2a;
}

.admin-card-box p {
  margin: 0;
  color: #6b665e;
  line-height: 1.5;
}

.admin-group {
  margin-bottom: 24px;
  padding: 20px;
  background: #f7f4ee;
  border: 1px solid #e2ddd4;
  border-radius: 16px;
}

.admin-group h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #2a2a2a;
}

.admin-row {
  padding: 16px 0;
  border-top: 1px solid #ddd7cd;
}

.admin-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2a2a2a;
}

.admin-row input[type="text"],
.admin-row input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfc8bc;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #2a2a2a;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-row input[type="text"]:focus,
.admin-row input[type="password"]:focus {
  border-color: #7a7468;
  box-shadow: 0 0 0 4px rgba(122, 116, 104, 0.12);
}

.admin-switch {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-switch label {
  margin: 0;
  font-weight: 500;
}

.admin-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #6b665e;
}

.admin-actions {
  margin-top: 20px;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #3a3a3a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.admin-button:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}

.admin-button:active {
  transform: translateY(0);
}

.admin-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.admin-alert-error {
  background: #f6dfdf;
  color: #7a1f1f;
  border: 1px solid #e7bcbc;
}

.admin-alert-success {
  background: #e8efe3;
  color: #35512f;
  border: 1px solid #bfd0b4;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f3f1ec;
}

.admin-login-card {
  width: 100%;
  max-width: 520px;
  background: #fcfbf8;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2ddd4;
}

.admin-login-card h1 {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.2;
  color: #2a2a2a;
}

.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #2a2a2a;
}

.admin-form-group input:not([type="checkbox"]),
.admin-form-group select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cfc8bc;
  border-radius: 14px;
  font-size: 16px;
  background: #ffffff;
  color: #2a2a2a;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-form-group input:not([type="checkbox"]):focus,
.admin-form-group select:focus {
  border-color: #7a7468;
  box-shadow: 0 0 0 4px rgba(122, 116, 104, 0.12);
}

.admin-password-wrap {
  position: relative;
}

.admin-password-wrap input {
  padding-right: 56px;
}

.admin-password-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.7;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.admin-password-eye:hover {
  background: #ece7de;
  opacity: 1;
}

.admin-password-eye.is-active {
  background: #e4ddd2;
  opacity: 1;
}

.admin-btn {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: #3a3a3a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.admin-btn:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}

.admin-btn:active {
  transform: translateY(0);
}

.admin-secret-box {
  margin: 12px 0 20px;
  padding: 14px 16px;
  border: 1px solid #cfc8bc;
  border-radius: 12px;
  background: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-all;
}

.admin-form-page {
  max-width: 760px;
  margin: 0 auto;
}

.admin-form-card {
  background: #fcfbf8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2ddd4;
}

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

.admin-form-card .admin-group:last-child {
  margin-bottom: 0;
}

.gallery-admin-title {
  margin: 0 0 20px;
  font-size: 24px;
  color: #2a2a2a;
}

.gallery-admin-form textarea,
.gallery-admin-form input[type="number"],
.gallery-admin-form input[type="file"] {
  width: 100%;
  border: 1px solid #cfc8bc;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #2a2a2a;
}

.gallery-admin-form textarea,
.gallery-admin-form input[type="number"] {
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-admin-form textarea:focus,
.gallery-admin-form input[type="number"]:focus {
  border-color: #7a7468;
  box-shadow: 0 0 0 4px rgba(122, 116, 104, 0.12);
}

.gallery-admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.gallery-admin-form input[type="file"] {
  padding: 12px;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-admin-grid--small {
  align-items: end;
}

.gallery-admin-checkbox-wrap {
  display: flex;
  align-items: end;
}

.gallery-admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-weight: 600;
  color: #2a2a2a;
}

.gallery-admin-checkbox input {
  width: 18px;
  height: 18px;
}

.gallery-admin-empty {
  margin: 0;
  color: #6b665e;
}

.gallery-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-admin-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2ddd4;
  border-radius: 18px;
  background: #f7f4ee;
}

.gallery-admin-card-image-link {
  display: block;
  background: #ebe6dc;
}

.gallery-admin-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ebe6dc;
}

.gallery-admin-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.gallery-admin-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #2a2a2a;
}

.gallery-admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b665e;
}

.gallery-admin-card-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.gallery-admin-card-status.is-visible {
  background: #e8efe3;
  color: #35512f;
}

.gallery-admin-card-status.is-hidden {
  background: #f1e7d9;
  color: #7a4b16;
}

.gallery-admin-card-caption {
  margin: 0 0 16px;
  color: #6b665e;
  line-height: 1.6;
  max-height: calc(1em * 1.6 * 3);
  overflow: hidden;
}

.gallery-admin-card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: auto;
  padding-top: 8px;
}

.gallery-admin-card-delete-form {
  margin: 0;
}

.gallery-admin-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.15s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.gallery-admin-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-admin-icon-button:hover {
  transform: translateY(-1px);
}

.gallery-admin-icon-button:active {
  transform: translateY(0);
}

.gallery-admin-icon-button--edit {
  background: transparent;
  color: #3a3a3a;
}

.gallery-admin-icon-button--edit:hover {
  background: transparent;
  color: #111111;
  box-shadow: none;
}

.gallery-admin-icon-button--view {
  background: transparent;
  color: #6b665e;
}

.gallery-admin-icon-button--view:hover {
  background: transparent;
  color: #2a2a2a;
  box-shadow: none;
}

.gallery-admin-icon-button--delete {
  background: transparent;
  color: #7a1f1f;
}

.gallery-admin-icon-button--delete:hover {
  background: transparent;
  color: #541313;
  box-shadow: none;
}

.gallery-admin-edit-topbar {
  margin-bottom: 18px;
}

.gallery-admin-edit-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-admin-edit-preview {
  border: 1px solid #e2ddd4;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f4ee;
}

.gallery-admin-edit-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ebe6dc;
}

.gallery-admin-edit-preview-body {
  padding: 16px;
}

.gallery-admin-edit-preview-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #2a2a2a;
}

.gallery-admin-edit-meta {
  margin-bottom: 8px;
  color: #6b665e;
  font-size: 14px;
}

.gallery-admin-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ebe6dc;
  color: #2a2a2a;
  text-decoration: none;
  white-space: nowrap;
}

.gallery-admin-view-link:hover {
  background: #e0d8ca;
}

.gallery-admin-edit-form-box {
  min-width: 0;
}

.gallery-admin-edit-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.admin-back-link-wrap {
  margin-top: 18px;
  text-align: center;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.admin-back-link:hover {
  background: #e9edf3;
  color: #111827;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .admin-layout {
    min-height: 100vh;
  }

  .admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fcfbf8;
    border-bottom: 1px solid #ddd7cd;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: min(320px, 86vw);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 20px 16px;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .admin-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .admin-brand {
    margin-bottom: 0;
    font-size: 22px;
  }

  .admin-main {
    margin-left: 0;
    min-height: auto;
  }

  .admin-content {
    padding: 20px;
  }

  .admin-topbar {
    padding: 20px;
  }

  .gallery-admin-edit-layout {
    grid-template-columns: 1fr;
  }

  body.admin-mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .admin-mobile-topbar {
    padding: 14px 16px;
  }

  .admin-mobile-topbar-title {
    font-size: 17px;
  }

  .admin-topbar {
    padding: 16px;
  }

  .admin-topbar h1 {
    font-size: 24px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .gallery-admin-title {
    font-size: 22px;
  }

  .gallery-admin-grid {
    grid-template-columns: 1fr;
  }

  .gallery-admin-cards {
    grid-template-columns: 1fr;
  }

  .gallery-admin-card-body {
    padding: 14px;
  }

  .gallery-admin-card-body h3 {
    font-size: 18px;
  }

  .gallery-admin-card-actions {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .admin-mobile-topbar {
    padding: 12px;
  }

  .admin-mobile-topbar-title {
    font-size: 16px;
  }

  .admin-content {
    padding: 12px;
  }

  .admin-topbar {
    padding: 14px 12px;
  }

  .admin-topbar h1 {
    font-size: 22px;
  }

  .admin-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .gallery-admin-title {
    font-size: 20px;
  }

  .gallery-admin-card {
    border-radius: 16px;
  }

  .gallery-admin-card-thumb {
    aspect-ratio: 4 / 3;
  }

  .gallery-admin-card-body {
    padding: 12px;
  }

  .gallery-admin-card-body h3 {
    font-size: 17px;
  }

  .gallery-admin-card-meta {
    gap: 8px;
    margin-bottom: 10px;
  }

  .gallery-admin-card-caption {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .gallery-admin-card-actions {
    gap: 18px;
    padding-top: 10px;
  }

  .gallery-admin-icon-button {
    width: 38px;
    height: 38px;
  }

  .gallery-admin-icon-button svg {
    width: 18px;
    height: 18px;
  }
}

.about-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.about-media-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.about-media-dropzone {
  margin-bottom: 16px;
  border: 2px dashed #cfd4dc;
  border-radius: 16px;
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
}

.about-profile-preview {
  display: block;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
  margin: 0 auto 14px auto;
}

.about-cover-preview {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #ddd;
  margin: 0 auto 14px auto;
}

.about-media-card .admin-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .about-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-media-dropzone {
    min-height: 220px;
    padding: 16px;
  }

  .about-profile-preview {
    width: 120px;
  }

  .about-cover-preview {
    max-width: 100%;
    height: 120px;
  }
}

.admin-load-more-wrap,
.friends-public-load-more-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.admin-load-more-wrap .admin-button,
.friends-public-load-more-wrap .admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #e7e1d6;
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.admin-load-more-wrap .admin-button:hover,
.friends-public-load-more-wrap .admin-button:hover {
  background: #dbd3c6;
  transform: translateY(-1px);
}

.admin-load-more-wrap .admin-button:active,
.friends-public-load-more-wrap .admin-button:active {
  transform: translateY(0);
}

.admin-load-more-wrap .admin-button:disabled,
.friends-public-load-more-wrap .admin-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .admin-load-more-wrap .admin-button,
  .friends-public-load-more-wrap .admin-button {
    width: 100%;
  }
}

.admin-friend-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 14px;
}

.admin-friend-card-actions form {
  margin: 0;
}

.admin-friend-card-actions .admin-button {
  min-width: 110px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.admin-button-secondary {
  background: #e7e1d6;
  color: #2a2a2a;
}

.admin-button-secondary:hover {
  background: #dbd3c6;
}
.admin-shipment-card {
  position: relative;
}

.admin-shipment-card--sent {
  padding-top: 22px;
}

.shipment-card-menu-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.shipment-card-menu-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.shipment-card-menu-toggle:hover,
.shipment-card-menu-toggle:focus-visible,
.shipment-card-menu-toggle.is-open {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
  box-shadow: none;
  outline: none;
}

.shipment-card-menu-toggle span {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.shipment-card-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #e7e1d6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
  text-align: left;
}

.shipment-card-menu[hidden] {
  display: none !important;
}

.shipment-card-menu-form + .shipment-card-menu-form,
.shipment-card-menu-form + .shipment-card-menu-button,
.shipment-card-menu-button + .shipment-card-menu-form {
  margin-top: 6px;
}

.shipment-card-menu-button {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 10px;
  background: #f8f5ef;
  color: #111827;
  font: inherit;
  text-align: left;
  text-decoration: none;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.shipment-card-menu-button:hover,
.shipment-card-menu-button:focus-visible {
  background: #efe8dc;
  outline: none;
}

.shipment-card-menu-button.is-danger {
  background: #fff4f4;
  color: #b42318;
}

.shipment-card-menu-button.is-danger:hover,
.shipment-card-menu-button.is-danger:focus-visible {
  background: #ffe5e5;
}

.shipment-card-menu-form {
  margin: 0;
}

/* ===== 2026-04-22 dashboard redesign ===== */
.dashboard-content {
  display: grid;
  gap: 24px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b7468;
}

.dashboard-hero-main h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  color: #2a2a2a;
}

.dashboard-hero-main p {
  margin: 0;
  max-width: 760px;
  color: #6b665e;
  line-height: 1.7;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.dashboard-button-dark {
  background: #2f2f2f;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.dashboard-button-dark:hover {
  background: #222222;
}

.dashboard-button-light {
  background: #f2ede4;
  color: #2a2a2a;
  border: 1px solid #e2ddd4;
}

.dashboard-button-light:hover {
  background: #ebe4d8;
}

.dashboard-site-card {
  height: 100%;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f3eb 0%, #efe9de 100%);
  border: 1px solid #e0d8ca;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.dashboard-site-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b7468;
}

.dashboard-site-card-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #2a2a2a;
}

.dashboard-site-card-text {
  margin-top: 8px;
  color: #6b665e;
  line-height: 1.55;
}

.dashboard-site-card-url {
  margin-top: 16px;
  font-size: 14px;
  color: #4b5563;
  word-break: break-word;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stat-card {
  padding: 20px 18px;
  border-radius: 18px;
  background: #fcfbf8;
  border: 1px solid #e2ddd4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.dashboard-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1;
}

.dashboard-stat-label {
  margin-top: 10px;
  color: #6b665e;
  line-height: 1.45;
}

.dashboard-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-section-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #2a2a2a;
}

.dashboard-section-head p {
  margin: 0 0 18px;
  color: #6b665e;
  line-height: 1.6;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-quick-card {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f7f4ee;
  border: 1px solid #e2ddd4;
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.45;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-quick-card:hover {
  transform: translateY(-2px);
  background: #f3eee6;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.dashboard-progress-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f7f4ee;
  border: 1px solid #e2ddd4;
  margin-bottom: 18px;
}

.dashboard-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e4ddd1;
  overflow: hidden;
}

.dashboard-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f5a54 0%, #9b9488 100%);
}

.dashboard-status-list,
.dashboard-public-list {
  display: grid;
  gap: 12px;
}

.dashboard-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #ebe4d8;
}

.dashboard-status-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-status-item:last-child {
  padding-bottom: 0;
}

.dashboard-status-item span {
  color: #6b665e;
}

.dashboard-status-item strong {
  text-align: right;
}

.is-good {
  color: #256c3d;
}

.is-missing {
  color: #9b3d2f;
}

.dashboard-module-grid {
  gap: 20px;
}

.dashboard-module-card {
  min-height: 160px;
}

.dashboard-module-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2ede4;
  border: 1px solid #e2ddd4;
  font-size: 12px;
  font-weight: 700;
  color: #5d584f;
  white-space: nowrap;
}

.dashboard-module-badge.is-alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.dashboard-todo-list {
  margin: 0;
  padding-left: 20px;
  color: #4d463d;
}

.dashboard-todo-list li + li {
  margin-top: 10px;
}

.dashboard-empty-note {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f2f7f1;
  border: 1px solid #dbe8db;
  color: #2f5c3e;
  font-weight: 700;
}

@media (max-width: 1400px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-hero,
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .dashboard-hero-main h2 {
    font-size: 28px;
  }

  .dashboard-stats-grid,
  .dashboard-quick-grid,
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }

  .dashboard-module-top,
  .dashboard-status-item,
  .dashboard-progress-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-status-item strong {
    text-align: left;
  }

  .dashboard-hero-actions {
    flex-direction: column;
  }

  .dashboard-button {
    width: 100%;
  }
}

.legal-contact-box {
  display: grid;
  gap: 14px;
  margin: 18px 0 26px;
  padding: 18px;
  border: 1px solid #e4ded4;
  border-radius: 14px;
  background: #faf8f3;
}

.legal-contact-item {
  display: grid;
  gap: 5px;
}

.legal-contact-label {
  font-size: 13px;
  font-weight: 700;
  color: #6f665b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-contact-text,
.legal-contact-link {
  font-size: 16px;
  line-height: 1.5;
}

.legal-contact-link {
  color: #7a4f22;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-contact-box {
    padding: 14px;
  }

  .legal-contact-text,
  .legal-contact-link {
    font-size: 15px;
  }
}
.admin-sidebar .admin-brand-text {
  display: block;
  margin: 0 0 22px;
  padding: 0 14px;
  color: #ffffff;
  text-decoration: none;
}

.admin-sidebar .admin-brand-title {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin-sidebar .admin-brand-logo {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .admin-sidebar .admin-brand-logo {
    max-width: 105px;
  }
}

/* Admin bejegyzések rácsos lista */
.admin-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.admin-posts-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.admin-posts-card-excerpt {
  margin-top: 16px;
  line-height: 1.6;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-posts-card-media {
  margin-top: 16px;
}

.admin-posts-card-media img,
.admin-posts-card-media video {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #dddddd;
  background: #f3f1ec;
}

@media (max-width: 1500px) {
  .admin-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .admin-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-posts-grid {
    grid-template-columns: 1fr;
  }
}


.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  margin: 0;
  cursor: pointer;
}

.admin-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-toggle-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfc8bc;
  transition: background 0.2s ease;
}

.admin-toggle-switch span::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  transition: transform 0.2s ease;
}

.admin-toggle-switch input:checked + span {
  background: #3a3a3a;
}

.admin-toggle-switch input:checked + span::before {
  transform: translateX(24px);
}
