:root {
    --blue-900: #0a1628;
    --blue-800: #0d2045;
    --blue-700: #0f2d6b;
    --blue-600: #1346a8;
    --blue-500: #1a5dd4;
    --blue-400: #3b78f5;
    --blue-300: #6b9ff8;
    --blue-200: #bdd3fd;
    --blue-100: #e8f0fe;
    --blue-50:  #f0f5ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(19,70,168,0.10), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(19,70,168,0.15), 0 4px 16px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(19,70,168,0.20), 0 8px 24px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
  }

  h1, h2, h3, h4, h5 { font-family: 'Sora', sans-serif; }

  .screen { display: none; min-height: 100vh; }
  .screen.active { display: flex; }

  /* AUTH LAYOUT */
  .auth-layout { flex-direction: row; align-items: stretch; }
  .auth-aside {
    width: 420px; flex-shrink: 0;
    background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-600) 55%, var(--blue-500) 100%);
    display: flex; flex-direction: column;
    padding: 48px 40px;
    position: relative; overflow: hidden;
  }
  .auth-aside::before {
    content: ''; position: absolute;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255,255,255,0.04); top: -120px; left: -80px;
  }
  .auth-aside::after {
    content: ''; position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.05); bottom: -80px; right: -60px;
  }
  .aside-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 56px; position: relative; z-index: 1; }
  .aside-logo img { width: 300px; }
  .aside-logo-text { font-family: 'Sora', sans-serif; color: white; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
  .aside-logo-sub { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 400; letter-spacing: 0.5px; }
  .aside-headline { color: white; font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; position: relative; z-index: 1; }
  .aside-headline span { color: #7db4ff; }
  .aside-sub { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.7; margin-bottom: 40px; position: relative; z-index: 1; }
  .aside-features { position: relative; z-index: 1; margin-top: auto; }
  .aside-feature { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: rgba(255,255,255,0.85); font-size: 14px; }
  .aside-feature-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
  .auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--white); }
  .auth-card { width: 100%; max-width: 440px; }
  .auth-title { font-size: 26px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
  .auth-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }

  /* FORM ELEMENTS */
  .form-group { margin-bottom: 20px; }
  .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; letter-spacing: 0.2px; }
  .form-label span { color: var(--error); }
  .form-input, .form-select, .form-textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius);
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: var(--gray-800); background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(26,93,212,0.10);
  }
  .form-input::placeholder { color: var(--gray-400); }
  .form-textarea { resize: vertical; min-height: 80px; }
  .form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
  .input-wrapper { position: relative; }
  .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 15px; pointer-events: none; }
  .input-wrapper .form-input { padding-left: 38px; }
  .input-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 14px; padding: 2px; }
  .input-toggle:hover { color: var(--blue-500); }
  .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

  /* BUTTONS */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--radius);
    font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; letter-spacing: 0.2px; white-space: nowrap;
  }
  .btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-400)); color: white; box-shadow: 0 4px 14px rgba(26,93,212,0.35); }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,93,212,0.45); }
  .btn-primary:active { transform: translateY(0); }
  .btn-outline { background: white; color: var(--blue-600); border: 1.5px solid var(--blue-200); }
  .btn-outline:hover { background: var(--blue-50); border-color: var(--blue-400); }
  .btn-ghost { background: transparent; color: var(--gray-600); }
  .btn-ghost:hover { background: var(--gray-100); }
  .btn-danger { background: #fee2e2; color: var(--error); }
  .btn-danger:hover { background: #fecaca; }
  .btn-success { background: #d1fae5; color: var(--success); }
  .btn-success:hover { background: #a7f3d0; }
  .btn-full { width: 100%; }
  .btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

  /* PASSWORD STRENGTH */
  .pwd-strength { margin-top: 8px; }
  .pwd-bars { display: flex; gap: 4px; margin-bottom: 4px; }
  .pwd-bar { height: 3px; flex: 1; border-radius: 2px; background: var(--gray-200); transition: background 0.3s; }
  .pwd-bar.weak { background: var(--error); }
  .pwd-bar.medium { background: var(--warning); }
  .pwd-bar.strong { background: var(--success); }
  .pwd-label { font-size: 11px; color: var(--gray-500); }

  /* PASSWORD RULES */
  .pwd-rules { margin-top: 10px; padding: 12px 14px; background: #fff8f8; border: 1px solid #fecaca; border-radius: 10px; display: none; }
  .pwd-rules.visible { display: block; }
  .pwd-rules p { font-size: 12px; font-weight: 600; color: var(--error); margin-bottom: 8px; }
  .pwd-rule { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-600); margin-bottom: 4px; }
  .pwd-rule .rule-icon { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
  .pwd-rule .rule-icon.pass { background: #d1fae5; color: var(--success); }
  .pwd-rule .rule-icon.fail { background: #fee2e2; color: var(--error); }

  /* AUTH FOOTER */
  .auth-footer-link { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray-500); }
  .auth-footer-link a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
  .auth-footer-link a:hover { text-decoration: underline; }

  /* DIVIDER */
  .divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
  .divider-line { flex: 1; height: 1px; background: var(--gray-200); }
  .divider-text { font-size: 12px; color: var(--gray-400); white-space: nowrap; }

  /* STEPS */
  .steps { display: flex; align-items: center; gap: 0; }
  .step-item { display: flex; align-items: center; flex: 1; }
  .step-bubble { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-family: 'Sora', sans-serif; flex-shrink: 0; transition: all 0.3s; }
  .step-bubble.done { background: var(--blue-500); color: white; }
  .step-bubble.active { background: var(--blue-500); color: white; box-shadow: 0 0 0 4px rgba(26,93,212,0.2); }
  .step-bubble.pending { background: var(--gray-200); color: var(--gray-500); }
  .step-line { flex: 1; height: 2px; background: var(--gray-200); margin: -13px 6px 0px 6px; }
  .step-line.done { background: var(--blue-500); }
  .step-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; text-align: center; white-space: nowrap; }
  .step-wrap { display: flex; flex-direction: column; align-items: center; }

  /* PROFILE SETUP LAYOUT */
  .profile-layout { flex-direction: column; align-items: center; background: var(--gray-50); padding: 40px 20px; }
  .profile-header { width: 100%; max-width: 780px; display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
  .profile-card { width: 100%; max-width: 780px; background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
  .profile-card-header { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); padding: 28px 36px; color: white; }
  .profile-card-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
  .profile-card-header p { font-size: 13px; opacity: 0.75; }
  .profile-card-body { padding: 36px; }
  .section-title { font-size: 13px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1.5px solid var(--blue-100); }
  .section { margin-bottom: 32px; }

  /* AVATAR UPLOAD */
  .avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
  .avatar-preview { width: 88px; height: 88px; border-radius: 50%; background: var(--blue-100); border: 3px solid var(--blue-200); display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; flex-shrink: 0; cursor: pointer; transition: border-color 0.2s; }
  .avatar-preview:hover { border-color: var(--blue-400); }
  .avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
  .avatar-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .avatar-info p { font-size: 12px; color: var(--gray-500); }
  .avatar-btns { display: flex; gap: 8px; margin-top: 8px; }

  /* FILE UPLOAD */
  .file-upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--gray-50); }
  .file-upload-area:hover, .file-upload-area.dragover { border-color: var(--blue-400); background: var(--blue-50); }
  .file-upload-area .upload-icon { font-size: 28px; margin-bottom: 8px; }
  .file-upload-area h4 { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
  .file-upload-area p { font-size: 12px; color: var(--gray-500); }
  .file-name { margin-top: 8px; font-size: 12px; color: var(--blue-600); font-weight: 500; display: none; }
  .file-name.visible { display: block; }

  /* SKILLS TAGS */
  .skills-container { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 10px; min-height: 60px; }
  .skills-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .skill-tag { background: var(--blue-100); color: var(--blue-700); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
  .skill-tag button { background: none; border: none; cursor: pointer; color: var(--blue-500); font-size: 12px; padding: 0; line-height: 1; }
  .skills-input-row { display: flex; gap: 8px; }
  .skills-input-row .form-input { margin: 0; }

  /* DATA TABLE */
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th { background: var(--blue-50); color: var(--blue-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 12px; text-align: left; }
  .data-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tbody tr:hover td { background: var(--gray-50); }
  .table-wrap { border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
  .table-actions { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
  .table-total { display: flex; justify-content: flex-end; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-top: 1.5px solid var(--blue-100); }

  /* MODAL */
  .modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,22,40,0.6); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
  .modal-backdrop.open { display: flex; }
  .modal { background: white; border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 420px; box-shadow: var(--shadow-xl); animation: slideUp 0.25s ease; }
  .modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .modal-sub { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
  .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
  .modal-scrollable { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
  @keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  /* DASHBOARD LAYOUT */
  .dashboard-layout { flex-direction: column; }
  .dash-nav { background: white; border-bottom: 1px solid var(--gray-200); padding: 0 32px; display: flex; align-items: center; height: 64px; gap: 20px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
  .dash-nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; color: var(--blue-800); flex-shrink: 0; }
  .dash-nav-spacer { flex: 1; }
  .dash-nav-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-600); }
  .dash-nav-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-500); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-family: 'Sora', sans-serif; overflow: hidden; cursor: pointer; }
  .dash-nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .dash-body { padding: 32px; max-width: 1100px; margin: 0 auto; width: 100%; }
  .dash-greeting { margin-bottom: 28px; }
  .dash-greeting h1 { font-size: 26px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
  .dash-greeting p { font-size: 14px; color: var(--gray-500); }

  /* STAT CARDS */
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
  .stat-card { background: white; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
  .stat-icon { font-size: 22px; margin-bottom: 10px; }
  .stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
  .stat-value { font-size: 24px; font-weight: 800; color: var(--gray-800); font-family: 'Sora', sans-serif; }

  /* PROFILE PANEL */
  .profile-panel { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 24px; }
  .profile-panel-header { background: linear-gradient(135deg, var(--blue-800), var(--blue-500)); padding: 28px 32px; display: flex; align-items: center; gap: 20px; }
  .profile-panel-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; overflow: hidden; flex-shrink: 0; }
  .profile-panel-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-panel-info h2 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 3px; }
  .profile-panel-info p { font-size: 13px; color: rgba(255,255,255,0.7); }
  .profile-panel-actions { margin-left: auto; display: flex; gap: 10px; }
  .profile-panel-body { padding: 28px 32px; }
  .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .info-item-label { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
  .info-item-value { font-size: 14px; color: var(--gray-700); font-weight: 500; }

  /* SKILLS DISPLAY */
  .skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .skill-chip { background: var(--blue-100); color: var(--blue-700); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }

  /* TABS */
  .dash-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); padding-bottom: 0; }
  .dash-tab { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-family: 'Sora', sans-serif; background: none; border-top: none; border-left: none; border-right: none; border-bottom: 2px solid transparent; }
  .dash-tab:hover { color: var(--blue-600); }
  .dash-tab.active { color: var(--blue-600); border-bottom-color: var(--blue-500); }
  .tab-content { display: none; }
  .tab-content.active { display: block; }

  /* TOAST */
  .toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
  .toast { background: white; border-left: 4px solid var(--blue-500); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--gray-700); min-width: 240px; animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards; }
  .toast.success { border-left-color: var(--success); }
  .toast.error { border-left-color: var(--error); }
  .toast-title { font-weight: 600; margin-bottom: 2px; }
  @keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
  @keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

  /* BADGE */
  .badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
  .badge-blue { background: var(--blue-100); color: var(--blue-700); }
  .badge-green { background: #d1fae5; color: #065f46; }
  .badge-red { background: #fee2e2; color: #991b1b; }
  .badge-orange { background: #ffedd5; color: #9a3412; }
  .badge-yellow { background: #fef9c3; color: #854d0e; }

  /* EXPORT CARD */
  .export-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 32px; box-shadow: var(--shadow-sm); }
  .export-card h3 { font-size: 18px; margin-bottom: 8px; }
  .export-card p { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; line-height: 1.6; }
  .export-options { display: flex; gap: 10px; flex-wrap: wrap; }
  .pdf-btn { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #dc2626, #ef4444); color: white; border: none; padding: 14px 28px; border-radius: var(--radius); font-family: 'Sora',sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(220,38,38,0.35); transition: all 0.2s; }
  .pdf-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,0.45); }
  .pdf-preview-note { margin-top: 20px; padding: 14px; background: var(--blue-50); border-radius: 10px; border-left: 4px solid var(--blue-400); font-size: 13px; color: var(--blue-700); }

  /* TICKETS */
  .tickets-section { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 24px; }
  .tickets-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--gray-100); }
  .tickets-header-left { display: flex; align-items: center; gap: 12px; }
  .tickets-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); }
  .ticket-bell { font-size: 22px; position: relative; cursor: pointer; }
  .ticket-unread-badge { position: absolute; top: -4px; right: -6px; background: var(--error); color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-family: 'Sora',sans-serif; }
  .tickets-list { padding: 0; }
  .ticket-card { border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background 0.2s; }
  .ticket-card:last-child { border-bottom: none; }
  .ticket-card:hover { background: var(--gray-50); }
  .ticket-card-header { display: flex; align-items: center; gap: 12px; padding: 16px 28px; }
  .ticket-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); flex-shrink: 0; transition: opacity 0.2s; }
  .ticket-dot.read { opacity: 0; }
  .ticket-card-info { flex: 1; }
  .ticket-card-title { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
  .ticket-card-meta { font-size: 12px; color: var(--gray-400); }
  .ticket-card-arrow { color: var(--gray-400); font-size: 16px; transition: transform 0.2s; }
  .ticket-card.open .ticket-card-arrow { transform: rotate(90deg); }
  .ticket-card-body { padding: 0 28px 16px 49px; display: none; }
  .ticket-card.open .ticket-card-body { display: block; }
  .ticket-message { font-size: 14px; color: var(--gray-700); line-height: 1.7; background: var(--gray-50); padding: 14px; border-radius: 10px; border-left: 3px solid var(--blue-400); }
  .ticket-from { font-size: 12px; color: var(--gray-500); margin-top: 8px; }
  .tickets-empty { padding: 32px 28px; text-align: center; color: var(--gray-400); font-size: 14px; }

  /* INVOICE UPLOAD */
  /* .invoice-upload-section { } */
  .invoice-upload-area { border: 2px dashed var(--blue-300); border-radius: var(--radius-lg); padding: 36px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--blue-50); margin-bottom: 20px; }
  .invoice-upload-area:hover { border-color: var(--blue-500); background: #e0ecff; }
  .invoice-upload-area .upload-icon { font-size: 44px; margin-bottom: 12px; }
  .invoice-upload-area h4 { font-size: 16px; font-weight: 700; color: var(--blue-800); margin-bottom: 8px; }
  .invoice-upload-area p { font-size: 13px; color: var(--blue-600); }
  .invoice-file-types { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
  .file-type-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
  .file-type-badge.pdf { background: #fee2e2; color: #991b1b; }
  .file-type-badge.word { background: #dbeafe; color: #1e40af; }
  .file-type-badge.excel { background: #d1fae5; color: #065f46; }
  /* .invoice-files-list { } */
  .invoice-files-header { font-size: 13px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
  .invoice-file-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: white; border: 1px solid var(--gray-200); border-radius: 10px; margin-bottom: 8px; }
  .invoice-file-icon { font-size: 28px; flex-shrink: 0; }
  .invoice-file-info { flex: 1; }
  .invoice-file-name { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
  .invoice-file-meta { font-size: 12px; color: var(--gray-500); }
  .invoice-files-empty { text-align: center; padding: 20px; color: var(--gray-400); font-size: 13px; }

  /* AVAILABILITY SECTION */
  .availability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid  { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 900px) {
    .auth-aside { display: none; }
    .auth-main { padding: 32px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .info-grid  { grid-template-columns: 1fr 1fr; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .dash-body { padding: 20px; }
    .dash-nav  { padding: 0 20px; gap: 14px; }
  }
  @media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .info-grid  { grid-template-columns: 1fr; }
    .profile-panel-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .profile-panel-actions { margin-left: 0; width: 100%; }
    .profile-panel-actions .btn { width: 100%; justify-content: center; }
    .profile-panel-body { padding: 20px; }
    .profile-card-body { padding: 20px; }
    .availability-grid { grid-template-columns: 1fr; }
    .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .dash-tab { white-space: nowrap; flex-shrink: 0; }
    .modal-card, .modal { width: 94vw !important; max-width: 94vw !important; padding: 18px; }
    .modal-backdrop { padding: 12px; }
    .modal-scrollable { max-height: 76vh; }
    .dash-body { padding: 14px; }
    .dash-nav { padding: 0 14px; gap: 8px; height: 58px; }
    .dash-nav-user { gap: 8px; }
    #navUserName { display: none; }
    .hide-phone { display: none; }
    .btn-sm { padding: 7px 10px; font-size: 12px; }
  }

  /* SPINNER */
  .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* INPUT ERROR */
  .form-input.error, .form-select.error { border-color: var(--error); }
  .form-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
  .form-error.visible { display: block; }

  /* CHECKBOX */
  .checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
  .checkbox-group input[type=checkbox] { margin-top: 2px; accent-color: var(--blue-500); }
  .checkbox-group label { font-size: 13px; color: var(--gray-600); }
  .checkbox-group a { color: var(--blue-600); }

  /* EDIT MODAL SECTIONS */
  .edit-section-title { font-size: 11px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.8px; margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--blue-100); }
  .edit-section-title:first-child { margin-top: 0; }
  .edit-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
  .edit-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--blue-200); background: var(--blue-100); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; flex-shrink: 0; cursor: pointer; }
  .edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .edit-avatar-btns { display: flex; gap: 8px; flex-wrap: wrap; }

  @media print {
    body * { visibility: hidden; }
    .print-only, .print-only * { visibility: visible; }
    .print-only { position: absolute; left: 0; top: 0; width: 100%; }
  }

/* ============================================================
   REDESIGN LAYER — Connect "Network" theme (Sora + Inter)
   Appended last so it wins the cascade. Class names unchanged.
   ============================================================ */
:root{
  --blue-900:#08111F; --blue-800:#0B1A33; --blue-700:#102A52; --blue-600:#2563EB; --blue-500:#1D4FD7;
  --blue-400:#3b78f5; --blue-300:#6b9ff8; --blue-200:#bdd3fd; --blue-100:#EAF0FE; --blue-50:#F4F7FB;
  --gray-50:#F4F7FB; --gray-100:#EEF2F8; --gray-200:#E4EBF4; --gray-300:#cbd5e1;
  --gray-400:#8595AD; --gray-500:#56657E; --gray-600:#475569; --gray-700:#2A3A56; --gray-800:#14213A;
  --ink:#0B1A33; --navy:#102A52; --signal:#0FB5C9; --signal-soft:#E2F7FB; --signal-ink:#0A7E8E; --mist:#F4F7FB;
  --radius:14px; --radius-lg:18px; --radius-xl:24px;
  --shadow-sm:0 2px 10px rgba(16,42,82,.06);
  --shadow-md:0 8px 24px rgba(16,42,82,.10);
  --shadow-lg:0 14px 34px -16px rgba(16,42,82,.22);
  --shadow-xl:0 24px 60px -20px rgba(16,42,82,.28);
}
body{background:var(--mist);}

/* --- HERO surfaces: dark gradient + connectivity motif --- */
.auth-aside,
.profile-card-header,
.profile-panel-header,
.export-card{
  position:relative;
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%20300%27%20preserveAspectRatio%3D%27xMidYMid%20slice%27%3E%3Cg%20stroke%3D%27rgba%2815%2C181%2C201%2C0.20%29%27%20stroke-width%3D%271%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M40%2060%20L150%20110%20L120%20220%20M150%20110%20L260%2070%20L350%20140%20M260%2070%20L300%20200%20M150%20110%20L180%20230%20L300%20200%20M40%2060%20L60%20180%20M350%20140%20L300%20200%27/%3E%3C/g%3E%3Cg%20fill%3D%27rgba%2815%2C181%2C201%2C0.45%29%27%3E%3Ccircle%20cx%3D%2740%27%20cy%3D%2760%27%20r%3D%273%27/%3E%3Ccircle%20cx%3D%27150%27%20cy%3D%27110%27%20r%3D%274%27/%3E%3Ccircle%20cx%3D%27260%27%20cy%3D%2770%27%20r%3D%273%27/%3E%3Ccircle%20cx%3D%27350%27%20cy%3D%27140%27%20r%3D%273%27/%3E%3Ccircle%20cx%3D%27120%27%20cy%3D%27220%27%20r%3D%273%27/%3E%3Ccircle%20cx%3D%27300%27%20cy%3D%27200%27%20r%3D%274%27/%3E%3Ccircle%20cx%3D%27180%27%20cy%3D%27230%27%20r%3D%272.5%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27180%27%20r%3D%272.5%27/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat, linear-gradient(150deg,var(--ink),var(--navy) 62%,#163d72) !important;
}
.auth-aside::before,.auth-aside::after{display:none !important;}
.auth-aside>*,.profile-card-header>*,.profile-panel-header>*,.export-card>*{position:relative;z-index:1;}

/* signal accent bar on top of auth aside */
.auth-aside{border-top:3px solid var(--signal);}

/* --- Typography accents --- */
.aside-headline,.profile-card-header h2,.profile-panel-info h2,.dash-greeting h1,
.auth-title,.section-title,.stat-value,.modal-title{font-family:'Sora',sans-serif;}
.aside-logo-sub,.aside-feature{color:rgba(255,255,255,.8);}

/* --- Labels: uppercase, tracked (technical) --- */
.info-item-label,.stat-label,.aside-logo-sub{
  text-transform:uppercase; letter-spacing:.12em; font-size:10.5px; font-weight:700; color:var(--gray-400);
}
.section-title{
  text-transform:uppercase; letter-spacing:.13em; font-size:11px; font-weight:700; color:var(--blue-600);
  border-bottom:1px solid var(--gray-200); padding-bottom:7px;
}

/* --- Buttons --- */
.btn{border-radius:11px; font-family:'Sora',sans-serif; font-weight:600;}
.btn-primary{background:var(--blue-600); box-shadow:0 6px 16px -6px rgba(37,99,235,.5);}
.btn-primary:hover{background:var(--blue-500);}
.btn-outline,.btn-ghost{border-radius:11px;}

/* --- Inputs --- */
.form-input,.form-select,.form-textarea{border-radius:11px; border:1px solid var(--gray-200);}
.form-input:focus,.form-select:focus,.form-textarea:focus{
  border-color:var(--blue-600); box-shadow:0 0 0 3px rgba(37,99,235,.13);
}

/* --- Cards / panels --- */
.auth-card,.profile-card,.profile-panel,.stat-card,.export-card,.tickets-section,.modal{
  border-radius:var(--radius-lg); border:1px solid var(--gray-200);
}
.stat-card,.ticket-card{box-shadow:var(--shadow-sm);}
.stat-card{border-radius:var(--radius);}
.profile-panel,.tickets-section{box-shadow:var(--shadow-sm);}

/* stat icon -> signal tint */
.stat-icon{background:var(--signal-soft) !important; color:var(--signal-ink) !important; border-radius:11px;}

/* --- Dashboard nav --- */
.dash-nav{background:#fff; border-bottom:1px solid var(--gray-200);}
.dash-nav-avatar{border-radius:11px; background:linear-gradient(135deg,var(--blue-600),var(--signal)) !important; color:#fff;}

/* --- Chips / skill / badges --- */
.skill-chip,.skill-tag{background:var(--blue-100); color:var(--blue-600); border-radius:9px; font-weight:600;}
.badge-green{background:var(--signal-soft); color:var(--signal-ink);}
.badge-blue{background:var(--blue-100); color:var(--blue-600);}

/* --- Tabs --- */
.dash-tab{border-radius:9px; font-family:'Sora',sans-serif;}
.dash-tab.active{background:var(--blue-600); color:#fff;}

/* --- Tables --- */
.data-table th{text-transform:uppercase; letter-spacing:.1em; font-size:10px; color:var(--gray-400); font-weight:700;}
.table-wrap{border-radius:var(--radius); border:1px solid var(--gray-200);}

/* --- Modal --- */
.modal-title{font-family:'Sora',sans-serif;}
.modal{border-radius:var(--radius-lg);}

/* --- File upload --- */
.file-upload-area{border-radius:12px; border:1.5px dashed var(--gray-300); background:var(--mist);}
.file-upload-area:hover,.file-upload-area.dragover{border-color:var(--blue-600); background:#fff;}

/* --- Ticket dot uses signal --- */
.ticket-dot{background:var(--signal) !important;}
.ticket-dot.read{background:var(--gray-300) !important;}
