    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal:       #43adb1;
      --teal-lt:    #e6f7f6;
      --teal-md:    #99ddd9;
      --gold:       #d97706;
      --gold-lt:    #fef3c7;
      --dark:       #0f1f2e;
      --text:       #1e2d3a;
      --muted:      #637384;
      --border:     #e2eaef;
      --bg:         #ffffff;
      --bg-soft:    #f5f9f9;
      --green:      #059669;
      --error:      #dc2626;
      --error-lt:   #fef2f2;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── HEADER ── */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 6%;
      height: 60px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
      width: 100%;
      max-width: 100%;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'Sora', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--dark);
      text-decoration: none;
    }

    .logo-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-icon img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .header-link {
      font-size: 0.9rem;
      color: var(--muted);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.18s;
    }

    .header-link:hover {
      color: var(--teal);
    }

    .header-link strong {
      color: var(--teal);
      font-weight: 600;
    }

    /* ── LAYOUT ── */
    main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 20px 80px;
    }

    .auth-card {
      background: #fff;
      /* border: 1px solid var(--border); */
      border-radius: 20px;
      width: 100%;
      max-width: 520px;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(15, 31, 46, 0.08);
      animation: fadeUp 0.6s ease-out;
    }

    /* ── TABS ── */
    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      /* border-bottom: 1px solid var(--border); */
    }

    .tab-btn {
      padding: 16px;
      text-align: center;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
      border: none;
      background: none;
      font-family: 'DM Sans', sans-serif;
      transition: color 0.18s, background 0.18s;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
    }

    .tab-btn.active {
      color: var(--teal);
      border-bottom-color: var(--teal);
    }

    .tab-btn:hover:not(.active) {
      background: var(--bg-soft);
      color: var(--text);
    }

    /* ── PANELS ── */
    .panel {
      display: none;
      padding: 40px;
      animation: fadeUp 0.4s ease-out;
    }

    .panel.active {
      display: block;
    }

    /* ── FORM ELEMENTS ── */
    .panel-title {
      font-family: 'Sora', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--dark);
      margin-bottom: 8px;
    }

    .panel-sub {
      font-size: 0.87rem;
      color: var(--muted);
      margin-bottom: 32px;
      line-height: 1.6;
    }

    .form-group {
      margin-bottom: 20px;
    }

    label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 8px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    textarea,
    select {
      width: 100%;
      padding: 11px 14px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      color: var(--text);
      background: #fff;
      transition: border-color 0.18s, box-shadow 0.18s;
      outline: none;
      resize: none;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: var(--teal);
      box-shadow: 0 0 0 3px rgba(67, 173, 177, 0.1);
    }

    input::placeholder,
    textarea::placeholder {
      color: #a8b3bc;
    }

    .input-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .forgot {
      font-size: 0.8rem;
      color: var(--teal);
      text-decoration: none;
      font-weight: 500;
    }

    .forgot:hover {
      text-decoration: underline;
    }

    /* ── BUTTONS ── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 26px;
      border-radius: 10px;
      font-size: 0.93rem;
      font-weight: 600;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.18s;
      border: none;
    }

    .btn-primary {
      background: var(--teal);
      color: #fff;
      box-shadow: 0 4px 18px rgba(67, 173, 177, 0.22);
      width: 100%;
    }

    .btn-primary:hover {
      background: #0a7a70;
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(67, 173, 177, 0.3);
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-outline {
      background: #fff;
      /* border: 1.5px solid var(--border); */
      color: var(--text);
      width: 100%;
    }

    .btn-outline:hover {
      border-color: #b0bec5;
      transform: translateY(-1px);
    }

    .btn-back {
      background: var(--bg-soft);
      border: 1.5px solid var(--border);
      color: var(--muted);
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 500;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      transition: all 0.18s;
      flex-shrink: 0;
    }

    .btn-back:hover {
      border-color: var(--teal-md);
      color: var(--text);
    }

    /* ── DIVIDER ── */
    .divider-text {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 24px 0;
      color: var(--muted);
      font-size: 0.8rem;
    }

    .divider-text::before,
    .divider-text::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── STEP PROGRESS ── */
    .step-progress {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 32px;
    }

    .step-item {
      display: flex;
      align-items: center;
      flex: 1;
    }

    .step-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .step-circle {
      border-radius: 8px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      /* border: 2px solid var(--border); */
      color: var(--muted);
      background: #fff;
      transition: all 0.25s;
      padding: 4px 8px;
      gap: 2px;
    }

    .step-circle.done {
      background: var(--teal);
      border-color: var(--teal);
      color: #fff;
    }

    .step-circle.active {
      border-color: var(--teal);
      color: var(--teal);
      box-shadow: 0 0 0 3px var(--teal-lt);
    }

    .step-line {
      flex: 1;
      height: 2px;
      background: var(--border);
      transition: background 0.25s;
    }

    .step-line.done {
      background: var(--teal);
    }

    .step-label {
      font-size: 0.7rem;
      text-align: center;
      white-space: nowrap;
      font-weight: 500;
    }

    .step-label.active {
      color: var(--teal);
      font-weight: 600;
    }

    /* ── ROLE SELECTION ── */
    .role-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 28px;
    }

    .role-card {
      /* border: 2px solid var(--border); */
      border-radius: 14px;
      padding: 24px 16px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      background: #fff;
    }

    .role-card:hover {
      border-color: var(--teal-md);
      background: var(--teal-lt);
    }

    .role-card.selected {
      border-color: var(--teal);
      background: var(--teal-lt);
    }

    .role-card.selected .role-icon {
      background: var(--bg);
      color: #fff;
    }

    .role-card.selected .role-title {
      color: var(--teal);
    }

    .role-icon {
      width: 53px;
      height: 52px;
      border-radius: 12px;
      background: var(--bg-soft);
      margin: 0 auto 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      transition: all 0.2s;
    }

    .role-title {
      font-family: 'Sora', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--dark);
    }

    .role-desc {
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.5;
    }

    /* ── STEP PANELS ── */
    .signup-step {
      display: none;
    }

    .signup-step.active {
      display: block;
      animation: fadeUp 0.4s ease-out;
    }

    /* ── SKILLS ── */
    .skill-input-row {
      display: flex;
      gap: 10px;
      margin-bottom: 12px;
    }

    .skill-input-row input {
      flex: 1;
    }

    .btn-add {
      padding: 11px 16px;
      background: var(--teal-lt);
      /* border: 1.5px solid var(--teal-md); */
      color: var(--teal);
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      white-space: nowrap;
      transition: all 0.15s;
    }

    .btn-add:hover {
      background: var(--teal-md);
      border-color: var(--teal);
    }

    .tags-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      min-height: 36px;
      margin-bottom: 12px;
    }

    .skill-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--teal-lt);
      border: 1px solid var(--teal-md);
      color: var(--teal);
      border-radius: 999px;
      padding: 6px 14px;
      font-size: 0.78rem;
      font-weight: 500;
    }

    .skill-tag button {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--teal);
      font-size: 0.9rem;
      line-height: 1;
      padding: 0;
      display: flex;
      align-items: center;
    }

    .hint {
      font-size: 0.77rem;
      color: var(--muted);
      margin-top: 8px;
    }

    /* ── PORTFOLIO ── */
    .portfolio-item {
      background: var(--bg-soft);
      /* border: 1px solid var(--border); */
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 16px;
      position: relative;
    }

    .portfolio-item .remove-btn {
      position: absolute;
      top: 14px;
      right: 14px;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted);
      font-size: 1.1rem;
      transition: color 0.15s;
    }

    .portfolio-item .remove-btn:hover {
      color: var(--error);
    }

    .portfolio-item .form-group {
      margin-bottom: 14px;
    }

    /* ── UPLOAD ZONE ── */
    .upload-zone {
      /* border: 2px dashed var(--border); */
      border-radius: 12px;
      padding: 32px;
      text-align: center;
      cursor: pointer;
      transition: all 0.18s;
    }

    .upload-zone:hover {
      border-color: var(--teal-md);
      background: var(--teal-lt);
    }

    .upload-zone.has-file {
      border-color: var(--teal);
      background: var(--teal-lt);
    }

    .upload-zone input {
      display: none;
    }

    .upload-icon {
      font-size: 2rem;
      margin-bottom: 12px;
    }

    .upload-zone p {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .upload-zone p strong {
      color: var(--teal);
      font-weight: 600;
    }

    .upload-preview {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      object-fit: cover;
      margin: 0 auto 12px;
      display: none;
      /* border: 2px solid var(--teal-md); */
    }

    /* ── STEP NAV ── */
    .step-nav {
      display: flex;
      gap: 12px;
      margin-top: 32px;
    }

    .step-nav .btn-next {
      flex: 1;
    }

    /* ── SUCCESS ── */
    .success-screen {
      text-align: center;
      padding: 20px 0 12px;
    }

    .success-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, var(--green), var(--teal));
      border-radius: 50%;
      margin: 0 auto 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.4rem;
      box-shadow: 0 4px 18px rgba(5, 150, 105, 0.2);
    }

    .success-screen h3 {
      font-family: 'Sora', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--dark);
      margin-bottom: 12px;
    }

    .success-screen p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 28px;
    }

    /* ── CHECKBOX ── */
    .check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.83rem;
      color: var(--muted);
      margin-top: 16px;
    }

    .check-row input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 1px;
      accent-color: var(--bg-soft);
      cursor: pointer;
    }

    .check-row a {
      color: var(--teal);
      text-decoration: none;
      font-weight: 500;
    }

    .check-row a:hover {
      text-decoration: underline;
    }

    .section-mini {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--teal);
      margin: 24px 0 12px;
    }

    /* ── LINK ROW ── */
    .link-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .link-icon {
      font-size: 1rem;
      flex-shrink: 0;
    }

    .link-row input {
      flex: 1;
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--border);
      padding: 40px 6% 32px;
      background: #fff;
      margin-top: auto;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 32px;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    .footer-brand p {
      color: var(--muted);
      font-size: 0.87rem;
      line-height: 1.7;
      margin-top: 12px;
      max-width: 250px;
    }

    .footer-col h4 {
      font-size: 0.83rem;
      font-weight: 700;
      margin-bottom: 14px;
      color: var(--dark);
    }

    .footer-col a {
      display: block;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.84rem;
      margin-bottom: 9px;
      transition: color 0.15s;
    }

    .footer-col a:hover {
      color: var(--teal);
    }

    .footer-bottom {
      border-top: 1px solid var(--border);
      padding-top: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    .footer-bottom p {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .socials {
      display: flex;
      gap: 8px;
    }

    .social-btn {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--bg-soft);
      /* border: 1px solid var(--border); */
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 0.82rem;
      color: var(--muted);
      transition: all 0.15s;
    }

    .social-btn:hover {
      background: var(--teal-lt);
      border-color: var(--teal-md);
      color: var(--teal);
    }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 580px) {
      main {
        padding: 40px 12px 60px;
      }

      .panel {
        padding: 32px 24px;
      }

      .input-row {
        grid-template-columns: 1fr;
      }

      .role-grid {
        grid-template-columns: 1fr;
      }

      .step-nav {
        flex-direction: column;
      }

      .step-nav .btn-back {
        flex: 1;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .tabs {
        grid-template-columns: 1fr 1fr;
      }

      .tab-btn {
        font-size: 0.85rem;
        padding: 12px;
      }
    }

    /* ── RTL SUPPORT ── */
    [dir="rtl"] body {
      font-family: 'Sora', 'DM Sans', Tahoma, Arial, sans-serif;
    }

    [dir="rtl"] header {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .logo {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .panel {
      direction: rtl;
      text-align: right;
    }

    [dir="rtl"] label {
      text-align: right;
    }

    [dir="rtl"] .role-grid {
      direction: rtl;
    }

    [dir="rtl"] .input-row {
      direction: rtl;
    }

    [dir="rtl"] .skill-input-row {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .step-nav {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .check-row {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .link-row {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .portfolio-item .remove-btn {
      right: auto;
      left: 14px;
    }

    [dir="rtl"] .btn svg {
      transform: scaleX(-1);
    }

    [dir="rtl"] footer {
      direction: rtl;
    }

    [dir="rtl"] .footer-grid {
      direction: rtl;
    }

    [dir="rtl"] .footer-bottom {
      flex-direction: row-reverse;
    }
  