/* ───────────────────────── Design tokens ───────────────────────── */
:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --color-bg: #fff9f5;
    --color-fg: #431407;
    --color-muted: #92400e;
    --color-border: rgba(249, 115, 22, 0.15);
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-hero: linear-gradient(135deg, #fff9f5 0%, #ffedd5 55%, #fed7aa 100%);
    --card-bg: rgba(255, 255, 255, 0.82);
    --tray-bg: rgba(255, 237, 213, 0.6);
    --tray-border: rgba(249, 115, 22, 0.2);
    --glow: 0 6px 22px rgba(249, 115, 22, 0.38);
    --shadow: 0 6px 32px rgba(249, 115, 22, 0.1);
    --shadow-lg: 0 16px 48px rgba(249, 115, 22, 0.16);
    --radius: 0.875rem;
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: none;
}

    *::-webkit-scrollbar {
        display: none;
    }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-fg);
    background: var(--gradient-hero);
}

body {
    min-height: 100vh;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input {
    font-family: inherit;
}

.app-shell {
    min-height: 100vh;
    padding: 1rem;
}

@media (min-width: 640px) {
    .app-shell {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        padding: 2rem;
    }
}

.app-container {
    max-width: 42rem;
    margin: 0 auto;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideInR {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInL {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.84) translateY(14px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pingFade {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    75%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.slide-r {
    animation: slideInR 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide-l {
    animation: slideInL 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-up {
    animation: fadeUp 280ms ease both;
}

.icon-spin {
    animation: spin 0.9s linear infinite;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 237, 213, 0.4) inset !important;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    color: #fff;
    user-select: none;
    transition: transform 0.2s, filter 0.2s, opacity 0.2s;
    background: var(--gradient-primary);
    box-shadow: var(--glow);
}

    .btn:hover:not(:disabled) {
        transform: scale(1.04);
        filter: brightness(1.05);
    }

    .btn:active:not(:disabled) {
        transform: scale(0.97);
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        box-shadow: none;
    }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-ghost {
    background: none;
    box-shadow: none;
    color: rgba(67, 20, 7, 0.6);
}

    .btn-ghost:hover:not(:disabled) {
        color: var(--color-fg);
        background: #fff7ed;
        transform: none;
    }

    .btn-ghost:active:not(:disabled) {
        transform: scale(0.95);
    }

.btn-outline {
    background: none;
    box-shadow: none;
    color: #ea580c;
    border: 2px solid #fb923c;
}

    .btn-outline:hover:not(:disabled) {
        background: #fff7ed;
        transform: none;
    }

    .btn-outline:active:not(:disabled) {
        transform: scale(0.95);
    }

.btn-danger {
    background: none;
    box-shadow: none;
    color: #f43f5e;
    border: 2px solid #fda4af;
}

    .btn-danger:hover:not(:disabled) {
        background: #fff1f2;
        transform: none;
    }

.btn-block {
    width: 100%;
}

.btn-ml-auto {
    margin-left: auto;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0);
    animation: ripple 550ms ease-out forwards;
    pointer-events: none;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    padding: 1.5rem;
}

.card-tight {
    padding: 1.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

    .section-header .icon-box {
        width: 2rem;
        height: 2rem;
        border-radius: 0.75rem;
        background: #ffedd5;
        color: #ea580c;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .section-header .label {
        font-size: 0.875rem;
        font-weight: 700;
    }

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(249, 115, 22, 0.08);
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row .label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-muted);
        flex-shrink: 0;
    }

    .info-row .value {
        font-size: 0.75rem;
        font-weight: 700;
        text-align: right;
    }

        .info-row .value.highlight {
            color: #ea580c;
        }

.field {
    margin-bottom: 1.25rem;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .field-grid {
        grid-template-columns: 1fr 1fr;
    }

        .field-grid .col-span-2 {
            grid-column: span 2;
        }
}

.field label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(67, 20, 7, 0.7);
    margin-bottom: 0.375rem;
}

    .field label .req {
        color: #f97316;
    }

.field-error {
    font-size: 0.75rem;
    color: #f43f5e;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--tray-bg);
    border: 1px solid var(--tray-border);
    transition: box-shadow 0.2s, border-color 0.2s;
}

    .input-wrap:focus-within {
        box-shadow: 0 0 0 2px #fb923c;
    }

    .input-wrap.has-error {
        box-shadow: 0 0 0 2px #fb7185;
        border-color: rgba(239, 68, 68, 0.4);
    }

    .input-wrap .input-icon {
        padding-left: 0.875rem;
        color: #fb923c;
        flex-shrink: 0;
        display: flex;
    }

    .input-wrap .input-suffix {
        padding-right: 0.875rem;
        flex-shrink: 0;
        display: flex;
    }

    .input-wrap input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        color: var(--color-fg);
        min-width: 0;
    }

        .input-wrap input::placeholder {
            color: var(--color-muted);
            opacity: 0.6;
        }

.suffix-btn {
    color: #fb923c;
    display: flex;
}

    .suffix-btn:hover {
        color: #ea580c;
    }

.dropdown {
    position: relative;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    background: var(--tray-bg);
    border: 1px solid var(--tray-border);
    transition: box-shadow 0.2s, filter 0.2s;
}

    .dropdown-trigger:hover {
        filter: brightness(0.97);
    }

    .dropdown-trigger.open {
        box-shadow: 0 0 0 2px #fb923c;
    }

    .dropdown-trigger.has-error {
        box-shadow: 0 0 0 2px #fb7185;
    }

    .dropdown-trigger .dd-icon {
        color: #fb923c;
        flex-shrink: 0;
        display: flex;
    }

    .dropdown-trigger .dd-text {
        flex: 1;
        text-align: left;
        color: var(--color-muted);
    }

        .dropdown-trigger .dd-text.filled {
            color: var(--color-fg);
        }

    .dropdown-trigger .dd-chevron {
        color: #fb923c;
        flex-shrink: 0;
        display: flex;
        transition: transform 0.2s;
    }

    .dropdown-trigger.open .dd-chevron {
        transform: rotate(180deg);
    }

.dropdown-menu {
    position: absolute;
    z-index: 50;
    margin-top: 0.375rem;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    animation: popIn 180ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    max-height: 16rem;
    overflow-y: auto;
}

.dropdown-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    text-align: left;
    transition: background 0.15s;
}

    .dropdown-option:hover {
        background: #fff7ed;
    }

    .dropdown-option.selected {
        font-weight: 700;
        color: #ea580c;
    }

.datepicker-popover {
    position: absolute;
    z-index: 50;
    margin-top: 0.375rem;
    width: 18rem;
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    animation: popIn 200ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

    .dp-header button {
        padding: 0.375rem;
        border-radius: 0.5rem;
        display: flex;
    }

        .dp-header button:hover {
            background: #fff7ed;
        }

    .dp-header .dp-title {
        font-size: 0.875rem;
        font-weight: 700;
    }

.dp-title-selects {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dp-mini-dropdown {
    position: relative;
}

.dp-mini-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff7ed;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

    .dp-mini-trigger svg {
        color: #fb923c;
        flex-shrink: 0;
    }

    .dp-mini-trigger:hover {
        background: #ffedd5;
    }

    .dp-mini-trigger.open {
        box-shadow: 0 0 0 2px #fb923c;
    }

.dp-mini-menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    min-width: 6rem;
    max-height: 11rem;
    overflow-y: auto;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
    padding: 0.25rem;
}

.dp-mini-option {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
}

    .dp-mini-option:hover {
        background: #fff7ed;
    }

    .dp-mini-option.selected {
        font-weight: 700;
        color: #ea580c;
        background: #ffedd5;
    }

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.25rem;
}

    .dp-weekdays span {
        text-align: center;
        font-size: 0.625rem;
        font-weight: 700;
        color: var(--color-muted);
        padding: 0.25rem 0;
    }

.dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
}

