@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --orca-ink: #141416;
  --orca-muted: #676c77;
  --orca-sky: #eaf4fa;
  --orca-glass: rgba(255, 255, 255, 0.86);
  --orca-line: rgba(20, 20, 22, 0.1);
  --orca-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
}

html[data-theme="dark"] {
  --orca-ink: #eaf4fa;
  --orca-muted: #a9bac6;
  --orca-sky: #0b1220;
  --orca-glass: rgba(20, 32, 46, 0.86);
  --orca-line: rgba(255, 255, 255, 0.12);
}

body {
  color: var(--orca-ink);
  background-color: var(--orca-sky);
  background-image:
    radial-gradient(90% 70% at 8% -10%, rgba(255, 248, 214, 0.68) 0%, rgba(255, 248, 214, 0) 58%),
    radial-gradient(70% 60% at 96% 6%, rgba(196, 216, 255, 0.42) 0%, rgba(196, 216, 255, 0) 60%),
    linear-gradient(180deg, #edf7fc 0%, #dcebf5 52%, #f4fafc 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(90% 70% at 8% -10%, rgba(72, 92, 128, 0.32) 0%, rgba(72, 92, 128, 0) 58%),
    linear-gradient(180deg, #111c2b 0%, #0b1220 60%, #101a28 100%);
}

.app-header,
.admin-sidebar,
.admin-topbar {
  border-color: var(--orca-line) !important;
  background: var(--orca-glass) !important;
  box-shadow: 0 12px 34px rgba(46, 68, 90, 0.1) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.app-main h1,
.app-main h2,
.admin-main h1,
.admin-main h2,
.sheet-card h2,
.glass-card h2 {
  font-family: var(--orca-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.eyebrow {
  color: #4f7b95;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow {
  color: #8fb8ce;
}

.btn-primary,
.hero-button,
.list-button,
.auth-submit {
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover,
.hero-button:hover,
.list-button:hover,
.auth-submit:hover {
  background: #232327;
}

.btn-quiet,
.chip {
  border: 1px solid var(--orca-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--orca-ink);
}

html[data-theme="dark"] .btn-quiet,
html[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, 0.08);
}

body[data-page] .app-nav a.is-active,
body[data-page] .app-nav a[aria-current="page"],
body .admin-nav-item.is-active,
body .admin-nav-item[aria-current="page"] {
  border: 1px solid rgba(90, 120, 255, 0.38) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #11131b, #242752) !important;
  box-shadow:
    0 10px 24px -12px rgba(47, 109, 246, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

input,
select,
textarea {
  border-color: var(--orca-line);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: var(--orca-ink);
}

.orca-confirm {
  width: min(430px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orca-ink);
  overflow: visible;
}

.orca-confirm::backdrop {
  background: rgba(26, 40, 52, 0.34);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.orca-confirm-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: var(--orca-glass);
  box-shadow: 0 30px 80px rgba(16, 36, 54, 0.28);
  text-align: center;
}

.orca-confirm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(180, 56, 79, 0.12);
  color: #b4384f;
}

.orca-confirm-icon svg {
  width: 24px;
  height: 24px;
}

.orca-confirm-title {
  margin: 0 0 10px;
  font-family: var(--orca-serif);
  font-size: 30px;
  font-weight: 400;
}

.orca-confirm-message {
  margin: 0 0 24px;
  color: var(--orca-muted);
  font-size: 14px;
  line-height: 1.6;
}

.orca-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.orca-confirm-cancel,
.orca-confirm-accept {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--orca-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.orca-confirm-cancel {
  background: rgba(255, 255, 255, 0.72);
  color: var(--orca-ink);
}

.orca-confirm-accept {
  border-color: #b4384f;
  background: #b4384f;
  color: #fff;
}

.orca-confirm-accept:hover {
  background: #982f43;
}

html[data-theme="dark"] .orca-confirm-card {
  border-color: var(--orca-line);
}

html[data-theme="dark"] .orca-confirm-cancel {
  background: rgba(255, 255, 255, 0.08);
}

.analytics-delete {
  min-height: 32px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--orca-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #b4384f;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.analytics-delete:hover,
.analytics-delete:focus-visible {
  border-color: #b4384f;
  background: #b4384f;
  color: #fff;
}

html[data-theme="dark"] .analytics-delete {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .orca-confirm-card {
    padding: 22px;
  }

  .orca-confirm-actions {
    flex-direction: column;
  }
}
