

:root {
    --ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg, #F4F4F0);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: var(--font-main, 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: var(--black, #000000);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin: 0;
    padding: 0;
}


.profile-page-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--header-height-desktop, 62px) + 52px);
    padding-bottom: 68px;
    padding-left: var(--space-page-gutter-safe, max(20px, env(safe-area-inset-left, 20px)));
    padding-right: var(--space-page-gutter-safe, max(20px, env(safe-area-inset-right, 20px)));
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .profile-page-wrap {
        padding-top: calc(var(--header-height-mobile, 64px) + 36px);
        padding-bottom: 56px;
        padding-left: max(16px, env(safe-area-inset-left, 16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
    }
}

.profile-main-container {
    width: 100%;
    max-width: var(--container-content, 520px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.profile-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
}

@media (max-width: 767px) {
    .profile-cards-stack {
        gap: 22px;
    }
}

.profile-section-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: left;
}

@media (max-width: 767px) {
    .profile-section-block {
        gap: 9px;
    }
}

#profile-danger-section {
    margin-top: 6px;
}

.profile-section-label {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: var(--type-metadata, 12px) !important;
    font-weight: var(--type-metadata-weight, 700) !important;
    text-transform: uppercase !important;
    letter-spacing: var(--type-metadata-tracking, 0.08em) !important;
    color: var(--black, #000000) !important;
    padding-left: 2px;
    margin: 0 !important;
    line-height: var(--type-metadata-lh, 1.2) !important;
}


.profile-card {
    background: #ffffff;
    border: 1.5px solid var(--black);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .profile-card {
        padding: 16px 16px;
        border-radius: 16px;
        gap: 12px;
    }
}

.profile-user-card {
    padding: 18px 20px !important;
}

@media (max-width: 767px) {
    .profile-user-card {
        padding: 15px 16px !important;
    }
}


.profile-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .profile-user-row {
        gap: 12px;
    }
}

.profile-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #FF6DE4;
    border: 1.5px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--black);
    overflow: hidden;
}

@media (max-width: 480px) {
    .profile-avatar-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

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

.profile-avatar-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.profile-user-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    overflow: hidden;
}

