:root {
    --ink: #14121F;
    --ink-soft: #211D33;
    --porcelain: #F7F4EF;
    --porcelain-dim: #ECE7DD;
    --amber: #FF8A3D;
    --amber-deep: #E86A1E;
    --violet: #6C5CE0;
    --mint: #2BD4A6;
    --rose: #E85D75;
    --line: rgba(20, 18, 31, 0.10);
    --shadow-soft: 0 20px 60px -20px rgba(20, 18, 31, 0.25);
    --shadow-card: 0 12px 40px -16px rgba(20, 18, 31, 0.18);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 0% 0%, rgba(108, 92, 224, 0.08), transparent 32%),
        radial-gradient(circle at 100% 8%, rgba(255, 138, 61, 0.10), transparent 28%),
        var(--porcelain);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--amber);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(255, 138, 61, 0.55);
}

.btn-primary:hover {
    background: var(--amber-deep);
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: rgba(108, 92, 224, 0.35);
    background: rgba(108, 92, 224, 0.04);
}

.btn-danger {
    background: rgba(232, 93, 117, 0.10);
    border-color: rgba(232, 93, 117, 0.28);
    color: #9b2c42;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.84rem;
}

.nav { padding: 14px 0; position: relative; z-index: 2; }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(247, 244, 239, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(20, 18, 31, 0.08);
    border-radius: 100px;
    padding: 10px 10px 10px 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amber), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg { width: 16px; height: 16px; }

.nav-profile-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
}

.profile-shell { padding: 8px 0 80px; }

.page-hero {
    padding: 12px 0 24px;
}

.page-hero h1 {
    font-family: var(--font-display);
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 0;
    color: rgba(20, 18, 31, 0.68);
    max-width: 560px;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    background: linear-gradient(135deg, rgba(108, 92, 224, 0.16), rgba(255, 138, 61, 0.14));
}

.profile-hero-inner {
    position: relative;
    display: grid;
    gap: 24px;
    padding: 28px;
}

@media (min-width: 768px) {
    .profile-hero-inner {
        grid-template-columns: auto 1fr auto;
        align-items: end;
        padding: 32px;
    }
}

.profile-avatar-wrap {
    position: relative;
    width: fit-content;
}

.profile-avatar,
.profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--shadow-card);
}

.profile-avatar {
    background: linear-gradient(135deg, var(--amber), var(--violet));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-photo { object-fit: cover; }

.profile-identity h2 {
    font-family: var(--font-display);
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}

.profile-identity p {
    margin: 0;
    color: rgba(20, 18, 31, 0.68);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(108, 92, 224, 0.12);
    color: var(--violet);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-badge.complete {
    background: rgba(43, 212, 166, 0.14);
    color: #0f6b52;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--porcelain);
    border: 1px solid var(--line);
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(20, 18, 31, 0.78);
}

.completion-panel {
    background: var(--porcelain);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    min-width: 220px;
}

.completion-panel strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.completion-panel span {
    display: block;
    font-size: 0.84rem;
    color: rgba(20, 18, 31, 0.62);
    margin-bottom: 12px;
}

.progress-track {
    height: 8px;
    border-radius: 100px;
    background: rgba(20, 18, 31, 0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--amber));
    transition: width 0.4s ease;
}

.profile-dashboard {
    display: grid;
    gap: 24px;
}

@media (min-width: 960px) {
    .profile-dashboard {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
}

.sidebar-card,
.detail-card,
.state-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.sidebar-card + .sidebar-card { margin-top: 16px; }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.card-head h3 {
    font-family: var(--font-display);
    margin: 0;
    font-size: 1.05rem;
}

.card-head p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: rgba(20, 18, 31, 0.58);
}

.card-body { padding: 18px 22px 22px; }

.step-track {
    display: grid;
    gap: 10px;
}

.step-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--porcelain);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.step-item:hover {
    border-color: rgba(108, 92, 224, 0.28);
    transform: translateY(-1px);
}

