:root {
    --synkro-dark: #1D1D1B;
    --synkro-panel: #262624;
    --synkro-gray: #A7AAA3;
    --synkro-white: #FFFFFF;
    --synkro-green: #C7F403;
    --synkro-green-light: #D5FF25;
    --synkro-silver: #D9DBD4;
    --green-gradient: linear-gradient(135deg, #D5FF25 0%, #C7F403 100%);
    --metal-gradient: linear-gradient(110deg, #FFFFFF 0%, #D9DBD4 48%, #FFFFFF 100%);
    --display-font: "Michroma", system-ui, sans-serif;
    --body-font: "Exo 2", system-ui, sans-serif;
}

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

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--synkro-dark);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;

    font-family: var(--body-font);
    color: var(--synkro-white);

    background:
        radial-gradient(circle at 12% -5%, rgba(199, 244, 3, 0.12), transparent 28rem),
        radial-gradient(circle at 96% 104%, rgba(213, 255, 37, 0.07), transparent 30rem),
        var(--synkro-dark);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-glow {
    position: fixed;
    z-index: 0;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(199, 244, 3, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.page-glow-top {
    top: -215px;
    left: -190px;
}

.page-glow-bottom {
    right: -245px;
    bottom: -210px;
}

.profile-shell {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    place-items: center;

    padding:
        max(24px, env(safe-area-inset-top))
        16px
        max(24px, env(safe-area-inset-bottom));
}

.profile-card {
    position: relative;
    width: min(100%, 510px);
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;

    background:
        radial-gradient(circle at 50% 4%, rgba(199, 244, 3, 0.055), transparent 20rem),
        linear-gradient(160deg, rgba(38, 38, 36, 0.98), rgba(29, 29, 27, 0.99));

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.profile-status {
    width: min(100%, 510px);
    padding: 56px 30px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background: var(--synkro-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.status-mark {
    display: block;
    margin-bottom: 20px;
    color: var(--synkro-green);
    font-size: 28px;
}

.profile-status h1 {
    font-family: var(--display-font);
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 400;
}

.profile-status p {
    margin-top: 12px;
    color: var(--synkro-gray);
    font-size: 14px;
    line-height: 1.5;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 50%;
    width: 118px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 0 0 999px 999px;
    background: var(--green-gradient);
    box-shadow: 0 0 24px rgba(199, 244, 3, 0.38);
}

.card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.nfc-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--synkro-gray);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.nfc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--synkro-green);
    box-shadow:
        0 0 0 5px rgba(199, 244, 3, 0.08),
        0 0 14px rgba(199, 244, 3, 0.48);
}

.icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    background: rgba(29, 29, 27, 0.72);
    color: var(--synkro-silver);
    cursor: pointer;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.icon-button:hover {
    transform: translateY(-2px);
    border-color: rgba(199, 244, 3, 0.35);
    background: rgba(199, 244, 3, 0.08);
}

.icon-button svg,
.action-icon svg,
.contact-icon svg,
.save-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.identity-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 30px 24px;
    text-align: center;
}

.logo-frame {
    width: 218px;
    height: 112px;
    overflow: hidden;
    position: relative;
    margin: 4px auto 0;
}

.profile-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 510px;
    max-width: none;
    transform: translate(-50%, -50%);
}

.logo-frame.has-custom-image .profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-monogram {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 12px auto;
    border: 1px solid rgba(199, 244, 3, 0.25);
    border-radius: 24px;
    background: rgba(199, 244, 3, 0.08);
    color: var(--synkro-green-light);
    font-family: var(--display-font);
    font-size: 28px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: -2px;
    padding: 6px 10px;

    border: 1px solid rgba(199, 244, 3, 0.16);
    border-radius: 999px;
    background: rgba(199, 244, 3, 0.07);
    color: var(--synkro-silver);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.availability-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--synkro-green);
    box-shadow: 0 0 10px rgba(199, 244, 3, 0.5);
}