.dp-day {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

    .dp-day:hover:not(.disabled):not(.selected) {
        background: #ffedd5;
    }

    .dp-day.selected {
        background: var(--gradient-primary);
        color: #fff;
    }

    .dp-day.disabled {
        color: rgba(146, 64, 14, 0.35);
        cursor: not-allowed;
    }

    .dp-day.empty {
        visibility: hidden;
    }

.pw-strength {
    margin-top: 0.5rem;
    animation: fadeUp 280ms ease both;
}

.pw-bars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

    .pw-bars div {
        flex: 1;
        height: 0.375rem;
        border-radius: 999px;
        background: rgba(0,0,0,0.08);
        transition: background 0.3s;
    }

.pw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pw-checks {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .pw-checks span {
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: var(--color-muted);
    }

        .pw-checks span.ok {
            color: #059669;
        }

.pw-score-label {
    font-size: 0.75rem;
    font-weight: 700;
}

.pw-match {
    font-size: 0.75rem;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    animation: fadeUp 280ms ease both;
}

.otp-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.625rem;
}

    .otp-row input {
        width: 130px;
        padding: 0.6rem 0.75rem;
        border-radius: 0.6rem;
        border: 1px solid var(--tray-border);
        background: var(--tray-bg);
        color: var(--color-fg);
        font-size: 0.85rem;
        letter-spacing: 3px;
        outline: none;
        transition: box-shadow 0.2s, border-color 0.2s;
    }

        .otp-row input:focus {
            box-shadow: 0 0 0 2px #fb923c;
        }

.otp-status {
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

    .otp-status.error { color: #dc2626; }
    .otp-status.ok    { color: #059669; }

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

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
}

.progress-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.5s;
    background: rgba(255,255,255,0.6);
    color: #fdba74;
    border: 1px solid #fed7aa;
}

    .progress-circle.done, .progress-circle.active {
        background: var(--gradient-primary);
        color: #fff;
        border: none;
    }

    .progress-circle.active {
        box-shadow: 0 0 0 4px #fed7aa;
    }

.progress-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-muted);
    display: none;
}

