.newprof-page,
.newprof-modal {
    --newprof-primary: #3E2C41;
    --newprof-secondary: #4A5568;
    --newprof-text-light: #ffffff;
    --newprof-text-dark: #2a2a2a;
    --newprof-text-black: #000000;
    --newprof-accent: #B76F5A;
    --newprof-gradient: linear-gradient(135deg, #3E2C41 0%, #B76F5A 100%);
    --newprof-grad-primary: linear-gradient(0deg, #3E2C41 0%, #3E2C41 100%);
    --newprof-grad-secondary: linear-gradient(0deg, #4A5568 0%, #4A5568 100%);
}

.newprof-page {
    background-color: #f5f3f6;
    min-height: 100vh;
    padding: 14px 14px 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--newprof-text-dark);
}

.newprof-container {
    max-width: 560px;
    margin: 0 auto;
}

.newprof-profile-card {
    position: relative;
    overflow: hidden;
    background: var(--newprof-gradient);
    border-radius: 22px;
    padding: 20px 16px 16px;
    color: var(--newprof-text-light);
    box-shadow: 0 12px 28px rgba(62, 44, 65, 0.24);
    margin-bottom: 20px;
}

.newprof-profile-card::before,
.newprof-profile-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.newprof-profile-card::before {
    top: -45px;
    right: -35px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
}

.newprof-profile-card::after {
    bottom: -40px;
    left: -30px;
    width: 110px;
    height: 110px;
    background: rgba(183, 111, 90, 0.26);
}

.newprof-edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--newprof-text-light);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease;
}

.newprof-edit-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    color: var(--newprof-text-light);
}

.newprof-edit-btn:active {
    transform: scale(0.94);
}

.newprof-profile-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.newprof-profile-card:has(.newprof-edit-btn) .newprof-profile-top {
    padding-right: 68px;
}

.newprof-avatar {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2.5px solid rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--newprof-text-light);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

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

.newprof-welcome-box {
    flex: 1;
    min-width: 0;
}

.newprof-welcome-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.4px;
}

.newprof-user-name {
    margin: 2px 0 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--newprof-text-light);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newprof-guest-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.35;
}

.newprof-login-cta {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--newprof-text-light);
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.2s ease;
}

.newprof-login-cta:hover {
    background: rgba(255, 255, 255, 0.24);
    color: var(--newprof-text-light);
}

.newprof-login-cta:active {
    transform: scale(0.98);
}

.newprof-login-cta-left {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
}

.newprof-login-pill {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--newprof-primary);
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.newprof-info-strip {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.newprof-info-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.3;
    word-break: break-word;
}

.newprof-info-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #ffe2d8;
    flex-shrink: 0;
}

.newprof-sec-head {
    margin: 20px 4px 10px;
}

.newprof-sec-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--newprof-primary);
    letter-spacing: -0.2px;
}

.newprof-sec-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--newprof-secondary);
}

.newprof-wallet-card,
.newprof-unlock-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--newprof-primary);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 12px;
    color: var(--newprof-text-light);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(62, 44, 65, 0.18);
    transition: transform 0.18s ease;
}

.newprof-wallet-card::after,
.newprof-unlock-card::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(183, 111, 90, 0.28);
    pointer-events: none;
}

.newprof-wallet-card:hover,
.newprof-unlock-card:hover {
    color: var(--newprof-text-light);
}

.newprof-wallet-card:active,
.newprof-unlock-card:active {
    transform: scale(0.98);
}

.newprof-wallet-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #f3d2c7;
    margin-bottom: 4px;
}

.newprof-wallet-amt {
    font-size: 24px;
    font-weight: 800;
    color: var(--newprof-text-light);
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.newprof-wallet-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
}

.newprof-wallet-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(183, 111, 90, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffdcd0;
}

.newprof-unlock-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f3d2c7;
    margin-bottom: 4px;
}

.newprof-unlock-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.newprof-unlock-sub {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.78);
}

.newprof-unlock-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(183, 111, 90, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #ffdcd0;
}

.newprof-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(62, 44, 65, 0.07);
    box-shadow: 0 4px 16px rgba(62, 44, 65, 0.05);
    overflow: hidden;
    margin-bottom: 12px;
}

.newprof-card-pad {
    padding: 14px 15px;
}

.newprof-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    text-decoration: none;
    color: var(--newprof-text-dark);
    border-bottom: 1px solid #f2eff4;
    transition: background-color 0.18s ease;
}

.newprof-row:last-child {
    border-bottom: none;
}

.newprof-row:hover {
    background-color: #faf7fa;
    color: var(--newprof-primary);
}

.newprof-row:active {
    background-color: #f3edf5;
}

.newprof-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.newprof-icon-box {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.newprof-icon-plum {
    background: rgba(62, 44, 65, 0.09);
    color: var(--newprof-primary);
}

.newprof-icon-terra {
    background: rgba(183, 111, 90, 0.14);
    color: var(--newprof-accent);
}

.newprof-icon-slate {
    background: rgba(74, 85, 104, 0.1);
    color: var(--newprof-secondary);
}

.newprof-row-text {
    min-width: 0;
}

.newprof-row-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.newprof-row-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--newprof-text-dark);
    line-height: 1.25;
}