.profile-user-name {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(16px, 1.2vw + 13px, 19px) !important;
    font-weight: 700 !important;
    color: var(--black, #000000) !important;
    letter-spacing: -0.015em !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25 !important;
}

.profile-user-status {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(13px, 0.4vw + 11.5px, 14px) !important;
    font-weight: 500 !important;
    color: var(--text-secondary, #595959) !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

#profile-user-provider,
.profile-user-status span:not(.profile-status-dot) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: inline-block;
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-green, #22C55E);
    flex-shrink: 0;
}


.profile-card-signout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 clamp(12px, 0.6vw + 10px, 16px);
    height: clamp(34px, 0.6vw + 32px, 38px);
    border-radius: 11px;
    background: #ffffff;
    border: 1.5px solid var(--black, #000000);
    color: var(--black, #000000);
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(13px, 0.4vw + 11.5px, 14px);
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s var(--ease-bounce), box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.profile-card-signout-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.profile-card-signout-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--black, #000000);
}

.profile-card-signout-btn:active {
    background: #ffffff;
    transform: translateY(0);
    box-shadow: 0 0 0 var(--black, #000000);
}

.profile-card-signout-btn:focus-visible {
    outline: 2px solid var(--primary, #F12850);
    outline-offset: 2px;
}


.profile-guest-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: left;
}

.profile-copy-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.profile-copy-primary {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(14px, 0.5vw + 12.5px, 15.5px) !important;
    font-weight: 600 !important;
    color: var(--black, #000000) !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    text-align: left !important;
}

.profile-copy-secondary {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(12.5px, 0.4vw + 11px, 13.5px) !important;
    font-weight: 500 !important;
    color: var(--text-secondary, #595959) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-align: left !important;
}


.profile-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: clamp(46px, 0.8vw + 43px, 50px);
    width: 100%;
    padding: 0 20px;
    background: #000000;
    color: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 12px;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(14.5px, 0.5vw + 13px, 16px);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
}

.profile-google-btn:hover {
    background: var(--primary, #F12850) !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.profile-google-btn:active {
    background: var(--primary, #F12850) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.profile-google-btn:focus-visible {
    outline: 2px solid var(--primary, #F12850);
    outline-offset: 2px;
}

.profile-google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ffffff;
    fill: currentColor;
}

.profile-google-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.profile-google-btn.is-loading svg {
    display: none;
}

.profile-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: profile-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.profile-google-btn.is-loading .profile-spinner {
    display: block;
}

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

.profile-error-alert {
    display: none;
    font-family: var(--font-main, 'Satoshi', sans-serif);
    font-size: clamp(12.5px, 0.4vw + 11px, 13.5px);
    font-weight: 600;
    color: var(--primary-ink, #c80d32);
    margin-top: 2px;
}

.profile-error-alert.visible {
    display: block;
}


.profile-strips-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.profile-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.profile-section-title {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(17px, 1vw + 14px, 20px) !important;
    font-weight: 700 !important;
    color: var(--black, #000000) !important;
    letter-spacing: -0.015em !important;
    margin: 0 !important;
}

.profile-section-link {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(13px, 0.4vw + 11.5px, 14px) !important;
    font-weight: 700 !important;
    color: var(--black, #000000) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, color 0.18s ease;
}

.profile-section-link:hover {
    color: var(--black, #000000) !important;
    text-decoration: underline !important;
    text-underline-offset: 2.5px !important;
    transform: translateX(2px);
}

.profile-section-link:focus-visible {
    outline: 2px solid var(--primary, #F12850);
    outline-offset: 2px;
    border-radius: 4px;
}


.profile-strips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-width: 480px) {
    .profile-strips-grid {
        gap: 8px;
    }
}

.profile-strip-card {
    aspect-ratio: 200 / 320;
    background: #ffffff;
    border: 1.5px solid var(--black, #000000);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s var(--ease-bounce), border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.profile-strip-card:hover {
    transform: translateY(-3px);
    border-color: var(--black, #000000);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.profile-strip-card:active {
    transform: translateY(0);
}

.profile-strip-thumb-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg, #F4F4F0);
}

.profile-strip-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.profile-strip-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 24px 6px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-strip-card:hover .profile-strip-actions,
.profile-strip-card:focus-within .profile-strip-actions {
    opacity: 1;
}

@media (hover: none) {
    .profile-strip-actions {
        opacity: 1;
        background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
        padding: 16px 4px 4px;
    }
}

.profile-strip-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #000;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.profile-strip-action-btn:hover {
    background: #ffffff;
    transform: scale(1.08) translateY(-1px);
    box-shadow: 3px 3px 0 var(--black, #000000);
}

.profile-strip-action-btn:active {
    background: #ffffff;
    transform: scale(1);
    box-shadow: none;
}

.profile-strip-action-btn--delete:hover {
    background: var(--primary-ink, #c80d32);
    color: #ffffff;
    border-color: var(--primary-ink, #c80d32);
    box-shadow: 2px 2px 0 var(--black, #000000);
    transform: scale(1.08);
}

.profile-strip-action-btn svg {
    width: 16px;
    height: 16px;
}


.profile-strip-skeleton {
    aspect-ratio: 200 / 320;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #E5E1DC 25%, rgba(255,255,255,0.7) 50%, #E5E1DC 75%);
    background-size: 200% 100%;
    animation: profile-shimmer 1.4s ease-in-out infinite;
}

@keyframes profile-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.profile-empty-card {
    background: #ffffff;
    border: 1.5px solid var(--black, #000000);
    border-radius: 18px;
    padding: clamp(24px, 2.5vw + 16px, 32px) clamp(18px, 2vw + 12px, 24px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
}

.profile-empty-icon {
    width: clamp(42px, 0.8vw + 38px, 48px);
    height: clamp(42px, 0.8vw + 38px, 48px);
    border-radius: 13px;
    background: var(--accent-yellow, #FFC701);
    border: 1.5px solid var(--black, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black, #000000);
    margin-bottom: 2px;
    flex-shrink: 0;
}

.profile-empty-icon svg {
    width: clamp(20px, 0.5vw + 18px, 24px);
    height: clamp(20px, 0.5vw + 18px, 24px);
    stroke-width: 2.2;
}

.profile-empty-title {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(16px, 0.8vw + 13.5px, 18.5px) !important;
    font-weight: 700 !important;
    color: var(--black, #000000) !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.profile-empty-desc {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(13px, 0.4vw + 11.5px, 14px) !important;
    font-weight: 500 !important;
    color: var(--text-secondary, #595959) !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    max-width: 360px;
}

.profile-empty-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(13.5px, 0.5vw + 12px, 15px) !important;
    font-weight: 700 !important;
    padding: 0 clamp(16px, 1vw + 12px, 22px) !important;
    height: clamp(36px, 0.8vw + 33px, 40px) !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1.5px solid transparent !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-top: 10px !important;
}

.profile-empty-cta svg {
    width: 1.1em !important;
    height: 1.1em !important;
    vertical-align: -0.15em !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
}

.profile-empty-cta:hover {
    background: var(--black-hover, #1a1a1a) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}


.profile-card.profile-nav-row,
.profile-nav-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: clamp(14px, 1vw + 11px, 18px) clamp(16px, 1.2vw + 12px, 20px) !important;
    min-height: clamp(58px, 1.2vw + 54px, 66px) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: 1.5px solid var(--black, #000000) !important;
    border-radius: 16px !important;
    transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease, background 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    gap: clamp(12px, 0.6vw + 10px, 16px) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.profile-nav-row:hover {
    transform: translateY(-2px) !important;
    box-shadow: 3px 3px 0 var(--black, #000000) !important;
}

.profile-nav-row:active {
    transform: translateY(0) !important;
    box-shadow: 1px 1px 0 var(--black, #000000) !important;
}

.profile-nav-row:focus-visible {
    outline: 2px solid var(--primary, #F12850) !important;
    outline-offset: 2px !important;
}

.profile-nav-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(12px, 0.6vw + 10px, 16px) !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
}

.profile-nav-icon-box {
    width: clamp(38px, 0.8vw + 35px, 44px) !important;
    height: clamp(38px, 0.8vw + 35px, 44px) !important;
    border-radius: 12px !important;
    background: var(--bg, #F4F4F0) !important;
    border: 1.5px solid var(--black, #000000) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--black, #000000) !important;
    flex-shrink: 0 !important;
}

.profile-nav-icon-box svg {
    width: clamp(17px, 0.4vw + 15px, 20px) !important;
    height: clamp(17px, 0.4vw + 15px, 20px) !important;
    stroke-width: 2.2 !important;
}

.profile-nav-icon-box--yellow {
    background: var(--accent-yellow, #FFC701) !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.profile-nav-icon-box--neutral {
    background: #F4F4F0 !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.profile-nav-icon-box--blue {
    background: #4da6ff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.profile-nav-icon-box--pink {
    background: #FF6DE4 !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.profile-nav-icon-box--danger {
    background: var(--primary-ink, #c80d32) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--black, #000000) !important;
}

.profile-nav-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.profile-nav-title {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(15px, 0.5vw + 13.2px, 16.5px) !important;
    font-weight: 700 !important;
    color: var(--black, #000000) !important;
    line-height: 1.25 !important;
}

.profile-nav-subtitle {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(12.5px, 0.4vw + 11px, 13.5px) !important;
    font-weight: 500 !important;
    color: var(--text-secondary, #595959) !important;
    line-height: 1.4 !important;
}

.profile-nav-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--black, #000000) !important;
    transition: transform 0.18s ease !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    width: 18px !important;
    height: 18px !important;
}

.profile-nav-arrow svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke-width: 2.5 !important;
}

.profile-nav-arrow--danger {
    color: var(--primary-ink, #c80d32) !important;
}

.profile-nav-row:hover .profile-nav-arrow {
    transform: translateX(3px) !important;
}


.profile-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 5000000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    text-align: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    box-sizing: border-box !important;
}


.profile-dialog-overlay,
#profile-signout-modal,
#profile-delete-modal,
#profile-delete-strip-modal {
    z-index: 5000050 !important;
}

.profile-modal-overlay.is-open,
.profile-modal-overlay.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.profile-dialog {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 24px !important;
    padding: clamp(26px, 2vw + 20px, 34px) clamp(20px, 1.5vw + 16px, 26px) !important;
    max-width: 340px !important;
    width: calc(100% - 32px) !important;
    box-shadow: 8px 8px 0 #000000 !important;
    transform: translateY(12px) scale(0.98) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
    opacity: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    text-align: center !important;
}

.profile-modal-overlay.is-open .profile-dialog,
.profile-modal-overlay.visible .profile-dialog {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.profile-dialog-icon {
    width: clamp(48px, 1vw + 44px, 56px) !important;
    height: clamp(48px, 1vw + 44px, 56px) !important;
    margin: 0 auto 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.profile-dialog-icon--yellow {
    background: rgba(255, 199, 1, 0.18) !important;
    color: #D97706 !important;
}

.profile-dialog-icon--signout,
.profile-dialog-icon--pink {
    background: rgba(241, 40, 80, 0.08) !important;
    color: var(--primary-ink, #c80d32) !important;
}

.profile-dialog-icon--signout svg,
.profile-dialog-icon--pink svg {
    color: var(--primary-ink, #c80d32) !important;
    stroke: var(--primary-ink, #c80d32) !important;
}

.profile-dialog-icon--red {
    background: rgba(200, 13, 50, 0.12) !important;
    color: var(--primary-ink, #c80d32) !important;
}

.profile-dialog-icon--red svg {
    color: var(--primary-ink, #c80d32) !important;
    stroke: var(--primary-ink, #c80d32) !important;
}

.profile-dialog-header {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 24px !important;
    text-align: center !important;
}

.profile-dialog-title {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: var(--type-modal-title, clamp(20px, 18px + 0.6vw, 24px)) !important;
    font-weight: var(--type-modal-title-weight, 700) !important;
    line-height: var(--type-modal-title-lh, 1.25) !important;
    letter-spacing: var(--type-modal-title-tracking, -0.02em) !important;
    color: #000000 !important;
    margin: 0 0 10px !important;
}

.profile-dialog-title--danger {
    color: #000000 !important;
}

.profile-dialog-desc {
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(13.5px, 0.5vw + 12px, 15px) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    margin: 0 !important;
}

.profile-dialog-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.profile-dialog-btn {
    width: 100% !important;
    padding: clamp(11px, 0.5vw + 9.5px, 13px) 18px !important;
    border-radius: 12px !important;
    font-family: var(--font-main, 'Satoshi', sans-serif) !important;
    font-size: clamp(14px, 0.5vw + 12.5px, 15.5px) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: 2px solid #000000 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.profile-dialog-btn:hover {
    transform: translateY(-1px) !important;
}

.profile-dialog-btn:active {
    transform: translateY(1px) !important;
    box-shadow: none !important;
}

.profile-dialog-btn:focus-visible {
    outline: 2px solid var(--primary, #F12850);
    outline-offset: 2px;
}

.profile-dialog-btn--confirm {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.profile-dialog-btn--confirm:hover {
    background: var(--black-hover, #1a1a1a) !important;
    box-shadow: none !important;
}

.profile-dialog-btn--danger {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.profile-dialog-btn--danger:hover {
    background: var(--primary-ink, #c80d32) !important;
    border-color: var(--primary-ink, #c80d32) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.profile-dialog-btn--cancel {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.profile-dialog-btn--cancel:hover {
    background: #f0f0f0 !important;
    border-color: #000000 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.profile-dialog-btn--cancel:hover svg {
    stroke: #000000 !important;
}

.profile-dialog-btn--cancel:active {
    background: #e5e5e5 !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}


.profile-strip-viewer-card {
    position: relative !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 24px !important;
    padding: clamp(20px, 1.5vw + 15px, 26px) clamp(16px, 1.2vw + 12px, 22px) !important;
    max-width: 440px !important;
    width: calc(100% - 32px) !important;
    box-shadow: 8px 8px 0 #000000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    max-height: 90vh !important;
    box-sizing: border-box !important;
    transform: translateY(16px) scale(0.98) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
    opacity: 0 !important;
}

.profile-modal-overlay.visible .profile-strip-viewer-card {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.profile-viewer-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    z-index: 10 !important;
}

.profile-viewer-close:hover {
    background: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 2px 2px 0 #000000 !important;
}

.profile-viewer-img-wrap {
    width: 100% !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 12px !important;
    background: var(--bg, #F4F4F0) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.profile-viewer-img-wrap img {
    max-height: 60vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.profile-viewer-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
}


.lb-minimal-legal {
    width: 100% !important;
    min-width: 100% !important;
    background-color: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 24px var(--safe-x, var(--space-page-gutter-safe, 20px)) max(24px, env(safe-area-inset-bottom, 24px)) var(--safe-x, var(--space-page-gutter-safe, 20px)) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    font-family: var(--font-main, 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    position: relative !important;
    z-index: 10 !important;
}

.lb-minimal-legal-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px 24px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.lb-minimal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lb-minimal-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    line-height: 1;
}

.lb-minimal-logo .footer-logo-img,
.lb-minimal-logo .logo-img {
    height: 26px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lb-minimal-logo .lens {
    color: var(--primary, #F12850) !important;
}

.lb-minimal-copy {
    font-size: var(--type-metadata, 12px) !important;
    font-weight: 500 !important;
    color: var(--text-inv-muted, rgba(255, 255, 255, 0.65)) !important;
    letter-spacing: 0.01em !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.lb-minimal-links {
    display: flex;
    align-items: center;
    gap: 6px 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lb-minimal-links a,
.lb-minimal-links button,
.lb-minimal-links .footer-cookie-prefs {
    font-family: inherit !important;
    font-size: var(--type-body-small, 13.5px) !important;
    font-weight: 500 !important;
    color: var(--text-inv-secondary, rgba(255, 255, 255, 0.8)) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
}

.lb-minimal-links a:hover,
.lb-minimal-links button:hover,
.lb-minimal-links .footer-cookie-prefs:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.lb-minimal-links a:focus-visible,
.lb-minimal-links button:focus-visible,
.lb-minimal-links .footer-cookie-prefs:focus-visible {
    outline: 2px solid var(--primary, #F12850) !important;
    outline-offset: 3px !important;
    border-radius: 2px !important;
}

.lb-minimal-links > *:not(:last-child)::after {
    content: "·";
    margin-left: 18px;
    color: var(--text-inv-subtle, rgba(255, 255, 255, 0.35)) !important;
    font-size: 14px !important;
    pointer-events: none;
    user-select: none;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 820px) {
    .lb-minimal-legal-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .lb-minimal-brand {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        align-items: center;
    }
    .lb-minimal-links {
        justify-content: center;
        gap: 6px 14px;
    }
    .lb-minimal-links > *:not(:last-child)::after {
        margin-left: 14px;
    }
}

@media (max-width: 480px) {
    .lb-minimal-legal {
        padding: 20px var(--safe-x, 16px) max(20px, env(safe-area-inset-bottom, 20px)) var(--safe-x, 16px) !important;
    }
    .lb-minimal-brand {
        flex-direction: column;
        gap: 6px;
    }
    .lb-minimal-copy {
        white-space: normal;
        font-size: 11.5px !important;
    }
    .lb-minimal-links {
        gap: 4px 12px;
    }
    .lb-minimal-links a,
    .lb-minimal-links button,
    .lb-minimal-links .footer-cookie-prefs {
        font-size: 12.5px !important;
        padding: 4px 0 !important;
    }
    .lb-minimal-links > *:not(:last-child)::after {
        margin-left: 12px;
        font-size: 12px !important;
    }
}


body.lb-profile-page .nav-login-btn,
body.lb-profile-page .mobile-login-btn {
    visibility: hidden !important;
    pointer-events: none !important;
}

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