.profile-screen {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    z-index: var(--z-sidebar);
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

.profile-screen-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 2;
}

.profile-screen-header h3 { font-size: calc(16px * var(--text-scale, 1)); flex: 1; }
.profile-screen-content { flex: 1; overflow-y: auto; }

.profile-header-bg {
    position: relative;
    width: 100%;
}

.profile-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    position: relative;
    margin-bottom: 14px;
}

.info-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--accent);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.info-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.info-name { font-size: calc(20px * var(--text-scale, 1)); font-weight: 600; text-align: center; margin-bottom: 4px; }
.info-username { color: var(--text-muted); margin: 4px 0 12px; text-align: center; }

.info-section { margin-bottom: 22px; }
.info-section h4 { font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; margin-bottom: 11px; color: var(--text-secondary); }

.member-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.member-item:hover { background: var(--bg-tertiary); }

.member-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    background: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 500; margin-bottom: 2px; }
.member-role { font-size: 11px; color: var(--text-muted); }
.member-role.owner { color: var(--gold); }
.member-role.admin { color: var(--accent); }

.avatar-upload { text-align: center; cursor: pointer; margin-bottom: 18px; pointer-events: auto; }

.avatar-preview {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--accent);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    color: white;
    cursor: pointer;
    z-index: 3;
}

.avatar-badge svg { width: 14px; height: 14px; fill: currentColor; }

.settings-list { display: flex; flex-direction: column; }

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: calc(13px * var(--text-scale, 1));
    text-align: left;
    gap: 11px;
    transition: background 0.15s ease;
}

.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--bg-tertiary); }
.settings-item:active { background: rgba(255, 255, 255, 0.05); }
.settings-item i:first-child { width: 20px; text-align: center; flex-shrink: 0; }
.settings-item > span:first-of-type { flex-grow: 1; }
.settings-item.danger { color: var(--danger); }
.settings-item .settings-value { color: var(--text-muted); font-size: 12px; }

.settings-item select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.settings-item input[type="number"] {
    width: 80px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { height: 0; }

.profile-tab {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: calc(13px * var(--text-scale, 1));
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.profile-tab:hover:not(.active) { color: var(--text-primary); background: var(--bg-tertiary); }

.wallpaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }

.wallpaper-item {
    aspect-ratio: 9/16;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wallpaper-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wallpaper-item.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

.wallpaper-item.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nft-avatar-ring { pointer-events: none; }
.nft-ring-item { pointer-events: auto; cursor: pointer; transition: transform 0.2s ease; }
.nft-ring-item:hover { transform: translate(-50%, -50%) scale(1.15); }

.nft-card-profile { transition: transform 0.2s ease; }
.nft-card-profile:hover { transform: translateY(-2px); }
.nft-preview-container { position: relative; }
.nft-menu-btn { z-index: 2; }

.stranger-warning { animation: fadeIn 0.3s ease; }

.gift-card { transition: transform 0.2s; }
.gift-card:hover { transform: translateY(-2px); }

.premium-crown-icon { animation: crownGlow 2s ease-in-out infinite; }

.color-presets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; padding: 8px 0; }

/* Update section styles */
.version-title {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #a3c4f3, #d4a5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(58, 123, 213, 0.3);
    text-align: center;
}

.version-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
}

