﻿
:root {
    color-scheme: light;
    --sage: #74806b;
    --sage-dark: #74806b;
    --sage-pale: #e8ede4;
    --ink: #343c32;
    --muted: #7d8579;
    --line: #e9ede7;
    --paper: #ffffff;
    --page: #f6f8f4;
    --shadow: 0 22px 65px rgba(43, 55, 43, .09);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    background:
        radial-gradient(circle at 50% 10%, #edf1e9 0, transparent 34rem),
        var(--page);
}

a {
    color: inherit;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(224, 230, 220, .85);
    border-radius: 23px;
    box-shadow: var(--shadow);
}

/* Cover */
.cover {
    position: relative;
    height: 118px;
    overflow: hidden;
    background: linear-gradient(125deg, #e8ede4, #edf1e9);
    background-size: cover;
    background-position: center;
}

.cover::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -67px;
    right: -34px;
    border: 1px solid rgba(143, 157, 133, .23);
    border-radius: 50%;
    pointer-events: none;
}

/* Profile content */
.profile-content {
    position: relative;
    padding: 0 30px 0;
}

/* Profile photo */
.avatar-wrap {
    position: relative;
    width: 94px;
    height: 94px;
    margin-top: -47px;
    border: 5px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sage-pale);
    box-shadow: 0 5px 17px rgba(36, 53, 39, .10);
}

.avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    color: var(--sage-dark);
    font: 500 27px 'DM Sans', sans-serif;
    background: #e7ece3;
}

/* Identity */
.identity {
    padding-top: 12px;
}

.eyebrow {
    display: none;
}

