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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #030e21;
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-style-solid {
    background: var(--theme-color, #052576);
}

body.theme-style-solid .bg-container {
    background: var(--theme-color, #052576) !important;
}

body.theme-style-solid .glow-shape {
    display: none !important;
}

body.theme-style-solid .bg-container::before,
body.theme-style-solid .bg-container::after {
    display: none !important;
    content: none !important;
}

body.theme-style-soft-gradient .bg-container,
body.theme-style-dark-gradient .bg-container,
body.theme-style-light-minimal .bg-container {
    background: linear-gradient(180deg, var(--theme-from, #051633) 0%, var(--theme-to, #020813) 100%);
}

body.theme-style-light-minimal {
    color: #0f172a;
}

body.theme-style-light-minimal .bg-container {
    background: linear-gradient(180deg, var(--theme-from, #FFFFFF) 0%, var(--theme-to, #F1F5F9) 100%);
}

body.theme-style-light-minimal .glass-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.45);
}

body.theme-style-light-minimal .name,
body.theme-style-light-minimal .title-line,
body.theme-style-light-minimal .sub-line,
body.theme-style-light-minimal .bio {
    color: #0f172a;
}

body.theme-style-light-minimal .btn-secondary,
body.theme-style-light-minimal .cta-link,
body.theme-style-light-minimal .icon-circle,
body.theme-style-light-minimal .stat-card {
    border-color: rgba(51, 65, 85, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
}

body.theme-style-light-minimal .stat-label {
    color: rgba(15, 23, 42, 0.65);
}

.bg-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--theme-from, #051633) 0%, var(--theme-to, #020813) 100%);
}

.glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.85;
}

.shape-bottom {
    bottom: -15vh;
    left: -10vw;
    width: 120vw;
    height: 60vh;
    background: #002266;
    filter: blur(120px);
}

.shape-middle {
    top: 25vh;
    left: 15vw;
    width: 70vw;
    height: 50vh;
    background: rgba(0, 110, 255, 0.35);
}

.shape-top {
    top: -10vh;
    left: -10vw;
    width: 100vw;
    height: 40vh;
    background: rgba(100, 200, 255, 0.25);
}

.shape-left-cream {
    top: 15vh;
    left: -20vw;
    width: 50vw;
    height: 50vw;
    background: rgba(255, 230, 150, 0.12);
    filter: blur(100px);
}

.shape-right-cyan {
    top: 5vh;
    right: -15vw;
    width: 60vw;
    height: 50vw;
    background: rgba(0, 255, 255, 0.15);
}

.app-container {
    width: 100%;
    max-width: 414px;
    min-height: 100vh;
    padding: 42px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.glass-card {
    width: 100%;
    margin-top: 38px;
    padding: 64px 20px 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(30px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 40px rgba(0, 20, 60, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
    position: relative;
}

.avatar-container {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    object-position: var(--profile-photo-x, 50%) var(--profile-photo-y, 50%);
    transform: scale(var(--profile-photo-zoom, 1));
    transform-origin: center;
    display: block;
}

.avatar-fallback {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: linear-gradient(135deg, #0d4a5a, #0ea5a8);
}

.name {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.title-line {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.sub-line {
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.bio {
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 18px 0 20px;
}

.stat-card {
    min-height: 74px;
    border-radius: 18px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.stat-label {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
}

.cta-links {
    width: 100%;
    display: grid;
    gap: 11px;
    margin: 18px 0 22px;
}

.cta-link {
    width: 100%;
    min-height: 52px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.095);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 0 16px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.cta-link__icon {
    font-size: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cta-link__label {
    text-align: left;
}

.cta-link__arrow {
    opacity: 0.55;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.contact-actions {
    width: 100%;
    display: grid;
    gap: 10px;
    margin: 4px 0 20px;
}

.contact-actions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.contact-action-btn {
    min-height: 46px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
}

.contact-action-btn i {
    font-size: 16px;
}

.contact-save-btn {
    min-height: 52px;
    border-radius: 16px;
    background: #ffffff;
    color: #071f45;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    width: 100%;
}

.social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.icon-circle i,
.icon-circle svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bottom-area {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.62;
}

.swipe-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    color: #ffffff;
}

.bottom-handle {
    width: 130px;
    height: 4px;
    border-radius: 10px;
    background: #ffffff;
}

.is-hidden {
    display: none !important;
}

.biolink-pro-002 img {
    max-width: 100%;
}

@media (max-width: 420px) {
    .app-container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .glass-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}
