* { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: #f8faff;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      color: #1e293b;
    }

    .app-container {
      width: 100%;
      max-width: 520px;
      background: #ffffff;
      border-radius: 2rem;
      box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.08), 0 8px 12px -6px rgba(0, 0, 0, 0.02);
      padding: 2.25rem 2rem;
      transition: all 0.25s ease;
      animation: fadeIn 0.4s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .app-header { margin-bottom: 1.75rem; }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .brand-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: #eef4ff;
      border-radius: 14px;
      color: #2563eb;
      font-size: 1.35rem;
      box-shadow: 0 6px 12px -6px rgba(37, 99, 235, 0.15);
      flex-shrink: 0;
    }

    .brand-text h1 {
      font-size: 1.15rem;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: -0.02em;
    }

    .brand-text p {
      font-size: 0.78rem;
      color: #64748b;
      font-weight: 400;
    }

    .stepper {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .step {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-shrink: 0;
    }

    .step-circle {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #f1f5f9;
      color: #94a3b8;
      font-size: 0.75rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
      flex-shrink: 0;
    }

    .step.active .step-circle {
      background: #2563eb;
      color: #fff;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .step.done .step-circle {
      background: #dbeafe;
      color: #2563eb;
    }

    .step.done .step-circle i { font-size: 0.7rem; }

    .step-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: #94a3b8;
      transition: color 0.25s ease;
    }

    .step.active .step-label { color: #0f172a; }
    .step.done .step-label { color: #2563eb; }

    .step-line {
      flex: 1;
      height: 2px;
      background: #e2e8f0;
      border-radius: 2px;
      transition: background 0.25s ease;
    }

    .step-line.done { background: #bfdbfe; }

    .panel { display: none; }
    .panel.active {
      display: block;
      animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(10px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .panel-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: -0.02em;
      margin-bottom: 0.3rem;
    }

    .panel-subtitle {
      font-size: 0.85rem;
      color: #64748b;
      margin-bottom: 1.5rem;
    }

    .menu-list { display: flex; flex-direction: column; gap: 0.85rem; }

    .menu-card {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.15rem 1.25rem;
      background: #f9fcff;
      border: 1.5px solid #e2e8f0;
      border-radius: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
      font-family: inherit;
      color: inherit;
      width: 100%;
    }

    .menu-card:hover {
      border-color: #93c5fd;
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.25);
    }

    .menu-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
      color: #fff;
    }

    .menu-icon.admin { background: linear-gradient(145deg, #2563eb, #1d4ed8); }
    .menu-icon.timbang { background: linear-gradient(145deg, #d97706, #b45309); }
    .menu-icon.aparat { background: linear-gradient(145deg, #059669, #047857); }

    .menu-info { flex: 1; }
    .menu-info h3 { font-size: 1rem; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
    .menu-info p { font-size: 0.78rem; color: #64748b; font-weight: 400; margin-top: 2px; }
    .menu-arrow { color: #cbd5e1; font-size: 0.9rem; transition: all 0.2s ease; }
    .menu-card:hover .menu-arrow { color: #2563eb; transform: translateX(3px); }

    .arena-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }

    .arena-card {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      padding: 1rem 1.1rem;
      background: #f9fcff;
      border: 1.5px solid #e2e8f0;
      border-radius: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
      font-family: inherit;
      color: inherit;
      width: 100%;
    }

    .arena-card:hover {
      border-color: #93c5fd;
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.25);
    }

    .arena-card.selected {
      border-color: #2563eb;
      background: #eff6ff;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    }

    .arena-icon {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      background: #eef4ff;
      color: #2563eb;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .arena-info h3 { font-size: 0.92rem; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
    .arena-info p { font-size: 0.72rem; color: #94a3b8; font-weight: 500; margin-top: 1px; }

    .category-list, .role-list, .subcategory-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .category-item, .role-item, .subcategory-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.15rem;
      background: #f9fcff;
      border: 1.5px solid #e2e8f0;
      border-radius: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: left;
      font-family: inherit;
      color: inherit;
      width: 100%;
    }

    .category-item:hover, .role-item:hover, .subcategory-item:hover {
      border-color: #93c5fd;
      background: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.25);
    }

    .category-item.selected, .role-item.selected, .subcategory-item.selected {
      border-color: #2563eb;
      background: #eff6ff;
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    }

    .category-icon, .role-icon, .subcategory-icon {
      width: 44px;
      height: 44px;
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
      color: #fff;
    }

    .category-icon.tanding { background: #2563eb; }
    .category-icon.tunggal { background: #7c3aed; }
    .category-icon.ganda { background: #0891b2; }
    .category-icon.regu { background: #059669; }

    .subcategory-icon.tunggal { background: #7c3aed; }
    .subcategory-icon.bebas { background: #a855f7; }

    .role-icon.juri { background: #2563eb; }
    .role-icon.dewan { background: #7c3aed; }
    .role-icon.operator { background: #0891b2; }
    .role-icon.monitor { background: #059669; }

    .category-info, .role-info, .subcategory-info { flex: 1; }

    .category-info h3, .role-info h3, .subcategory-info h3 {
      font-size: 0.95rem;
      font-weight: 700;
      color: #0f172a;
      letter-spacing: -0.01em;
    }

    .category-info p, .role-info p, .subcategory-info p {
      font-size: 0.76rem;
      color: #64748b;
      font-weight: 400;
      margin-top: 2px;
    }

    .category-arrow, .role-arrow, .subcategory-arrow {
      color: #cbd5e1;
      font-size: 0.85rem;
      transition: all 0.2s ease;
    }

    .category-item:hover .category-arrow,
    .role-item:hover .role-arrow,
    .subcategory-item:hover .subcategory-arrow {
      color: #2563eb;
      transform: translateX(3px);
    }

    .nav-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; }

    .btn {
      flex: 1;
      padding: 0.9rem 1.25rem;
      border-radius: 1rem;
      font-size: 0.9rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      transition: all 0.2s ease;
      border: none;
      letter-spacing: -0.01em;
    }

    .btn-secondary { background: #f1f5f9; color: #475569; }
    .btn-secondary:hover { background: #e2e8f0; color: #334155; }

    .btn-primary {
      background: #2563eb;
      color: #fff;
      box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.4);
    }

    .btn-primary:hover:not(:disabled) {
      background: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.55);
    }

    .btn-primary:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }

    .summary-card {
      background: #f9fcff;
      border: 1.5px solid #e2e8f0;
      border-radius: 1rem;
      padding: 1.25rem;
      margin-bottom: 1.5rem;
    }

    .summary-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.6rem 0;
    }

    .summary-row:not(:last-child) { border-bottom: 1px dashed #e2e8f0; }

    .summary-label {
      font-size: 0.82rem;
      color: #64748b;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .summary-label i { color: #94a3b8; font-size: 0.8rem; width: 16px; }

    .summary-value {
      font-size: 0.88rem;
      font-weight: 700;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .summary-value .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
    }

    .badge.juri { background: #dbeafe; color: #1d4ed8; }
    .badge.dewan { background: #ede9fe; color: #6d28d9; }
    .badge.operator { background: #cffafe; color: #0e7490; }
    .badge.monitor { background: #d1fae5; color: #047857; }
    .badge.tanding { background: #dbeafe; color: #1d4ed8; }
    .badge.tunggal { background: #ede9fe; color: #6d28d9; }
    .badge.bebas { background: #f3e8ff; color: #7c3aed; }
    .badge.ganda { background: #cffafe; color: #0e7490; }
    .badge.regu { background: #d1fae5; color: #047857; }

    @media (max-width: 480px) {
      .app-container { padding: 1.75rem 1.25rem; border-radius: 1.75rem; }
      .arena-grid { grid-template-columns: 1fr; }
      .step-label { display: none; }
      .step.active .step-label { display: inline; }
    }

    @media (max-width: 360px) {
      .brand-text h1 { font-size: 1rem; }
      .panel-title { font-size: 1.05rem; }
      .role-item, .category-item, .subcategory-item, .menu-card {
        padding: 0.85rem 0.9rem;
        gap: 0.75rem;
      }
      .role-icon, .category-icon, .subcategory-icon, .menu-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
      }
    }