h1 {
    margin: 0;
    color: #343c32;
    font: 400 clamp(27px, 6vw, 31px)/1.2 Georgia, 'Times New Roman', serif;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.professional-title {
    margin: 5px 0 0;
    color: var(--sage-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.location {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.location::before {
    content: "";
}

.bio {
    max-width: 370px;
    margin: 13px 0 0;
    color: #747d72;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-line;
}

/* Contact buttons */
.primary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 19px;
}

.action-button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #dce4d9;
    border-radius: 30px;
    color: #71806d;
    background: #fafbf9;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: background .18s ease, transform .18s ease;
}

.action-button:hover {
    transform: translateY(-1px);
    background: var(--sage-pale);
}

.action-button.primary {
    color: #fff;
    border-color: #74806b;
    background: #74806b;
}

.action-button.primary:hover {
    background: #66735f;
}

.action-button .action-icon {
    width: 13px;
    height: 13px;
    display: grid;
    place-items: center;
    font-size: 11px;
}

/* Sections */
.link-section {
    margin-top: 23px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.section-heading h2 {
    margin: 0;
    color: #8b9586;
    font: 800 9px 'DM Sans', sans-serif;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.section-heading span {
    display: none;
}

/* Social links */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    color: #586453;
    background: #f0f3ee;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    overflow-wrap: anywhere;
    transition: background .18s ease;
}

.social-link:hover {
    background: #e5ebe2;
}

.social-symbol {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: var(--sage-dark);
    background: transparent;
    font-size: 10px;
    font-weight: 700;
}

/* Website */
.website-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #596454;
    background: #fafbf9;
    text-decoration: none;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.website-link::after {
    content: "â†—";
    color: var(--sage-dark);
}

/* Portfolio */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    background: var(--sage-pale);
}

/* Documents */
.documents {
    display: grid;
    gap: 8px;
}

.document-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #596454;
    background: #fafbf9;
    text-decoration: none;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.document-link::after {
    content: "â†“";
    color: var(--sage-dark);
    font-size: 15px;
}

/* Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
    padding: 16px 30px;
    border-top: 1px solid var(--line);
    color: #9aa294;
    font-size: 9px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.card-footer strong {
    color: var(--sage-dark);
    font-weight: 700;
    letter-spacing: .12em;
}

.brand-mark {
    display: none;
}

/* Owner edit button */
.owner-edit-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 24px;
    color: #687661;
    background: rgba(255,255,255,.85);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(40, 60, 40, .08);
    transition: all .2s ease;
}

.owner-edit-button:hover {
    background: #fff;
    transform: translateY(-1px);
}

.owner-edit-button:focus-visible {
    outline: 3px solid rgba(117, 139, 112, .35);
    outline-offset: 3px;
}

/* Status */
.status {
    max-width: 440px;
    padding: 12px 18px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.status.error {
    color: #a34c4c;
}

[hidden] {
    display: none !important;
}

/* Mobile */
@media (max-width: 480px) {
    .page-shell {
        justify-content: flex-start;
        padding: 16px 12px 24px;
    }

    .profile-card {
        border-radius: 20px;
    }

    .cover {
        height: 118px;
    }

    .profile-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .card-footer {
        padding-right: 22px;
        padding-left: 22px;
    }

    h1 {
        font-size: 28px;
    }
}

@media (max-width: 340px) {
    .profile-content {
        padding-right: 17px;
        padding-left: 17px;
    }

    .card-footer {
        padding-right: 17px;
        padding-left: 17px;
    }

    .primary-actions {
        gap: 6px;
    }

    .action-button {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 9px;
    }
}

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


/* Larger desktop profile layout */
@media (min-width: 481px) {
    .profile-card {
        max-width: 620px;
        border-radius: 26px;
    }

    .status {
        max-width: 620px;
        font-size: 13px;
    }

    .cover {
        height: 155px;
    }

    .profile-content {
        padding-left: 42px;
        padding-right: 42px;
    }

    .avatar-wrap {
        width: 112px;
        height: 112px;
        margin-top: -56px;
    }

    .identity {
        padding-top: 16px;
    }

    h1 {
        font-size: clamp(34px, 4vw, 40px);
    }

    .professional-title {
        font-size: 13px;
    }

    .location {
        font-size: 13px;
    }

    .bio {
        max-width: 500px;
        font-size: 14px;
        line-height: 1.8;
    }

    .primary-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .action-button {
        min-height: 44px;
        padding: 11px 17px;
        font-size: 13px;
        gap: 9px;
    }

    .action-button .action-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }

    .link-section {
        margin-top: 29px;
    }

    .section-heading h2 {
        font-size: 11px;
    }

    .social-grid {
        gap: 10px;
    }

    .social-link {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
    }

    .social-symbol {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .website-link,
    .document-link {
        padding: 14px 16px;
        font-size: 13px;
    }

    .gallery {
        gap: 12px;
    }

    .documents {
        gap: 10px;
    }

    .card-footer {
        margin-top: 34px;
        padding: 20px 42px;
        font-size: 10px;
    }
}

/* ARC Sync - Icon-only social buttons */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.social-link {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5ebe2;
    border-radius: 13px;
    background: #f0f3ee;
    color: #74806b;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: #e5ebe2;
    transform: translateY(-2px);
}

.social-symbol {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #74806b;
    font-size: 21px;
}

.social-symbol i {
    font-size: inherit;
    line-height: 1;
}

@media (min-width: 481px) {
    .social-grid {
        gap: 14px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .social-symbol {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 23px;
    }
}

/* ==========================================
   ARC SYNC - THEME TOGGLE
========================================== */

.theme-toggle {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: #586453;
    background: rgba(255,255,255,.88);
    font-size: 20px;
    cursor: pointer;
    transition: .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

/* ==========================================
   ARC SYNC - SHARED DARK MODE
========================================== */

html[data-theme="dark"] {
    color-scheme: dark;

    --ink: #e8ebe5;
    --muted: #a8b0a3;
    --line: #343c34;
    --paper: #222922;
    --page: #151b16;
    --sage-pale: #303b30;
    --shadow: 0 22px 65px rgba(0,0,0,.3);
}

html[data-theme="dark"] body {
    color: var(--ink);
    background:
            radial-gradient(circle at 50% 10%, #263127 0, transparent 34rem),
            var(--page);
}

html[data-theme="dark"] .profile-card {
    background: var(--paper);
    border-color: #343d34;
}

html[data-theme="dark"] .cover {
    background: linear-gradient(125deg, #303b30, #252e26);
}

html[data-theme="dark"] .avatar-wrap {
    border-color: var(--paper);
}

html[data-theme="dark"] .avatar-fallback {
    color: #dce5d6;
    background: #394538;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] .professional-title {
    color: #e8ede5;
}

html[data-theme="dark"] .bio,
html[data-theme="dark"] .location {
    color: #aeb7aa;
}

html[data-theme="dark"] .action-button {
    color: #d5dfd0;
    border-color: #465244;
    background: #303a30;
}

html[data-theme="dark"] .action-button.primary {
    color: #fff;
    border-color: var(--sage);
    background: var(--sage);
}

html[data-theme="dark"] .social-link {
    color: #dce5d6;
    border-color: #465244;
    background: #303a30;
}

html[data-theme="dark"] .social-link:hover {
    background: #3b4939;
}

html[data-theme="dark"] .social-symbol {
    color: #dce5d6;
}

html[data-theme="dark"] .website-link,
html[data-theme="dark"] .document-link {
    color: #dce5d6;
    border-color: #465244;
    background: #303a30;
}

html[data-theme="dark"] .section-heading h2 {
    color: #aab5a4;
}

html[data-theme="dark"] .card-footer {
    color: #9ba795;
    border-color: var(--line);
}

html[data-theme="dark"] .card-footer strong {
    color: #c4d1bd;
}

html[data-theme="dark"] .theme-toggle {
    color: #f0e8c8;
    border-color: #596353;
    background: #303a30;
}

html[data-theme="dark"] .owner-edit-button {
    color: #e1e9dc;
    border-color: #596353;
    background: rgba(38,48,38,.92);
}

/* ==========================================
   LAYOUT 1 - CENTERED PROFILE
========================================== */

#profileCard.layout-1 {
    max-width: 560px;
    text-align: center;
}

#profileCard.layout-1 .cover {
    height: 190px;
    background-color: var(--sage);
}

#profileCard.layout-1 .cover::after {
    width: 300px;
    height: 300px;
    top: -120px;
    right: calc(50% - 150px);
}

#profileCard.layout-1 .profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 42px;
}

#profileCard.layout-1 .avatar-wrap {
    width: 120px;
    height: 120px;
    margin-top: -60px;
}

#profileCard.layout-1 .identity {
    padding-top: 15px;
    width: 100%;
}

