/* ── 真镜 · Film-studio brand tokens ── */
:root {
  --ink: #0a1218;
  --ink-soft: #142028;
  --teal: #1a4a52;
  --teal-bright: #2a7a82;
  --teal-glow: rgba(42, 122, 130, 0.35);
  --charcoal: #1e2a32;
  --slate: #3d5560;
  --mist: #8aa3ad;
  --fog: #c8d8de;
  --paper: #eef4f6;
  --white: #f8fbfc;
  --amber: #d4a054;
  --amber-light: #e8c078;
  --amber-glow: rgba(212, 160, 84, 0.25);
  --danger: #c45c5c;
  --success: #3d8a6e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(10, 18, 24, 0.18);
  --font-brand: 'Noto Serif SC', 'Songti SC', serif;
  --font-ui: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ── Layout shell ── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Site header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 18, 24, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.nav-brand .nav-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 251, 252, 0.75);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.router-link-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
  color: var(--ink);
  box-shadow: 0 4px 20px var(--amber-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(212, 160, 84, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal-bright);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--fog);
}

.btn-ghost:hover {
  border-color: var(--teal-bright);
  color: var(--teal);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero (home) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(42, 122, 130, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(212, 160, 84, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #0a1218 0%, #142830 35%, #1a3840 65%, #0f2028 100%);
  animation: gradientShift 18s ease-in-out infinite alternate;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10, 18, 24, 0.9), transparent);
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
}

.hero-brand {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.hero-brand .hero-logo {
  width: min(280px, 58vw);
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.hero-slogan {
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.2em;
  color: var(--amber-light);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  color: rgba(248, 251, 252, 0.95);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.hero-support {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(200, 216, 222, 0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-support strong {
  color: var(--amber-light);
  font-weight: 600;
}

.hero-cta {
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) forwards;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.22s; }
.fade-up-d3 { animation-delay: 0.34s; }
.fade-up-d4 { animation-delay: 0.46s; }
.fade-up-d5 { animation-delay: 0.58s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--ink-soft);
  color: var(--fog);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--amber-light);
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 640px;
  line-height: 1.75;
}

.section-dark .section-desc {
  color: var(--mist);
}

/* ── Feature strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  padding: 2rem;
  border-left: 3px solid var(--teal-bright);
  background: linear-gradient(135deg, rgba(26, 74, 82, 0.04) 0%, transparent 100%);
}

.feature-item h3 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.7;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.step h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.65;
}

/* ── Page header (inner pages) ── */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(42, 122, 130, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--mist);
  max-width: 560px;
  font-size: 1.05rem;
}

/* ── Library filters & grid ── */
.filter-bar {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-bar-row.filter-price-row {
  padding-top: 0.25rem;
  border-top: 1px solid var(--fog);
}

.filter-price-row .price-input {
  width: 7rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--paper);
  outline: none;
}

.filter-price-row .price-input:focus {
  border-color: var(--teal-bright);
}

.price-sep {
  color: var(--mist);
  font-size: 0.85rem;
}

.result-count {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.tag-sm {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-right: 0.25rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--fog);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--teal-bright);
  background: var(--teal);
  color: var(--white);
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--teal-bright);
}

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

.asset-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 18, 24, 0.15);
}

.asset-card-thumb {
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--charcoal) 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}

.asset-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-thumb .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
}

/* Watermark overlay on preview thumbs */
.asset-card-thumb.has-watermark::after,
.detail-preview.has-watermark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -24deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.04) 48px,
    rgba(255, 255, 255, 0.04) 49px
  );
}

.watermark-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(10, 18, 24, 0.88) 0%, rgba(10, 18, 24, 0.45) 70%, transparent 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.asset-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(10, 18, 24, 0.75);
  color: var(--amber-light);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.asset-card-body {
  padding: 1.25rem;
}

.asset-card-body h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.asset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate);
}

