:root {
  --color-primary: #C8A337;
  --color-primary-light: #D0B05B;
  --color-primary-soft: #E7D7A5;
  --color-dark: #131313;
  --color-black: #0F0F0F;
  --color-bg: #ECE8E3;
  --color-bg-soft: #F3ECDD;
  --color-white: #FFFFFF;
  --color-text: #3F3F3D;
  --color-muted: #A09D9B;
  --color-success: #198754;
  --color-warning: #FFC107;
  --color-danger: #DC3545;
  --color-info: #0D6EFD;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--color-bg);
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(200, 163, 55, .18), transparent 34rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
body,
a,
p,
h1,
h2,
h3,
strong,
small,
span {
  overflow-wrap: anywhere;
}

.app-shell, .admin-shell { min-height: 100vh; max-width: 100%; }
.app-main {
  min-width: 0;
  padding-top: var(--app-header-height, 88px);
}
.app-content {
  width: min(1120px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 16px 118px;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
  background: rgba(236, 232, 227, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 19, 19, .08);
}
.app-header-logo, .app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--color-dark);
}
.app-header-logo img { width: 46px; height: 46px; object-fit: contain; }
.app-brand img { width: 62px; height: 62px; object-fit: contain; }
.app-sidebar, .admin-sidebar {
  display: none;
  background: var(--color-dark);
  color: var(--color-white);
}
.app-nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}
.app-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.72);
  font-weight: 700;
}
.app-nav a:hover, .app-nav a.is-active {
  background: rgba(200, 163, 55, .18);
  color: var(--color-white);
}