#profileCard.layout-1 .eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
}

#profileCard.layout-1 .bio {
    margin-left: auto;
    margin-right: auto;
}

#profileCard.layout-1 .primary-actions {
    justify-content: center;
}

#profileCard.layout-1 .link-section {
    width: 100%;
}

#profileCard.layout-1 .section-heading {
    justify-content: center;
}

#profileCard.layout-1 .social-grid {
    justify-content: center;
}

#profileCard.layout-1 .card-footer {
    justify-content: center;
}

@media (max-width: 480px) {
    #profileCard.layout-1 .cover {
        height: 155px;
    }

    #profileCard.layout-1 .profile-content {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* ==========================================
   LAYOUT 2 - HORIZONTAL PROFILE
========================================== */

#profileCard.layout-2 {
    max-width: 620px;
}

#profileCard.layout-2 .cover {
    height: 145px;
}

#profileCard.layout-2 .profile-content {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 22px;
    padding: 0 32px 0;
}

#profileCard.layout-2 .avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 112px;
    height: 112px;
    margin-top: -56px;
}

#profileCard.layout-2 .identity {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding-top: 12px;
    text-align: left;
}

#profileCard.layout-2 .eyebrow {
    display: block;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

#profileCard.layout-2 .primary-actions,
#profileCard.layout-2 .link-section,
#profileCard.layout-2 .card-footer {
    grid-column: 1 / -1;
}

#profileCard.layout-2 .primary-actions {
    margin-top: 24px;
}

#profileCard.layout-2 .bio {
    max-width: 100%;
}

@media (max-width: 480px) {
    #profileCard.layout-2 .profile-content {
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 14px;
        padding-left: 18px;
        padding-right: 18px;
    }

    #profileCard.layout-2 .avatar-wrap {
        width: 84px;
        height: 84px;
        margin-top: -42px;
    }

    #profileCard.layout-2 .identity {
        padding-top: 8px;
    }

    #profileCard.layout-2 h1 {
        font-size: 24px;
    }
}

/* ==========================================
   LAYOUT 3 - EDITORIAL SPLIT
========================================== */

#profileCard.layout-3 {
    display: grid;
    grid-template-columns: 34% minmax(0, 66%);
    max-width: 700px;
    min-height: 540px;
}

#profileCard.layout-3 .cover {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 540px;
    background: var(--sage);
}

#profileCard.layout-3 .cover::after {
    width: 280px;
    height: 280px;
    top: 45%;
    right: -150px;
    transform: translateY(-50%);
}

#profileCard.layout-3 .profile-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 52px 28px 24px;
}

#profileCard.layout-3 .avatar-wrap {
    width: 105px;
    height: 105px;
    margin-top: 0;
    margin-bottom: 18px;
}