@media (min-width: 640px) {
    .progress-label {
        display: block;
    }
}

.progress-label.active {
    color: #ea580c;
}

.progress-label.done {
    color: #fb923c;
}

.progress-track {
    height: 0.375rem;
    border-radius: 999px;
    background: #ffedd5;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gradient-primary);
    transition: width 0.5s ease-out;
}

.progress-count {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
    text-align: right;
}

.step-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
    margin-bottom: 0.25rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 0;
}

.step-subtitle {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.step-header {
    margin-bottom: 0.25rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.contract-mini {
    margin-top: 1.25rem;
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--tray-bg);
    border: 1px solid var(--tray-border);
    animation: fadeUp 280ms ease both;
}

    .contract-mini .cm-title {
        font-size: 0.75rem;
        font-weight: 700;
        color: #ea580c;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }

.contract-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    text-align: center;
}

    .contract-mini-grid .cm-label {
        font-size: 0.6875rem;
        color: var(--color-muted);
        margin-bottom: 0.125rem;
    }

    .contract-mini-grid .cm-value {
        font-size: 0.75rem;
        font-weight: 700;
    }

.cm-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--gradient-primary);
}

.review-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agreement-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.agreement-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

    .agreement-row:last-of-type {
        margin-bottom: 0;
    }

.checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid #fdba74;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #fff;
    transition: all 0.2s;
}

    .checkbox-box.checked {
        border-color: transparent;
        background: var(--gradient-primary);
    }

.agreement-text {
    font-size: 0.875rem;
    color: rgba(67,20,7,0.8);
    line-height: 1.3;
}