.app-page-title {
  display: grid;
  gap: 6px;
  margin: 4px 0 18px;
}
.app-page-title span {
  color: var(--color-primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-page-title h1 {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  line-height: 1.04;
}
.app-page-title p { margin: 0; color: var(--color-text); }

.app-grid { display: grid; gap: 14px; }
.app-grid > * { min-width: 0; }
.app-grid.two, .app-grid.three { grid-template-columns: 1fr; }
.app-section { margin-top: 24px; }
.app-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.app-section-head h2 { margin: 0; color: var(--color-dark); font-size: 1.15rem; }
.app-card {
  min-width: 0;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(19, 19, 19, .08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.app-card.dark {
  background: linear-gradient(145deg, #111 0%, #273842 100%);
  color: var(--color-white);
  border: 0;
}
.app-card h2, .app-card h3 { margin: 0 0 8px; color: var(--color-dark); }
.app-card.dark h2, .app-card.dark h3 { color: var(--color-white); }
.app-card p { margin: 0 0 12px; }
.metric-card strong { display: block; color: var(--color-dark); font-size: 1.8rem; }
.muted { color: var(--color-muted); }

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}
.app-button-primary { background: var(--color-primary); color: var(--color-black); }
.app-button-dark { background: var(--color-dark); color: var(--color-white); }
.app-button-light { background: var(--color-white); color: var(--color-dark); }
.app-button-danger { background: var(--color-danger); color: var(--color-white); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button-row > * { min-width: 0; }

.app-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}
.app-badge-success { background: rgba(25, 135, 84, .12); color: var(--color-success); }
.app-badge-warning { background: rgba(255, 193, 7, .18); color: #7a5a00; }
.app-badge-danger { background: rgba(220, 53, 69, .12); color: var(--color-danger); }
.app-badge-muted { background: rgba(160, 157, 155, .18); color: var(--color-text); }

.app-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.app-alert-success { background: rgba(25, 135, 84, .12); color: var(--color-success); }
.app-alert-danger { background: rgba(220, 53, 69, .12); color: var(--color-danger); }

.app-form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--color-dark); font-size: .88rem; font-weight: 900; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 19, 19, .14);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
.field textarea { min-height: 100px; resize: vertical; }

.app-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid rgba(19, 19, 19, .08); }
.app-table { width: 100%; border-collapse: collapse; background: var(--color-white); min-width: 760px; }
.app-table th, .app-table td { padding: 12px; border-bottom: 1px solid rgba(19, 19, 19, .08); text-align: left; vertical-align: top; }
.app-table th { color: var(--color-dark); font-size: .8rem; text-transform: uppercase; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.app-bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 82px;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(19,19,19,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  color: #565656;
  box-shadow: 0 14px 34px rgba(19,19,19,.16);
  backdrop-filter: blur(18px);
}
.app-bottom-nav a {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  font-size: .72rem;
  font-weight: 800;
}
.bottom-nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.bottom-nav-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}
.app-bottom-nav a.is-active {
  color: var(--color-primary);
}

.route-dashboard .app-content {
  width: 100%;
  max-width: none;
  padding: 0 14px 124px;
}
.dashboard-screen {
  width: min(960px, 100%);
  margin: 0 auto;
}
.dashboard-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 18px 14px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(19,19,19,.08);
  box-shadow: 0 8px 24px rgba(19,19,19,.05);
  backdrop-filter: blur(18px);
}
.app-global-header {
  margin: 0;
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.dashboard-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.dashboard-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dashboard-brand strong {
  color: var(--color-black);
  font-size: clamp(1.3rem, 5vw, 1.85rem);
  line-height: 1;
}
.dashboard-brand small {
  color: #565656;
  font-size: clamp(.78rem, 3vw, 1.05rem);
  white-space: normal;
}
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.dashboard-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--color-black);
}
.dashboard-bell svg,
.dashboard-gold-button svg,
.notice-item svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-bell svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}
.dashboard-bell span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 900;
}
.dashboard-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-primary-soft);
  color: var(--color-dark);
  font-weight: 900;
}
.dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 14px 22px;
}
.dashboard-watermark {
  position: absolute;
  right: -34px;
  top: 18px;
  width: 220px;
  opacity: .055;
  pointer-events: none;
  max-width: 55vw;
}
.dashboard-member-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(200,163,55,.13);
  color: var(--color-primary);
  font-weight: 900;
}
.dashboard-hero h1 {
  position: relative;
  margin: 0;
  color: var(--color-black);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  line-height: 1;
}
.dashboard-hero p {
  position: relative;
  max-width: 520px;
  margin: 16px 0 0;
  color: #54575c;
  font-size: clamp(1rem, 3.5vw, 1.22rem);
  line-height: 1.42;
}
.dashboard-card-pass {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 164px;
  margin-bottom: 18px;
  padding: 22px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, var(--color-primary) 0 18px, transparent 18px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.12), transparent 18rem),
    linear-gradient(145deg, #111, #1b1f22);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.dashboard-card-pass > * {
  min-width: 0;
}
.pass-photo {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.pass-photo img,
.pass-photo > span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-dark);
  font-size: 2rem;
  font-weight: 900;
  object-fit: cover;
}
.pass-photo em {
  padding: 5px 12px;
  border-radius: 999px;
  background: #16a05d;
  color: var(--color-white);
  font-style: normal;
  font-weight: 900;
}
.pass-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.pass-info small,
.dashboard-info-card small,
.dashboard-sponsor small {
  color: var(--color-primary);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pass-info strong {
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  line-height: 1.08;
}
.pass-info span,
.pass-info p {
  margin: 0;
  color: rgba(255,255,255,.78);
}
.pass-qr {
  width: 92px;
  height: 92px;
  border: 4px solid var(--color-primary);
  border-radius: 10px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px, #111 40px 50px, transparent 50px),
    var(--color-white);
  background-size: 40px 40px, 40px 40px, auto;
}
.pass-link {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--color-primary);
  font-weight: 900;
}
.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.dashboard-card-grid > *,
.dashboard-sponsor > *,
.notice-item > * {
  min-width: 0;
}
.dashboard-info-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(19,19,19,.08);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.dashboard-info-card.finance {
  background: linear-gradient(145deg, #edf9f3, #fbfffd);
}
.dashboard-info-card.event {
  background: linear-gradient(145deg, #fff7e7, #fffdf8);
}
.dashboard-info-card > span,
.dashboard-info-card p {
  margin: 0;
  color: #5c5f64;
}
.dashboard-info-card strong {
  color: var(--color-black);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.18;
}
.dashboard-info-card.finance strong {
  color: #0f8f54;
  font-size: clamp(1.55rem, 5vw, 1.95rem);
}
.dashboard-gold-button,
.dashboard-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: auto;
  border-radius: 12px;
  font-weight: 900;
}
.dashboard-gold-button {
  background: var(--color-primary);
  color: var(--color-white);
}
.dashboard-gold-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.dashboard-dark-button {
  background: var(--color-black);
  color: var(--color-white);
}
.dashboard-notices {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(19,19,19,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-card);
}
.dashboard-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.dashboard-section-title h2 {
  margin: 0;
  color: var(--color-black);
  font-size: 1.05rem;
  text-transform: uppercase;
}
.dashboard-section-title a {
  color: var(--color-primary);
  font-weight: 900;
}
.notice-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(19,19,19,.08);
  border-radius: 16px;
}
.notice-item > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}
.notice-item svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.notice-item strong {
  display: block;
  color: var(--color-black);
  font-size: 1.1rem;
}
.notice-item p {
  margin: 5px 0 0;
  color: #5c5f64;
}
.notice-item small {
  color: #777a80;
}
.dashboard-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dashboard-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
}
.dashboard-dots span:first-child {
  background: var(--color-primary);
}
.dashboard-sponsor {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #111, #1b1f22);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.dashboard-sponsor strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}
.dashboard-sponsor p {
  max-width: 320px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
}
.dashboard-sponsor img {
  max-width: 180px;
  max-height: 82px;
  object-fit: contain;
}
.dashboard-sponsor a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 900;
}

