
    /* ============================================
       ROOT VARIABLES
    ============================================ */
    :root {
      --primary: #2e3192;
      --primary-dark: #1d226c;
      --yellow: #ffd600;
      --radius: 14px;
      --z-topbar: 9999;
      --transition: 0.3s ease;
    }

    /* ============================================
       GLOBAL RESET & BASE STYLES
    ============================================ */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      overflow-x: hidden;
      width: 100%;
      max-width: 100%;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(to bottom, #f5f6fe, #e6e9ff);
      color: #333;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      min-width: 320px;
      min-height: 100vh;
    }

    /* ============================================
       TOPBAR - SHARED STYLES
    ============================================ */
    .desktop-topbar,
    .mobile-topbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: var(--z-topbar);
      box-sizing: border-box;
    }

    /* ============================================
       DESKTOP TOPBAR
    ============================================ */
    .desktop-topbar {
      background: var(--primary);
      color: white;
      padding: 16px 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 0 0 var(--radius) var(--radius);
      min-height: 62px;
      box-shadow: 0 4px 12px rgba(46, 49, 146, 0.12);
      font-weight: 600;
      user-select: none;
      font-size: 16px;
    }

    .desktop-topbar .back-button {
      background-color: #3f4bb8;
      color: white;
      padding: 7px 14px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      font-size: 15px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      gap: 8px;
      transition: background-color var(--transition);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .desktop-topbar .back-button:hover {
      background: var(--primary-dark);
    }

    .desktop-topbar .back-button:focus,
    .desktop-topbar .back-button:active {
      outline: 2px solid var(--yellow);
      outline-offset: 2px;
    }

    .desktop-topbar .title-section {
      font-size: 22px;
      display: flex;
      align-items: center;
      gap: 11px;
      flex: 1;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }

    .desktop-topbar .title-section i {
      color: var(--yellow);
      font-size: 26px;
      flex-shrink: 0;
    }

    .desktop-topbar .user-icon {
      color: var(--yellow);
      font-size: 24px;
      display: flex;
      align-items: center;
      cursor: default;
      padding-left: 10px;
      flex-shrink: 0;
    }

    /* ============================================
       MOBILE TOPBAR
    ============================================ */
    .mobile-topbar {
      display: none;
      width: 100%;
      max-width: none;
      margin: 0;
      border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
      background: var(--primary);
      color: white;
      padding: 18px 14px 15px;
      flex-direction: column;
      gap: 11px;
      box-sizing: border-box;
      min-height: 64px;
      font-weight: 600;
      font-size: 16px;
    }

    .mobile-topbar .back-row {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }

    .mobile-topbar .back-button {
      width: 100%;
      max-width: 100%;
      background: #3034a0;
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
      cursor: pointer;
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-decoration: none;
      transition: background-color var(--transition);
    }

    .mobile-topbar .back-button:hover {
      background: #262e8a;
    }

    .mobile-topbar .back-button:focus,
    .mobile-topbar .back-button:active {
      outline: 2px solid var(--yellow);
    }

    .mobile-topbar .title-row {
      font-weight: 600;
      font-size: 19px;
      display: flex;
      align-items: center;
      gap: 9px;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }

    .mobile-topbar .title-row i {
      color: var(--yellow);
      font-size: 24px;
      flex-shrink: 0;
    }

    .mobile-topbar .icon-row {
      display: flex;
      justify-content: center;
    }

    .mobile-topbar .icon-row i {
      color: var(--yellow);
      font-size: 24px;
      flex-shrink: 0;
    }

    /* ============================================
       MAIN CONTAINER
    ============================================ */
    .main-container {
      background: #fff;
      border-radius: 20px;
      padding: 2.5rem;
      width: 100%;
      max-width: 1200px;
      margin: 120px auto 2rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 2.5rem;
      overflow: hidden;
    }

    /* ============================================
       FORM SECTION (LEFT SIDE)
    ============================================ */
    .form-section {
      max-width: 100%;
    }

    .profile-icon-circle {
      width: 90px;
      height: 90px;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      box-shadow: 0 4px 20px rgba(46, 49, 146, 0.25);
    }

    .profile-icon-circle i {
      font-size: 40px;
      color: white;
    }

    .progress-container {
      margin-bottom: 2rem;
    }

    .step-label {
      font-size: 13px;
      color: #666;
      margin-bottom: 10px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .progress {
      height: 10px;
      background: #e0e0e0;
      border-radius: 10px;
      overflow: hidden;
    }

    .progress-bar-custom {
      background: linear-gradient(90deg, #ffb400, var(--yellow));
      height: 100%;
      transition: width 0.4s ease;
      box-shadow: 0 2px 8px rgba(255, 180, 0, 0.3);
    }

    .section-title {
      font-size: 22px;
      color: var(--primary);
      margin-bottom: 1.5rem;
      font-weight: 600;
      text-align: center;
    }

    /* ============================================
       FORM ELEMENTS
    ============================================ */
    .form-row {
      margin-bottom: 1.25rem;
      position: relative;
    }

    .form-label {
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--primary);
      font-size: 14px;
    }

    .icon-box {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      background: linear-gradient(135deg, #f0f0ff, #e6e9ff);
      border-radius: 6px;
      margin-right: 8px;
      color: var(--primary);
      font-size: 13px;
      flex-shrink: 0;
    }

    .form-control {
      width: 100%;
      padding: 13px 15px;
      border-radius: 10px;
      border: 2px solid #e0e0e0;
      font-size: 14px;
      transition: all var(--transition);
      box-sizing: border-box;
      background: #fafafa;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(46, 49, 146, 0.08);
      background: white;
    }

    .form-control::placeholder {
      color: #999;
    }

    /* Password Field */
    .password-wrapper {
      position: relative;
      width: 100%;
    }

    .toggle-eye {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 15px;
      cursor: pointer;
      color: #666;
      font-size: 18px;
      transition: color var(--transition);
      z-index: 10;
    }

    .toggle-eye:hover {
      color: var(--primary);
    }

    #passwordHint {
      display: block;
      font-size: 12px;
      margin-top: 6px;
      color: #666;
      transition: opacity var(--transition);
    }

    /* Submit Button */
    .btn-gradient {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white;
      padding: 14px 32px;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition);
      width: 100%;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      margin-top: 1rem;
      box-shadow: 0 4px 15px rgba(46, 49, 146, 0.2);
    }

    .btn-gradient:hover {
      background: linear-gradient(135deg, var(--primary-dark), #141454);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(46, 49, 146, 0.3);
    }

    .btn-gradient:active {
      transform: translateY(0);
    }

    .btn-gradient:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    /* Response Messages */
    #response {
      text-align: center;
      font-weight: 600;
      padding: 12px;
      border-radius: 8px;
      margin-top: 1rem;
      font-size: 14px;
    }

    .text-success {
      background-color: #d4edda;
      border: 2px solid #c3e6cb;
      color: #155724;
    }

    .text-danger {
      background-color: #f8d7da;
      border: 2px solid #f5c6cb;
      color: #721c24;
    }

    /* ============================================
       SIDEBAR (RIGHT SIDE)
    ============================================ */
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .card-custom {
      background: linear-gradient(135deg, #f8f9fa, #f0f2ff);
      border-radius: 14px;
      padding: 1.75rem;
      border: 2px solid #e6e9ff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .card-custom h5 {
      font-size: 16px;
      color: var(--primary);
      margin-bottom: 1.25rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-custom p {
      font-size: 13px;
      color: #444;
      margin-bottom: 10px;
      padding-left: 24px;
      line-height: 1.6;
    }

    .card-custom p:last-child {
      margin-bottom: 0;
    }

    /* Upload Area */
    .upload-area {
      text-align: center;
      padding: 1.5rem;
      background: white;
      border-radius: 10px;
      border: 2px dashed var(--primary);
      transition: all var(--transition);
    }

    .upload-area:hover {
      border-color: var(--primary-dark);
      background: #fafbff;
    }

    .upload-area i {
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .upload-area p {
      margin: 10px 0 5px;
      padding: 0;
      color: #333;
      font-weight: 600;
      font-size: 14px;
    }

    .upload-area small {
      color: #666;
      font-size: 12px;
    }

    .upload-area .form-control {
      margin-top: 1rem;
      padding: 10px;
      cursor: pointer;
      background: white;
      border: 1px solid #ddd;
    }

    .upload-area .form-control:hover {
      border-color: var(--primary);
    }

    #imagePreview {
      max-width: 130px;
      height: 130px;
      border-radius: 50%;
      border: 4px solid var(--primary);
      object-fit: cover;
      margin-top: 1rem;
      box-shadow: 0 4px 15px rgba(46, 49, 146, 0.2);
    }

    /* ============================================
       LOADING SPINNER ANIMATION
    ============================================ */
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .loading-spinner {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top: 2px solid white;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin-right: 8px;
      vertical-align: middle;
    }

    /* ============================================
       RESPONSIVE DESIGN
    ============================================ */

    /* Tablet & Below: Stack Layout */
    @media (max-width: 900px) {
      .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
      }

      .sidebar {
        order: 2;
      }

      .form-section {
        order: 1;
      }
    }

    /* Mobile: Show Mobile Topbar */
    @media (max-width: 700px) {
      .desktop-topbar {
        display: none !important;
      }

      .mobile-topbar {
        display: flex !important;
      }

      .main-container {
        padding: 1.5rem;
        margin: 160px 1rem 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 16px;
        gap: 1.5rem;
      }

      .profile-icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
      }

      .profile-icon-circle i {
        font-size: 32px;
      }

      .section-title {
        font-size: 19px;
      }

      .form-control {
        padding: 11px 13px;
        font-size: 14px;
      }

      .btn-gradient {
        padding: 12px 24px;
        font-size: 15px;
      }

      .card-custom {
        padding: 1.5rem;
      }
    }

    /* Extra Small Mobile */
    @media (max-width: 480px) {
      .mobile-topbar {
        padding: 16px 12px 14px;
      }

      .main-container {
        border-radius: 12px;
        padding: 1.25rem;
        margin: 160px 0.5rem 1rem;
        max-width: calc(100% - 1rem);
      }

      .profile-icon-circle {
        width: 60px;
        height: 60px;
      }

      .profile-icon-circle i {
        font-size: 28px;
      }

      .section-title {
        font-size: 17px;
      }

      .step-label {
        font-size: 12px;
      }

      .progress {
        height: 8px;
      }

      .form-control {
        padding: 10px 12px;
      }

      .btn-gradient {
        padding: 11px 20px;
        font-size: 14px;
      }

      .card-custom {
        padding: 1.25rem;
      }

      .card-custom h5 {
        font-size: 14px;
      }

      .card-custom p {
        font-size: 12px;
      }

      #imagePreview {
        max-width: 100px;
        height: 100px;
      }
    }

    /* Desktop: Show Desktop Topbar */
    @media (min-width: 701px) {
      .desktop-topbar {
        display: flex !important;
      }

      .mobile-topbar {
        display: none !important;
      }
    }

    /* Medium Desktop Adjustment */
    @media (max-width: 768px) and (min-width: 701px) {
      .desktop-topbar {
        padding: 14px 20px;
        font-size: 14px;
      }

      .desktop-topbar .title-section {
        font-size: 18px;
      }

      .desktop-topbar .back-button {
        padding: 6px 12px;
        font-size: 13px;
      }

      .main-container {
        margin: 110px auto 2rem;
        max-width: 95%;
      }
    }

    /* Large Desktop */
    @media (min-width: 1400px) {
      .main-container {
        max-width: 1300px;
      }
    }
