:root {
  --black: #050505;
  --ink: #161412;
  --white: #ffffff;
  --cream: #fbf7ef;
  --gold: #c6a86b;
  --gold-soft: #ead9b2;
  --shadow: 0 24px 70px rgba(22, 20, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(198, 168, 107, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, #f4ead8 100%);
}

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

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.link-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(198, 168, 107, 0.18), transparent 28rem),
    #f6f1e8;
}

.admin-bootstrap {
  font-family: "Inter", Arial, sans-serif;
}

.admin-bootstrap .fw-black {
  font-weight: 900;
}

.admin-navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.admin-hero {
  padding: 24px;
  border: 1px solid rgba(198, 168, 107, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7e7 100%);
  box-shadow: 0 18px 45px rgba(22, 20, 18, 0.06);
}

.admin-card {
  border: 1px solid rgba(198, 168, 107, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.admin-bootstrap .form-control,
.admin-bootstrap .form-select,
.admin-bootstrap .btn,
.admin-bootstrap .alert,
.admin-bootstrap .badge {
  border-radius: 8px;
}

.admin-bootstrap .btn-dark {
  background: var(--black);
  border-color: var(--black);
}

.admin-bootstrap .btn-outline-dark:hover,
.admin-bootstrap .btn-dark:hover {
  background: #221e19;
  border-color: #221e19;
}

.admin-bootstrap .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(198, 168, 107, 0.18);
}

.admin-bootstrap .form-check-input:checked {
  background-color: var(--black);
  border-color: var(--black);
}

.admin-table th {
  padding: 14px 16px;
  background: #fbf7ef;
  color: #6f5b2d;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  min-width: 190px;
  padding: 14px 16px;
}

.admin-table .admin-order-col,
.admin-table td:nth-child(3) {
  min-width: 110px;
  width: 110px;
}

.admin-preview {
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  object-position: 67% center;
  border: 1px solid rgba(198, 168, 107, 0.55);
  border-radius: 8px;
  background: #fff;
}

.admin-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-header h1,
.admin-panel h2 {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

.admin-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.admin-kicker {
  margin: 0 0 6px;
  color: #7a6331;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(198, 168, 107, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(22, 20, 18, 0.08);
}

.admin-login {
  width: min(100%, 420px);
}

.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-panel label {
  display: grid;
  gap: 7px;
  color: #3b342a;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 20, 18, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.admin-panel textarea {
  resize: vertical;
}

.admin-preview {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  object-position: 67% center;
  border-radius: 8px;
  border: 1px solid rgba(198, 168, 107, 0.55);
}

.admin-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--black);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.admin-button--ghost {
  background: transparent;
  color: var(--black);
}

.admin-button--danger {
  border-color: #9d2c22;
  background: #9d2c22;
}

.admin-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-alert--error {
  background: #ffe8e5;
  color: #8f1f15;
}

.admin-alert--success {
  background: #edf8e7;
  color: #2f6b23;
}

.admin-links-panel {
  margin-top: 18px;
}

.admin-links {
  display: grid;
  gap: 12px;
}

.admin-link-card {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 100px 110px 100px;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(22, 20, 18, 0.1);
  border-radius: 8px;
  background: #fff;
}

.admin-check {
  min-height: 46px;
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.admin-check input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 820px) {
  .admin-header,
  .admin-panel-title {
    align-items: stretch;
    flex-direction: column;
  }

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

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

.admin-bootstrap .admin-preview {
  width: 100%;
}

.profile {
  width: min(100%, 460px);
  text-align: center;
}

.portrait-wrap {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1.04;
  margin: 0 auto 18px;
 
 
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 67% center;
}

.brand-logo {
  display: block;
  width: min(78%, 300px);
  height: auto;
  margin: 18px auto 14px;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 12vw, 4.35rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.profile-copy {
  margin: 18px auto 24px;
  max-width: 390px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.55;
  text-transform: uppercase;
}

.profile-copy span {
  display: inline-block;
  margin-top: 5px;
  color: #6f5b2d;
  font-weight: 700;
  text-transform: none;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 22px;
  border: 1px solid rgba(5, 5, 5, 0.9);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(5, 5, 5, 0.16);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(5, 5, 5, 0.2);
  background: #1d1a16;
}

.link-button:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.link-button--light {
  background: var(--white);
  color: var(--black);
  border-color: rgba(198, 168, 107, 0.75);
}

.link-button--light:hover,
.link-button--light:focus-visible {
  background: #fff9eb;
}

.button-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 390px) {
  .link-page {
    padding: 18px 12px;
  }

  .portrait-wrap {
    width: min(100%, 318px);
    margin-bottom: 14px;
  }

  .profile-copy {
    font-size: 0.84rem;
  }

  .link-button {
    min-height: 56px;
    padding-left: 16px;
    font-size: 0.92rem;
  }
}