.asset-price {
  font-weight: 700;
  color: var(--teal);
  font-size: 1rem;
}

/* ── Detail page ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

.detail-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 3 / 4;
  position: relative;
  box-shadow: var(--shadow);
}

.detail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-family: var(--font-brand);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.detail-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(26, 74, 82, 0.1);
  color: var(--teal);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.detail-price-note {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 2rem;
}

.detail-text {
  color: var(--slate);
  line-height: 1.75;
  font-size: 0.95rem;
}

.training-forbid-note {
  padding: 1rem 1.25rem;
  background: rgba(196, 92, 92, 0.06);
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.detail-section {
  margin-bottom: 1.75rem;
}

.detail-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  background: var(--paper);
  border-radius: 999px;
  color: var(--slate);
}

.restriction-list {
  list-style: none;
}

.restriction-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--slate);
  border-bottom: 1px solid var(--fog);
}

.restriction-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

.compliance-note {
  padding: 1rem 1.25rem;
  background: rgba(212, 160, 84, 0.08);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ── Auth forms ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(42, 122, 130, 0.15) 0%, transparent 50%),
    var(--paper);
}

.auth-card {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-brand img {
  width: 96px;
  height: auto;
  border-radius: 14px;
  display: block;
}

.auth-card h1 {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.req {
  color: var(--danger);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 1rem 0 0.5rem;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.profile-link {
  color: var(--teal-bright);
  font-weight: 600;
  text-decoration: underline;
}

.inline-field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.inline-field input {
  flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-bright);
}

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

.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-option {
  padding: 1rem;
  border: 2px solid var(--fog);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.role-option:hover {
  border-color: var(--teal-bright);
}

.role-option.selected {
  border-color: var(--teal);
  background: rgba(26, 74, 82, 0.06);
}

.role-option strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.role-option span {
  font-size: 0.8rem;
  color: var(--slate);
}

.form-error {
  padding: 0.75rem 1rem;
  background: rgba(196, 92, 92, 0.1);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.form-footer a {
  color: var(--teal-bright);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ── Workspace ── */
.workspace {
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
}

.workspace-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.workspace-header h1 {
  font-family: var(--font-brand);
  font-size: 1.75rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--fog);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--teal);
}

.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal-bright);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.order-item:hover {
  box-shadow: 0 12px 40px rgba(10, 18, 24, 0.12);
}

.order-item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.order-item h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--paper);
  color: var(--slate);
}

.status-badge.pending { background: rgba(212, 160, 84, 0.15); color: #9a7030; }
.status-badge.approved { background: rgba(61, 138, 110, 0.12); color: var(--success); }
.status-badge.rejected { background: rgba(196, 92, 92, 0.12); color: var(--danger); }
.status-badge.completed { background: rgba(26, 74, 82, 0.12); color: var(--teal); }
.status-badge.paid { background: rgba(42, 122, 130, 0.15); color: var(--teal-bright); }

.order-meta {
  font-size: 0.85rem;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Order detail panel ── */
.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.panel h2 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.timeline {
  list-style: none;
  padding-left: 1.5rem;
  border-left: 2px solid var(--fog);
}

.timeline li {
  position: relative;
  padding-bottom: 1.25rem;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--slate);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fog);
}

.timeline li.done::before {
  background: var(--teal-bright);
}

.timeline li.current::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-glow);
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fog);
}

/* ── Compliance page ── */
.compliance-content {
  max-width: 760px;
  padding: 3rem 0 5rem;
}

.compliance-content h2 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.compliance-content p,
.compliance-content li {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.compliance-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.compliance-highlight {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 74, 82, 0.06) 0%, rgba(212, 160, 84, 0.06) 100%);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.compliance-highlight strong {
  color: var(--teal);
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.do-box, .dont-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.do-box {
  background: rgba(61, 138, 110, 0.08);
  border: 1px solid rgba(61, 138, 110, 0.2);
}

.dont-box {
  background: rgba(196, 92, 92, 0.06);
  border: 1px solid rgba(196, 92, 92, 0.15);
}

.do-box h3, .dont-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.do-box h3 { color: var(--success); }
.dont-box h3 { color: var(--danger); }

.do-box li, .dont-box li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-brand .footer-logo {
  height: 88px;
  width: auto;
  display: block;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--amber-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ── Utilities ── */
.loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--slate);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--slate);
}