#profileCard.layout-3 .eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .17em;
}

#profileCard.layout-3 .identity {
    padding-top: 0;
}

#profileCard.layout-3 .primary-actions {
    margin-top: 22px;
}

#profileCard.layout-3 .link-section {
    margin-top: 26px;
}

#profileCard.layout-3 .social-grid {
    gap: 9px;
}

#profileCard.layout-3 .social-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
}

#profileCard.layout-3 .card-footer {
    margin-top: 30px;
}

@media (max-width: 560px) {
    #profileCard.layout-3 {
        display: block;
        min-height: 0;
    }

    #profileCard.layout-3 .cover {
        height: 115px;
        min-height: 0;
    }

    #profileCard.layout-3 .cover::after {
        top: -80px;
        right: -50px;
        transform: none;
    }

    #profileCard.layout-3 .profile-content {
        padding: 0 22px 22px;
    }

    #profileCard.layout-3 .avatar-wrap {
        margin-top: -48px;
    }
}/* ==========================================
   LAYOUT 4 - MINIMAL PROFILE
========================================== */

#profileCard.layout-4 {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(43, 55, 43, .06);
}

#profileCard.layout-4 .cover {
    height: 75px;
    background: var(--sage-pale);
}

#profileCard.layout-4 .cover::after {
    display: none;
}

#profileCard.layout-4 .profile-content {
    padding: 0 26px 22px;
    text-align: center;
}

#profileCard.layout-4 .avatar-wrap {
    width: 78px;
    height: 78px;
    margin: -39px auto 0;
    border-width: 4px;
    box-shadow: none;
}

#profileCard.layout-4 .identity {
    padding-top: 13px;
}

#profileCard.layout-4 .eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .2em;
}

#profileCard.layout-4 h1 {
    font-size: 27px;
    letter-spacing: -.035em;
}

#profileCard.layout-4 .professional-title {
    font-size: 10px;
    letter-spacing: .12em;
}

#profileCard.layout-4 .bio {
    margin: 13px auto 0;
    max-width: 310px;
}

#profileCard.layout-4 .primary-actions {
    justify-content: center;
    margin-top: 20px;
}

#profileCard.layout-4 .link-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

#profileCard.layout-4 .section-heading {
    justify-content: center;
}

#profileCard.layout-4 .social-grid {
    justify-content: center;
    gap: 10px;
}

#profileCard.layout-4 .social-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
}

#profileCard.layout-4 .card-footer {
    justify-content: center;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
    #profileCard.layout-4 .profile-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Layout 4 dark mode adjustment */
html[data-theme="dark"] #profileCard.layout-4 {
    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);
}
/* Custom profile links */
#profileCustomLinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Custom Links: match Documents width and remove website arrow */
#profileCustomLinks {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

#profileCustomLinks .website-link {
    width: 100%;
    box-sizing: border-box;
}

#profileCustomLinks .website-link::after {
    content: none;
}

/* Remove decorative arrows from document and custom link boxes */
#documents .website-link::after,
#profileCustomLinks .website-link::after {
    content: none !important;
    display: none !important;
}

/* Owner-only preview edit button */
.profile-card {
    position: relative;
}

.profile-edit-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #dce4d9;
    border-radius: 24px;
    color: #586453;
    background: rgba(250, 251, 249, .96);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.profile-edit-button:hover {
    background: #f0f3ee;
}

/* Preserve uploaded cover photo in dark mode */
html[data-theme="dark"] .cover {
    background-color: #303b30;
    background-image: var(--profile-cover-image, linear-gradient(125deg, #303b30, #252e26));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ARC Sync - Public Profile Bottom Sheets */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(25, 25, 25, 0.5);
}

.sheet-backdrop[hidden],
.bottom-sheet[hidden] {
    display: none;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    width: 100%;
    max-width: 560px;
    height: 50vh;
    max-height: 620px;
    margin: 0 auto;
    padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f8f7f2;
    color: #514b42;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e3da;
}

.sheet-header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 600;
}

.sheet-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eeece5;
    color: #514b42;
    font-size: 24px;
    cursor: pointer;
}

.sheet-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 2px;
    overscroll-behavior: contain;
}

.sheet-action-button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #d8ded1;
    border-radius: 12px;
    background: #eef0e9;
    color: #59644f;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.profile-quick-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
}

