/* Existing billing card presentation, retained when moved into Subscription. */
.profile-settings-page .profile-screen {
  gap: 16px;
  padding-top: 0;
}

.profile-settings-page .profile-user-card,
.profile-settings-page .profile-sub-card {
  border-radius: 12px;
  box-shadow: none;
}

.profile-settings-page .profile-sub-card {
  background: var(--app-white);
  border-color: var(--app-line);
  gap: 12px;
  padding: 16px;
}

.profile-settings-page .profile-sub-title {
  font-size: 1rem;
  line-height: 1.4;
}

.profile-settings-page .profile-status-text {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.profile-settings-page .profile-info-grid {
  gap: 12px 16px;
}

.profile-settings-page .profile-info-grid > div {
  min-width: 0;
}

.profile-settings-page .profile-info-label {
  font-size: 0.75rem;
  line-height: 1.5;
}

.profile-settings-page .profile-info-value {
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-settings-page .profile-section-sub {
  font-size: 0.8125rem;
  line-height: 1.5;
}

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

.profile-settings-content .profile-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px;
}

.profile-support-btn > span:not(.profile-support-icon) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-support-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--support-icon) center / contain no-repeat;
  mask: var(--support-icon) center / contain no-repeat;
}

.profile-support-icon-email {
  --support-icon: url('/web/assets/material-icons/email-outlined.svg');
}

.profile-support-icon-chat {
  --support-icon: url('/web/assets/material-icons/chat-outlined.svg');
}

[dir='rtl'] .profile-support-icon-chat {
  transform: scaleX(-1);
}