.action-area-update {
    width: 100%;
    padding: 20px 30px 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-btn-update {
    width: 100%;
    max-width: 400px;
    padding: 18px 0;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    outline: none;
}

.main-btn-update:active { transform: scale(0.96); }
.main-btn-update:disabled { opacity: 0.6; transform: scale(1); box-shadow: none; }

.download-section-update { width: 100%; max-width: 400px; display: none; flex-direction: column; align-items: center; gap: 12px; }
.download-section-update.visible { display: flex; animation: fadeInUp 0.5s ease-out; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.progress-info-update { display: flex; justify-content: space-between; width: 100%; font-size: 0.9rem; color: var(--text-muted); }

.progress-track-update { width: 100%; height: 8px; background-color: var(--bg-tertiary); border-radius: 10px; overflow: hidden; }
.progress-fill-update { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), #5b9af5); border-radius: 10px; transition: width 0.3s ease; }

.custom-checkmark-container-update { display: none; justify-content: center; align-items: center; width: 32px; height: 32px; margin: 0 auto; }
.custom-checkmark-container-update.visible { display: flex; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.custom-checkmark-update { width: 100%; height: 100%; fill: none; stroke: #4ade80; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 0.4s ease-out 0.1s forwards; }

@keyframes drawCheck { to { stroke-dashoffset: 0; } }

#updateScreenContent {
    background: #0d0f14;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.animated-bg-update {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 69, 146, 0.15), transparent 50%);
    animation: breatheUpdate 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes breatheUpdate {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.content-update {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: auto;
    margin-top: 35vh;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.version-title-update {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #a3c4f3, #d4a5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(58, 123, 213, 0.3);
    line-height: 1.15;
}

.version-sub-update {
    font-size: 0.95rem;
    color: #a0a5b1;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
}

.action-area-update {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 30px 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to top, #0d0f14 50%, transparent);
}

.main-btn-update {
    width: 100%;
    max-width: 400px;
    padding: 18px 0;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #3a7bd5;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.main-btn-update:active {
    transform: scale(0.96);
}

.main-btn-update:disabled {
    opacity: 0.6;
    transform: scale(1);
    box-shadow: none;
}

.download-section-update {
    width: 100%;
    max-width: 400px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download-section-update.visible-download {
    display: flex;
    animation: fadeInUpUpdate 0.5s ease-out;
}

@keyframes fadeInUpUpdate {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-info-update {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: #a0a5b1;
}

.progress-track-update {
    width: 100%;
    height: 8px;
    background-color: #2e333d;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-update {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3a7bd5, #5b9af5);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.custom-checkmark-container-update {
    display: none;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
}

.custom-checkmark-container-update.visible-check {
    display: flex;
    animation: popInUpdate 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popInUpdate {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.custom-checkmark-update {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #4ade80;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawCheckUpdate 0.4s ease-out 0.1s forwards;
}

@keyframes drawCheckUpdate {
    to {
        stroke-dashoffset: 0;
    }
}

#settingsScreen {
    background: #0d0e12 !important;
    color: #f0f2f5 !important;
}

#settingsScreen .settings-header {
    background: #0d0e12 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

#settingsScreen .settings-header h3 {
    color: #f0f2f5 !important;
}

#settingsScreen .settings-header .header-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f0f2f5 !important;
}

#settingsScreen .settings-content,
#settingsScreen .settings-subcontent,
#settingsScreen .settings-groups {
    background: #0d0e12 !important;
}

#settingsScreen .settings-group-card,
#settingsScreen .settings-card-group,
#settingsScreen .settings-input-card,
#settingsScreen .settings-action-button,
#settingsScreen .settings-account-item {
    background: #181a20 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    border: none !important;
}

#settingsScreen .settings-row-value {
    color: #f0f2f5 !important;
}

#settingsScreen .settings-row-sub,
#settingsScreen .settings-helper-text,
#settingsScreen .settings-chevron,
#settingsScreen .settings-input-counter {
    color: #646b79 !important;
}

#settingsScreen .settings-section-title,
#settingsScreen .settings-group-title {
    color: #53b5c9 !important;
}

#settingsScreen .settings-logout-btn {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

.settings-header {
    background: #0d0e12;
}

.settings-content {
    background: #0d0e12;
    padding: 0;
}

.settings-subcontent {
    background: #0d0e12;
    padding: 20px 18px 40px 18px;
}

.settings-groups {
    background: #0d0e12;
    padding: 20px 18px 40px 18px;
}

.settings-group-title {
    font-size: 0.85rem;
    color: #53b5c9;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 24px;
    padding-left: 4px;
}

.settings-group-first {
    margin-top: 0;
}

.settings-group-card {
    background: #181a20;
    border-radius: 18px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.settings-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7f8a9d;
    font-size: 18px;
}

.settings-row-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2px;
}

.settings-row-value {
    font-size: 1rem;
    font-weight: 500;
    color: #f0f2f5;
}

.settings-row-sub {
    font-size: 0.8rem;
    color: #646b79;
}

.settings-chevron {
    color: #646b79;
    font-size: 12px;
    flex-shrink: 0;
}

.settings-section-title {
    font-size: 0.85rem;
    color: #53b5c9;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 24px;
    padding-left: 4px;
}

.settings-section-first {
    margin-top: 0;
}

.settings-card-group {
    background: #181a20;
    border-radius: 18px;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.settings-input-card {
    background: #181a20;
    border-radius: 18px;
    padding: 6px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.settings-input-field {
    background: transparent;
    border: none;
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    color: #f0f2f5;
    outline: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: inherit;
}

.settings-input-field:last-child { border-bottom: none; }
.settings-input-field::placeholder { color: #5e6470; }

.settings-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-input-no-border { border-bottom: none; }

.settings-input-counter {
    color: #646b79;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.settings-helper-text {
    font-size: 0.8rem;
    color: #646b79;
    line-height: 1.5;
    padding: 0 6px 10px 6px;
    margin-top: -8px;
}

.settings-action-button {
    background: #181a20;
    border: none;
    width: 100%;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: #53b5c9;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 18px;
    transition: background 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
    font-family: inherit;
}

.settings-action-button:active { background: #22252e; }

.settings-account-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 14px;
    background: #181a20;
    border-radius: 18px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-account-item:active { background: #22252e; }

.settings-account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1f2b36;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
}

.settings-account-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.settings-account-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.settings-account-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #f0f2f5;
}

.settings-account-badge {
    background: #2b7bc6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    flex-shrink: 0;
}

.settings-logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 100%;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: #f87171;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 18px;
    transition: background 0.2s;
    margin-top: 4px;
    font-family: inherit;
}

.settings-logout-btn:active { background: rgba(239, 68, 68, 0.2); }

.settings-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.settings-switch input { opacity: 0; width: 0; height: 0; }

.settings-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2e333d;
    transition: 0.3s;
    border-radius: 22px;
}

.settings-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.settings-switch input:checked + .settings-switch-slider {
    background-color: #53b5c9;
}

.settings-switch input:checked + .settings-switch-slider:before {
    transform: translateX(22px);
}

.settings-select {
    background: #181a20;
    color: #f0f2f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
}

.settings-number {
    background: #181a20;
    color: #f0f2f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    width: 80px;
    flex-shrink: 0;
    font-family: inherit;
}

.settings-slider {
    flex-shrink: 0;
    width: 100px;
}

.settings-slider input[type="range"] {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #2e333d;
    border-radius: 2px;
    outline: none;
}

.settings-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #53b5c9;
    cursor: pointer;
}

.settings-drag-handle {
    color: #646b79;
    cursor: grab;
    flex-shrink: 0;
    font-size: 14px;
}

.settings-folder-delete {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.update-screen-content {
    background: #0d0f14;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.animated-bg-update {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 69, 146, 0.15), transparent 50%);
    animation: breatheUpdate 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes breatheUpdate {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.content-update {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: auto;
    margin-top: 35vh;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.version-title-update {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #a3c4f3, #d4a5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(58, 123, 213, 0.3);
    line-height: 1.15;
}

.version-sub-update {
    font-size: 0.95rem;
    color: #a0a5b1;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
}

.action-area-update {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 30px 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to top, #0d0f14 50%, transparent);
}

.main-btn-update {
    width: 100%;
    max-width: 400px;
    padding: 18px 0;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #3a7bd5;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
    outline: none;
    font-family: inherit;
}

.main-btn-update:active { transform: scale(0.96); }
.main-btn-update:disabled { opacity: 0.6; transform: scale(1); box-shadow: none; }

.download-section-update {
    width: 100%;
    max-width: 400px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download-section-update.visible-download {
    display: flex;
    animation: fadeInUpUpdate 0.5s ease-out;
}

@keyframes fadeInUpUpdate {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-info-update {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: #a0a5b1;
}

.progress-track-update {
    width: 100%;
    height: 8px;
    background-color: #2e333d;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-update {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3a7bd5, #5b9af5);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.custom-checkmark-container-update {
    display: none;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
}

.custom-checkmark-container-update.visible-check {
    display: flex;
    animation: popInUpdate 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popInUpdate {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.custom-checkmark-update {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #4ade80;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawCheckUpdate 0.4s ease-out 0.1s forwards;
}

@keyframes drawCheckUpdate {
    to { stroke-dashoffset: 0; }
}

.profile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

.profile-top-left, .profile-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-top-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s, transform 0.1s;
    font-size: 16px;
}

.profile-top-btn:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.92);
}

.profile-section-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 10px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 16px;
}

.profile-avatar-new {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}

.profile-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name-new {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.profile-name-new small {
    font-size: 0.9rem;
}

.profile-status-new {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.profile-actions-new {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 0 16px;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

.profile-action-card {
    flex: 1;
    background: var(--bg-card);
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-action-card:active { background: var(--bg-hover); }
.profile-action-card i { font-size: 20px; color: var(--text-muted); }
.profile-action-card .profile-action-icon-blue { color: var(--accent); }

.profile-info-card {
    background: var(--bg-card);
    border-radius: 18px;
    margin: 0 16px 16px 16px;
    padding: 4px 0;
    box-shadow: var(--shadow-md);
}

.profile-info-row {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.profile-info-row:last-child { border-bottom: none; }

.profile-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.profile-tabs-container {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px;
    margin-bottom: 16px;
    gap: 6px;
    scrollbar-width: none;
}

.profile-tabs-container::-webkit-scrollbar { display: none; }

.profile-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.profile-tab-btn.active {
    background: var(--accent-light);
    color: var(--accent);
}

.profile-tab-btn:active { transform: scale(0.95); }

.profile-gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0 2px;
}

.profile-add-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 16px;
}

.profile-add-btn {
    background: var(--accent);
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-family: inherit;
}

.profile-add-btn:active { transform: scale(0.96); }