.quick-action-button {
    min-width: 82px;
    padding: 10px 18px;
    border: 1px solid #d8ded1;
    border-radius: 12px;
    background: #eef0e9;
    color: #59644f;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.quick-action-button:hover,
.sheet-action-button:hover {
    background: #e4e9df;
}

@media (max-width: 380px) {
    .profile-quick-actions {
        gap: 8px;
    }

    .quick-action-button {
        min-width: 0;
        flex: 1;
        padding: 10px 12px;
    }
}

/* Public payment methods */
.public-payment-card {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e8e3da;
    border-radius: 14px;
    background: #fffefa;
}

.public-payment-card h3 {
    margin: 0 0 8px;
    color: #514b42;
    font-size: 16px;
    font-weight: 700;
}

.public-payment-card p {
    margin: 0 0 12px;
    color: #747064;
    font-size: 13px;
}

.public-payment-card img {
    display: block;
    width: 100%;
    max-width: 260px;
    max-height: 260px;
    margin: 12px auto 0;
    object-fit: contain;
    border-radius: 8px;
}

#notesDisplay {
    color: #625d53;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* Public Gaming Details */
.public-gaming-card {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e8e3da;
    border-radius: 14px;
    background: #fffefa;
}

.public-gaming-card h3 {
    margin: 0 0 12px;
    color: #514b42;
    font-size: 16px;
    font-weight: 700;
}

.public-gaming-card p {
    margin: 7px 0;
    color: #747064;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.gaming-copy-button {
    margin-top: 10px;
    padding: 9px 16px;
    border: 1px solid #cbd2c3;
    border-radius: 10px;
    background: #eef0e9;
    color: #59644f;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gaming-copy-button:hover {
    background: #e4e9df;
}


/* ARC Sync - Refined Public Payment Cards */
.public-payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto 14px;
    padding: 16px 14px;
    border: 1px solid #e4e8df;
    border-radius: 12px;
    background: #f7f8f4;
}

.public-payment-card h3 {
    margin: 0 0 6px;
    color: #514b42;
    font-size: 15px;
    font-weight: 600;
}

.public-payment-card p {
    margin: 0 0 12px;
    color: #747d72;
    font-size: 13px;
    text-align: center;
}

.public-payment-card img {
    display: block;
    width: 100%;
    max-width: 210px;
    max-height: 210px;
    margin: 12px auto 0;
    object-fit: contain;
    border-radius: 8px;
}

/* ARC Sync - Minimal Gaming Details */
.public-gaming-card {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 11px 14px;
    border: 1px solid #e2e7de;
    border-radius: 11px;
    background: #f7f8f4;
}

.public-gaming-card h3 {
    margin: 0 0 7px;
    color: #514b42;
    font-size: 14px;
    font-weight: 600;
}

.public-gaming-card p {
    margin: 5px 0;
    color: #747d72;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gaming-copy-button {
    margin-top: 8px;
    padding: 7px 12px;
    border: 1px solid #cbd4c5;
    border-radius: 9px;
    background: #eef1eb;
    color: #596b55;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.gaming-copy-button:hover {
    background: #e5eae1;
}


/* Minimal two-column Gaming Details layout */
#gamingDetailsDisplay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.public-gaming-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #dfe5dc;
    border-radius: 11px;
    background: transparent;
}

.public-gaming-card h3 {
    margin: 0 0 7px;
    color: #514b42;
    font-size: 13px;
    font-weight: 600;
}

.public-gaming-card p {
    margin: 5px 0;
    color: #747d72;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gaming-copy-button {
    margin-top: 7px;
    padding: 6px 10px;
    border: 1px solid #cbd4c5;
    border-radius: 8px;
    background: transparent;
    color: #596b55;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 340px) {
    #gamingDetailsDisplay {
        grid-template-columns: 1fr;
    }
}


/* ARC Sync - Gaming Details Dark Mode */
#profileCard[data-theme="dark"] .public-gaming-card {
    border-color: #454d43;
}

#profileCard[data-theme="dark"] .public-gaming-card h3 {
    color: #eeeae0;
}

#profileCard[data-theme="dark"] .public-gaming-card p {
    color: #c1c9bc;
}

#profileCard[data-theme="dark"] .gaming-copy-button {
    border-color: #65745f;
    background: transparent;
    color: #d0dac8;
}

#profileCard[data-theme="dark"] .gaming-copy-button:hover {
    background: #343d33;
}