.step-item.done {
    background: rgba(43, 212, 166, 0.06);
    border-color: rgba(43, 212, 166, 0.22);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
    color: rgba(20, 18, 31, 0.55);
}

.step-item.done .step-num {
    background: rgba(43, 212, 166, 0.14);
    border-color: rgba(43, 212, 166, 0.35);
    color: #0f6b52;
}

.step-item.active .step-num {
    background: rgba(108, 92, 224, 0.12);
    border-color: rgba(108, 92, 224, 0.35);
    color: var(--violet);
}

.step-copy strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.step-copy span {
    font-size: 0.78rem;
    color: rgba(20, 18, 31, 0.55);
}

.step-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.step-status.done {
    background: rgba(43, 212, 166, 0.14);
    color: #0f6b52;
}

.step-status.pending {
    background: rgba(255, 138, 61, 0.14);
    color: var(--amber-deep);
}

.step-link {
    color: var(--violet);
    font-weight: 600;
    font-size: 0.84rem;
}

.quick-links {
    display: grid;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--porcelain);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.quick-link:hover {
    border-color: rgba(108, 92, 224, 0.28);
    background: rgba(108, 92, 224, 0.05);
}

.quick-link svg {
    width: 16px;
    height: 16px;
    color: var(--violet);
    flex-shrink: 0;
}

.profile-main {
    display: grid;
    gap: 18px;
}

.detail-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 0;
}

.detail-card-head h3 {
    font-family: var(--font-display);
    margin: 0 0 4px;
    font-size: 1.12rem;
}

.detail-card-head p {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(20, 18, 31, 0.58);
}

.detail-card-body {
    padding: 18px 24px 24px;
}

.info-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .info-grid.two { grid-template-columns: repeat(2, 1fr); }
}

.info-item {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--porcelain);
    border: 1px solid rgba(20, 18, 31, 0.06);
}

.info-item label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(20, 18, 31, 0.48);
    margin-bottom: 6px;
}

.info-item p {
    margin: 0;
    font-weight: 500;
    color: var(--ink-soft);
    word-break: break-word;
}

.info-block {
    margin-bottom: 14px;
}

.info-block:last-child { margin-bottom: 0; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 7px 12px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.86rem;
    font-weight: 500;
}

.tag.empty {
    color: rgba(20, 18, 31, 0.48);
    font-style: italic;
}

.profile-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.profile-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loading-card,
.error-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 48px 24px;
    text-align: center;
}

.loading-card {
    color: rgba(20, 18, 31, 0.62);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid rgba(108, 92, 224, 0.15);
    border-top-color: var(--violet);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-card {
    color: #9b2c42;
    background: rgba(232, 93, 117, 0.06);
    border-color: rgba(232, 93, 117, 0.18);
}

.empty-state {
    padding: 28px;
    border-radius: var(--radius-sm);
    background: var(--porcelain);
    border: 1px dashed rgba(108, 92, 224, 0.25);
    text-align: center;
}

.empty-state p {
    margin: 0 0 14px;
    color: rgba(20, 18, 31, 0.62);
}

.footer {
    background: var(--ink);
    color: rgba(247, 244, 239, 0.55);
    padding: 32px 0;
    text-align: center;
    font-size: 0.88rem;
}

@media (max-width: 767px) {
    .completion-panel { width: 100%; }
    .profile-footer { flex-direction: column; align-items: stretch; }
    .profile-footer-actions { width: 100%; }
    .profile-footer-actions .btn { flex: 1; }
}

/* Floating parent-request notification */
.hire-notify-widget {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 900;
}

.hire-notify-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--violet), #5646c9);
    color: #fff;
    box-shadow: 0 14px 36px -10px rgba(108, 92, 224, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hire-notify-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 42px -12px rgba(108, 92, 224, 0.62);
}

.hire-notify-btn:focus-visible {
    outline: 3px solid rgba(108, 92, 224, 0.35);
    outline-offset: 3px;
}