@media (max-width: 760px) {
  .dashboard-brand img {
    width: 58px;
    height: 58px;
  }
  .dashboard-brand small {
    white-space: normal;
  }
  .dashboard-actions {
    gap: 8px;
  }
  .dashboard-bell {
    width: 38px;
    height: 38px;
  }
  .dashboard-avatar {
    width: 48px;
    height: 48px;
  }
  .dashboard-card-pass {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 136px;
    padding: 18px 18px 18px 30px;
  }
  .pass-photo img,
  .pass-photo > span {
    width: 62px;
    height: 62px;
    font-size: 1.35rem;
  }
  .pass-photo em {
    padding: 4px 9px;
    font-size: .72rem;
  }
  .pass-info {
    gap: 5px;
  }
  .pass-info small {
    font-size: .68rem;
  }
  .pass-info strong {
    font-size: .98rem;
  }
  .pass-info span,
  .pass-info p {
    font-size: .76rem;
  }
  .pass-qr {
    display: block;
    width: 58px;
    height: 58px;
    border-width: 3px;
    border-radius: 8px;
  }
  .pass-link {
    right: 16px;
    bottom: 12px;
    font-size: .72rem;
  }
  .dashboard-card-grid,
  .dashboard-sponsor {
    grid-template-columns: 1fr;
  }
  .dashboard-info-card {
    min-height: 0;
    padding: 18px;
  }
  .dashboard-section-title h2 {
    font-size: .9rem;
  }
  .notice-item {
    grid-template-columns: auto 1fr;
  }
  .notice-item small {
    display: none;
  }
  .dashboard-sponsor a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .app-main {
    padding-top: var(--app-header-height-mobile, 76px);
  }
  .route-dashboard .app-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .dashboard-topbar {
    margin: 0;
    padding: 14px 16px 12px;
  }
  .dashboard-brand {
    gap: 10px;
  }
  .dashboard-brand img {
    width: 50px;
    height: 50px;
  }
  .dashboard-brand strong {
    font-size: 1.45rem;
  }
  .dashboard-brand small {
    font-size: .86rem;
    line-height: 1.15;
  }
  .dashboard-bell svg {
    width: 25px;
    height: 25px;
  }
  .dashboard-bell span {
    min-width: 20px;
    height: 20px;
    font-size: .8rem;
  }
  .dashboard-avatar {
    width: 44px;
    height: 44px;
  }
  .dashboard-hero {
    padding: 24px 12px 18px;
  }
  .dashboard-watermark {
    width: 180px;
    right: -30px;
  }
  .dashboard-member-badge {
    margin-bottom: 12px;
    padding: 7px 12px;
    font-size: .92rem;
  }
  .dashboard-hero h1 {
    font-size: 2.35rem;
  }
  .dashboard-hero p {
    margin-top: 12px;
    font-size: 1rem;
  }
  .dashboard-card-pass {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pass-qr {
    display: none;
  }
  .pass-link {
    position: static;
    grid-column: 2;
  }
  .app-bottom-nav {
    left: 12px;
    right: 12px;
    min-height: 74px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  }
  .app-bottom-nav a {
    min-height: 56px;
    font-size: .68rem;
  }
  .bottom-nav-icon {
    width: 25px;
    height: 25px;
  }
  .bottom-nav-icon svg {
    width: 23px;
    height: 23px;
  }
}

.auth-body {
  background:
    radial-gradient(circle at 85% 0%, rgba(200, 163, 55, .18), transparent 26rem),
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, .82), transparent 24rem),
    linear-gradient(145deg, #fbf8f1 0%, #efe8dc 48%, #fffaf0 100%);
}
.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.auth-body::before {
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(200,163,55,.12) 22.2% 22.6%, transparent 22.8%),
    linear-gradient(116deg, transparent 0 25%, rgba(255,255,255,.72) 25.2% 25.6%, transparent 25.8%),
    radial-gradient(ellipse at 28% 30%, rgba(19,19,19,.08), transparent 24rem);
  opacity: .72;
}
.auth-body::after {
  background:
    repeating-radial-gradient(ellipse at 92% 100%, rgba(200,163,55,.16) 0 1px, transparent 1px 16px);
  opacity: .58;
}
.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 28px 18px 34px;
}
.auth-panel {
  width: min(680px, 100%);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(200, 163, 55, .18);
  border-radius: 24px;
  box-shadow: 0 18px 56px rgba(19,19,19,.12);
  padding: 24px;
  backdrop-filter: blur(18px);
}
.auth-hero {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.auth-logo {
  width: 138px;
  margin: 0 auto;
  filter: drop-shadow(0 14px 20px rgba(19,19,19,.12));
}
.auth-title h1 {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: .95;
  letter-spacing: .01em;
}
.auth-title h1 span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), #E3BC45 48%, #967215);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-title p {
  margin: 2px 0 0;
  color: #5f5e5b;
  font-size: clamp(.98rem, 2.5vw, 1.2rem);
  font-weight: 600;
}
.auth-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid rgba(200, 163, 55, .28);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  color: #a17b16;
  font-weight: 900;
}
.auth-trust-badge svg,
.auth-card-icon svg,
.auth-input svg,
.auth-submit svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-trust-badge svg { width: 24px; height: 24px; stroke-width: 2; }
.auth-card-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}
.auth-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(200,163,55,.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(231,215,165,.38), rgba(255,255,255,.75));
  color: var(--color-primary);
}
.auth-card-icon.small {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.auth-card-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.auth-card-title h2 {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.08;
}
.auth-card-title p {
  margin: 5px 0 0;
  color: #8a8987;
  font-size: .98rem;
  font-weight: 600;
}
.auth-form { gap: 14px; }
.auth-field { gap: 8px; }
.auth-field label {
  color: var(--color-black);
  font-size: .92rem;
}
.auth-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 15px;
  border: 1px solid rgba(19,19,19,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  color: #777a80;
}
.auth-input:focus-within {
  border-color: rgba(200,163,55,.76);
  box-shadow: 0 0 0 4px rgba(200,163,55,.12);
  color: var(--color-primary);
}
.auth-input > svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}
.auth-input input {
  min-width: 0;
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-dark);
  font-size: .98rem;
  font-weight: 620;
}
.auth-input input::placeholder {
  color: #9a9ca1;
  font-weight: 500;
}
.auth-password-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #777a80;
  cursor: pointer;
}
.auth-password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.auth-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.auth-options a,
.auth-join-card a {
  color: var(--color-primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-options a {
  white-space: normal;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f5e5b;
  min-width: 0;
  font-size: .9rem;
  font-weight: 650;
}
.auth-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-check span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-primary);
  border-radius: 7px;
  background: rgba(255,255,255,.82);
}
.auth-check input:checked + span {
  background: var(--color-primary);
  box-shadow: inset 0 0 0 5px var(--color-white);
}
.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(200,163,55,.28), inset 0 1px 0 rgba(255,255,255,.28);
  font-size: 1.06rem;
}
.auth-submit svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}
.auth-join-card,
.auth-admin-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(200,163,55,.16);
}
.auth-join-card strong,
.auth-admin-note strong {
  display: block;
  color: var(--color-dark);
  font-size: 1.05rem;
}
.auth-join-card a {
  display: inline-block;
  margin-top: 4px;
}
.auth-admin-note span {
  display: block;
  margin-top: 4px;
  color: #777a80;
}