/* ARC Sync - Circular Quick Action Icons */
.profile-quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.quick-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid #dce3d8;
    border-radius: 50%;
    background: transparent;
    color: #66765f;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.quick-action-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-action-button:hover {
    background: #eef1eb;
    border-color: #cbd4c5;
}

#profileCard[data-theme="dark"] .quick-action-button {
    border-color: #596653;
    color: #d0dac8;
    background: transparent;
}

#profileCard[data-theme="dark"] .quick-action-button:hover {
    background: #343d33;
}


/* ARC Sync - Uniform Quick Action Buttons */
.profile-quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.quick-action-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #dce3d8;
    border-radius: 50%;
}

.quick-action-button svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    box-sizing: border-box;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ARC Sync - White Quick Action Icons in Dark Mode */
#profileCard[data-theme="dark"] .quick-action-button {
    color: #ffffff;
}

#profileCard[data-theme="dark"] .quick-action-button svg {
    stroke: #ffffff;
}


/* ARC Sync - Correct Dark Mode Feature Colors */
html[data-theme="dark"] .public-gaming-card {
    background: transparent;
    border-color: #596653;
}

html[data-theme="dark"] .public-gaming-card h3 {
    color: #ffffff;
}

html[data-theme="dark"] .public-gaming-card p {
    color: #d5dfd0;
}

html[data-theme="dark"] .gaming-copy-button {
    color: #ffffff;
    border-color: #aab8a2;
    background: transparent;
}

html[data-theme="dark"] .gaming-copy-button:hover {
    background: #394538;
}

html[data-theme="dark"] .quick-action-button {
    color: #ffffff;
    border-color: #d5dfd0;
    background: transparent;
}

html[data-theme="dark"] .quick-action-button svg {
    stroke: #ffffff;
}

html[data-theme="dark"] .quick-action-button:hover {
    background: #394538;
}


/* ARC Sync - Quick Actions Alignment Across All Layouts */

/* Layout 1 - Centered profile */
#profileCard.layout-1 .profile-quick-actions {
    width: 100%;
    justify-content: center;
}

/* Layout 2 - Horizontal profile */
#profileCard.layout-2 .profile-quick-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
}

/* Layout 3 - Side profile */
#profileCard.layout-3 .profile-quick-actions {
    width: 100%;
    justify-content: flex-start;
}

/* Layout 4 - Minimal profile */
#profileCard.layout-4 .profile-quick-actions {
    width: 100%;
    justify-content: center;
}

/* Keep all three icons identical in every layout */
.profile-quick-actions .quick-action-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
}


/* ARC Sync - Custom Links Alignment Across Layouts */

/* Default layout */
#profileCard:not(.layout-1):not(.layout-2):not(.layout-3):not(.layout-4) #profileCustomLinks {
    width: 100%;
    align-items: stretch;
}

/* Layout 1 - Centered */
#profileCard.layout-1 #profileCustomLinks {
    width: 100%;
    align-items: stretch;
}

/* Layout 2 - Horizontal */
#profileCard.layout-2 #profileCustomLinks {
    width: 100%;
    align-items: stretch;
}

/* Layout 3 - Side profile */
#profileCard.layout-3 #profileCustomLinks {
    width: 100%;
    align-items: stretch;
}

/* Layout 4 - Minimal centered */
#profileCard.layout-4 #profileCustomLinks {
    width: 100%;
    align-items: stretch;
}

#profileCard #profileCustomLinks .website-link {
    width: 100%;
    box-sizing: border-box;
}


/* ARC Sync - Restore Contact Button Labels */
#profileCard .primary-actions .action-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    text-indent: 0 !important;
    color: #71806d !important;
    white-space: normal !important;
}

html[data-theme="dark"] #profileCard .primary-actions .action-button {
    color: #d5dfd0 !important;
}


/* Match Contact Information spacing to Find me online */
#contactSection .section-heading {
    margin-bottom: 10px;
}

#contactSection .primary-actions {
    margin-top: 0;
}


/* Center Gaming Details links in Layout 1 and Layout 4 */
#profileCard.layout-1 #gamingSection .website-link,
#profileCard.layout-4 #gamingSection .website-link {
    justify-content: center;
    text-align: center;
}

#profileCard.layout-1 #gamingSection .website-link::after,
#profileCard.layout-4 #gamingSection .website-link::after {
    display: none;
    content: none;
}