/* WATCH-1058: shared profile hub and dedicated screens from the approved mockup. */
.profile-settings-page [hidden] { display: none !important; }
.profile-settings-page .app-content { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
.profile-settings-page [data-profile-page] { min-width: 0; }
.profile-settings-page .profile-user-card { padding: 4px 0 20px; gap: 12px; border: 0; align-items: flex-start; }
.profile-settings-page .profile-user-avatar { width: 48px; height: 48px; margin-top: 2px; font-size: 15px; }
.profile-settings-page .profile-user-avatar[data-initials-count="3"] { font-size: 13px; }
.profile-settings-page .profile-user-name { font-size: 16px; line-height: 23px; }
.profile-settings-page .profile-user-email { font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.profile-settings-page .profile-status-line { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 9px; font-size: 11px; color: var(--app-muted); }
.profile-settings-page .profile-summary-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; font-size: 11px; line-height: 16px; border-radius: 4px; background: #f4f6f9; }
.profile-summary-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.profile-summary-status.active { background: #e8f5f0; color: #196e50; }
.profile-summary-status.expired { color: #b34539; background: #faecea; }
.profile-summary-status.trial { color: #977022; background: #fff6e8; }
.profile-settings-page .profile-nav-group { border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.profile-settings-page .profile-nav-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 15px 14px; border: 0; border-bottom: 1px solid #e2e7ed; border-radius: 0; background: white; color: var(--app-ink, #141a22); font: inherit; font-size: 14px; font-weight: 500; text-align: start; text-decoration: none; cursor: pointer; }
.profile-settings-page .profile-nav-row:last-child { border-bottom: 0; }
.profile-nav-row:hover { background: #fafbfc; }
.profile-nav-row > [data-profile-text] { flex: 1; min-width: 0; }
.profile-nav-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--app-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-nav-value { margin-inline-start: auto; font-size: 12px; line-height: 18px; color: var(--app-muted); font-weight: 400; text-align: end; max-width: 42%; overflow-wrap: anywhere; }
.profile-nav-chevron { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; color: #7a8594; font-size: 22px; line-height: 1; direction: ltr; }
.profile-section-label { font-size: 12px; font-weight: 500; color: var(--app-muted); margin: 20px 0 10px; line-height: 18px; }
.profile-section-label:first-child { margin-top: 0; }
.profile-account-details { margin: 0 0 20px; }
.profile-account-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e2e7ed; font-size: 13px; line-height: 20px; }
.profile-account-line:last-child { border: 0; }
.profile-account-line > span { color: var(--app-muted); flex-shrink: 0; max-width: 48%; }
.profile-account-line strong { margin: 0; min-width: 0; text-align: end; overflow-wrap: anywhere; font-weight: 400; }
.profile-account-line .is-linked { color: #196e50; font-size: 11px; }
.profile-settings-page .profile-destination-content { margin: 0; padding: 0; border: 0; background: white; }
.profile-settings-content { display: grid; gap: 0; padding: 0; }
.profile-settings-page .profile-destination-content .profile-section-sub { font-size: 12px; line-height: 19px; margin: 0 0 18px; }
.profile-settings-page .profile-logout-button { margin-top: 3px; background: #f4f6f9; min-height: 48px; }
.profile-child-page .app-brand-logo, .profile-child-page .app-brand-name, .profile-child-page .app-brand-divider { display: none; }
.profile-child-page .app-brand-copy { flex: 1; }
.profile-settings-page #profileBackButton { margin-inline-start: -9px; font-size: 27px; border: 0; background: none; }
.profile-settings-page #notificationIconButton { border: 0; width: 44px; height: 44px; }
.profile-user-actions:empty { display: none; }
.profile-settings-page .profile-sub-card + .profile-nav-group { margin-top: 18px; }
.profile-settings-page .profile-password-form { gap: 18px; }
.profile-settings-page .profile-password-form .inline-note { font-size: 12px; margin-bottom: 7px; }
.profile-settings-page .profile-password-form .signal-input { height: 48px; font-size: 14px; }
.profile-settings-page .profile-password-form .password-toggle svg { width: 20px; height: 20px; }
.profile-settings-page .profile-referral-access-card { border: 0; border-radius: 8px; background: #f4f6f9; padding: 14px; margin-bottom: 18px; }
.profile-settings-page .profile-referral-access-row { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; }
.profile-referral-access-row + .profile-referral-access-row { margin-top: 15px; }
.profile-referral-access-row > button { grid-area: 1 / 2 / 3 / 3; align-self: center; }
.profile-settings-page .profile-referral-value { font-size: 13px; line-height: 20px; margin: 3px 0 0; overflow-wrap: anywhere; user-select: text; }
.profile-settings-page .profile-referral-access-row .profile-wide-btn, .profile-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 0; min-height: 44px; width: auto; border: 0; background: none; color: var(--app-accent); font-size: 12px; font-weight: 500; }
.profile-settings-page .profile-referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
.profile-settings-page .profile-referral-metric-card { padding: 13px 14px; border: 0; border-bottom: 1px solid #e2e7ed; border-radius: 0; background: white; min-width: 0; }
.profile-referral-metric-card:nth-child(odd) { border-inline-end: 1px solid #e2e7ed; }
.profile-referral-metric-card:nth-last-child(-n+2) { border-bottom: 0; }
.profile-referral-metric-card .profile-info-label { font-size: 11px; line-height: 17px; min-height: 34px; }
.profile-settings-page .profile-referral-metric-value { font-size: 19px; line-height: 27px; margin-top: 4px; font-weight: 600; }
.profile-settings-page .profile-referral-payout-card { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border: 0; border-bottom: 1px solid #e2e7ed; padding: 14px 0; border-radius: 0; background: white; }
.profile-referral-payout-card > .profile-info-label { max-width: 55%; }
.profile-referral-totals { text-align: end; font-size: 13px; line-height: 20px; }
.profile-settings-page .profile-language-list { display: block; border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; }
.profile-settings-page .profile-language-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; border: 0; border-bottom: 1px solid #e2e7ed; border-radius: 0; padding: 15px 14px; background: white; }
.profile-language-option:last-child { border-bottom: 0; }
.profile-settings-page .profile-language-option.is-active { background: white; }
.profile-settings-page .profile-language-option-main { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.profile-language-native { font-size: 14px; font-weight: 400; }
.profile-settings-page .profile-language-option-name { font-size: 12px; font-weight: 400; color: var(--app-muted); }
.profile-support-mark { margin: 5px 0 20px; }
.profile-support-mark svg { width: 30px; height: 30px; }
.profile-settings-page #profileSupportSubtitle { font-size: 14px; line-height: 22px; margin-bottom: 22px; }
.profile-support-details { margin-top: 24px; }
.profile-about-brand { display: flex; gap: 13px; align-items: center; padding: 10px 0 23px; }
.profile-about-brand img { width: 40px; height: 46px; object-fit: contain; }
.profile-about-brand strong { display: block; font-size: 21px; font-weight: 600; }
.profile-about-brand span { display: block; font-size: 12px; line-height: 22px; color: var(--app-muted); }
.profile-copyright { font-size: 11px; line-height: 19px; color: var(--app-muted); margin-top: 26px; }
.profile-history-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid #e2e7ed; text-align: start; background: white; color: inherit; }
.profile-history-row:first-child { padding-top: 4px; }
.profile-row-text { flex: 1; min-width: 0; }
.profile-row-title { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.profile-row-sub { display: block; font-size: 12px; line-height: 18px; margin-top: 2px; color: var(--app-muted); }
.profile-history-right { text-align: end; flex-shrink: 0; }
.profile-history-right strong { display: block; font-size: 14px; line-height: 21px; font-weight: 600; }
.profile-history-status { display: block; font-size: 11px; line-height: 18px; color: #977022; }
.profile-history-status.paid { color: #196e50; }
.profile-payment-amount { font-size: 27px; font-weight: 600; letter-spacing: -.7px; margin: 12px 0 6px; }
.profile-payment-plan { font-size: 12px; color: var(--app-muted); margin: 0 0 18px; }
.profile-notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -9px 0 12px; font-size: 12px; color: var(--app-muted); }
.profile-settings-page #notificationInboxModal .notification-inbox-item { padding: 16px 0; border: 0; border-bottom: 1px solid #e2e7ed; border-radius: 0; background: white; }
.profile-settings-page #notificationInboxModal .notification-inbox-item-actions .profile-wide-btn { min-height: 44px; border: 0; background: none; width: auto; padding: 10px 0; font-size: 12px; }
.profile-settings-page #notificationInboxModal .notification-inbox-item-actions { display: flex; justify-content: space-between; }
.profile-settings-page #notificationInboxModal .notification-push-card { margin-top: 20px; padding: 12px; border: 0; border-radius: 8px; background: #f4f6f9; }
.profile-empty { padding: 70px 14px; text-align: center; }
.profile-empty svg { width: 30px; height: 30px; stroke: #8a96a3; }
.profile-empty h3 { margin: 18px 0 9px; font-size: 16px; font-weight: 600; }
.profile-empty p { color: var(--app-muted); font-size: 12px; line-height: 20px; margin: 0 auto 18px; max-width: 270px; }
.profile-empty button { max-width: 230px; margin: auto; }
[dir='rtl'] .profile-nav-chevron, [dir='rtl'] #profileBackButton { transform: scaleX(-1); }
@media(max-width:360px) { .profile-settings-page .app-content { padding-inline: 14px; } .profile-settings-page .profile-nav-row { padding-inline: 12px; } .profile-settings-page .profile-user-name { font-size: 15px; } .profile-nav-value { max-width: 35%; } }

.profile-language-option-check { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: transparent; }
.profile-language-option.is-active .profile-language-option-check { background: none; color: var(--app-accent); border: 0; }

body.working-feed-app.profile-settings-page #notificationMarkAllButton { background: none; color: var(--app-accent); border: 0; }
body.working-feed-app.profile-settings-page #notificationIconButton svg { width: 22px; height: 22px; }
body.working-feed-app.profile-settings-page #notificationBadge { top: 3px; right: auto; inset-inline-end: 3px; box-shadow: 0 0 0 2px var(--app-white); }

.profile-company-details { margin-top: 26px; }
.profile-company-details .profile-account-line > :last-child { max-width: 60%; overflow-wrap: anywhere; text-align: end; }
.profile-company-details a { color: var(--app-accent); font-size: 13px; text-decoration: none; }
.profile-company-details .profile-account-line:last-child { border-bottom: 0; }

body.working-feed-app.profile-settings-page #notificationRefreshButton { border: 0; background: none; }
body.working-feed-app.profile-settings-page .notification-inbox-item-actions .profile-wide-btn { flex: none; min-width: 0; color: var(--app-accent); }
.profile-settings-page .notification-inbox-severity { padding: 0; gap: 5px; background: none; color: var(--app-muted); }
.profile-settings-page .notification-inbox-severity::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--app-accent); }
.profile-settings-page .notification-inbox-severity.success::before { background: var(--app-success-text); }
.profile-settings-page .notification-inbox-severity.warning::before { background: var(--app-warning-text); }
.profile-settings-page .notification-inbox-severity.critical::before { background: var(--app-danger-text); }