.hire-notify-icon {
    position: relative;
    z-index: 2;
    display: flex;
    width: 26px;
    height: 26px;
}

.hire-notify-icon svg {
    width: 100%;
    height: 100%;
}

.hire-notify-waves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hire-notify-waves .wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 224, 0.45);
    opacity: 0;
    transform: scale(1);
}

.hire-notify-widget.has-pending .hire-notify-waves .wave {
    animation: hireNotifyWave 2.4s ease-out infinite;
}

.hire-notify-widget.has-pending .hire-notify-waves .wave:nth-child(2) {
    animation-delay: 0.8s;
}

.hire-notify-widget.has-pending .hire-notify-waves .wave:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes hireNotifyWave {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.hire-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 3;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--rose);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(232, 93, 117, 0.45);
}

.hire-notify-popup {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px 24px 96px;
}

.hire-notify-popup[hidden] {
    display: none !important;
}

.hire-notify-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 31, 0.42);
    backdrop-filter: blur(4px);
}

.hire-notify-popup-panel {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 48px));
    max-height: min(72vh, 560px);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hireNotifySlideIn 0.28s ease;
}

@keyframes hireNotifySlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hire-notify-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(108, 92, 224, 0.06), rgba(43, 212, 166, 0.06));
}

.hire-notify-popup-head h2 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.hire-notify-popup-head p {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(20, 18, 31, 0.58);
}

.hire-notify-popup-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 18, 31, 0.06);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.hire-notify-popup-close:hover {
    background: rgba(20, 18, 31, 0.1);
}

.hire-notify-popup-body {
    padding: 12px;
    overflow-y: auto;
}

.hire-notify-item {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--porcelain);
    margin-bottom: 10px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hire-notify-item:last-child {
    margin-bottom: 0;
}

.hire-notify-item:hover {
    border-color: rgba(108, 92, 224, 0.35);
    transform: translateX(-2px);
    box-shadow: 0 8px 24px -14px rgba(108, 92, 224, 0.35);
}

.hire-notify-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.hire-notify-item-top strong {
    font-size: 0.95rem;
}

.hire-notify-item-meta {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: rgba(20, 18, 31, 0.55);
}

.hire-notify-item-preview {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(20, 18, 31, 0.72);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hire-notify-widget {
        right: 16px;
        bottom: 20px;
    }

    .hire-notify-popup {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .hire-notify-popup-panel {
        width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        margin-top: auto;
    }
}

.hire-request-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 18px;
}

.hire-request-card:last-child { margin-bottom: 0; }

.hire-request-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(108, 92, 224, 0.08), rgba(43, 212, 166, 0.08));
    border-bottom: 1px solid var(--line);
}

.hire-request-head h4 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.hire-request-head p {
    margin: 0;
    color: rgba(20, 18, 31, 0.58);
    font-size: 0.88rem;
}

.hire-status {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: capitalize;
    flex-shrink: 0;
}

.hire-status-pending { background: rgba(255, 138, 61, 0.14); color: #9a4d12; }
.hire-status-accepted { background: rgba(43, 212, 166, 0.14); color: #0f6b52; }
.hire-status-declined { background: rgba(232, 93, 117, 0.12); color: #9b2c42; }
.hire-status-cancelled { background: rgba(20, 18, 31, 0.08); color: rgba(20, 18, 31, 0.62); }

.hire-request-body {
    padding: 20px 22px;
}

.hire-message-box {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--porcelain);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.hire-message-box label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(20, 18, 31, 0.48);
    margin-bottom: 8px;
}

.hire-message-box p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.55;
}

.hire-parent-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hire-parent-grid { grid-template-columns: 1fr 1fr; }
}

.hire-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hire-request-actions .btn { width: auto; }

.hire-empty {
    padding: 24px;
    border-radius: var(--radius-sm);
    background: var(--porcelain);
    border: 1px dashed rgba(108, 92, 224, 0.22);
    color: rgba(20, 18, 31, 0.62);
    text-align: center;
}
