/* Serva profile workspace — August 2026 */

.profile-page-wrap {
    --profile-bg: #030916;
    --profile-surface: #081526;
    --profile-surface-strong: #0b1b30;
    --profile-surface-soft: rgba(11, 27, 48, 0.72);
    --profile-line: rgba(132, 190, 226, 0.14);
    --profile-line-strong: rgba(84, 210, 255, 0.34);
    --profile-text: #f4fbff;
    --profile-muted: #8fa9bf;
    --profile-accent: #57d9ff;
    --profile-accent-strong: #36a9ff;
    --profile-success: #45dfa2;
    --profile-warning: #ffd16a;
    min-height: 100vh;
    margin: 0;
    color: var(--profile-text);
    background:
        radial-gradient(circle at 82% -8%, rgba(44, 160, 255, 0.12), transparent 30rem),
        radial-gradient(circle at 8% 34%, rgba(36, 224, 206, 0.06), transparent 28rem),
        var(--profile-bg);
    overflow-x: hidden;
}

.profile-page-wrap *,
.profile-page-wrap *::before,
.profile-page-wrap *::after {
    box-sizing: border-box;
}

.profile-page-wrap .hidden {
    display: none !important;
}

.profile-page-wrap a {
    text-decoration: none;
}

.profile-dash-shell {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
    padding: 22px 0 64px;
}

