
    :root {
      --text-white: #f5f7fb;
      --text-dim: rgba(245, 247, 251, 0.7);
      --accent-color: #b40812;
      --header-bg: rgba(7, 12, 22, 0.78);
      --header-border: rgba(184, 201, 224, 0.12);
      --glass-border: rgba(184, 201, 224, 0.1);
      --cubic-fluid: cubic-bezier(0.16, 1, 0.3, 1);
      --header-height: 78px;
      --page-bg: #0d1117;
      --page-bg-2: #1a2332;
      --panel-bg: rgba(255, 255, 255, 0.02);
      --panel-border: rgba(255, 255, 255, 0.06);
      --panel-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
      --blue: #007aff;
      --blue-soft: rgba(0, 122, 255, 0.1);
      --green: #00e676;
      --green-soft: rgba(0, 230, 118, 0.12);
      --gold: #d4b071;
      --wechat: #31c46c;
      --alipay: #1f8bff;
    }

    * { box-sizing: border-box; }

    html,
    body {
      margin: 0;
      width: 100%;
      min-height: 100%;
      overflow: hidden;
      background-color: var(--page-bg);
      background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 122, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(230, 162, 60, 0.03) 0%, transparent 40%),
        radial-gradient(circle at center, var(--page-bg-2) 0%, var(--page-bg) 100%);
      color: var(--text-white);
      font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    body.modal-open { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button,
    input { font: inherit; }
    button { cursor: pointer; }

    #particleCanvas {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      z-index: 0;
      display: block;
      pointer-events: none;
    }

    .spatial-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: var(--header-height);
      z-index: 1000;
      padding: 0 38px;
      display: grid;
      grid-template-columns: 120px 1fr auto 1fr 120px;
      align-items: center;
      background: var(--header-bg);
      border-bottom: 1px solid var(--header-border);
      box-shadow: 0 18px 42px rgba(2, 8, 18, 0.34);
      backdrop-filter: blur(18px) saturate(135%);
      -webkit-backdrop-filter: blur(18px) saturate(135%);
    }

    .nav-anchor-left { justify-self: start; }
    .nav-anchor-right { justify-self: end; }

    .header-link-btn {
      color: rgba(245, 247, 251, 0.82);
      font-size: 11px;
      letter-spacing: 0.25em;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.3s, text-shadow 0.3s;
      text-shadow: 0 0 16px rgba(8, 12, 22, 0.2);
      border: 0;
      background: transparent;
      padding: 0;
      font-family: inherit;
    }

    .header-link-btn:hover {
      color: var(--accent-color);
      text-shadow: none;
    }

    .nav-cluster-left {
      display: flex;
      gap: 45px;
      justify-content: flex-end;
      padding-right: 45px;
    }

    .nav-cluster-right {
      display: flex;
      gap: 45px;
      justify-content: flex-start;
      padding-left: 45px;
    }

    .nav-node {
      color: rgba(245, 247, 251, 0.68);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.15em;
      cursor: pointer;
      position: relative;
      transition: color 0.3s;
      text-shadow: 0 0 18px rgba(8, 12, 22, 0.22);
    }

    .nav-node:hover,
    .nav-node.active { color: var(--accent-color); }

    .nav-node::after {
      content: "";
      position: absolute;
      bottom: -8px;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--accent-color);
      transition: width 0.4s var(--cubic-fluid);
      transform: translateX(-50%);
      box-shadow: 0 0 8px rgba(184, 151, 80, 0.42);
    }

    .nav-node.active::after { width: 100%; }

    .nav-brand {
      text-align: center;
      color: var(--text-white);
      cursor: pointer;
      text-shadow: 0 0 24px rgba(8, 12, 22, 0.24);
    }

    .brand-txt {
      font-family: Georgia, serif;
      font-size: 26px;
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    .brand-sub {
      display: block;
      margin-top: 3px;
      font-size: 8px;
      letter-spacing: 0.35em;
      color: var(--accent-color);
    }

    .site-menu-dropdown {
      position: fixed;
      left: 0;
      right: 0;
      top: var(--header-height);
      z-index: 998;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-12px);
      pointer-events: none;
      color: rgba(245, 247, 251, 0.86);
      background: transparent;
      border-top: 1px solid var(--glass-border);
      border-bottom: 1px solid var(--glass-border);
      box-shadow: 0 26px 60px rgba(3, 8, 18, 0.42);
      transition: max-height 0.55s var(--cubic-fluid), opacity 0.32s ease, transform 0.42s var(--cubic-fluid);
    }

    .site-menu-dropdown::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(16, 24, 38, 0.9), rgba(8, 14, 26, 0.94)),
        radial-gradient(circle at top left, rgba(0, 122, 255, 0.1), transparent 38%);
      backdrop-filter: blur(18px) saturate(135%);
      -webkit-backdrop-filter: blur(18px) saturate(135%);
      pointer-events: none;
    }

    .site-menu-dropdown::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -24px;
      height: 90px;
      background: rgba(8, 14, 24, 0.88);
      filter: blur(22px);
      pointer-events: none;
    }

    body.menu-open .site-menu-dropdown {
      max-height: 360px;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    body.menu-open .spatial-header {
      background: rgba(7, 12, 22, 0.9);
      border-bottom-color: var(--glass-border);
    }

    .site-menu-shell {
      position: relative;
      z-index: 1;
      width: min(820px, calc(100% - 96px));
      min-height: 245px;
      padding: 28px 0 30px 18px;
      display: grid;
      grid-template-columns: 190px minmax(260px, 340px) minmax(260px, 1fr);
      gap: 34px;
      margin-left: 48px;
      margin-right: auto;
    }

    .menu-primary-list,
    .menu-secondary-list,
    .menu-third-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
    }

    .menu-primary-list {
      gap: 12px;
      padding-right: 22px;
      padding-left: 10px;
      border-right: 1px solid rgba(184, 201, 224, 0.12);
    }

    .menu-primary,
    .menu-secondary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      border: 0;
      background: transparent;
      color: rgba(245, 247, 251, 0.76);
      text-decoration: none;
      font-family: inherit;
      text-align: left;
      cursor: pointer;
      text-shadow: none;
      transition: color 0.22s ease, transform 0.22s ease;
    }

    .menu-primary {
      padding: 8px 0;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.18em;
      margin-bottom: 0;
    }

    .menu-primary::after,
    .menu-secondary::after {
      content: "›";
      width: auto;
      height: auto;
      background: transparent;
      box-shadow: none;
      color: rgba(245, 247, 251, 0.26);
      font-size: 18px;
      letter-spacing: 0;
      transition: color 0.22s ease, transform 0.22s ease;
    }

    .menu-secondary {
      padding: 5px 0;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.7;
      letter-spacing: 0.08em;
    }

    .menu-primary.active,
    .menu-primary:hover,
    .menu-secondary.active,
    .menu-secondary:hover {
      color: var(--accent-color);
      transform: translateX(4px);
    }

    .menu-primary.active::after,
    .menu-primary:hover::after,
    .menu-secondary.active::after,
    .menu-secondary:hover::after {
      color: var(--accent-color);
      transform: translateX(4px);
    }

    .menu-panel {
      display: none;
      min-height: 210px;
    }

    .menu-panel.active { display: contents; }

    .menu-secondary-list {
      gap: 12px;
      padding-right: 30px;
      border-right: 1px solid rgba(184, 201, 224, 0.12);
    }

    .menu-tertiary-column { padding-left: 0; }

    .menu-third-list { gap: 10px; }

    .menu-third-list a {
      color: rgba(245, 247, 251, 0.7);
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.7;
      letter-spacing: 0.08em;
      text-shadow: none;
      transition: color 0.22s ease, transform 0.22s ease;
    }

    .menu-third-list a:hover {
      color: var(--accent-color);
      transform: translateX(4px);
    }

    .menu-tertiary-group { display: none; }
    .menu-tertiary-group.active { display: block; }

    .menu-third-label {
      display: block;
      margin-bottom: 12px;
      color: rgba(203, 213, 225, 0.62);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .menu-third-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .menu-third-list a {
      color: rgba(245, 247, 251, 0.7);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.7;
      letter-spacing: 0.08em;
      transition: color 0.22s ease, transform 0.22s ease;
    }

    .site-search-panel {
      position: fixed;
      top: 20px;
      right: 112px;
      width: min(520px, calc(100vw - 170px));
      z-index: 1001;
      padding: 0;
      border: 0;
      opacity: 0;
      visibility: hidden;
      transform: scaleX(0.1);
      transform-origin: right center;
      pointer-events: none;
      transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s var(--cubic-fluid);
    }

    body.site-search-open .site-search-panel {
      opacity: 1;
      visibility: visible;
      transform: scaleX(1);
      pointer-events: auto;
    }

    .site-search-form {
      height: 38px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgba(184, 201, 224, 0.16);
      background: rgba(8, 14, 24, 0.78);
      backdrop-filter: blur(12px) saturate(130%);
      -webkit-backdrop-filter: blur(12px) saturate(130%);
    }

    .site-search-form input {
      color: var(--text-white);
      border: 0;
      background: transparent;
      height: 100%;
      padding: 0 12px;
      font-weight: 600;
      width: 100%;
      outline: none;
    }

    .site-search-form input::placeholder { color: rgba(245, 247, 251, 0.42); }
    .site-search-form button { display: none; }

    .site-search-results {
      margin-top: 10px;
      display: grid;
      gap: 8px;
    }

    .site-search-result,
    .site-search-empty {
      color: rgba(245, 247, 251, 0.86);
      background: rgba(10, 16, 28, 0.84);
      border: 1px solid rgba(184, 201, 224, 0.12);
      box-shadow: 0 18px 34px rgba(2, 8, 18, 0.28);
      backdrop-filter: blur(12px) saturate(130%);
      -webkit-backdrop-filter: blur(12px) saturate(130%);
      padding: 12px 14px;
      text-decoration: none;
    }

    .mock-trial-entry {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      padding: calc(var(--header-height) + 12px) 24px 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .moot-court-container {
      width: min(1000px, 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      transform: translateY(-18px);
    }

    .court-header {
      width: 100%;
      text-align: center;
      margin-bottom: 30px;
    }

    .court-header h1 {
      margin: 0 0 12px;
      font-size: clamp(30px, 4vw, 42px);
      font-weight: 600;
      letter-spacing: 0.08em;
      background: linear-gradient(180deg, #ffffff 0%, #a2b4c7 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .court-header p {
      margin: 0 auto;
      max-width: 720px;
      color: #94a3b8;
      font-size: 14px;
      line-height: 1.8;
    }

    .court-header p:empty { display: none; }

    .selection-wrapper {
      width: 100%;
      display: flex;
      gap: 24px;
      margin-bottom: 24px;
    }

    .identity-card {
      flex: 1;
      min-height: 132px;
      padding: 30px 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--panel-bg);
      border: 1px solid var(--panel-border);
      border-radius: 16px;
      box-shadow: var(--panel-shadow);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      cursor: pointer;
      transition: all 0.35s var(--cubic-fluid);
      position: relative;
      overflow: hidden;
    }

    .identity-card::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    }

    .identity-card:hover,
    .identity-card.active {
      transform: translateY(-4px);
      color: #fff;
    }

    .identity-card.plaintiff:hover,
    .identity-card.plaintiff.active {
      border-color: var(--blue);
      background: rgba(0, 122, 255, 0.05);
      box-shadow: 0 0 32px rgba(0, 122, 255, 0.18);
    }

    .identity-card.defendant:hover,
    .identity-card.defendant.active {
      border-color: rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.05);
      box-shadow: 0 0 28px rgba(255, 255, 255, 0.1);
    }

    .identity-card span {
      color: #94a3b8;
      font-size: 24px;
      font-weight: 500;
      letter-spacing: 0.12em;
      transition: color 0.3s ease;
    }

    .identity-card:hover span,
    .identity-card.active span { color: #fff; }

    .upload-section {
      width: 100%;
      animation: fadeInUp 0.42s var(--cubic-fluid) forwards;
    }

    .dropzone {
      position: relative;
      border: 1px dashed rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.02);
      border-radius: 14px;
      padding: 30px;
      text-align: center;
      transition: border-color 0.3s ease, background 0.3s ease;
      cursor: pointer;
      min-height: 176px;
    }

    .dropzone:hover {
      border-color: rgba(255, 255, 255, 0.36);
      background: rgba(255, 255, 255, 0.03);
    }

    .dropzone.has-files {
      cursor: default;
      padding-bottom: 72px;
    }

    .dropzone.has-files:hover {
      border-color: rgba(255, 255, 255, 0.16);
      background: rgba(255, 255, 255, 0.02);
    }

    .dropzone.parsing {
      border-color: var(--blue);
      animation: pulse 1.5s infinite;
    }

    .dropzone p {
      margin: 0;
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.8;
    }

    .dropzone span {
      display: block;
      margin-top: 8px;
      color: #64748b;
      font-size: 12px;
      line-height: 1.7;
    }

    .file-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      margin-top: 18px;
      max-height: 92px;
      overflow-y: auto;
      padding-right: 5px;
    }

    .file-grid::-webkit-scrollbar { width: 6px; }
    .file-grid::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.02);
      border-radius: 3px;
    }
    .file-grid::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.22);
      border-radius: 3px;
    }

    .file-item {
      position: relative;
      height: 40px;
      padding: 0 34px 0 12px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.05);
      color: #e2e8f0;
      font-size: 12px;
      overflow: hidden;
    }

    .file-item-name {
      display: block;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .file-remove-btn {
      position: absolute;
      top: 50%;
      right: 8px;
      width: 18px;
      height: 18px;
      border: 0;
      padding: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.72);
      font-size: 14px;
      line-height: 18px;
      text-align: center;
      transform: translateY(-50%);
      transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
    }

    .file-remove-btn:hover {
      background: rgba(180, 8, 18, 0.2);
      color: #fff;
      transform: translateY(-50%) scale(1.06);
    }

    .add-more-btn {
      position: absolute;
      right: 20px;
      bottom: 18px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--blue);
      box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
      transition: transform 0.28s ease, background 0.28s ease;
      z-index: 10;
    }

    .add-more-btn:hover {
      transform: scale(1.08);
      background: #0056b3;
    }

    .add-more-btn::before,
    .add-more-btn::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      background: #fff;
      transform: translate(-50%, -50%);
      border-radius: 2px;
    }

    .add-more-btn::before {
      width: 20px;
      height: 2px;
    }

    .add-more-btn::after {
      width: 2px;
      height: 20px;
    }

    .action-bar {
      width: 100%;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-top: 24px;
    }

    .action-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      min-width: 280px;
      margin: 0 auto;
    }

    .btn-launch {
      border: 0;
      min-width: 280px;
      min-height: 54px;
      padding: 0 36px;
      border-radius: 999px;
      background: #fff;
      color: #0a0f1d;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.14em;
      transition: transform 0.28s var(--cubic-fluid), box-shadow 0.28s var(--cubic-fluid), background 0.28s ease;
      box-shadow: 0 4px 22px rgba(255, 255, 255, 0.16);
    }

    .btn-launch:hover:not(:disabled) {
      transform: scale(1.03);
      box-shadow: 0 4px 30px rgba(255, 255, 255, 0.28);
    }

    .btn-launch:disabled {
      background: rgba(255, 255, 255, 0.1);
      color: #475569;
      cursor: not-allowed;
      box-shadow: none;
    }

    .payment-overlay,
    .alert-overlay {
      position: fixed;
      inset: 0;
      z-index: 1100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(4, 7, 14, 0.72);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .payment-overlay.open,
    .alert-overlay.open { display: flex; }

    .payment-dialog,
    .alert-dialog {
      position: relative;
      width: min(560px, 100%);
      background: linear-gradient(180deg, rgba(12, 18, 32, 0.96), rgba(10, 15, 28, 0.96));
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
      overflow: hidden;
    }

    .payment-dialog {
      padding: 28px;
    }

    .payment-dialog::before,
    .alert-dialog::before {
      content: "";
      position: absolute;
      width: 240px;
      height: 240px;
      inset: -120px auto auto -120px;
      background: radial-gradient(circle, rgba(77, 163, 255, 0.22), transparent 72%);
      pointer-events: none;
    }

    .payment-close,
    .alert-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(245, 247, 251, 0.76);
      font-size: 16px;
      line-height: 1;
    }

    .payment-close:hover,
    .alert-close:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
    }

    .payment-dialog h2,
    .alert-title {
      margin: 0 0 8px;
      color: #fff;
      font-size: 28px;
      line-height: 1.2;
      font-weight: 600;
    }

    .payment-dialog p,
    .alert-message {
      margin: 0;
      color: rgba(245, 247, 251, 0.68);
      font-size: 14px;
      line-height: 1.85;
    }

    .payment-meta {
      margin-top: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .payment-price {
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
      color: #fff;
    }

    .payment-price strong {
      font-size: 42px;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 0.02em;
    }

    .payment-price span,
    .payment-role {
      color: rgba(245, 247, 251, 0.56);
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .payment-switcher {
      margin-top: 22px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      width: 100%;
      padding: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .payment-tab {
      min-height: 44px;
      border: 0;
      background: transparent;
      color: rgba(245, 247, 251, 0.7);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    }

    .payment-tab.active {
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .payment-card-shell {
      margin-top: 18px;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
      min-height: 252px;
    }

    .payment-qr {
      width: 220px;
      height: 220px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    }

    .payment-qr img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .payment-content {
      display: grid;
      gap: 14px;
    }

    .payment-method-tag {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      padding: 8px 12px;
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .payment-method-tag[data-method="wechat"] {
      background: rgba(49, 196, 108, 0.18);
      border: 1px solid rgba(49, 196, 108, 0.32);
    }

    .payment-method-tag[data-method="alipay"] {
      background: rgba(31, 139, 255, 0.18);
      border: 1px solid rgba(31, 139, 255, 0.32);
    }

    .payment-content h3 {
      margin: 0;
      color: #fff;
      font-size: 20px;
      line-height: 1.35;
      font-weight: 600;
    }

    .payment-content ul {
      margin: 0;
      padding-left: 18px;
      color: rgba(245, 247, 251, 0.7);
      font-size: 13px;
      line-height: 1.85;
    }

    .payment-actions {
      margin-top: 6px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .payment-enter,
    .payment-cancel,
    .alert-confirm {
      min-height: 46px;
      padding: 0 22px;
      border: 0;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .payment-enter,
    .alert-confirm {
      background: linear-gradient(135deg, #f6f8fc 0%, #dce5f7 100%);
      color: #0b1220;
    }

    .payment-cancel {
      background: rgba(255, 255, 255, 0.06);
      color: rgba(245, 247, 251, 0.82);
    }

    .alert-dialog {
      padding: 28px;
      max-width: 480px;
    }

    .alert-icon {
      margin-bottom: 14px;
      color: #fff;
      font-size: 34px;
    }

    .alert-message {
      white-space: pre-wrap;
      max-height: 240px;
      overflow-y: auto;
    }

    .alert-actions {
      margin-top: 24px;
      display: flex;
      justify-content: center;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(14px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.2); }
      70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
    }

    @media (max-width: 980px) {
      .mock-trial-entry {
        padding-inline: 18px;
      }

      .moot-court-container {
        transform: translateY(-8px);
      }

      .selection-wrapper {
        gap: 18px;
      }

      .action-bar {
        flex-direction: column;
        align-items: center;
      }

      .action-group {
        width: 100%;
        min-width: 0;
        align-items: center;
      }

      .btn-launch {
        width: 100%;
        min-width: 0;
      }

      .payment-card-shell {
        grid-template-columns: 1fr;
        justify-items: center;
      }

      .payment-content {
        width: 100%;
      }
    }

    @media (max-width: 760px) {
      .spatial-header {
        height: 72px;
        padding: 0 14px;
        grid-template-columns: 60px 1fr auto 1fr 60px;
      }

      .nav-cluster-left,
      .nav-cluster-right {
        gap: 14px;
        padding: 0 10px;
      }

      .nav-node {
        font-size: 11px;
        letter-spacing: 0.08em;
      }

      .brand-txt { font-size: 20px; }
      .brand-sub { letter-spacing: 0.22em; }
      .site-menu-dropdown { top: 72px; }

      .site-menu-shell {
        width: calc(100% - 40px);
        grid-template-columns: 150px minmax(160px, 1fr);
        gap: 24px;
        margin-left: 0;
      }

      body.menu-open .site-menu-dropdown { max-height: 620px; }

      .menu-panel.active { display: block; }

      .menu-primary-list {
        padding-right: 0;
        padding-bottom: 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(184, 201, 224, 0.12);
      }

      .menu-secondary-list {
        border-right: 0;
        padding-right: 0;
      }

      .menu-tertiary-column { margin-top: 20px; }

      .site-search-panel {
        top: 82px;
        right: 16px;
        width: calc(100vw - 32px);
      }

      .mock-trial-entry {
        padding-top: calc(72px + 10px);
        padding-inline: 14px;
      }

      .moot-court-container {
        transform: none;
      }

      .court-header {
        margin-bottom: 18px;
      }

      .court-header h1 {
        font-size: 28px;
        letter-spacing: 0.04em;
      }

      .court-header p {
        font-size: 13px;
        line-height: 1.7;
      }

      .selection-wrapper {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
      }

      .identity-card {
        min-height: 96px;
        padding: 24px 18px;
      }

      .identity-card span {
        font-size: 21px;
      }

      .dropzone {
        min-height: 160px;
        padding: 22px 18px;
      }

      .file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 96px;
      }

      .action-bar {
        margin-top: 18px;
        gap: 14px;
      }

      .payment-dialog,
      .alert-dialog {
        padding: 22px 18px;
      }

      .payment-dialog h2,
      .alert-title {
        font-size: 24px;
      }

      .payment-price strong {
        font-size: 36px;
      }
    }

/* LAWXB_HEADER_LAYOUT_PARITY_START */
@media (min-width: 981px) {
  .spatial-header {
    grid-template-columns: 120px minmax(0, 1fr) auto minmax(0, 1fr) 120px !important;
  }

  .spatial-header .nav-cluster-left {
    display: flex !important;
    gap: 45px !important;
    justify-content: flex-end !important;
    padding-right: 76px !important;
  }

  .spatial-header .nav-cluster-right {
    display: flex !important;
    gap: 45px !important;
    justify-content: flex-start !important;
    padding-left: 76px !important;
  }
}
/* LAWXB_HEADER_LAYOUT_PARITY_END */
  