@media (max-width: 380px) {
  .auth-page {
    padding: 18px 14px;
  }
  .auth-logo {
    width: 118px;
  }
  .auth-panel {
    padding: 20px;
    border-radius: 22px;
  }
  .auth-card-title {
    grid-template-columns: 52px 1fr;
  }
  .auth-card-icon {
    width: 52px;
    height: 52px;
  }
  .auth-card-title h2 {
    font-size: 1.42rem;
  }
  .auth-card-title p {
    font-size: .92rem;
  }
  .auth-options {
    grid-template-columns: 1fr;
  }
  .auth-options a {
    white-space: normal;
  }
}

.hero-card {
  display: grid;
  gap: 18px;
  background: linear-gradient(135deg, var(--color-dark), #2B3C45);
  color: var(--color-white);
  margin: -18px 0 0;
  border-radius: 0;
  padding: 42px 24px 36px;
  overflow: hidden;
}
.hero-card h1 { margin: 0; color: var(--color-white); font-size: clamp(2rem, 7vw, 3.4rem); }
.hero-card p { color: rgba(255,255,255,.78); }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action { background: var(--color-white); border-radius: var(--radius-md); padding: 14px; font-weight: 900; color: var(--color-dark); }

.media-card { display: grid; gap: 12px; }
.media-thumb {
  min-height: 150px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  object-fit: cover;
}
.digital-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(200,163,55,.18), transparent 42%),
    linear-gradient(145deg, #0f0f0f, #2c3e48);
}
.digital-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 30px solid rgba(200,163,55,.18);
  pointer-events: none;
}
.digital-logo { width: 96px; }
.qr-box {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}
.app-empty-state {
  padding: 30px 18px;
  text-align: center;
  border: 1px dashed rgba(19,19,19,.18);
  border-radius: var(--radius-md);
  color: var(--color-muted);
}
.favorites-title {
  margin-bottom: 18px;
}
.favorite-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.favorite-app-icon {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  padding: 18px 12px;
  border: 1px solid rgba(19,19,19,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.favorite-icon-tile {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 34px),
    linear-gradient(145deg, #E6C765, var(--color-primary));
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(200,163,55,.28);
}
.favorite-icon-tile svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.favorite-app-icon strong {
  color: var(--color-black);
  font-size: 1rem;
  line-height: 1.15;
}
.favorite-app-icon small {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(200,163,55,.12);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 900;
}
.favorite-app-icon em {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #666;
  font-size: .82rem;
  font-style: normal;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.profile-install-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.profile-install-card h2 {
  margin: 10px 0 6px;
}
.profile-install-card p {
  margin: 0;
  color: #5c5f64;
}

@media (min-width: 760px) {
  .app-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
  .app-sidebar {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    padding: 22px;
  }
  .app-content { padding: 34px 28px; }
  .app-main {
    padding-top: var(--app-header-height, 88px);
  }
  .app-global-header {
    margin: 0;
  }
  .app-main > .dashboard-topbar {
    left: 280px;
    right: 0;
    top: 0;
  }
  .route-dashboard .app-content {
    padding: 0 28px 124px;
  }
  .hero-card {
    margin: -34px 0 0;
    border-radius: 0;
    padding: 56px 44px 44px;
  }
  .app-bottom-nav { display: none; }
}