.profile-dash-top {
    min-height: 44px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-back-link,
.profile-dash-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    color: var(--profile-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.profile-back-link {
    padding: 0 12px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.profile-back-link:hover {
    color: var(--profile-text);
    background: rgba(255, 255, 255, 0.05);
}

.profile-dash-title {
    color: #dff7ff;
    font-size: 1rem;
}

.profile-dash-title i,
.profile-back-link:hover i {
    color: var(--profile-accent);
}

.profile-dash-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.profile-dashboard-nav-card {
    position: sticky;
    top: 16px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(11, 27, 48, 0.96), rgba(6, 17, 31, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.profile-dashboard-nav-head {
    padding: 6px 6px 14px;
    border-bottom: 1px solid var(--profile-line);
}

.profile-dashboard-nav-kicker,
.profile-section-kicker,
.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--profile-accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.profile-dashboard-nav-intro h1 {
    margin: 8px 0 4px;
    color: var(--profile-text);
    font-size: 1.18rem;
    line-height: 1.35;
}

.profile-dashboard-nav-intro p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.profile-dash-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
}

.profile-dash-shortcut {
    min-height: 42px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--profile-line);
    border-radius: 11px;
    color: #cdeaff;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
    font-weight: 800;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-dash-shortcut:hover {
    border-color: var(--profile-line-strong);
    background: rgba(87, 217, 255, 0.08);
}

.profile-dash-nav {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.profile-dash-nav-item {
    width: 100%;
    min-height: 58px;
    padding: 8px 9px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-align: start;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #a9bfd1;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-dash-nav-item > i:first-child {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #7e9eb6;
    background: rgba(255, 255, 255, 0.045);
    transition: color 0.2s ease, background 0.2s ease;
}

.profile-dash-nav-item:hover {
    color: var(--profile-text);
    background: rgba(255, 255, 255, 0.035);
}

.profile-dash-nav-item.active {
    color: var(--profile-text);
    border-color: rgba(87, 217, 255, 0.22);
    background: rgba(87, 217, 255, 0.09);
}

.profile-dash-nav-item.active > i:first-child {
    color: #06111d;
    background: linear-gradient(145deg, #7ae7ff, #42afff);
}

.profile-tab-copy,
.profile-tab-copy strong,
.profile-tab-copy small {
    display: block;
    min-width: 0;
}

.profile-tab-copy strong {
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
}

.profile-tab-copy small {
    margin-top: 2px;
    color: #718da5;
    font-size: 0.65rem;
    line-height: 1.4;
}

.profile-dash-panels,
.profile-shell,
.profile-dash-panel {
    min-width: 0;
}

.profile-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.profile-dash-panel {
    display: grid;
    gap: 18px;
}

.profile-dash-panel-head {
    min-height: 128px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(13, 37, 61, 0.94), rgba(8, 21, 39, 0.94));
}

.profile-dash-panel-head h2 {
    margin: 7px 0 4px;
    color: var(--profile-text);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.profile-dash-panel-head p {
    max-width: 68ch;
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.82rem;
    line-height: 1.75;
}

.profile-hero.profile-identity-card {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    padding: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(87, 217, 255, 0.23);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(48, 191, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #0c2940, #0b1731 66%, #111a39);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

.profile-hero.profile-identity-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    inset-block-end: -110px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(104, 159, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero .account-avatar-stack,
.profile-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.profile-hero .account-avatar-stack {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.profile-identity-avatar-wrap {
    position: relative;
}

.profile-hero .account-avatar-xl {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid rgba(6, 22, 39, 0.9);
    border-radius: 50%;
    color: #04121f;
    background: linear-gradient(145deg, #8bebff, #4aa9ff 70%, #8774ff);
    box-shadow: 0 0 0 2px rgba(99, 224, 255, 0.52), 0 14px 32px rgba(0, 157, 255, 0.25);
    font-size: 2rem;
    font-weight: 900;
}

.profile-hero .account-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity-verified {
    position: absolute;
    inset-inline-end: -2px;
    inset-block-end: 2px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 3px solid #0a1b2e;
    border-radius: 50%;
    color: #02130d;
    background: var(--profile-success);
    font-size: 0.66rem;
}

.account-avatar-upload-row {
    display: flex;
    justify-content: center;
}

.profile-hero-copy {
    text-align: start;
}

.profile-hero-copy h1 {
    margin: 7px 0 2px;
    color: var(--profile-text);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.profile-hero-email {
    max-width: 100%;
    margin: 0;
    color: #9fc3df;
    direction: ltr;
    text-align: right;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[dir="ltr"] .profile-hero-email {
    text-align: left;
}

.profile-hero-badges,
.profile-identity-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-hero-badges {
    margin-top: 12px;
}

.profile-hero-badges > span {
    min-height: 30px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(153, 207, 240, 0.15);
    border-radius: 999px;
    color: #bfd7e8;
    background: rgba(5, 15, 30, 0.28);
    font-size: 0.7rem;
    font-weight: 700;
}

.profile-hero-badges > span i,
.profile-hero-badges > span[data-tone="ok"] i {
    color: var(--profile-success);
}

.profile-hero-badges > span[data-tone="warn"] i {
    color: var(--profile-warning);
}

.profile-identity-actions {
    margin-top: 14px;
}

.profile-identity-primary,
.profile-identity-secondary,
.profile-primary-action,
.profile-text-action {
    min-height: 42px;
    padding: 9px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 900;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.profile-identity-primary,
.profile-primary-action {
    border: 1px solid transparent;
    color: #03111d;
    background: linear-gradient(135deg, #73e7ff, #45adff);
}

.profile-identity-secondary,
.profile-text-action {
    border: 1px solid rgba(132, 210, 255, 0.22);
    color: #d5efff;
    background: rgba(5, 17, 31, 0.34);
}

.profile-identity-primary:hover,
.profile-identity-secondary:hover,
.profile-primary-action:hover,
.profile-text-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.account-meta-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.account-meta-card {
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    background: var(--profile-surface-soft);
}

.account-meta-card-level {
    grid-column: span 1;
}

.account-meta-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(87, 217, 255, 0.09);
    font-size: 1rem;
}

.account-meta-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.account-meta-copy {
    min-width: 0;
    flex: 1;
}

.account-meta-label,
.account-meta-value,
.account-meta-subtle {
    display: block;
    min-width: 0;
}

.account-meta-label {
    color: var(--profile-muted);
    font-size: 0.64rem;
}

.account-meta-value {
    margin-top: 2px;
    color: var(--profile-text);
    font-size: 0.77rem;
    overflow-wrap: anywhere;
}

.account-meta-subtle {
    margin-top: 2px;
    color: #7693aa;
    font-size: 0.58rem;
    line-height: 1.4;
}

.account-inline-progress-track {
    height: 5px;
    display: block;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.account-inline-progress-fill {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--profile-accent), var(--profile-success));
}

.profile-overview-clean {
    gap: 18px;
}

.profile-overview-section {
    display: grid;
    gap: 12px;
}

.profile-overview-section-heading {
    padding-inline: 2px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.profile-overview-section-heading h2 {
    margin: 5px 0 0;
    color: var(--profile-text);
    font-size: 1.05rem;
}

.profile-overview-section-note {
    color: #6f8da5;
    font-size: 0.68rem;
}

.profile-overview-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-wallet-overview,
.profile-orders-summary,
.profile-card {
    min-width: 0;
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(11, 31, 51, 0.92), rgba(7, 18, 34, 0.94));
}

.profile-wallet-overview {
    min-height: 204px;
    padding: 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-wallet-icon,
.profile-orders-summary-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(87, 217, 255, 0.25);
    border-radius: 14px;
    color: var(--profile-accent);
    background: rgba(87, 217, 255, 0.08);
    font-size: 1.05rem;
}

.profile-wallet-copy > span,
.profile-wallet-copy > strong,
.profile-wallet-copy > small {
    display: block;
}

.profile-wallet-copy > span {
    color: var(--profile-muted);
    font-size: 0.72rem;
}

.profile-wallet-copy > strong {
    margin: 3px 0;
    color: #8ee9ff;
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.profile-wallet-copy > small {
    color: #80a6c0;
    font-size: 0.66rem;
    line-height: 1.5;
}

.profile-wallet-spent {
    grid-column: 1 / -1;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--profile-line);
    color: var(--profile-muted);
    font-size: 0.69rem;
}

.profile-wallet-spent strong {
    color: #dcefff;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.profile-wallet-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.profile-orders-summary {
    min-height: 204px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.profile-orders-summary > header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.profile-orders-summary header div > span,
.profile-orders-summary header div > strong {
    display: block;
}

.profile-orders-summary header div > span {
    color: var(--profile-muted);
    font-size: 0.68rem;
}

.profile-orders-summary header div > strong {
    margin-top: 3px;
    color: var(--profile-text);
    font-size: 0.86rem;
    line-height: 1.45;
}

.profile-orders-summary header > a {
    color: #94dcff;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.profile-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--profile-line);
    border-radius: 14px;
    background: rgba(2, 10, 22, 0.24);
}

.profile-summary-stats > div {
    min-width: 0;
    padding: 13px 7px;
    text-align: center;
}

.profile-summary-stats > div + div {
    border-inline-start: 1px solid var(--profile-line);
}

.profile-summary-stats strong,
.profile-summary-stats span {
    display: block;
}

.profile-summary-stats strong {
    color: #8feaff;
    font-size: 1.14rem;
    font-variant-numeric: tabular-nums;
}

.profile-summary-stats [data-tone="warn"] strong {
    color: var(--profile-warning);
}

.profile-summary-stats [data-tone="ok"] strong {
    color: var(--profile-success);
}

.profile-summary-stats span {
    margin-top: 3px;
    color: #7d99af;
    font-size: 0.59rem;
    line-height: 1.35;
}

.profile-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-quick-action {
    min-height: 76px;
    padding: 11px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    border: 1px solid var(--profile-line);
    border-radius: 16px;
    color: var(--profile-text);
    background: rgba(9, 24, 42, 0.8);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-quick-action > i {
    width: 38px;
    height: 38px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--profile-accent);
    background: rgba(87, 217, 255, 0.09);
}

.profile-quick-action span {
    align-self: end;
    font-size: 0.76rem;
    font-weight: 900;
}

.profile-quick-action small {
    align-self: start;
    margin-top: 2px;
    color: #7895ac;
    font-size: 0.59rem;
    line-height: 1.35;
}

.profile-quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--profile-line-strong);
    background: rgba(13, 34, 56, 0.9);
}

.profile-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-card {
    padding: 0;
    overflow: hidden;
}

.profile-section-header,
.account-panel-header {
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--profile-line);
}

.profile-section-header .profile-section-kicker {
    font-size: 0.62rem;
}

.account-panel-title {
    margin: 4px 0 0;
    color: var(--profile-text);
    font-size: 0.86rem;
}

.account-panel-title i {
    color: var(--profile-accent);
}

.profile-section-header > a {
    color: #88d9ff;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.profile-order-list,
.profile-timeline {
    min-height: 188px;
    padding: 5px 10px 10px;
}

.profile-order-item,
.profile-timeline-item {
    min-height: 58px;
    padding: 10px 6px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(132, 190, 226, 0.09);
    color: inherit;
}

.profile-order-item:last-child,
.profile-timeline-item:last-child {
    border-bottom: 0;
}

.profile-order-icon,
.profile-activity-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #72ddff;
    background: rgba(87, 217, 255, 0.08);
    font-size: 0.78rem;
}

.profile-activity-copy,
.profile-order-copy,
.profile-order-side {
    min-width: 0;
}

.profile-activity-copy strong,
.profile-order-copy strong,
.profile-activity-copy span,
.profile-order-copy span,
.profile-order-side b,
.profile-order-side span {
    display: block;
}

.profile-activity-copy strong,
.profile-order-copy strong {
    overflow: hidden;
    color: #ddecf7;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-activity-copy span,
.profile-order-copy span {
    margin-top: 3px;
    overflow: hidden;
    color: #6e8ca3;
    font-size: 0.59rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-order-side,
.profile-activity-amount {
    text-align: end;
}

.profile-order-side b,
.profile-activity-amount {
    color: #dff6ff;
    font-size: 0.67rem;
    font-weight: 900;
    white-space: nowrap;
}

.profile-order-side span {
    margin-top: 3px;
    color: #79a3bd;
    font-size: 0.56rem;
}

.profile-activity-amount[data-tone="credit"],
[data-tone="ok"] {
    color: var(--profile-success);
}

.profile-activity-amount[data-tone="debit"],
[data-tone="danger"] {
    color: #ff8ca0;
}

[data-tone="warn"] {
    color: var(--profile-warning);
}

.profile-empty-state {
    min-height: 170px;
    padding: 22px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--profile-muted);
    text-align: center;
}

.profile-empty-state i {
    color: #5ecff7;
    font-size: 1.3rem;
}

.profile-empty-state strong {
    color: #d9edf8;
    font-size: 0.78rem;
}

.profile-empty-state span,
.profile-empty-state a {
    font-size: 0.65rem;
}

.profile-empty-state a {
    color: var(--profile-accent);
    font-weight: 800;
}

.profile-list-loading {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-list-loading span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--profile-accent);
    animation: profile-loading 0.9s ease-in-out infinite alternate;
}

.profile-list-loading span:nth-child(2) { animation-delay: 0.15s; }
.profile-list-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes profile-loading {
    to { opacity: 0.3; transform: translateY(-5px); }
}

.profile-settings-switcher {
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid var(--profile-line);
    border-radius: 17px;
    background: rgba(7, 19, 35, 0.8);
}

.profile-settings-switch {
    min-height: 62px;
    padding: 8px 11px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    text-align: start;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #91aabd;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.profile-settings-switch > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #7f9db4;
    background: rgba(255, 255, 255, 0.04);
}

.profile-settings-switch span,
.profile-settings-switch strong,
.profile-settings-switch small {
    display: block;
    min-width: 0;
}

.profile-settings-switch strong {
    color: inherit;
    font-size: 0.76rem;
}

.profile-settings-switch small {
    margin-top: 2px;
    color: #6f899f;
    font-size: 0.59rem;
}

.profile-settings-switch.active {
    border-color: rgba(87, 217, 255, 0.22);
    color: var(--profile-text);
    background: rgba(87, 217, 255, 0.08);
}

.profile-settings-switch.active > i {
    color: #06131e;
    background: linear-gradient(145deg, #73e7ff, #45adff);
}

.profile-settings-panel {
    min-width: 0;
}

.profile-security-card,
.profile-card-settings,
.profile-integrations {
    padding: 18px;
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(11, 29, 49, 0.92), rgba(7, 18, 33, 0.94));
}

.profile-security-card .account-panel-header,
.profile-card-settings .account-panel-header {
    padding: 0 0 14px;
    margin: 0 0 16px !important;
}

.profile-security-list {
    display: grid;
    gap: 8px;
}

.profile-security-list > div {
    min-height: 48px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    color: #cce2ef;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.75rem;
}

.profile-security-list > div i {
    color: var(--profile-success);
}

.profile-card-action {
    margin-top: 14px;
}

.profile-integrations {
    display: grid;
    gap: 14px;
}

.profile-integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-integration-card {
    padding: 16px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
}

.profile-integration-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--profile-accent);
    background: rgba(87, 217, 255, 0.09);
}

.profile-integration-icon-telegram {
    color: #4dc4ff;
}

.profile-integration-copy {
    min-width: 0;
}

.profile-integration-copy h3 {
    margin: 0;
    color: var(--profile-text);
    font-size: 0.9rem;
}

.profile-integration-copy > p {
    margin: 5px 0 12px;
    color: var(--profile-muted);
    font-size: 0.7rem;
    line-height: 1.65;
}

.profile-integration-actions,
.account-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-card-settings .auth-form {
    margin: 0;
}

.profile-card-settings .form-label {
    color: #c9deeb;
    font-size: 0.75rem;
    font-weight: 800;
}

.profile-card-settings .form-input,
.profile-card-settings .form-input:disabled {
    min-height: 48px;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    color: #e2f2fb;
    background: rgba(3, 12, 24, 0.58);
}

.profile-card-settings .form-input:focus {
    border-color: var(--profile-line-strong);
    box-shadow: 0 0 0 3px rgba(87, 217, 255, 0.09);
}

.profile-card-settings .form-input:disabled {
    opacity: 0.75;
}

.profile-card-settings .account-choice-card {
    min-height: 62px;
    border-color: var(--profile-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-card-settings .account-choice input:checked + .account-choice-card {
    border-color: var(--profile-line-strong);
    background: rgba(87, 217, 255, 0.08);
}

.profile-card-settings .account-choice-title {
    font-size: 0.76rem;
}

.profile-card-settings .account-choice-note,
.profile-card-settings .account-hint,
.account-readonly-note {
    color: var(--profile-muted);
    font-size: 0.67rem;
    line-height: 1.6;
}

.profile-card-settings .auth-submit-btn {
    width: min(100%, 260px);
    min-height: 46px;
    margin-top: 16px;
}

.profile-account-hub {
    padding: 18px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    background: rgba(8, 21, 38, 0.8);
}

.profile-account-hub-head h2 {
    margin: 5px 0 0;
    color: var(--profile-text);
    font-size: 1rem;
}

.profile-account-hub-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-account-hub-row {
    width: 100%;
    min-height: 58px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    text-align: start;
    border: 1px solid var(--profile-line);
    border-radius: 13px;
    color: #d8ebf6;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-account-hub-row > i:first-child {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--profile-accent);
    background: rgba(87, 217, 255, 0.08);
}

.profile-account-hub-row span,
.profile-account-hub-row strong,
.profile-account-hub-row small {
    display: block;
    min-width: 0;
}

.profile-account-hub-row strong {
    color: inherit;
    font-size: 0.75rem;
}

.profile-account-hub-row small {
    margin-top: 2px;
    color: #7692a8;
    font-size: 0.59rem;
}

.profile-account-hub-row > i:last-child {
    color: #63859e;
    font-size: 0.68rem;
}

.profile-account-hub-row:hover {
    border-color: var(--profile-line-strong);
    background: rgba(87, 217, 255, 0.06);
}

.profile-account-hub-signout {
    color: #ff9aac;
    border-color: rgba(255, 117, 143, 0.16);
}

.profile-account-hub-signout > i:first-child {
    color: #ff91a6;
    background: rgba(255, 105, 135, 0.08);
}

.receipt-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(1, 5, 12, 0.88);
    backdrop-filter: blur(10px);
}

.receipt-lightbox-overlay.active,
.receipt-lightbox-overlay[aria-hidden="false"] {
    display: grid;
}

.receipt-lightbox-content {
    width: min(900px, 92vw);
    max-height: 88vh;
    overflow: auto;
    border-radius: 18px;
}

.receipt-lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.receipt-lightbox-close {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 18, 32, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
}

.profile-page-wrap :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--profile-accent);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .profile-dash-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 14px;
    }

    .profile-dashboard-nav-card {
        padding: 11px;
    }

    .account-meta-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-integrations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .profile-dash-shell {
        width: min(100% - 20px, 760px);
        padding-top: 8px;
    }

    .profile-dash-top {
        min-height: 46px;
        margin-bottom: 8px;
    }

    .profile-dash-layout {
        display: block;
    }

    .profile-dashboard-nav-card {
        position: sticky;
        top: 0;
        z-index: 40;
        margin: 0 -2px 12px;
        padding: 6px;
        border-radius: 16px;
        background: rgba(5, 15, 28, 0.9);
        backdrop-filter: blur(16px);
    }

    .profile-dashboard-nav-head {
        display: none;
    }

    .profile-dash-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        margin: 0;
    }

    .profile-dash-nav-item {
        min-height: 52px;
        padding: 5px 3px;
        grid-template-columns: 1fr;
        grid-template-rows: 23px auto;
        gap: 3px;
        justify-items: center;
        text-align: center;
        border-radius: 11px;
    }

    .profile-dash-nav-item > i:first-child {
        width: 27px;
        height: 27px;
        border-radius: 8px;
        font-size: 0.74rem;
    }

    .profile-tab-copy strong {
        font-size: 0.64rem;
        white-space: nowrap;
    }

    .profile-tab-copy small {
        display: none;
    }

    .profile-dash-panel {
        scroll-margin-top: 76px;
    }

    .profile-overview-summary,
    .profile-activity-grid {
        grid-template-columns: 1fr;
    }

    .profile-dash-panel-head {
        min-height: 0;
        padding: 17px;
        align-items: flex-start;
    }

    .profile-dash-panel-head p {
        max-width: 56ch;
    }

    .profile-settings-switch small {
        display: none;
    }
}

@media (max-width: 560px) {
    .profile-dash-shell {
        width: min(100% - 14px, 520px);
        padding-bottom: 90px;
    }

    .profile-back-link,
    .profile-dash-title {
        min-height: 38px;
        font-size: 0.78rem;
    }

    .profile-hero.profile-identity-card {
        min-height: 0;
        padding: 15px;
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 12px;
        border-radius: 18px;
    }

    .profile-hero.profile-identity-card::after {
        display: none;
    }

    .profile-hero .account-avatar-xl {
        width: 62px;
        height: 62px;
        border-width: 3px;
        font-size: 1.35rem;
    }

    .profile-identity-verified {
        width: 21px;
        height: 21px;
    }

    .profile-eyebrow {
        font-size: 0.61rem;
    }

    .profile-hero-copy h1 {
        margin-top: 4px;
        font-size: 1.05rem;
    }

    .profile-hero-email {
        font-size: 0.72rem;
    }

    .profile-hero-badges {
        margin-top: 8px;
        gap: 5px;
    }

    .profile-hero-badges > span {
        min-height: 25px;
        padding: 4px 7px;
        font-size: 0.58rem;
    }

    .profile-identity-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-top: 4px;
    }

    .profile-identity-primary,
    .profile-identity-secondary {
        min-height: 39px;
        padding: 7px 9px;
        font-size: 0.68rem;
    }

    .account-meta-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .account-meta-row::-webkit-scrollbar {
        display: none;
    }

    .account-meta-card {
        min-width: 144px;
        min-height: 72px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .account-meta-card-level {
        min-width: 205px;
    }

    .profile-overview-section {
        gap: 9px;
    }

    .profile-overview-section-heading h2 {
        font-size: 0.92rem;
    }

    .profile-overview-section-note {
        display: none;
    }

    .profile-wallet-overview,
    .profile-orders-summary,
    .profile-card,
    .profile-security-card,
    .profile-card-settings,
    .profile-integrations,
    .profile-account-hub {
        border-radius: 16px;
    }

    .profile-wallet-overview,
    .profile-orders-summary {
        min-height: 0;
        padding: 14px;
    }

    .profile-wallet-overview {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-wallet-icon,
    .profile-orders-summary-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .profile-wallet-copy > strong {
        font-size: 1.5rem;
    }

    .profile-wallet-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    }

    .profile-primary-action,
    .profile-text-action {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 0.65rem;
    }

    .profile-orders-summary > header {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .profile-orders-summary header div > strong {
        font-size: 0.76rem;
    }

    .profile-summary-stats > div {
        padding: 11px 4px;
    }

    .profile-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-quick-action {
        min-height: 64px;
        padding: 9px;
        grid-template-columns: 34px minmax(0, 1fr);
        column-gap: 8px;
    }

    .profile-quick-action > i {
        width: 34px;
        height: 34px;
    }

    .profile-quick-action span {
        font-size: 0.69rem;
    }

    .profile-quick-action small {
        font-size: 0.55rem;
    }

    .profile-order-list,
    .profile-timeline {
        min-height: 150px;
    }

    .profile-dash-panel-head {
        display: grid;
        gap: 12px;
    }

    .profile-dash-panel-head .btn-primary {
        width: 100%;
    }

    .profile-settings-switcher {
        gap: 4px;
        padding: 5px;
    }

    .profile-settings-switch {
        min-height: 52px;
        padding: 5px 3px;
        grid-template-columns: 1fr;
        grid-template-rows: 27px auto;
        gap: 3px;
        justify-items: center;
        text-align: center;
    }

    .profile-settings-switch > i {
        width: 29px;
        height: 29px;
        border-radius: 8px;
        font-size: 0.72rem;
    }

    .profile-settings-switch strong {
        font-size: 0.64rem;
    }

    .profile-security-card,
    .profile-card-settings,
    .profile-integrations,
    .profile-account-hub {
        padding: 14px;
    }

    .profile-card-settings .account-panel-header {
        align-items: flex-start;
    }

    .account-grid,
    .account-currency-toggle,
    .profile-integrations-grid,
    .profile-account-hub-list {
        grid-template-columns: 1fr;
    }

    .account-grid-full {
        grid-column: auto;
    }

    .profile-integration-card {
        padding: 13px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-integration-icon {
        width: 38px;
        height: 38px;
    }

    .profile-account-hub-row {
        min-height: 54px;
    }

    .profile-page-wrap #wa-float-btn {
        display: none !important;
    }

    body.profile-page-wrap #livechat-btn {
        bottom: 18px !important;
        left: 14px !important;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-page-wrap *,
    .profile-page-wrap *::before,
    .profile-page-wrap *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
