/* Yakupbaba UI — readable type, calmer surfaces, motion */

:root {
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --muted: #697386;
  --muted2: #697386;
  --admin-font: var(--font-sans);
}

body,
.customer-app,
.lang-gate-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.admin-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.45;
}

.brand__name,
.lang-gate__title,
.form__title,
.visual-card__heading,
.result__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
}

.lang-gate__title {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #f6f1e6;
  color: #f6f1e6;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 560;
  line-height: 1.15;
}

.lang-gate__subtitle,
.lang-gate__hint,
.customer-app .form__subtitle,
.left__subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.lang-choice__label {
  font-size: 0.98rem;
  font-weight: 700;
}

.lang-choice__go {
  font-size: 0.8rem;
  color: var(--muted2);
}

.customer-app .form__title {
  font-size: 1.7rem;
  font-weight: 560;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.customer-app .label,
.admin-field label {
  font-size: 0.95rem;
  font-weight: 650;
}

.customer-app .control,
.admin-input,
.admin-select,
textarea.admin-input {
  font-size: 1rem;
  line-height: 1.4;
}

.customer-app .control:focus,
.admin-input:focus,
.admin-select:focus,
textarea.admin-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.btn-primary,
.admin-btn,
.lang-choice,
.admin-nav-link,
.social-btn,
.control,
.admin-input {
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    opacity 0.22s var(--ease-out);
}

.admin-nav-link {
  font-size: 0.84rem;
  padding: 0.42rem 0.7rem;
  gap: 0.55rem;
}

.admin-topbar__title,
.admin-panel__title,
.admin-login-card h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-login-hero h1 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
}

.admin-login-hero {
  padding: 1.75rem 1.5rem;
}

.admin-login-hero p {
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 28rem;
}

.yb-mark {
  width: 58%;
  height: auto;
  aspect-ratio: 1;
  display: block;
}

.admin-sidebar__logo,
.admin-login-hero__logo {
  border-radius: 10px;
  margin: 0;
  box-shadow: none;
  background: linear-gradient(160deg, #f0cc62, #b9952f);
  color: #1c1408;
}

.admin-sidebar__logo {
  width: 36px;
  height: 36px;
}

.admin-login-hero__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.admin-sidebar {
  padding: 0.85rem 0.7rem;
}

.admin-sidebar__brand {
  padding: 0.15rem 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.admin-sidebar__name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.admin-stat-card {
  padding: 0.75rem 0.85rem;
}

.admin-topbar {
  padding: 0.65rem 1rem;
}

.admin-stat-card__label,
.admin-table th,
.admin-pay-card__method {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.admin-stat-card__value {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.admin-stat-card__hint,
.admin-help__body p,
.admin-user-chip__role,
.admin-sidebar__tag {
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-table {
  font-size: 0.95rem;
}

.admin-table td {
  font-variant-numeric: tabular-nums;
}

.admin-content {
  padding: 0.9rem 1rem 1.5rem;
}

.admin-panel,
.admin-stat-card,
.glass,
.lang-gate__card,
.admin-login-hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-login-hero__headline {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.admin-login-card {
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    background-color 0.28s var(--ease-out);
}

.order-track,
.order-items {
  margin: 1rem 0;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-track__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.4rem 0;
  font-size: 0.98rem;
}

.order-track__badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.16);
  color: #f3e2a4;
}

.order-items__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 560;
}

.order-items__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.order-items__table th,
.order-items__table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.order-items__table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}

.order-items__table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.order-items__legacy {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.98rem;
  line-height: 1.6;
}

.order-items__total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 750;
  font-size: 1.05rem;
}

.order-items__empty {
  font-size: 0.95rem;
  color: var(--muted);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: yb-out 180ms ease both;
}

::view-transition-new(root) {
  animation: yb-in 320ms var(--ease-out) both;
}

@keyframes yb-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes yb-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes yb-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.js .admin-stat-card,
.js .lang-gate__card,
.js .lang-choice,
.js .layout > .animate-in,
.js .admin-login-card,
.js .admin-login-hero__content {
  opacity: 0;
}

.js.yb-ready .admin-stat-card,
.js.yb-ready .lang-gate__card,
.js.yb-ready .lang-choice,
.js.yb-ready .layout > .animate-in,
.js.yb-ready .admin-login-card,
.js.yb-ready .admin-login-hero__content {
  opacity: 1;
  animation: yb-rise 0.55s var(--ease-out) both;
}

.js.yb-ready .admin-grid > .admin-stat-card:nth-child(2) { animation-delay: 45ms; }
.js.yb-ready .admin-grid > .admin-stat-card:nth-child(3) { animation-delay: 90ms; }
.js.yb-ready .admin-grid > .admin-stat-card:nth-child(4) { animation-delay: 135ms; }
.js.yb-ready .lang-gate__choices .lang-choice:nth-child(2) { animation-delay: 40ms; }
.js.yb-ready .lang-gate__choices .lang-choice:nth-child(3) { animation-delay: 80ms; }
.js.yb-ready .lang-gate__choices .lang-choice:nth-child(4) { animation-delay: 120ms; }
.js.yb-ready .lang-gate__choices .lang-choice:nth-child(5) { animation-delay: 160ms; }
.js.yb-ready .lang-gate__choices .lang-choice:nth-child(6) { animation-delay: 200ms; }
.js.yb-ready .layout > .animate-in:nth-child(2) { animation-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
  .js .admin-stat-card,
  .js .lang-gate__card,
  .js .lang-choice,
  .js .layout > .animate-in,
  .js .admin-login-card,
  .js .admin-login-hero__content,
  .js.yb-ready .admin-stat-card,
  .js.yb-ready .lang-gate__card,
  .js.yb-ready .lang-choice,
  .js.yb-ready .layout > .animate-in,
  .js.yb-ready .admin-login-card,
  .js.yb-ready .admin-login-hero__content {
    opacity: 1;
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