.identity-kicker {
    margin-top: 24px;
    color: var(--synkro-green-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.identity-section h1 {
    margin-top: 10px;
    font-family: var(--display-font);
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;

    background: var(--metal-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-role {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 12px;
    color: var(--synkro-silver);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.role-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--synkro-green);
}

.profile-bio {
    max-width: 360px;
    margin-top: 17px;
    color: var(--synkro-gray);
    font-size: 14px;
    line-height: 1.6;
}

.save-contact-button {
    width: calc(100% - 48px);
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    margin: 0 24px;
    padding: 12px 18px;

    border: 0;
    border-radius: 16px;
    background: var(--green-gradient);
    color: var(--synkro-dark);
    cursor: pointer;

    box-shadow: 0 16px 32px rgba(199, 244, 3, 0.12);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.save-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(199, 244, 3, 0.18);
}

.save-contact-button:active {
    transform: translateY(0);
}

.save-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(29, 29, 27, 0.1);
}

.save-contact-button > span:last-child {
    display: grid;
    gap: 2px;
    text-align: left;
}

.save-contact-button strong {
    font-size: 14px;
    font-weight: 800;
}

.save-contact-button small {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.72;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 24px 0;
}

.quick-action {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(29, 29, 27, 0.68);
    color: var(--synkro-silver);

    font-size: 10px;
    font-weight: 700;

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: rgba(199, 244, 3, 0.3);
    color: var(--synkro-green-light);
}

.extra-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    padding: 17px 24px 0;
}

.extra-link {
    padding: 9px 13px;
    border: 1px solid rgba(199, 244, 3, 0.2);
    border-radius: 999px;
    color: var(--synkro-silver);
    font-size: 11px;
    font-weight: 700;
}

.extra-link:hover {
    border-color: var(--synkro-green);
    color: var(--synkro-green-light);
}

.action-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.icon-fill {
    fill: currentColor;
    stroke: none;
}

.contact-section {
    padding: 30px 24px 0;
}

.section-heading span {
    color: var(--synkro-green-light);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.section-heading h2 {
    margin-top: 6px;
    font-family: var(--display-font);
    color: var(--synkro-silver);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.contact-list {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background: rgba(29, 29, 27, 0.62);
}

.contact-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);

    transition:
        background 160ms ease,
        color 160ms ease;
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-row:hover {
    background: rgba(199, 244, 3, 0.055);
}

.contact-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(199, 244, 3, 0.14);
    border-radius: 12px;
    background: rgba(199, 244, 3, 0.07);
    color: var(--synkro-green-light);
}

.contact-icon svg {
    width: 17px;
    height: 17px;
}

.contact-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.contact-copy small {
    color: var(--synkro-gray);
    font-size: 9px;
}

.contact-copy strong {
    overflow: hidden;
    color: var(--synkro-silver);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-arrow {
    color: var(--synkro-gray);
    font-size: 15px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 24px 25px;
    color: rgba(167, 170, 163, 0.68);
    font-size: 7px;
    letter-spacing: 0.14em;
}

.card-footer strong {
    font-family: var(--display-font);
    color: var(--synkro-silver);
    font-size: 8px;
    font-weight: 400;
}

.card-footer i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--synkro-green);
}

.toast {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    transform: translate(-50%, 16px);

    max-width: calc(100% - 32px);
    padding: 12px 16px;

    border: 1px solid rgba(199, 244, 3, 0.25);
    border-radius: 999px;
    background: rgba(38, 38, 36, 0.96);
    color: var(--synkro-white);

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;

    font-size: 11px;
    text-align: center;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.noscript-message {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    padding: 12px;
    border-radius: 12px;
    background: var(--synkro-panel);
    color: var(--synkro-white);
    text-align: center;
    font: 12px var(--body-font);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--synkro-green-light);
    outline-offset: 3px;
}

@media (max-width: 540px) {
    .profile-shell {
        align-items: start;
        padding: 0;
    }

    .profile-card {
        min-height: 100vh;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .card-toolbar {
        padding-top: max(22px, env(safe-area-inset-top));
    }

    .card-footer {
        padding-bottom: max(25px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 360px) {
    .card-toolbar,
    .contact-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .save-contact-button {
        width: calc(100% - 36px);
        margin-left: 18px;
        margin-right: 18px;
    }

    .quick-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .profile-role {
        gap: 6px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