/* Center Custom Link text in Layout 1 and Layout 4 */
#profileCard.layout-1 #profileCustomLinks .website-link,
#profileCard.layout-4 #profileCustomLinks .website-link {
    justify-content: center;
    text-align: center;
}


/* ARC Sync - Mobile Readability Improvements */
#gamingDetailsDisplay {
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 12px;
}

.public-gaming-card {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #profileCard {
        font-size: 15px;
    }

    #profileCard h1 {
        font-size: 29px !important;
        line-height: 1.2;
    }

    #profileCard .professional-title,
    #profileCard .location {
        font-size: 14px !important;
        line-height: 1.5;
    }

    #profileCard .bio {
        font-size: 15px !important;
        line-height: 1.7;
    }

    #profileCard .section-heading h2 {
        font-size: 14px !important;
        letter-spacing: .08em;
    }

    #profileCard .website-link,
    #profileCard .primary-actions a,
    #profileCard .primary-actions button {
        font-size: 14px !important;
        line-height: 1.5;
    }

    #profileQuickActions .quick-action-button {
        font-size: 14px !important;
        padding: 12px 10px;
    }

    .public-gaming-card {
        padding: 15px;
    }

    .public-gaming-card h3 {
        font-size: 16px !important;
    }

    .public-gaming-card p {
        font-size: 14px !important;
        line-height: 1.6;
    }

    .gaming-copy-button {
        font-size: 13px !important;
        padding: 9px 13px;
    }

    .public-payment-card h3 {
        font-size: 16px;
    }

    .public-payment-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ARC Sync - More breathing room between profile sections */
#profileCard .profile-content > .link-section {
    margin-top: 28px;
}

#profileCard .profile-content > .link-section:first-of-type {
    margin-top: 0;
}

@media (max-width: 600px) {
    #profileCard .profile-content > .link-section {
        margin-top: 26px;
    }
}

/* ARC Sync - Expandable Payment QR Preview */
.payment-qr-image {
    cursor: zoom-in;
    transition: transform .2s ease;
}

.payment-qr-image:hover {
    transform: scale(1.025);
}

.qr-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(25, 27, 24, .82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qr-preview-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 92vw;
    max-height: 88vh;
    padding: 20px;
    border: 1px solid #e3e8df;
    border-radius: 16px;
    background: #fafbf8;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .25);
}

.qr-preview-title {
    margin: 0;
    color: #514b42;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.qr-preview-large {
    display: block;
    width: auto;
    height: auto;
    max-width: min(76vw, 440px);
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.qr-preview-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: #fafbf8;
    color: #514b42;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .qr-preview-overlay {
        padding: 16px;
    }

    .qr-preview-content {
        max-width: 94vw;
        max-height: 84vh;
        padding: 16px;
        border-radius: 14px;
    }

    .qr-preview-large {
        max-width: 82vw;
        max-height: 70vh;
    }

    .qr-preview-title {
        font-size: 17px;
    }

    .qr-preview-close {
        top: 12px;
        right: 12px;
    }
}

/* ARC Sync - Increased spacing between profile sections */
#profileCard .profile-content > .link-section {
    margin-top: 38px !important;
}

@media (max-width: 600px) {
    #profileCard .profile-content > .link-section {
        margin-top: 34px !important;
    }
}

/* ARC Sync - Center Contact and Social Sections */
#contactSection .section-heading,
#socialSection .section-heading {
    display: flex;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    text-align: center;
}

#contactSection .primary-actions,
#socialSection .social-grid {
    display: flex;
    justify-content: center !important;
    align-items: center;
    width: 100%;
}

/* ARC Sync - Larger Find Me Online Icons */
#socialSection .social-grid {
    gap: 14px !important;
}

#socialSection .social-link {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 14px;
}

#socialSection .social-symbol {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
    font-size: 27px !important;
}


/* ARC Sync - Enlarge Actual Social Media Icons */
#socialSection .social-link i {
    font-size: 25px !important;
    line-height: 1 !important;
    display: inline-block;
    transform: scale(1.15);
}


/* ARC Sync - Center Pay, Notes and Share in Layout 3 */
#profileCard.layout-3 .profile-quick-actions {
    justify-content: center !important;
    align-items: center;
    width: 100%;
}

/* ARC Sync - Fix Layout 3 Quick Action Centering */
#profileCard.layout-3 #profileQuickActions {
    display: flex !important;
    flex-direction: row;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
}