.newprof-row-sub {
    display: block;
    font-size: 11.5px;
    color: var(--newprof-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

.newprof-pro-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--newprof-gradient);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.newprof-chevron {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 14px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.newprof-row:hover .newprof-chevron {
    color: var(--newprof-accent);
    transform: translateX(3px);
}

.newprof-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 12px;
}

.newprof-quick-item {
    background: #ffffff;
    border: 1px solid rgba(62, 44, 65, 0.07);
    border-radius: 16px;
    padding: 13px 6px 11px;
    text-align: center;
    text-decoration: none;
    color: var(--newprof-text-dark);
    box-shadow: 0 4px 14px rgba(62, 44, 65, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.newprof-quick-item:hover {
    border-color: rgba(183, 111, 90, 0.4);
    box-shadow: 0 6px 16px rgba(62, 44, 65, 0.08);
    color: var(--newprof-primary);
}

.newprof-quick-item:active {
    transform: scale(0.95);
}

.newprof-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(62, 44, 65, 0.09), rgba(183, 111, 90, 0.14));
    color: var(--newprof-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.newprof-quick-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--newprof-text-dark);
    line-height: 1.2;
}

.newprof-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 4px 10px;
}

.newprof-slick-nav {
    display: flex;
    gap: 6px;
}

.newprof-slick-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(62, 44, 65, 0.16);
    background: #ffffff;
    color: var(--newprof-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newprof-slick-btn:hover {
    background: var(--newprof-primary);
    border-color: var(--newprof-primary);
    color: #ffffff;
}

.newprof-recent-slide {
    padding: 4px 5px;
}

.newprof-recent-item {
    display: block;
    text-decoration: none;
    background: #faf8fb;
    border: 1px solid rgba(62, 44, 65, 0.08);
    border-radius: 14px;
    padding: 7px;
    text-align: center;
    transition: transform 0.2s ease;
}

.newprof-recent-item:active {
    transform: scale(0.96);
}

.newprof-recent-item img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.newprof-recent-title {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--newprof-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newprof-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.newprof-select {
    flex-shrink: 0;
    width: auto;
    min-width: 108px;
    padding: 7px 28px 7px 12px;
    border-radius: 50px;
    border: 1px solid rgba(62, 44, 65, 0.18);
    background-color: #faf8fb;
    color: var(--newprof-primary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.newprof-select:focus {
    border-color: var(--newprof-accent);
    box-shadow: 0 0 0 3px rgba(183, 111, 90, 0.18);
    outline: none;
}

.newprof-biz-card {
    position: relative;
    overflow: hidden;
    background: var(--newprof-primary);
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 12px;
    color: var(--newprof-text-light);
    box-shadow: 0 10px 24px rgba(62, 44, 65, 0.2);
}

.newprof-biz-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(183, 111, 90, 0.25);
    pointer-events: none;
}

.newprof-biz-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    background: rgba(183, 111, 90, 0.28);
    color: #ffdcd1;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.newprof-biz-headline {
    margin: 0 0 14px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.94);
    position: relative;
    z-index: 1;
}

.newprof-biz-headline span {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    border-bottom: 2px solid var(--newprof-accent);
    padding-bottom: 1px;
}

.newprof-biz-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--newprof-accent);
    color: var(--newprof-text-light);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(183, 111, 90, 0.35);
    transition: transform 0.18s ease, filter 0.2s ease;
}

.newprof-biz-btn:hover {
    color: var(--newprof-text-light);
    filter: brightness(1.06);
}

.newprof-biz-btn:active {
    transform: scale(0.98);
}

.newprof-logout-btn {
    width: 100%;
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 15px;
    border: 1.5px solid rgba(183, 111, 90, 0.45);
    background: #ffffff;
    color: var(--newprof-accent);
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(62, 44, 65, 0.04);
    transition: all 0.2s ease;
}

.newprof-logout-btn:hover {
    background: var(--newprof-accent);
    border-color: var(--newprof-accent);
    color: #ffffff;
}

.newprof-logout-btn:active {
    transform: scale(0.98);
}

.newprof-modal .modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(62, 44, 65, 0.25);
}

.newprof-modal .modal-header {
    background: var(--newprof-gradient);
    color: #ffffff;
    border-bottom: none;
    padding: 16px 20px;
}

.newprof-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
}

.newprof-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.newprof-modal-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--newprof-accent);
    box-shadow: 0 6px 16px rgba(62, 44, 65, 0.16);
}

.newprof-modal .form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--newprof-primary);
    margin-bottom: 5px;
}

.newprof-modal .form-control,
.newprof-modal .form-select {
    border-radius: 12px;
    border: 1px solid rgba(62, 44, 65, 0.16);
    padding: 10px 12px;
    font-size: 13.5px;
}

.newprof-modal .form-control:focus,
.newprof-modal .form-select:focus {
    border-color: var(--newprof-accent);
    box-shadow: 0 0 0 3px rgba(183, 111, 90, 0.18);
}

.newprof-save-btn {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 12px;
    background: var(--newprof-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(62, 44, 65, 0.22);
}

.toast-success {
    background-color: #B76F5A;
    color: #fff;
}

.toast-close-button {
    color: #fff;
}

@media (max-width: 360px) {
    .newprof-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}