.agreement-link {
    color: #ea580c;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

    .agreement-link:hover {
        text-decoration: underline;
    }

.agreement-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .agreement-hint .ic {
        color: #fb923c;
        display: flex;
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(67, 20, 7, 0.35);
    backdrop-filter: blur(8px);
}

    .modal-overlay.hidden {
        display: none;
    }

.modal-box {
    width: 100%;
    max-width: 24rem;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 64px rgba(249, 115, 22, 0.25);
    animation: popIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-icon-wrap {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
}

.success-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.success-icon-ping {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--gradient-primary);
    animation: pingFade 1.6s cubic-bezier(0,0,0.2,1) infinite;
}

.modal-box h2 {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 0 0 0.25rem;
}

.modal-box .modal-text {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.modal-box .modal-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f97316;
    margin: 0 0 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.profile-wrap {
    display: none;
}

    .profile-wrap.active {
        display: block;
        animation: fadeUp 280ms ease both;
    }

.profile-back-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

    .profile-back-nav button {
        padding: 0.625rem;
        border-radius: 0.75rem;
        color: #ea580c;
        display: flex;
    }

        .profile-back-nav button:hover {
            background: #ffedd5;
        }

.profile-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
}

.profile-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-hero {
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.4);
    color: #fff;
}

    .profile-hero .deco {
        position: absolute;
        border-radius: 999px;
        background: rgba(255,255,255,0.1);
        pointer-events: none;
    }

    .profile-hero .deco-1 {
        top: -2rem;
        right: -2rem;
        width: 10rem;
        height: 10rem;
    }

    .profile-hero .deco-2 {
        bottom: -2.5rem;
        left: -1.5rem;
        width: 8rem;
        height: 8rem;
    }

.profile-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .profile-hero-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.profile-avatar-cam {
    position: absolute;
    bottom: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

    .profile-avatar-cam:hover {
        transform: scale(1.1);
    }

.profile-name-block {
    flex: 1;
}

.profile-id {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.125rem;
}

.profile-fullname {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 0 0 0.125rem;
    line-height: 1.2;
}

.profile-displayname {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .profile-badges {
        justify-content: flex-start;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-emerald {
    background: #d1fae5;
    color: #047857;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

.badge-amber {
    background: #fef3c7;
    color: #92400e;
}

.profile-type-pill {
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

    .profile-type-pill .pt-label {
        font-size: 0.625rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255,255,255,0.7);
        margin: 0 0 0.125rem;
    }

    .profile-type-pill .pt-value {
        font-size: 0.75rem;
        font-weight: 700;
        max-width: 9rem;
        line-height: 1.3;
        margin: 0;
    }

.contract-summary-card {
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255,237,213,0.95), rgba(254,215,170,0.8));
    border: 2px solid rgba(249, 115, 22, 0.25);
    box-shadow: var(--shadow-lg);
}

.cs-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .cs-header .icon-box {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 0.5rem;
        background: var(--gradient-primary);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cs-header .cs-title {
        font-size: 0.875rem;
        font-weight: 700;
        color: #9a3412;
    }

.cs-status {
    margin-left: auto;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cs-grid .cs-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.125rem;
}

.cs-grid .cs-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #7c2d12;
    margin: 0;
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .profile-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.actions-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hidden {
    display: none !important;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ───────────────────────── Signup page additions ───────────────────────── */
.signup-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-fg);
}

    .signup-brand img {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        object-fit: cover;
    }

    .signup-brand .r {
        color: #f97316;
    }

.field-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0.35rem 0 0;
    line-height: 1.4;
}

.submit-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    background: var(--tray-bg);
    border: 1px solid var(--tray-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin: 0;
    line-height: 1.5;
}

.pending-wrap {
    display: none;
}

    .pending-wrap.active {
        display: flex;
    }

.pending-card {
    max-width: 26rem;
    margin: 4rem auto 0;
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    animation: popIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

    .pending-card h2 {
        font-size: 1.35rem;
        font-weight: 700;
        font-family: var(--font-display);
        margin: 0 0 0.5rem;
    }

    .pending-card .modal-text {
        font-size: 0.9rem;
        color: var(--color-muted);
        margin: 0 0 0.5rem;
        line-height: 1.55;
    }

    .pending-card #pending-name {
        font-weight: 700;
        color: #f97316;
    }

    .pending-card .modal-actions {
        margin-top: 1.5rem;
    }