.empty-state h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--fog);
  border-top-color: var(--teal-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-info {
  background: rgba(42, 122, 130, 0.1);
  color: var(--teal);
}

.alert-success {
  background: rgba(61, 138, 110, 0.12);
  color: var(--success);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 24, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal.modal-wide {
  width: min(560px, 100%);
}

.sku-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sku-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sku-option.active {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.06);
}

.sku-option input {
  margin: 0;
}

.sku-label {
  font-weight: 600;
}

.sku-price {
  font-weight: 600;
  color: var(--amber, #c9a227);
}

.sku-desc {
  grid-column: 2 / -1;
  font-size: 0.85rem;
  color: var(--slate, #64748b);
}

.cert-link-box {
  margin-top: 0.5rem;
}

.restriction-editor-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.restriction-editor .editor-hint {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.restriction-list.editable li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.restriction-list.editable li.empty-hint {
  color: var(--mist);
  font-style: italic;
}

.restriction-list.editable li.empty-hint::before {
  content: none;
}

.profile-panel {
  max-width: 520px;
}

.modal h2 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ── Mobile nav ── */
@media (max-width: 900px) {
  .feature-strip,
  .steps,
  .detail-layout,
  .footer-grid,
  .do-dont {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 18, 24, 0.97);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .library-toolbar,
  .filter-bar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .hero-brand {
    margin-bottom: 0.75rem;
  }

  .hero-brand .hero-logo {
    width: min(200px, 52vw);
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  .role-select {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

.sku-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sku-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sku-option.active {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.06);
}

.sku-option input {
  margin: 0;
}

.sku-label {
  font-weight: 600;
}

.sku-price {
  font-weight: 600;
  color: var(--amber, #c9a227);
}

.sku-desc {
  grid-column: 2 / -1;
  font-size: 0.85rem;
  color: var(--slate, #64748b);
}

.cert-link-box {
  margin-top: 0.5rem;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.cart-icon { font-size: 1.25rem; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber, #c9a227);
  color: #1a2332;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tier-tab {
  padding: 0.45rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: var(--slate, #64748b);
  cursor: pointer;
  font-size: 0.9rem;
}

.tier-tab.active {
  border-color: var(--teal, #0d9488);
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal, #0d9488);
  font-weight: 600;
}

.order-item.disabled { opacity: 0.6; pointer-events: none; }

/* ── Notifications inbox ── */
.page-wrap { padding: 2.5rem 0 4rem; }
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem;
}
.page-head h1 { font-family: var(--font-brand); font-size: 1.75rem; color: var(--ink); }
.loading-hint { text-align: center; padding: 3rem; color: var(--slate); }
.nav-badge {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px; border-radius: 9px; background: var(--coral, #e05252);
  color: #fff; font-size: 0.72rem; line-height: 18px; text-align: center; font-weight: 700;
}
.notif-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(20,30,40,.08); background: #fff; }
.notif-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--fog, #eef1f4); cursor: pointer; transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f8fafb; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-bright, #0d9488); flex: none; }
.notif-dot.dot-order_review, .notif-dot.dot-order_action { background: #e0a852; }
.notif-dot.dot-casting_pending { background: #6b8e23; }
.notif-dot.dot-booking_pending { background: #4a7fb5; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.notif-text { color: var(--slate); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-arrow { color: var(--slate); font-size: 1.4rem; line-height: 1; }

/* ── Featured asset tag ── */
.asset-card-thumb .asset-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: rgba(13,148,136,.92); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
}
