/*
 * Nexus Safe brand tokens — aligned with https://nexus-safe.com/
 *


 */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --nexus-ink: #0d1b2a;
  --nexus-ink-soft: #3a4756;
  --nexus-cream: #f3efe7;
  --nexus-surface: #f5f8fc;
  --nexus-white: #ffffff;
  --nexus-teal: #00adb5;
  --nexus-teal-deep: #067d71;
  --nexus-teal-mid: #2ea397;
  --nexus-teal-light: #43bfb2;
  --nexus-gold: #d6a84f;
  --nexus-border: #d9e0ea;
  --nexus-danger: #c0392b;
  --nexus-radius: 16px;
  --nexus-radius-pill: 999px;
  --nexus-shadow: 0 18px 50px rgba(13, 27, 42, 0.12);
  --nexus-font: "Sora", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--nexus-font);
  color: var(--nexus-ink);
  background: var(--nexus-surface);
}

a {
  color: var(--nexus-teal-mid);
  text-decoration: none;
}

a:hover {
  color: var(--nexus-teal-deep);
}

img {
  max-width: 100%;
  height: auto;
}

.flash {
  margin: 0 auto 1.25rem;
  max-width: 480px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.flash-notice {
  background: #e7f7f5;
  color: var(--nexus-teal-deep);
  border: 1px solid #b6e6df;
}

.flash-alert {
  background: #fdecea;
  color: var(--nexus-danger);
  border: 1px solid #f5c6c2;
}

/* ——— Auth (login) ——— */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(0, 173, 181, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(214, 168, 79, 0.16), transparent 35%),
    linear-gradient(160deg, var(--nexus-cream) 0%, var(--nexus-surface) 55%, #e8f4f3 100%);
}

.auth-shell .flash {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--nexus-white);
  border-radius: var(--nexus-radius);
  box-shadow: var(--nexus-shadow);
  padding: 2.25rem 2rem 2rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand img {
  width: 210px;
  margin-bottom: 1rem;
}

.auth-brand h1 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--nexus-ink);
}

.auth-brand p {
  margin: 0;
  color: var(--nexus-ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--nexus-ink);
}

.auth-form .field {
  margin-bottom: 1.1rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--nexus-border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--nexus-ink);
}

.auth-form input:focus {
  outline: 2px solid rgba(0, 173, 181, 0.35);
  border-color: var(--nexus-teal);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1.4rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--nexus-ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: var(--nexus-radius-pill);
  padding: 0.75rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--nexus-teal) 0%, var(--nexus-teal-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 125, 113, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-gold {
  background: var(--nexus-gold);
  color: #fff;
}

.btn-outline {
  background: rgba(46, 163, 151, 0.08);
  color: var(--nexus-teal-mid);
  border: 2px solid var(--nexus-teal-mid);
}

.btn-block {
  width: 100%;
}

.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.88rem;
}

.auth-links a {
  color: var(--nexus-ink-soft);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--nexus-ink-soft);
}

/* ——— App shell ——— */
.app-shell {
  min-height: 100vh;
  background: var(--nexus-surface);
}

.app-header {
  background: rgba(243, 239, 231, 0.92);
  border-bottom: 1px solid rgba(13, 27, 42, 0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-logo img {
  height: 36px;
  width: auto;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-nav a {
  color: var(--nexus-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.app-user {
  color: var(--nexus-ink-soft);
  font-size: 0.85rem;
}

.app-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--nexus-ink);
}

.page-subtitle {
  margin: 0 0 1.75rem;
  color: var(--nexus-ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-tile {
  background: var(--nexus-white);
  border-radius: var(--nexus-radius);
  padding: 1.5rem;
  border: 1px solid rgba(13, 27, 42, 0.06);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.service-tile h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.service-tile p {
  margin: 0;
  color: var(--nexus-ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--nexus-radius-pill);
  background: rgba(0, 173, 181, 0.12);
  color: var(--nexus-teal-deep);
  font-size: 0.75rem;
  font-weight: 600;
}

.empty-state {
  background: var(--nexus-white);
  border-radius: var(--nexus-radius);
  padding: 2rem;
  text-align: center;
  color: var(--nexus-ink-soft);
  border: 1px dashed var(--nexus-border);
}

/* ——— Admin ——— */
.admin-layout .app-main {
  max-width: 1200px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--nexus-white);
  border-radius: var(--nexus-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.05);
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--nexus-border);
  font-size: 0.92rem;
}

.admin-table th {
  background: var(--nexus-cream);
  font-weight: 700;
}

.panel {
  background: var(--nexus-white);
  border-radius: var(--nexus-radius);
  padding: 1.5rem;
  border: 1px solid rgba(13, 27, 42, 0.06);
  margin-bottom: 1.25rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid input[type="url"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--nexus-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.checkbox-list {
  display: grid;
  gap: 0.65rem;
}

.checkbox-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid var(--nexus-border);
  border-radius: 12px;
}

.checkbox-item strong {
  display: block;
}

.checkbox-item span {
  color: var(--nexus-ink-soft);
  font-size: 0.85rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.errors {
  background: #fdecea;
  color: var(--nexus-danger);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.errors ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .auth-row {
    flex-direction: column;
    align-items: stretch;
  }
}
