  /* ============================================================
     ARPHost IP Justification Form — Scoped Styles
     Theme: Dark (#0a0f1a) with Cyan (#0891b2) accent
     All classes prefixed .arphost-ipj- for WP compatibility
     ============================================================ */
  .arphost-ipj-wrap * { box-sizing: border-box; }
  .arphost-ipj-wrap {
    font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #0a0f1a;
    color: #f1f5f9;
    line-height: 1.6;
    max-width: 940px;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1f2937;
  }

  /* Header */
  .arphost-ipj-header {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0c1425 100%);
    border-bottom: 1px solid #1f2937;
    padding: 44px 48px 36px;
    position: relative;
    overflow: hidden;
  }
  .arphost-ipj-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .arphost-ipj-header::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }
  .arphost-ipj-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
  }
  .arphost-ipj-logo svg {
    width: 32px; height: 32px;
  }
  .arphost-ipj-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
  }
  .arphost-ipj-logo-text span {
    color: #22d3ee;
  }
  .arphost-ipj-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.4px;
    margin: 0 0 6px 0;
    position: relative;
  }
  .arphost-ipj-header .arphost-ipj-subtitle {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
    position: relative;
  }
  .arphost-ipj-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(8,145,178,0.15);
    border: 1px solid rgba(8,145,178,0.3);
    color: #22d3ee;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* Sections */
  .arphost-ipj-section {
    padding: 32px 48px;
    border-bottom: 1px solid #1f2937;
  }
  .arphost-ipj-section:last-of-type { border-bottom: none; }
  .arphost-ipj-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: #0891b2;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
  }
  .arphost-ipj-section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 6px 0;
    padding: 0;
  }
  .arphost-ipj-section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 24px 42px;
    padding: 0;
  }

  /* Grid */
  .arphost-ipj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .arphost-ipj-full { grid-column: 1 / -1; }

  /* Fields */
  .arphost-ipj-field { display: flex; flex-direction: column; }
  .arphost-ipj-field label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
  }
  .arphost-ipj-req { color: #f87171; margin-left: 2px; }

  .arphost-ipj-field input[type="text"],
  .arphost-ipj-field input[type="email"],
  .arphost-ipj-field input[type="tel"],
  .arphost-ipj-field input[type="number"],
  .arphost-ipj-field input[type="date"],
  .arphost-ipj-field select,
  .arphost-ipj-field textarea {
    padding: 10px 14px;
    border: 1px solid #374151;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #f1f5f9;
    background: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
  }
  .arphost-ipj-field input::placeholder,
  .arphost-ipj-field textarea::placeholder {
    color: #4b5563;
  }
  .arphost-ipj-field input:focus,
  .arphost-ipj-field select:focus,
  .arphost-ipj-field textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
  }
  .arphost-ipj-field textarea { resize: vertical; min-height: 80px; }
  .arphost-ipj-help {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
  }

  /* Checkboxes & Radios */
  .arphost-ipj-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
  .arphost-ipj-checks label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1.5;
  }
  .arphost-ipj-checks input[type="checkbox"],
  .arphost-ipj-checks input[type="radio"] {
    margin-top: 4px;
    accent-color: #0891b2;
    flex-shrink: 0;
  }

  /* Tables */
  .arphost-ipj-table-wrap { overflow-x: auto; margin-top: 8px; border-radius: 10px; border: 1px solid #1f2937; }
  table.arphost-ipj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  table.arphost-ipj-table th {
    background: #111827;
    font-weight: 600;
    color: #94a3b8;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #1f2937;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  table.arphost-ipj-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(31,41,55,0.5);
    vertical-align: top;
    background: #0a0f1a;
  }
  table.arphost-ipj-table tr:last-child td { border-bottom: none; }
  table.arphost-ipj-table td input,
  table.arphost-ipj-table td select,
  table.arphost-ipj-table td textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #1f2937;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #111827;
    color: #f1f5f9;
  }
  table.arphost-ipj-table td input::placeholder,
  table.arphost-ipj-table td textarea::placeholder {
    color: #4b5563;
  }
  table.arphost-ipj-table td input:focus,
  table.arphost-ipj-table td select:focus,
  table.arphost-ipj-table td textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8,145,178,0.1);
  }

  .arphost-ipj-add-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 18px;
    background: rgba(8,145,178,0.08);
    border: 1px dashed #0891b2;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #22d3ee;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
  }
  .arphost-ipj-add-row:hover { background: rgba(8,145,178,0.18); }

  /* Utilization cards */
  .arphost-ipj-util-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
  .arphost-ipj-util-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 20px;
  }
  .arphost-ipj-util-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #22d3ee;
    margin: 0 0 14px 0;
    padding: 0;
  }
  .arphost-ipj-util-card .arphost-ipj-field + .arphost-ipj-field { margin-top: 14px; }

  /* Notice boxes */
  .arphost-ipj-notice {
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.25);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #fbbf24;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .arphost-ipj-notice strong { color: #fcd34d; }

  .arphost-ipj-info {
    background: rgba(8,145,178,0.08);
    border: 1px solid rgba(8,145,178,0.25);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #22d3ee;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  .arphost-ipj-info strong { color: #67e8f9; }

  /* Signature */
  .arphost-ipj-sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
  }
  .arphost-ipj-sig-line {
    border-bottom: 2px solid #374151;
    padding: 10px 8px 8px;
    min-height: 44px;
    background: #111827;
    border-radius: 10px 10px 0 0;
    color: #4b5563;
    font-style: italic;
    font-size: 14px;
  }
  .arphost-ipj-sig-label {
    font-size: 11px;
    color: #4b5563;
    margin-top: 4px;
  }

  /* Internal use section */
  .arphost-ipj-internal {
    background: #070b14;
    border-top: 1px solid #1f2937;
  }
  .arphost-ipj-internal .arphost-ipj-section-num {
    background: #374151;
  }

  /* Buttons */
  .arphost-ipj-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 48px 36px;
  }
  .arphost-ipj-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    letter-spacing: -0.1px;
  }
  .arphost-ipj-btn-ghost {
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    border: 1px solid #374151;
  }
  .arphost-ipj-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #f1f5f9;
  }
  .arphost-ipj-btn-primary {
    background: #0891b2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(8,145,178,0.3);
  }
  .arphost-ipj-btn-primary:hover {
    background: #0e7490;
    box-shadow: 0 4px 12px rgba(8,145,178,0.4);
  }
  .arphost-ipj-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Status toast */
  .arphost-ipj-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-family: Inter, -apple-system, sans-serif;
  }
  .arphost-ipj-toast.arphost-ipj-show { transform: translateX(0); }
  .arphost-ipj-toast-success { background: #059669; }
  .arphost-ipj-toast-error { background: #dc2626; }
  .arphost-ipj-toast-info { background: #0891b2; }

  /* Spinner */
  .arphost-ipj-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: arphost-ipj-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
  }
  @keyframes arphost-ipj-spin { to { transform: rotate(360deg); } }

  /* Print */
  @media print {
    .arphost-ipj-wrap { border: none; border-radius: 0; background: #fff; color: #111; }
    .arphost-ipj-header { background: #fff; border-bottom: 2px solid #111; }
    .arphost-ipj-header h1 { color: #111; }
    .arphost-ipj-header .arphost-ipj-subtitle { color: #555; }
    .arphost-ipj-section { border-color: #ccc; }
    .arphost-ipj-section-title { color: #111; }
    .arphost-ipj-section-desc { color: #555; }
    .arphost-ipj-field label { color: #333; }
    .arphost-ipj-field input, .arphost-ipj-field select, .arphost-ipj-field textarea,
    table.arphost-ipj-table td input, table.arphost-ipj-table td select, table.arphost-ipj-table td textarea {
      background: #fff; color: #111; border-color: #ccc;
    }
    .arphost-ipj-actions, .arphost-ipj-add-row, .arphost-ipj-toast { display: none !important; }
    .arphost-ipj-checks label { color: #333; }
    table.arphost-ipj-table th { background: #f3f4f6; color: #333; }
    table.arphost-ipj-table td { background: #fff; }
    .arphost-ipj-util-card { background: #f9fafb; border-color: #ccc; }
    .arphost-ipj-notice { background: #fffde7; color: #7c6800; border-color: #ffe082; }
    .arphost-ipj-info { background: #e0f7fa; color: #00695c; border-color: #80deea; }
  }

  @media (max-width: 700px) {
    .arphost-ipj-header, .arphost-ipj-section, .arphost-ipj-actions { padding-left: 20px; padding-right: 20px; }
    .arphost-ipj-grid, .arphost-ipj-util-grid, .arphost-ipj-sig-grid { grid-template-columns: 1fr; }
    .arphost-ipj-full { grid-column: 1; }
  }
