/* =========================
   PROFILE THEME (INK / CALM)
   - upgraded visuals
   - profile domain layout + browsing/posts shell
   - NOTE: button sizes stay EXACTLY as your current CSS
========================= */

/* --------------------
   STRONG LIKE FEEDBACK (success only)
   - big heart POP + LIFT + BURST + fade
   - NOT a state indicator; it is an action feedback
   ✅ SINGLE SOURCE OF TRUTH: .post-like + .browse-like
-------------------- */

/* hosts */
.post-like,
.browse-like{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* posts: icon wrapper exists */
.post-like-icon{
  display: inline-block;
}

/* tiny press feel (both) */
.post-like.is-liked-anim .post-like-icon{
  animation: like-icon-press 140ms ease-out;
}
/* browsing/following: the normal like icon is the first img inside the button */
.browse-like.is-liked-anim > img:first-child{
  animation: like-icon-press 140ms ease-out;
}

@keyframes like-icon-press{
  0%   { transform: scale(1); }
  45%  { transform: scale(0.82); }
  100% { transform: scale(1); }
}

/* BIG HEART overlay (both hosts) */
.post-like .like-fx-heart,
.browse-like .like-fx-heart{
  position: absolute;
  right: 0;
  top: 50%;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(0, -50%) scale(0.15);
  transform-origin: 50% 60%;
  filter: drop-shadow(0 18px 36px var(--like-fx-shadow));
}

/* animation starts only when JS adds the trigger class */
.post-like .like-fx-heart.is-fx,
.browse-like .like-fx-heart.is-fx{
  animation: like-heart-lift 520ms cubic-bezier(.16,.9,.18,1);
}

@keyframes like-heart-lift{
  0%   { opacity: 0; transform: translate(0, -50%) scale(0.15); }
  14%  { opacity: 1; transform: translate(0, calc(-50% - 10px)) scale(1.65); }
  32%  { opacity: 1; transform: translate(0, calc(-50% - 12px)) scale(1.15); }
  70%  { opacity: 1; transform: translate(0, calc(-50% - 14px)) scale(1.05); }
  100% { opacity: 0; transform: translate(0, calc(-50% - 18px)) scale(0.90); }
}

/* BURST ring + particles (both hosts) */
.post-like.is-liked-anim::before,
.browse-like.is-liked-anim::before{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;

  transform: translate(0, -50%) scale(0.55);
  animation: like-burst-strong 520ms cubic-bezier(.16,.9,.18,1);

  box-shadow:
    0 0 0 2px var(--like-fx-ring),
    0 0 0 14px var(--like-fx-burst-wide),
    14px -10px 0 0 var(--like-fx-burst-a),
    -16px 6px 0 0 var(--like-fx-burst-b),
    6px 16px 0 0 var(--like-fx-burst-c);
}

@keyframes like-burst-strong{
  0%   { opacity: 0; transform: translate(0, -50%) scale(0.55); }
  16%  { opacity: 1; transform: translate(0, calc(-50% - 10px)) scale(1.05); }
  40%  { opacity: 0.9; transform: translate(0, calc(-50% - 12px)) scale(1.25); }
  100% { opacity: 0; transform: translate(0, calc(-50% - 16px)) scale(1.55); }
}

/* browse card click-safety
   - card itself must clip so top overlays cannot spill into neighbour cards
   - bottom bar and like area may still render their inner visuals normally
*/
.browse-item{
  overflow: hidden !important;
}

.browse-bottombar,
.browse-like{
  overflow: visible !important;
}

/* footer-safe body padding */
body.profile-page {
    padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
}

/* --------------------
   MAIN CONTAINER - ALAP
-------------------- */
.main-container {
    display: flex;
    flex: 1;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow-x: auto;
    min-height: auto;
}

.profile-header{
    position: relative;
    z-index: 1100;
}

/* --------------------
   LANGUAGE SWITCH (i18n)
-------------------- */
.lang-switch{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.lang-current{
    display: none;
}

.lang-menu{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-btn,
.lang-current{
    appearance: none;
    border: 1px solid var(--border-subtle);
    background: var(--surface-panel-muted);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 0.22rem 0.45rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover,
.lang-current:hover{
    color: var(--color-text-main);
    background: var(--surface-control-focus-strong);
    border-color: var(--border-control-emphasis);
}

.lang-btn.is-active,
.lang-switch.is-open .lang-current{
    color: var(--color-text-main);
    background: var(--color-accent-soft);
    border-color: var(--accent-border-medium);
}

/* --------------------
   PROFILE PAGES
-------------------- */
.profile-page .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 1.5rem;
    padding-bottom: calc(var(--footer-h) + 1.5rem + env(safe-area-inset-bottom)) !important;

    width: 100%;
    max-width: var(--app-content-max);
    margin: 0 auto;
}

/* --------------------
   PROFILE HEADER – always one row
-------------------- */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.65rem 0.5rem;

    background-color: var(--color-bg-soft);
    border-bottom: 1px solid var(--border-divider);
    box-shadow: var(--shadow-auth-header);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    width: 100%;
    box-sizing: border-box;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    padding-right: 0;
}

.header-left { justify-content: flex-start; flex-direction: row; }
.header-right { justify-content: flex-end; flex-direction: row; }

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}

/* LOGO */
.header-logo {
    height: 32px;
    flex-shrink: 0;
    filter: var(--filter-auth-logo-shadow);
}

/*
 * Auth header logo is theme-selected by CSS only.
 * Both assets exist in the static shell, so document
 * navigation never requires a runtime src swap.
 */
.header-logo--light {
    display: none;
}

html[data-theme="light"] .header-logo--dark {
    display: none;
}

html[data-theme="light"] .header-logo--light {
    display: block;
}

/* SITE TITLE */
.site-title {
    font-weight: 750;
    font-size: 0.95rem;
    letter-spacing: 0.6px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    opacity: var(--opacity-site-title);
}

/* USERNAME */
.profile-name {
    font-weight: 650;
    font-size: 0.85rem;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    color: var(--text-subtle);
}

/* AUTHENTICATED ACCOUNT MENU
   Canonical component.
   Uses the same theme-aware surface tokens as Profile settings cards.
*/

.profile-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.profile-menu-toggle {
    appearance: none;
    position: relative;
    width: 33px;
    height: 33px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    border:
        1px solid var(--profile-settings-card-border);
    border-radius: 12px;
    background:
        var(--profile-settings-card-surface);
    color:
        var(--color-text-main);
    box-shadow:
        var(--profile-settings-card-shadow);
    -webkit-backdrop-filter:
        var(--profile-settings-card-filter);
    backdrop-filter:
        var(--profile-settings-card-filter);
    cursor: pointer;
    transition:
        transform 0.14s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.profile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background:
        currentColor;
}

.profile-menu-toggle:hover,
.profile-menu-toggle:focus-visible,
.profile-menu-wrap.is-open .profile-menu-toggle {
    outline: none;

    border-color:
        var(--accent-border-medium);

    box-shadow:
        var(--profile-settings-card-shadow);
}

.profile-menu-toggle:active {
    transform:
        scale(0.95);
}

.profile-notification-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid
        var(--status-notification-border);

    border-radius: 999px;

    background:
        var(--status-notification-surface);

    color:
        var(--text-on-status);

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    pointer-events: none;
}

.profile-notification-badge.hidden {
    display: none;
}

.profile-menu-toggle
.profile-notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
}

.profile-menu-item
.profile-notification-badge {
    flex: 0 0 auto;
}

.profile-menu-item-label {
    min-width: 0;
}

.profile-menu {
    display: none;

    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;

    width: min(260px, calc(100vw - 1rem));
    margin: 0;
    padding: 0.45rem;

    flex-direction: column;
    align-items: stretch;
    gap: 0.14rem;

    border:
        1px solid var(--profile-settings-card-border);

    border-radius: 22px;

    background:
        var(--profile-settings-card-surface);

    box-shadow:
        var(--profile-settings-card-shadow);

    -webkit-backdrop-filter:
        var(--profile-settings-card-filter);

    backdrop-filter:
        var(--profile-settings-card-filter);

    z-index: 1200;
}

.profile-menu-wrap.is-open .profile-menu {
    display: flex;
}

.profile-menu-item {
    appearance: none;

    width: 100%;
    min-height: 44px;
    padding: 0.52rem 0.9rem;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;

    border: 1px solid transparent;
    border-radius: 14px;

    background: transparent;

    color: var(--color-text-main);

    font: inherit;
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: right;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.14s ease;
}

.profile-menu a.profile-menu-item,
.profile-menu a.profile-menu-item:link,
.profile-menu a.profile-menu-item:visited {
    color: var(--color-text-main);
    text-decoration: none;
}

/* Generic hover = the greenish/teal hover.
   This is what Reminders should get on hover. */
.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    outline: none;
    transform: translateY(-1px);

    background:
        var(--profile-menu-hover-surface);

    border-color:
        var(--profile-menu-hover-border);

    color:
        var(--color-text-main);
}

/* Logout is the warm accent action in the menu. */
.profile-menu .logout-btn {
    background:
        var(--profile-settings-accent-surface);

    border-color:
        var(--profile-settings-accent-border);

    color:
        var(--color-text-main);

    box-shadow:
        var(--profile-settings-accent-shadow);
}

/* Keep logout orange on hover/focus too. */
.profile-menu .logout-btn:hover,
.profile-menu .logout-btn:focus-visible {
    background:
        var(--profile-settings-accent-surface);

    border-color:
        var(--profile-settings-accent-border-hover);

    color:
        var(--color-text-main);

    box-shadow:
        var(--profile-settings-accent-focus-shadow);
}
/* --------------------
   PROFILE FOOTER (FIXED) – glass + clean active
-------------------- */
.profile-footer {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: var(--footer-h);

    background-color: var(--surface-control-neutral);
    border-top: 1px solid var(--color-border-light);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 1000;
}

.profile-footer .footer-icons {
    display: flex;
    width: 97%;
    height: 100%;
    margin: 0 auto;
}

.profile-footer .footer-btn {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    background: none;
    border: none;
    padding: 0;
    margin: 0;

    cursor: pointer;
    transition: background-color 0.18s ease;
}

.profile-footer a.footer-btn {
    text-decoration: none;
    color: inherit;
}

.profile-footer .footer-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
    opacity: var(--opacity-footer-icon);

    transform: scale(1);
    transition: transform 0.14s ease, opacity 0.18s ease, filter 0.18s ease;
}

.profile-footer .footer-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 1.2;
    text-align: center;

    opacity: var(--opacity-footer-label);
    pointer-events: none;
    transition: opacity 0.18s ease, color 0.18s ease;
}

.profile-footer .footer-btn:hover { background-color: var(--surface-control-neutral); }

.profile-footer .footer-btn:hover img {
    transform: scale(1.07);
}

.profile-footer .footer-btn:active img {
    transform: scale(0.93);
}

.profile-footer .footer-btn.active { background-color: var(--accent-surface-selected); }

.profile-footer .footer-btn.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 82%;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ff8b38;
    pointer-events: none;
}

.profile-footer .footer-btn.active img {
    opacity: 1;
    transform: translateY(-4px) scale(1.17);

    filter: var(--filter-footer-active-icon);
}

.profile-footer .footer-btn.active:hover img {

    transform: translateY(-4px) scale(1.17);

}

.profile-footer .footer-btn.active:active img {

    transform: translateY(-3px) scale(1.10);

}

.profile-footer .footer-btn.active .footer-label {
    opacity: 1;
    color: var(--text-on-selected-accent);
}

.profile-footer .following-new-posts-badge {
    position: absolute;
    top: 7px;
    left: calc(50% + 10px);

    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--status-notification-border);
    border-radius: 999px;
    background: var(--status-notification-surface);
    color: var(--text-on-status);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;

    pointer-events: none;
    z-index: 2;
}

.profile-footer .following-new-posts-badge.hidden {
    display: none;
}

/* --------------------
   PROFILE FORMS (PRIVATE & COMPANY)
-------------------- */
#privateProfileForm,
#companyProfileForm {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;

    background-color: var(--color-bg-box);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#privateProfileForm div,
#companyProfileForm div,
#personalDataExportPanel .form-group {
    display: flex;
    flex-direction: column;
}

#privateProfileForm label,
#companyProfileForm label,
#personalDataExportPanel .form-group label {
    font-weight: 650;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: var(--text-label);
}

#privateProfileForm input,
#companyProfileForm input,
#personalDataExportPanel .form-group input {
    padding: 0.68rem 0.8rem;
    font-size: 0.95rem;

    border-radius: 12px;
    border: 1px solid var(--border-control);

    background-color: var(--surface-control);
    color: var(--color-text-main);

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#privateProfileForm input:focus,
#companyProfileForm input:focus,
#personalDataExportPanel .form-group input:focus {
    outline: none;
    border-color: var(--accent-border-strong);
    box-shadow: var(--ring);
    background-color: var(--surface-control-focus);
}

@media (max-width: 768px) {
    #privateProfileForm input,
    #companyProfileForm input,
    #personalDataExportPanel .form-group input {
        font-size: 16px;
    }
}


#privateProfileForm small,
#companyProfileForm small {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 0.28rem;
}

/* primary action button – calm but premium */
#privateProfileForm button[type="submit"],
#companyProfileForm button[type="submit"],
body.profile-page #composerPostBtn {
    margin-top: 0.35rem;

    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    color: var(--text-on-accent);

    border: none;
    border-radius: 12px;
    padding: 0.72rem 1.2rem;

    font-weight: 850;
    cursor: pointer;

    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    box-shadow: var(--shadow-accent-sm);
}

#privateProfileForm button[type="submit"]:hover,
#companyProfileForm button[type="submit"]:hover,
body.profile-page #composerPostBtn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: var(--shadow-accent-md);
}

#privateProfileForm button[type="submit"]:active,
#companyProfileForm button[type="submit"]:active,
body.profile-page #composerPostBtn:active {
    transform: translateY(0);
}

#privateProfileForm input[readonly],
#companyProfileForm input[readonly] {
    background-color: var(--surface-control-readonly);
    border-color: var(--border-subtle);
    cursor: not-allowed;
    opacity: var(--opacity-readonly-control);
}

/* --------------------
   ACCOUNT NOTE (email cannot be changed)
-------------------- */
#privateProfileForm .account-note,
#companyProfileForm .account-note {
    margin-top: -0.45rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--color-border-light);
}

#privateProfileForm .account-note small,
#companyProfileForm .account-note small {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}



/* --------------------
   ACCOUNT SUBSCRIPTION BOX
-------------------- */
.account-subscription-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 1rem auto;
    padding: 1.2rem 1.35rem;

    background-color: var(--color-bg-box);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);

    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.account-subscription-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.account-subscription-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--color-text-main);
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;

    border-radius: 999px;
    border: 1px solid var(--color-border-light);
    background: var(--surface-subtle);

    color: var(--color-text-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.subscription-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.42rem 0;
}

.subscription-row + .subscription-row {
    border-top: 1px solid var(--border-divider);
}

.subscription-row[hidden],
.subscription-note[hidden],
.subscription-actions[hidden],
.subscription-action-btn[hidden] {
    display: none !important;
}

.subscription-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.subscription-value {
    color: var(--color-text-main);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

.subscription-badge.is-active,
.subscription-value.is-active {
    color: var(--accent-strong);
}

.subscription-badge.is-canceled,
.subscription-value.is-canceled {
    color: var(--color-text-muted);
}

.subscription-badge.is-problem,
.subscription-value.is-problem {
    color: var(--color-error);
}

.subscription-note {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    color: var(--color-text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.subscription-note.is-warning {
    border-color: var(--status-warning-border);
    background: var(--status-warning-surface);
    color: var(--status-warning-text);
}

.subscription-note.is-problem {
    border-color: var(--status-danger-border);
    background: var(--status-danger-surface);
    color: var(--status-danger-text);
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.95rem;
}

.subscription-action-btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 0.72rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--text-on-accent);
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    box-shadow: var(--shadow-sm);
}

.subscription-action-btn.is-secondary {
    color: var(--color-text-main);
    background: var(--surface-secondary-action);
    border: 1px solid var(--border-control);
}

.subscription-action-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 520px) {
    .account-subscription-box {
        padding: 1rem 1rem;
    }

    .account-subscription-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscription-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .subscription-value {
        text-align: center;
    }
}

/* --------------------
   DELETE SECTION – visibly dangerous, but not neon
-------------------- */
.profile-delete-section {
    width: 100%;
    max-width: 520px;
    margin: 1.5rem auto 0 auto;

    padding: 1.35rem;

    border: 1px solid var(--status-danger-border);
    border-radius: var(--radius-md);

    background-color: var(--status-danger-surface);
    text-align: center;
    box-sizing: border-box;

    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-delete-section h3 {
    color: var(--status-danger-strong);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.profile-delete-section p {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.delete-account-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 850;

    color: var(--text-on-accent);
    background: linear-gradient(135deg, var(--status-danger-strong), var(--status-danger-gradient-end));

    border: none;
    border-radius: 12px;

    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.delete-account-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* =========================
   COMPANY CARD (profile)
========================= */
.company-card {
    background: var(--color-bg-box);
    border-radius: var(--radius-md);
    padding: 14px;

    width: 100%;
    max-width: var(--app-content-max);
    box-sizing: border-box;

    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.company-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;

    position: relative;
    flex: 0 0 120px;
}

.company-avatar img,
.company-avatar #companyAvatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;

    border: 1px solid var(--border-control-emphasis);
    box-shadow: var(--shadow-avatar);

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-avatar:hover #companyAvatar {
    transform: scale(1.02);
    box-shadow: var(--shadow-avatar-hover);
}

.company-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    margin-left: auto;
    min-width: 0;
}

.company-name,
.company-city,
.company-line {
    display: block;
    max-width: min(100%, 230px);
    min-width: 0;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.company-name {
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.company-name-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.company-city,
.company-line {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-meta-strong);
}

@media (max-width: 600px) {
    .company-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .company-name,
    .company-city,
    .company-line {
        max-width: min(100%, 210px);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: right;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .company-avatar {
        width: 120px;
        height: 120px;
        flex: 0 0 120px;
    }

    .company-card--public .company-back-btn,
    .company-card--public .avatar-share-btn,
    .company-card--public .avatar-follow-btn {
        min-height: 28px;
        padding: 0.22rem 0.42rem;
        gap: 0.32rem;
    }

    .company-card--public .back-btn-icon,
    .company-card--public .share-btn-icon,
    .company-card--public .follow-btn-icon {
        width: 14px;
        min-width: 14px;
        font-size: 0.9rem;
        line-height: 1;
    }

    .company-card--public .back-btn-text,
    .company-card--public .share-btn-text,
    .company-card--public .follow-btn-text {
        font-size: 0.82rem;
        line-height: 1;
    }
}

/* =========================
   AVATAR – INTERACTIVE UX
========================= */
.avatar-edit-badge {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);

    font-size: 0.72rem;
    padding: 4px 9px;

    background-color: var(--accent-surface-prominent);
    border: 1px solid var(--accent-border-selected);
    color: var(--text-overlay-bright);
    box-shadow: var(--shadow-overlay-control);

    border-radius: 999px;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.15s ease;
}

.company-avatar:hover .avatar-edit-badge { opacity: 1; }

.avatar-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;

    width: 26px;
    height: 26px;
    border-radius: 999px;

    background-color: var(--status-danger-control-surface);
    border: 1px solid var(--status-danger-control-border);
    color: var(--status-danger-control-text);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    line-height: 1;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.12s ease, background-color 0.12s ease;
}

.company-avatar:hover .avatar-remove-btn {
    opacity: 1;
    pointer-events: auto;
}

.avatar-remove-btn:hover {
    transform: scale(1.08);
    background-color: var(--status-danger-control-surface-hover);
}

/* MOBILE: ne legyen mindig kint – csak "aktiv" állapotban (tap/click) */
@media (max-width: 600px) {
  /* alapból rejtve marad */
  .avatar-edit-badge { opacity: 0; }

  .avatar-remove-btn{
    opacity: 0;
    pointer-events: none;

    width: 30px;
    height: 30px;
    font-size: 16px;

    /* erősebb, olvashatóbb megjelenés */
    background-color: var(--status-danger-control-surface-hover);
    border: 1px solid var(--status-danger-control-border-strong);
    color: var(--status-danger-control-text-strong);

    box-shadow: var(--shadow-control-strong);
  }

  /* mobilon hover nincs – tapre fókusz/aktív állapotban mutatjuk */
  .company-avatar:focus-within .avatar-edit-badge,
  .company-avatar:focus-within .avatar-remove-btn,
  .company-avatar:active .avatar-edit-badge,
  .company-avatar:active .avatar-remove-btn{
    opacity: 1;
    pointer-events: auto;
  }
}

/* DEFAULT: rejtve (minden képernyőn) */
.avatar-edit-badge { 
  opacity: 0;
}

.avatar-remove-btn{
  opacity: 0;
  pointer-events: none;
}

/* DESKTOP (hover képes eszközök): hoverre jelenjen meg */
@media (hover: hover) and (pointer: fine){
  .company-avatar:hover .avatar-edit-badge,
  .company-avatar:hover .avatar-remove-btn{
    opacity: 1;
    pointer-events: auto;
  }
}

/* TABLET / TOUCH: tap/focus után jelenjen meg */
.company-avatar:focus-within .avatar-edit-badge,
.company-avatar:focus-within .avatar-remove-btn,
.company-avatar:active .avatar-edit-badge,
.company-avatar:active .avatar-remove-btn{
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   POSTS (company)
   - calm cards, clean grid
   - LOCK: compact add-post spacing
========================= */

/* add-post utility section (NEW) */
.posts-add{
    width: 100%;
    max-width: var(--app-content-max);
    margin-top: 10px; /* less than cards */
}

.posts-add form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 6px 0;  /* 🔥 less vertical air around the button */
}

/* posts cards */
.posts-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 14px;

    background: var(--surface-panel-muted);
    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.posts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.posts-space-between { justify-content: space-between; }

.posts-muted { opacity: var(--opacity-posts-muted); font-size: 13px; color: var(--color-text-muted); }


.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 12px;
}

@media (min-width: 900px) {
    .posts-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 45px;
    }
}

/* keep content width reasonable */
@media (min-width: 900px) {
    .posts-card {
        max-width: var(--app-content-max);
        margin-left: auto;
        margin-right: auto;
    }
}

.post-item .post-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 9px 10px;
    font-size: 13px;

    color: var(--text-secondary);
    background: var(--surface-card-footer);
}

.post-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.like-count { font-size: 13px; line-height: 1; opacity: var(--opacity-like-count); }

.activity-delta {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.activity-delta--up {
  color: var(--activity-positive-text);
  background: var(--activity-positive-surface);
  border: 1px solid var(--activity-positive-border);
}

.activity-delta--down {
  color: var(--activity-negative-text);
  background: var(--activity-negative-surface);
  border: 1px solid var(--activity-negative-border);
}

#companyFollowers {
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

#companyFollowers .followers-total {
  margin-left: 2px;
}

.post-moderation-activity {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 7;
}

.own-post-share-btn {
  overflow: visible;
}

.own-post-share-stats {
  position: absolute;
  top: 31px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;

  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.own-post-share-total {
  min-width: 18px;
  text-align: center;
  color: var(--text-control);
  font-weight: 750;
}


.post-icon {
    width: 15px;
    height: 15px;
    display: block;
    opacity: var(--opacity-post-icon);
}

/* --------------------
   Moderation badges (posts/mine)
-------------------- */
.post-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;

  display: inline-flex;
  align-items: center;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.2px;

  color: var(--text-overlay-control);

  background: var(--surface-floating-control);
  border: 1px solid var(--color-border-light);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.post-badge--hidden{
  background: var(--moderation-review-surface);
}

.post-badge--removed{
  background: var(--moderation-removed-surface);
}

/* disable interactions for moderated posts (likes disabled on /mine) */
.post-like.is-disabled{
  opacity: 0.55;
  pointer-events: none;
}


/* divider (UPDATED: tighter margin) */
.posts-divider {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: var(--border-subtle);
    margin: 10px auto; /* 🔥 less vertical gap */
}

/* -------------------------
   Add post icon button (KEEP EXACT SIZES)
   - unchanged sizes from your current CSS
------------------------- */
.add-post-icon-btn{
  width: 60px;
  height: 60px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;
  border-radius: 0;

  box-shadow: none;
  outline: none;

  cursor: pointer;
  padding: 0;

  transition: transform 0.15s ease;
}

.add-post-icon-btn:hover{
  background: transparent;
  transform: translateY(-1px);
}

.add-post-icon-btn:active{
  transform: scale(0.97);
}

.add-post-icon-btn:focus,
.add-post-icon-btn:focus-visible{
  outline: none;
  box-shadow: none;
}

/* icon (keep your inner circle artwork) */
.add-post-icon{
  width: 45px;
  height: 45px;
  display: block;
  object-fit: contain;
  opacity: var(--opacity-add-post-icon);
}

/* MOBILE – unchanged sizes */
@media (max-width: 768px){
  .add-post-icon-btn{
    width: 60px;
    height: 60px;
  }

  .add-post-icon{
    width: 45px;
    height: 45px;
  }
}







/* === FIX: stable company own-posts spacing on mobile === */
@media (max-width: 768px) {
  .company-profile .main-container {
    padding-bottom: calc(var(--footer-h) + 96px + env(safe-area-inset-bottom)) !important;
  }

  .company-profile .posts-add {
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .company-profile .posts-add form {
    padding: 0;
    gap: 14px;
  }

  .company-profile .posts-divider {
    display: block;
    margin: 0 auto 8px;
  }

  .company-profile #postsMeaning {
    position: static;
    top: auto;
    margin: 0 0 24px;
    text-align: center;
  }

  .company-profile .posts-list {
    margin-top: 0;
  }
}


/* === TUNE: compact own-posts spacing on desktop/tablet === */
@media (min-width: 769px) {
  .company-profile .posts-add {
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .company-profile .posts-add form {
    padding: 0;
    gap: 0;
  }

  .company-profile .posts-divider {
    margin: 18px auto 18px;
  }

  .company-profile #postsMeaning {
    margin-top: 0;
    margin-bottom: 22px;
  }

  .company-profile .posts-list {
    margin-top: 0;
  }
}

/* =========================
   BROWSING (private + company)
   - search + grid + states
   - card layout v2:
     top: company left, follow right (over image)
     bottom: date left, like right (under image)
========================= */

/* main container: browsing needs full width for grid */
.profile-page.browsing-page .main-container,
.profile-page.following-page .main-container{
  width: 100%;
  max-width: 1200px; /* align with posts */
  padding-top: 0.75rem;
}

/* ===== BROWSE AURORA VISUAL TOKENS START ===== */

/*
 * Aurora visual language for Browse + Following only.
 *
 * Same hierarchy in both themes:
 * cyan = primary brand energy
 * orange = special / Deal accent
 * layout remains untouched
 */

/* =========================================================
   SHARED POST ACTION TOKENS
   Company capsule + Share + Report + Remind.
   Available on every authenticated/public profile-page surface.
   ========================================================= */

body.profile-page {
  --post-action-surface: rgba(5, 28, 33, 0.84);
  --post-action-border: rgba(55, 229, 222, 0.44);
  --post-action-text: var(--text-overlay-control);
  --post-action-shadow:
    0 5px 17px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --post-action-filter: blur(10px) saturate(125%);
}

html[data-theme="light"] body.profile-page {
  --post-action-surface:
    linear-gradient(
      180deg,
      rgba(218, 240, 243, 0.92),
      rgba(195, 226, 231, 0.88)
    );
  --post-action-border: rgba(0, 126, 143, 0.58);
  --post-action-text: #0e3139;
  --post-action-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 4px 13px rgba(12, 67, 79, 0.11);
  --post-action-filter: blur(10px) saturate(125%);
}

/* DARK */
body.profile-page.browsing-page,
body.profile-page.following-page {
  --aurora-control-bg: rgba(8, 31, 36, 0.66);
  --aurora-control-bg-hover: rgba(16, 54, 61, 0.78);
  --aurora-control-bg-focus: rgba(15, 61, 68, 0.82);

  --aurora-control-border: rgba(39, 221, 214, 0.42);
  --aurora-control-border-hover: rgba(68, 240, 232, 0.68);
  --aurora-control-border-strong: rgba(83, 247, 238, 0.84);

  --aurora-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 5px 18px rgba(0, 0, 0, 0.16);

  --aurora-focus-shadow:
    0 0 0 1px rgba(39, 221, 214, 0.32),
    0 0 20px rgba(39, 221, 214, 0.22);

  --aurora-card-bg: rgba(5, 27, 32, 0.72);
  --aurora-card-border: rgba(39, 221, 214, 0.42);
  --aurora-card-border-hover: rgba(87, 247, 238, 0.76);

  --aurora-card-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(39, 221, 214, 0.04);

  --aurora-card-shadow-hover:
    0 18px 42px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(39, 221, 214, 0.14);

  --aurora-overlay-bg: rgba(5, 28, 33, 0.84);

--post-action-border: var(--aurora-overlay-border);  --post-action-shadow: var(--aurora-overlay-shadow);  --aurora-overlay-border: rgba(55, 229, 222, 0.44);

  --aurora-overlay-shadow:
    0 5px 17px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --aurora-following-surface:
    linear-gradient(
      180deg,
      rgba(31, 211, 205, 0.34),
      rgba(8, 126, 132, 0.42)
    );

  --aurora-following-border: rgba(83, 247, 238, 0.92);

  --aurora-following-shadow:
    0 0 0 1px rgba(39, 221, 214, 0.26),
    0 0 18px rgba(39, 221, 214, 0.26);




  --aurora-divider: rgba(52, 224, 218, 0.28);
}


/* LIGHT */
html[data-theme="light"] body.profile-page.browsing-page,
html[data-theme="light"] body.profile-page.following-page {
  --aurora-control-bg: rgba(248, 253, 255, 0.64);
  --aurora-control-bg-hover: rgba(235, 251, 253, 0.80);
  --aurora-control-bg-focus: rgba(238, 253, 254, 0.88);

  --aurora-control-border: rgba(0, 158, 173, 0.42);
  --aurora-control-border-hover: rgba(0, 166, 180, 0.66);
  --aurora-control-border-strong: rgba(0, 174, 186, 0.84);

  --aurora-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 5px 18px rgba(24, 99, 111, 0.09);

  --aurora-focus-shadow:
    0 0 0 1px rgba(0, 174, 186, 0.28),
    0 0 18px rgba(0, 174, 186, 0.18);

  --aurora-card-bg: rgba(251, 254, 255, 0.78);
  --aurora-card-border: rgba(0, 154, 170, 0.42);
  --aurora-card-border-hover: rgba(0, 174, 186, 0.72);

  --aurora-card-shadow:
    0 14px 32px rgba(22, 93, 105, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.40);

  --aurora-card-shadow-hover:
    0 18px 38px rgba(22, 93, 105, 0.16),
    0 0 18px rgba(0, 174, 186, 0.13);

  --aurora-overlay-bg: rgba(247, 253, 255, 0.82);

--post-action-border: rgba(0, 126, 143, 0.58);  --post-action-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 4px 13px rgba(12, 67, 79, 0.11);  --aurora-overlay-border: rgba(0, 151, 166, 0.44);

  --aurora-overlay-shadow:
    0 5px 16px rgba(24, 89, 101, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  --aurora-following-surface:
    linear-gradient(
      180deg,
      rgba(64, 231, 224, 0.34),
      rgba(0, 174, 186, 0.20)
    );

  --aurora-following-border: rgba(0, 166, 179, 0.88);

  --aurora-following-shadow:
    0 0 0 1px rgba(0, 174, 186, 0.20),
    0 0 17px rgba(0, 174, 186, 0.17);




  --aurora-divider: rgba(0, 154, 170, 0.28);
}

/* ===== BROWSE AURORA VISUAL TOKENS END ===== */


/* --------------------
   SEARCH BAR
-------------------- */
.browse-search{
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--aurora-divider);
}



.browse-search-row{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#browseSearchInput,
#followSearchInput{
  flex: 1 1 auto;
  min-width: 0;

  padding: 0.25rem 0.50rem;
  font-size: 0.92rem;

  border-radius: 12px;
  border: 1px solid var(--aurora-control-border);

  background: var(--aurora-control-bg);
  color: var(--color-text-main);
  box-shadow: var(--aurora-control-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);

  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#browseSearchInput::placeholder,
#followSearchInput::placeholder{
  color: var(--text-placeholder);
}

#browseSearchInput:focus,
#followSearchInput:focus{
  outline: none;
  border-color: var(--aurora-control-border-strong);
  box-shadow: var(--aurora-focus-shadow);
  background: var(--aurora-control-bg-focus);
}

@media (max-width: 768px){
  #browseSearchInput,
  #followSearchInput{
    font-size: 16px;
  }
}


/* clear button – small, calm */
#browseClearBtn,
#followClearBtn{
  flex: 0 0 auto;

  width: 27px;
  height: 27px;

  border-radius: 12px;
  border: 1px solid var(--color-border-light);

  background: var(--surface-subtle);
  color: var(--text-control);

  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#browseClearBtn:hover,
#followClearBtn:hover{
  transform: translateY(-1px);
  background: var(--accent-surface-soft);
  border-color: var(--accent-border-selected);
}

#browseClearBtn:active,
#followClearBtn:active{
  transform: translateY(0);
}

.browse-hint{
  margin: 0 2px 5px 0.50rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  opacity: var(--opacity-browse-hint);
}

/* --------------------
   LOADING (skeleton-ish)
-------------------- */
.browse-loading{
  width: 100%;
  max-width: 1200px;
  margin-top: 14px;

  padding: 14px;
  border-radius: var(--radius-md);

  background: var(--surface-panel-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loading-line{
  height: 12px;
  border-radius: 999px;
  background: var(--skeleton-line-surface);
  border: 1px solid var(--skeleton-border);
}

.loading-line + .loading-line{
  margin-top: 10px;
}

/* --------------------
   EMPTY STATE
-------------------- */
.browse-empty{
  width: 100%;
  max-width: 1200px;
  margin-top: 14px;

  padding: 18px 16px;
  border-radius: var(--radius-md);

  background: var(--surface-panel-muted);
  border: 1px dashed var(--border-strong);

  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  text-align: center;
}

.browse-empty h3{
  margin: 0 0 6px 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.browse-empty p{
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.browse-error{
  border-style: solid;
  border-color: var(--status-danger-border-soft);
  background: var(--status-danger-surface-soft);
}

.browse-error h3{
  margin: 0 0 6px 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.browse-error p{
  margin: 0;
}

.browse-retry-btn{
  margin-top: 14px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-surface-soft);
  color: var(--color-text-main);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.browse-retry-btn:hover{
  transform: translateY(-1px);
  background: var(--accent-surface-hover);
  border-color: var(--accent-border-hover);
}

.browse-retry-btn:active{
  transform: translateY(0);
}

/* --------------------
   GRID (matches posts-list behavior)
-------------------- */
.browse-grid{
  width: 100%;
  max-width: 1200px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;

  margin-top: 14px;
}

@media (min-width: 900px){
  .browse-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
  }
}

/* =========================
   BROWSE SKELETON CARD
========================= */
.browse-item.is-skeleton{
  pointer-events: none;
}

.browse-item.is-skeleton:hover{
  transform: none;
  border-color: var(--border-subtle);
}

.browse-item.is-skeleton .browse-topbar,
.browse-item.is-skeleton .browse-bottombar{
  pointer-events: none;
}

.browse-skeleton-pill,
.browse-skeleton-icon,
.browse-skeleton-image,
.browse-skeleton-date,
.browse-skeleton-like-count{
  position: relative;
  overflow: hidden;
  background: var(--skeleton-surface);
  border: 1px solid var(--skeleton-border);
}

.browse-skeleton-pill::after,
.browse-skeleton-icon::after,
.browse-skeleton-image::after,
.browse-skeleton-date::after,
.browse-skeleton-like-count::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    var(--skeleton-shimmer-clear) 0%,
    var(--skeleton-shimmer-soft) 45%,
    var(--skeleton-shimmer-strong) 50%,
    var(--skeleton-shimmer-soft) 55%,
    var(--skeleton-shimmer-clear) 100%
  );
  animation: browseSkeletonShimmer 1.25s ease-in-out infinite;
}

.browse-skeleton-pill{
  height: 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-skeleton-pill);
}

.browse-skeleton-pill--company{
  width: min(62%, 180px);
}

.browse-skeleton-icon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.browse-skeleton-image{
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.browse-skeleton-date{
  height: 14px;
  width: 92px;
  border-radius: 999px;
}

.browse-skeleton-like-count{
  height: 14px;
  width: 30px;
  border-radius: 999px;
}

.browse-item.is-skeleton .post-like{
  gap: 8px;
}

@keyframes browseSkeletonShimmer{
  100%{
    transform: translateX(100%);
  }
}

/* =========================
   BROWSE ITEM CARD (v2)
========================= */

.browse-item{
  width: 100%;
  border: 1px solid var(--aurora-card-border);
  border-radius: var(--radius-md);
  overflow: hidden !important;
  position: relative;
  isolation: isolate;
  padding-top: 52px;
  background: var(--aurora-card-bg);
  box-shadow: var(--aurora-card-shadow);

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);

  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover){
  .browse-item:hover{
    transform: translateY(-2px);
    border-color: var(--aurora-card-border-hover);
    box-shadow: var(--aurora-card-shadow-hover);
  }
}

/* top overlay bar */
.browse-topbar{
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  z-index: 5;

  pointer-events: none; /* only follow button clickable */
}

.browse-company {
  pointer-events: auto;
  cursor: pointer;
  max-width: calc(100% - 50px);

  padding: 6px 10px;
  border-radius: 999px;

  background: var(--post-action-surface);
  border: 1px solid var(--post-action-border);

  font-weight: 850;
  letter-spacing: 0.2px;
  font-size: 0.86rem;

  color: var(--post-action-text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  box-shadow: var(--post-action-shadow);
  -webkit-backdrop-filter: var(--post-action-filter);
  backdrop-filter: var(--post-action-filter);
}

/* follow button */
.browse-follow-btn{
  pointer-events: auto;

  min-height: 32px;
  padding: 0.34rem 0.58rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;

  border-radius: 999px;
  border: 1px solid var(--aurora-overlay-border);

  background: var(--aurora-overlay-bg);
  color: var(--text-overlay-control-strong);
  cursor: pointer;
  white-space: nowrap;

  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  box-shadow: var(--aurora-overlay-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
}

.browse-follow-btn:hover{
  transform: translateY(-1px);
  background: var(--aurora-control-bg-hover);
  border-color: var(--aurora-control-border-hover);
}

.browse-follow-btn:active{
  transform: translateY(0);
}

.browse-follow-btn.is-following{
  background: var(--aurora-following-surface);
  border-color: var(--aurora-following-border);
  box-shadow: var(--aurora-following-shadow);
}

.browse-follow-btn:focus,
.browse-follow-btn:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

.browse-follow-btn .follow-btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.browse-follow-btn .follow-btn-text{
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.browse-call-btn{
  pointer-events: auto;

  width: 26px;
  height: 26px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  color: var(--text-overlay-control);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;

  transition: transform 0.18s ease, color 0.18s ease;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.browse-call-btn:hover{
  transform: translateY(-1px);
  background: var(--accent-surface-soft);
  border-color: var(--accent-border-selected);
  color: var(--text-overlay-control-active);
}

.browse-call-btn:active{
  transform: translateY(0);
}

.browse-call-btn:focus,
.browse-call-btn:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

.browse-call-btn .call-btn-icon{
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.browse-call-btn .call-btn-text{
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* post image */
.browse-image{
  width: 100%;
  height: auto;
  display: block;
}

/* bottom meta bar */
.browse-bottombar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 10px;

  background: var(--surface-card-footer);
  border-top: 1px solid var(--border-subtle);

  color: var(--text-secondary);
  font-size: 0.82rem;
}

.browse-date{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-meta);
}

/* ✅ browse-like is ONLY a layout button (no FX CSS here) */
.browse-like{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;

  color: inherit;
  font: inherit;
  cursor: pointer;
}

.browse-like .like-count{
  font-size: 0.84rem;
  line-height: 1;
  opacity: var(--opacity-like-count);
}

/* --------------------
   ICON HARD LIMITS (prevents huge PNGs)
-------------------- */
.browse-topbar img,
.browse-bottombar img:not(.like-fx-heart){
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  display: block;
  opacity: var(--opacity-browse-card-icon);
}

/* like icon slightly smaller */
.browse-like img:not(.like-fx-heart){
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
  opacity: var(--opacity-browse-like-icon);
}

/* --- Company public view tweaks --- */

.ccv-post-skeleton{
  pointer-events: none;
}

.ccv-post-skeleton .post-meta{
  align-items: center;
}

.ccv-skeleton-block{
  position: relative;
  overflow: hidden;
  background: var(--skeleton-surface);
  border: 1px solid var(--skeleton-border);
}

.ccv-skeleton-block::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    var(--skeleton-shimmer-clear) 0%,
    var(--skeleton-shimmer-soft) 45%,
    var(--skeleton-shimmer-strong) 50%,
    var(--skeleton-shimmer-soft) 55%,
    var(--skeleton-shimmer-clear) 100%
  );
  animation: browseSkeletonShimmer 1.25s ease-in-out infinite;
}

.ccv-skeleton-image{
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
}

.ccv-skeleton-date{
  width: 88px;
  height: 14px;
  border-radius: 999px;
}

.ccv-skeleton-like-count{
  width: 28px;
  height: 14px;
  border-radius: 999px;
}

.ccv-skeleton-like-icon{
  width: 15px;
  height: 15px;
  border-radius: 999px;
}

.company-card--public .company-card-inner--public {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-avatar--view {
  cursor: default;
}

.company-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-follow-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.company-follow-btn:hover {
  background: var(--color-bg-soft);
}

.posts-card--public #companyLoading {
  margin-bottom: 10px;
}

/* Ensure public post cards have no delete overlay if your CSS has it */
.posts-list--public .post-delete,
.posts-list--public .post-delete-btn,
.posts-list--public .delete-overlay,
.posts-list--public .posts-delete {
  display: none !important;
}

/* public post item should not use "active" states */
.post-item--public.is-active .post-actions {
  display: none !important;
}


/* Card positioning base */
.company-card--public {
  position: relative;
  padding-top: 52px;
}

/* === BACK BUTTON (top-left column) === */
.company-back-btn {
  position: absolute;
  left: 11px;
  top: 14px;

  min-height: 28px;
  padding: 0.22rem 0.42rem;

  border: 1px solid var(--color-border-light);
  border-radius: 999px;

  background: var(--surface-card-navigation-control);
  color: var(--text-card-navigation-control);

  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.company-back-btn:hover {
  background: var(--surface-control-hover);
}

.company-back-btn:focus,
.company-back-btn:focus-visible {
  outline: none;
}

.company-back-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* === SHARE BUTTON (left of follow) === */
.avatar-share-btn {
  position: absolute;
  right: 112px;
  top: 14px;
  left: auto;
  bottom: auto;

  min-height: 28px;
  padding: 0.22rem 0.42rem;

  border: 1px solid var(--color-border-light);
  border-radius: 999px;

  background: var(--surface-overlay-action);
  color: var(--text-overlay-control);

  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.avatar-share-btn:hover {
  background: var(--surface-control-hover);
  border-color: var(--border-control-hover);
  transform: translateY(-1px);
}

.avatar-share-btn:focus,
.avatar-share-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.share-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.share-btn-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* === FOLLOW BUTTON (same column, bottom) === */
.avatar-follow-btn {
  position: absolute;
  right: 11px;
  top: 14px;
  left: auto;
  bottom: auto;

  min-height: 28px;
  padding: 0.22rem 0.42rem;

  border: 1px solid var(--color-border-light);
  border-radius: 999px;

  background: var(--surface-overlay-action);
  color: var(--text-overlay-control);

  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.avatar-follow-btn:hover {
  background: var(--surface-control-hover);
  border-color: var(--border-control-hover);
  transform: translateY(-1px);
}

.avatar-follow-btn:focus,
.avatar-follow-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

html:not([data-theme="light"])
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-follow-btn.is-following {
  background:
    linear-gradient(
      180deg,
      rgba(31, 211, 205, 0.34),
      rgba(8, 126, 132, 0.42)
    );

  border-color: rgba(83, 247, 238, 0.92);
  color: #f2fbfb;

  box-shadow:
    0 0 0 1px rgba(39, 221, 214, 0.26),
    0 0 18px rgba(39, 221, 214, 0.26);
}

html[data-theme="light"]
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-follow-btn.is-following {
  background:
    linear-gradient(
      180deg,
      rgba(64, 231, 224, 0.34),
      rgba(0, 174, 186, 0.20)
    );

  border-color: rgba(0, 166, 179, 0.88);
  color: #0b3038;

  box-shadow:
    0 0 0 1px rgba(0, 174, 186, 0.20),
    0 0 17px rgba(0, 174, 186, 0.17);
}

.follow-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.follow-btn-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ----------------------------
   Field-level validation
---------------------------- */
.field-error {
  border-color: var(--status-field-error) !important;
  outline: none;
}

.field-error-text {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--status-field-error);
}

/* =========================
   Following: tabs (Following | Liked)
========================= */

.follow-tabs {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
  margin: 10px auto 8px;
  padding-top: 0;
  border-top: 0;
}

/* pill buttons */
.follow-tab {
  appearance: none;
  border: 1px solid var(--border-control);
  background: var(--surface-control);
  color: inherit;
  font: inherit;

  padding: 4px 9px;
  border-radius: 12px;

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.follow-tab:hover {
  background: var(--surface-control-neutral);
  border-color: var(--border-control-emphasis);
}

.follow-tab:active {
  transform: translateY(1px);
}

.follow-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-neutral);
}

/* active tab */
.follow-tab.is-active {
  background: var(--surface-follow-tab-active);
  border-color: var(--border-follow-tab-active);
  opacity: 1;
}

/* inactive = slightly less dominant */
.follow-tab:not(.is-active) {
  opacity: var(--opacity-follow-tab-inactive);
}

/* Make search a bit less visually dominant than tabs */
.follow-search--subtle {
  margin-top: 10px;
}

.follow-search--subtle .browse-hint {
  opacity: var(--opacity-follow-search-hint);
}

/* Small-screen: keep tabs comfy */
@media (max-width: 420px) {
  .follow-tabs {
    gap: 36px;
  }
  .follow-tab {
    padding: 4px 9px;
  }
}


.back-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  font-size: 0.95rem;
  font-weight: 800;
}

.back-btn-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.browse-meaning {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: var(--opacity-browse-meaning);
}

.browse-meaning--hero {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  opacity: 1;
}

.follow-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.follow-tab-meta {
  font-size: 0.66rem;
  line-height: 1.1;
  opacity: var(--opacity-follow-tab-meta);
  font-weight: 500;
}

#followMeaningTop {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

#followMeaningBottom {
  margin: 12px 0 0;
  text-align: center;
}

#postsMeaning {
  margin: 12px 0 0;
}



.company-type-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.company-type-option {
    min-height: 74px;
    border: 1px solid var(--border-control);
    border-radius: 14px;
    background: var(--surface-control);
    color: var(--color-text-main);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.company-type-option img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: var(--opacity-company-type-option-icon);
}


@media (hover: hover) {
    .company-type-option:hover,
    body.profile-page .posts-add .post-mood-option:hover {
        transform: translateY(-1px);
        border-color: var(--accent-border-medium);
    }
}

@media (max-width: 520px) {
    .company-type-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.browse-company{
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.browse-company-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-type-badge{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: none;
}

.browse-type-badge img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: var(--opacity-browse-type-badge-icon);
}


/* =========================
   CONTACT CARD TYPE BADGE (header)
   ========================= */

.company-name{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 230px);
  text-align: right;
}

.company-type-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  flex-shrink: 0;

  border-radius: 0;
  background: transparent;
  border: none;
}

/* compact inline company type icon */
.company-type-badge img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: var(--opacity-company-type-badge-icon);
}



/* =========================
   TYPE + MOOD FILTER CHIPS
   ========================= */


.browse-filter-toggle{
  flex: 0 0 auto;
  border: 1px solid var(--aurora-control-border);
  background: var(--aurora-control-bg);
  box-shadow: var(--aurora-control-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
  color: var(--text-subtle);
  border-radius: 12px;
  min-height: auto;
  padding: 0.25rem 0.50rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font: inherit;
  font-size: 0.80rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}


@media (hover: hover){
  .browse-filter-toggle:hover{
    color: var(--text-control-hover);
    border-color: var(--aurora-control-border-hover);
    background: var(--aurora-control-bg-hover);
  }
}

.browse-filter-toggle:active{
  opacity: 0.82;
}

.browse-filter-panel.is-collapsed{
  display: none;
}

.browse-filter-panel.is-expanded{
  display: flex;
}

.browse-filter-panel{
  width: 100%;
  max-width: 1200px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.browse-filter-group{
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.browse-filter-group::-webkit-scrollbar{
  display: none;
}

.browse-filter-chip{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--aurora-control-border);
  background: var(--aurora-control-bg);
  box-shadow: var(--aurora-control-shadow);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  backdrop-filter: blur(9px) saturate(120%);
  color: var(--text-label);
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.browse-filter-chip img{
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  object-fit: contain;
  opacity: var(--opacity-filter-chip-icon);
}

@media (hover: hover){
  .browse-filter-chip:hover{
    transform: translateY(-1px);
    border-color: var(--aurora-control-border-hover);
    background: var(--aurora-control-bg-hover);
  }
}

.browse-filter-chip:active{
  transform: translateY(0);
}

@media (min-width: 900px){
  .browse-filter-panel{
    gap: 8px;
  }
}

/* center filter rows on wide screens, keep safe horizontal scroll on mobile */
.browse-filter-group{
  justify-content: center;
}

@media (max-width: 720px){
  .browse-filter-group{
    justify-content: flex-start;
  }

  .browse-filter-chip{
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  .browse-filter-chip img{
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
  }
}

/* compact + centered filter engine */
.browse-filter-panel{
  justify-content: center;
  text-align: center;
}

.browse-filter-group{
  justify-content: center;
}

@media (max-width: 700px){
  .browse-filter-panel{
    gap: 8px;
  }

  .browse-filter-group{
    gap: 6px;
  }

  .browse-filter-chip{
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .browse-filter-chip img{
    width: 13px;
    height: 13px;
    max-width: 13px;
    max-height: 13px;
  }
}

/* TYPE + MOOD filter active state */
.browse-filter-chip.is-active img {
  opacity: 1;
  transform: scale(1.04);
}

.browse-filter-chip.is-active::after {
  content: "✓";
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: var(--opacity-filter-active-mark);
}

/* Post mood badge on cards */


/* === MOOD ICON OVERLAY – FINAL CLEAN VERSION === */

.browse-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.browse-image-wrap .browse-image,
.browse-image-wrap .post-image {
  width: 100%;
  display: block;
}

/* === POST IMAGE HOLD-TO-INSPECT ===
   Hold ~300 ms -> 2x image.
   Drag while holding -> inspect details.
   Release -> return to the original fixed image. */

.post-image,
.browse-image,
#publicPostImage {
  touch-action: manipulation;

  user-select: none;
  -webkit-user-select: none;

  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.post-image.is-post-image-inspecting,
.browse-image.is-post-image-inspecting,
#publicPostImage.is-post-image-inspecting {
  transform-origin:
    var(--post-image-inspect-origin-x, 50%)
    var(--post-image-inspect-origin-y, 50%);

  transform:
    translate3d(
      var(--post-image-inspect-x, 0px),
      var(--post-image-inspect-y, 0px),
      0
    )
    scale(2);

  will-change: transform;
}

.post-image.is-post-image-inspect-resetting,
.browse-image.is-post-image-inspect-resetting,
#publicPostImage.is-post-image-inspect-resetting {
  transition:
    transform 150ms cubic-bezier(.22,.78,.2,1);
}

.post-flip-stage.is-image-inspecting {
  cursor: grabbing;
}

/* Standalone public post also clips inspect to its image viewport. */
.public-post-image-wrap {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .post-image.is-post-image-inspect-resetting,
  .browse-image.is-post-image-inspect-resetting,
  #publicPostImage.is-post-image-inspect-resetting {
    transition: none !important;
  }
}

/* === POST FLIP MEDIA SURFACE ===
   Only the media surface rotates.
   Card actions and metadata stay outside this component. */

.post-flip-stage {
  --post-flip-accent: #ff8b38;
  --post-flip-back-font-size: 32px;
  --post-flip-back-line-height: 46px;

  position: relative;
  display: block;
  width: 100%;

  perspective: 1400px;
  -webkit-perspective: 1400px;

  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;

  cursor: grab;
}

.post-flip-stage.is-dragging {
  cursor: grabbing;
}

.post-flip-rotator {
  position: relative;
  display: block;
  width: 100%;

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;

  transform-origin: 50% 50%;
  will-change: transform;
}

.post-flip-face {
  width: 100%;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.post-flip-face--front {
  position: relative;
  display: block;
  z-index: 1;
  pointer-events: auto;
}

.post-flip-face--front > .browse-image,
.post-flip-face--front > .post-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-flip-face--back {
  position: absolute;
  inset: 0;
  z-index: 1;

  transform: rotateY(180deg);

  background:
    var(--profile-settings-card-surface);

  color:
    var(--color-text-main);

  box-shadow:
    inset 0 0 0 1px
    var(--profile-settings-card-border);

  overflow: hidden;
  pointer-events: none;
}

.post-flip-stage.is-back
.post-flip-face--front {
  pointer-events: none;
}

.post-flip-stage.is-back
.post-flip-face--back {
  pointer-events: auto;
}

.post-flip-back-text {
  position: absolute;

  top: 12%;
  right: 12%;
  bottom: 12%;
  left: 12%;

  overflow: hidden;

  color: inherit;

  font-family: inherit;
  font-size:
    var(--post-flip-back-font-size);
  font-weight: 400;
  line-height:
    var(--post-flip-back-line-height);

  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;

  text-align: left;
}

/* Half-width orange state rail:
   left = front, right = back. */
.post-flip-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 4px;

  z-index: 4;
  overflow: hidden;

  pointer-events: none;
}

.post-flip-indicator-bar {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 50%;
  height: 100%;

  display: block;

  border-radius: 999px;

  background:
    var(--post-flip-accent);

  box-shadow:
    0 0 10px rgba(255, 139, 56, 0.38);

  will-change: transform;
}

/* Bottom-centre front/back switch.
   No numbers: position alone communicates the side. */
.post-flip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  appearance: none;
  -webkit-appearance: none;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 999px;

  background: transparent;

  cursor: pointer;
}

.post-flip-toggle-track {
  position: relative;

  width: 38px;
  height: 22px;

  display: block;

  box-sizing: border-box;

  padding: 2px;

  border:
    1px solid
    var(--post-flip-toggle-track-border);

  border-radius: 999px;

  background:
    var(--post-flip-toggle-track-surface);

  box-shadow:
    var(--post-flip-toggle-track-shadow);

  backdrop-filter:
    var(--post-flip-toggle-track-filter);

  -webkit-backdrop-filter:
    var(--post-flip-toggle-track-filter);
}

.post-flip-toggle-thumb {
  width: 16px;
  height: 16px;

  display: block;

  border-radius: 50%;

  background:
    var(--post-flip-toggle-thumb-surface);

  box-shadow:
    var(--post-flip-toggle-thumb-shadow);

  will-change: transform;
}

.post-flip-toggle:focus {
  outline: none;
}

.post-flip-toggle:focus-visible
.post-flip-toggle-track {
  box-shadow:
    var(--post-flip-toggle-track-shadow),
    var(--ring);
}

/* Grid tiles stay thumbnails.
   Their cloned large preview leaves this grid ancestor,
   so the flip controls become visible there automatically. */
/* Flip toggle belongs to the card footer, not the image. */
.post-meta.has-post-flip-toggle,
.browse-bottombar.has-post-flip-toggle {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;
}

.post-meta.has-post-flip-toggle
> :first-child,
.browse-bottombar.has-post-flip-toggle
> :first-child {
  justify-self: start;
}

.post-meta.has-post-flip-toggle
.post-flip-toggle,
.browse-bottombar.has-post-flip-toggle
.post-flip-toggle {
  justify-self: center;
}

.post-meta.has-post-flip-toggle
.post-like,
.browse-bottombar.has-post-flip-toggle
.browse-like {
  justify-self: end;
}

.posts-list.is-grid-view
.post-flip-indicator,
.posts-list.is-grid-view
.post-flip-toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .post-flip-rotator,
  .post-flip-indicator-bar,
  .post-flip-toggle-thumb {
    transition: none !important;
  }
}

.post-mood-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.post-mood-badge img {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}

.post-mood-badge--overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 20;

  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* Mobile filter chip scroll fix:
   keep the first chips reachable on narrow screens. */
@media (max-width: 720px){
  .browse-filter-group{
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-left: 12px;
    padding-right: 12px;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .browse-filter-group::after{
    content: "";
    flex: 0 0 12px;
  }
}


/* Browse/content separator */
.browse-filter-separator{
  width: 100%;
  max-width: 1200px;
  height: 1px;
  margin: 12px auto 6px;
  background: linear-gradient(
    to right,
    transparent,
    var(--aurora-divider),
    transparent
  );
}

/* === POSTS PAGE: remove outer container card === */
.posts-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* === POSTS PAGE: post cards match browsing cards === */
.posts-list .post-item,
.post-preview-content .post-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden !important;
  position: relative;
  isolation: isolate;
  background: var(--surface-card-muted);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .posts-list .post-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border-soft);
  }
}

.posts-list .browse-image-wrap {
  border-radius: 0;
}

/* === MOBILE CONTENT WIDTH LOCK === */
@media (max-width: 520px) {
  /* language switch mobile dropdown */
  .lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
  }

  .lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 64px;
    padding: 0.35rem;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--surface-language-menu);
    box-shadow: var(--shadow-language-menu);
  }

  .lang-switch.is-open .lang-menu {
    display: flex;
  }

  .lang-menu .lang-btn {
    width: 100%;
    text-align: center;
  }

  .profile-page .main-container {
    width: 100%;
    box-sizing: border-box;
    padding-left: calc(5px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right));
    overflow-x: hidden;
  }

  .profile-header,
  .posts-card,
  .posts-list,
  .company-card {
    width: 100%;
    box-sizing: border-box;
  }
}

.post-explain {
  font-size: 12px;
  color: var(--text-moderation-explain);
  margin-top: 6px;
  text-align: center;
}

/* === Company profile introduction editor === */
.company-bio-field textarea {
  width: 100%;
  min-height: 132px;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.5;
  font: inherit;

  padding: 0.68rem 0.8rem;

  border-radius: 12px;
  border: 1px solid var(--border-control);

  background-color: var(--surface-control);
  color: var(--color-text-main);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.company-bio-field textarea:focus {
  outline: none;
  border-color: var(--accent-border-strong);
  box-shadow: var(--ring);
  background-color: var(--surface-control-focus);
}

.company-bio-field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-bio-field-meta > :first-child {
  flex: 1;
}

.company-bio-counter {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-counter-muted);
}

.company-bio-counter.is-near-limit {
  color: var(--status-limit-warning-text);
}

@media (max-width: 600px) {
  .company-bio-field-meta {
    flex-direction: column;
    gap: 5px;
  }

  .company-bio-counter {
    align-self: flex-end;
  }
}


/* === Company public website / external link === */

.company-website-line {
  padding: 2px 8px 8px;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text-control);
}

.company-website-line[hidden] {
  display: none;
}

.company-website-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.company-website-link::before {
  content: "↗";
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.92em;
  line-height: 1;
}

.company-website-link:hover,
.company-website-link:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* === UX: clickable company phone and address links === */
.company-phone-link,
.company-address-link {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.company-phone-link:hover,
.company-phone-link:focus-visible,
.company-address-link:hover,
.company-address-link:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* === UX: call action on public company post cards === */
.ccv-post-call-btn {
  position: absolute;
  top: 65px;
  right: 8px;
  z-index: 6;
}

/* === UX: share action on public company post cards === */
.ccv-post-share-btn {
  position: absolute;
  top: 113px;
  right: 8px;
  z-index: 6;

  width: 26px;
  height: 26px;
  padding: 0;

  border: 1px solid var(--post-action-border);
  border-radius: 50%;

  background: var(--post-action-surface);
  color: var(--post-action-text);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-sizing: border-box;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
  box-shadow: var(--post-action-shadow);
  -webkit-backdrop-filter: var(--post-action-filter);
  backdrop-filter: var(--post-action-filter);
}

.ccv-post-share-btn:hover {
  background: var(--post-action-surface);
  border-color: var(--post-action-border);
  transform: translateY(-1px);
}

.ccv-post-share-btn:focus,
.ccv-post-share-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.ccv-post-share-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* === Share expansion: browsing and own company posts === */
.browse-post-share-btn {
  top: 113px;
}

.own-post-share-btn {
  top: 65px;
}

.company-card--own {
  position: relative;
  padding-top: 52px;
}

.company-card--own .own-company-share-btn {
  top: 14px;
  right: 11px;
  left: auto;
}

/* === Liked / saved post share action === */
.liked-post-share-btn {
  top: 113px;
}

/* === UX: call action overlay on post images === */
.browse-call-btn--overlay {
  position: absolute;
  top: 65px;
  right: 8px;
  z-index: 6;
}

/* === COMPANY/PUBLIC POSTS: dual view toolbar + grid preview modal === */
.company-profile .posts-view-toolbar,
.public-view .posts-view-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
}

.company-profile .posts-view-toolbar.hidden,
.public-view .posts-view-toolbar.hidden {
  display: none;
}

.company-profile .posts-view-btn,
.public-view .posts-view-btn {
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface-control);
  color: var(--color-text-main);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.company-profile .posts-view-btn.is-active,
.public-view .posts-view-btn.is-active {
  border-color: var(--accent-border-selected);
  background: var(--accent-surface-hover);
}

.company-profile .posts-list.is-grid-view,
.public-view .posts-list.is-grid-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.company-profile .posts-list.is-grid-view .post-item,
.public-view .posts-list.is-grid-view .post-item {
  cursor: pointer;
}

.company-profile .posts-list.is-grid-view .post-actions,
.company-profile .posts-list.is-grid-view .post-meta,
.company-profile .posts-list.is-grid-view .post-badge,
.company-profile .posts-list.is-grid-view .post-explain,
.company-profile .posts-list.is-grid-view .ccv-post-menu-btn,
.company-profile .posts-list.is-grid-view .ccv-post-menu,
.public-view .posts-list.is-grid-view .post-actions,
.public-view .posts-list.is-grid-view .post-meta,
.public-view .posts-list.is-grid-view .post-badge,
.public-view .posts-list.is-grid-view .post-explain,
.public-view .posts-list.is-grid-view .ccv-post-menu-btn,
.public-view .posts-list.is-grid-view .ccv-post-menu {
  display: none;
}

.company-profile .posts-list.is-grid-view .post-image,
.public-view .posts-list.is-grid-view .post-image {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (min-width: 700px) {
  .company-profile .posts-list.is-grid-view,
  .public-view .posts-list.is-grid-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1100px) {
  .company-profile .posts-list.is-grid-view,
  .public-view .posts-list.is-grid-view {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.post-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.post-preview-modal.hidden {
  display: none;
}

.post-preview-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-preview);
}

.post-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.post-preview-close {
  position: absolute;
  top: 26px;
  right: 8px;
  z-index: 30;

  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background: var(--surface-preview-close);
  backdrop-filter: blur(4px);

  color: var(--text-neutral-strong);

  font-size: 16px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
}

.post-preview-content .post-item {
  margin: 0;
}

.post-preview-content
.post-item
.post-meta {
  background:
    transparent;

  background-color:
    transparent;

  border-top:
    1px solid var(--border-subtle);
}

.company-profile .posts-view-toolbar.is-floating,
.public-view .posts-view-toolbar.is-floating {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  margin: 0;
}

/*
 * Mobile authenticated pages use a fixed header.
 * Keep the floating post view switch below that header,
 * including the installed-PWA safe area.
 */
@media (max-width: 768px) {
  .company-profile .posts-view-toolbar.is-floating {
    top: calc(
      53px
      + env(safe-area-inset-top)
      + 8px
    );
    z-index: 1000;
  }
}

.public-view .post-preview-close {
  top: 39px;
}

/* --------------------
   Account Recovery / Email Change UI
-------------------- */
.account-email-field small {
  display: block;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.account-email-field #changeEmailBtn {
  width: 100%;
  margin-top: 0.25rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--overlay-backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-card.change-email-dialog {
  width: min(100%, 460px);
  padding: 1.45rem;
  border-radius: 22px;
  border: 1px solid var(--border-control);
  background: var(--surface-modal);
  box-shadow: var(--shadow-modal);
  color: var(--color-text-main);
}

.change-email-dialog h2 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  line-height: 1.2;
}

.change-email-dialog .muted {
  margin: 0 0 1.05rem;
  color: var(--text-subtle);
  line-height: 1.45;
  font-size: 0.92rem;
}

.change-email-dialog label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
}

.change-email-dialog input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-control-strong);
  background: var(--surface-subtle);
  color: var(--color-text-main);
  outline: none;
  font-size: 0.98rem;
}

.change-email-dialog input:focus {
  border-color: var(--accent-border-strong);
  box-shadow: var(--ring);
  background: var(--surface-control-focus-strong);
}

.change-email-dialog .form-error {
  margin: 0.85rem 0 0;
  color: var(--color-error);
  font-size: 0.88rem;
  line-height: 1.4;
}

.change-email-dialog .form-error.hidden {
  display: none !important;
}

.change-email-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.change-email-dialog .btn-primary,
.change-email-dialog .btn-secondary {
  appearance: none;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
}

.change-email-dialog .btn-primary {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: var(--text-on-accent-deep);
  border-color: transparent;
}

.change-email-dialog .btn-secondary {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.change-email-dialog .btn-primary[disabled] {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 520px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 0.85rem;
  }

  .modal-card.change-email-dialog {
    border-radius: 20px;
  }

  .change-email-dialog .dialog-actions {
    flex-direction: column-reverse;
  }

  .change-email-dialog .btn-primary,
  .change-email-dialog .btn-secondary {
    width: 100%;
  }
}

/* === SIMINEO action rail alignment === */
.post-item--public .browse-type-badge,
.post-item--public .post-mood-badge--overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 20;
}

.post-item--public .ccv-post-call-btn,
.post-item--public .browse-call-btn--overlay {
  top: 65px;
  right: 8px;
}

.post-item--public .ccv-post-share-btn {
  top: 120px;
  right: 8px;
  left: auto;
}

.post-item--public .ccv-post-menu-btn {
  top: 175px;
  right: 8px;
  left: auto;
  z-index: 6;
}

.post-item--public .ccv-post-menu {
  top: 205px;
  right: 8px;
  left: auto;
}

.post-preview-content .post-item--public .browse-type-badge,
.post-preview-content .post-item--public .post-mood-badge--overlay {
  top: 65px;
}

.post-preview-content .post-item--public .ccv-post-call-btn,
.post-preview-content .post-item--public .browse-call-btn--overlay {
  top: 120px;
}

.post-preview-content .post-item--public .ccv-post-share-btn {
  top: 175px;
  right: 8px;
  left: auto;
}

.post-preview-content .post-item--public .ccv-post-menu-btn {
  top: 230px;
}

.post-preview-content .post-item--public .ccv-post-menu {
  top: 260px;
  right: 8px;
  left: auto;
}

.public-view .post-preview-close,
.company-profile .post-preview-close {
  top: 10px;
  right: 8px;

  background: var(--moderation-preview-close-surface);
  border: 1px solid var(--border-overlay-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* === Browsing action rail alignment === */
.browse-image-wrap .ccv-post-menu-btn {
  top: 120px;
  right: 8px;
  left: auto;
}

.browse-image-wrap .ccv-post-menu {
  top: 150px;
  right: 8px;
  left: auto;
}

/* === Mobile preview action rail fix for owner posts === */
.post-preview-content .post-item .post-mood-badge--overlay {
  top: 65px;
  right: 10px;
  left: auto;
}

.post-preview-content .post-item .browse-call-btn--overlay,
.post-preview-content .post-item .ccv-post-call-btn {
  top: 120px;
  right: 8px;
}

.post-preview-content .post-item .ccv-post-share-btn {
  top: 175px;
  right: 8px;
  left: auto;
}

.post-preview-content .post-item .ccv-post-menu-btn {
  top: 230px;
  right: 8px;
  left: auto;
}

.post-preview-content .post-item .ccv-post-menu {
  top: 260px;
  right: 8px;
  left: auto;
}

/* === Mobile-safe Account Recovery / Email Change dialog === */
.modal-card.change-email-dialog {
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  .modal-backdrop {
    align-items: center;
    padding: calc(0.75rem + env(safe-area-inset-top)) 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .modal-card.change-email-dialog {
    width: min(100%, 460px);
    max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 1rem;
    border-radius: 18px;
  }

  .change-email-dialog .muted,
  .change-email-recovery-info {
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .change-email-dialog label {
    margin-top: 0.65rem;
  }

  .change-email-dialog .dialog-actions {
    margin-top: 0.9rem;
  }
}

/* =========================
   COMPANY CARD – EXPANDABLE BIO
========================= */
.company-bio-section {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.company-bio-section[hidden],
.company-bio-panel[hidden] {
  display: none;
}

.company-bio-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 2;

  border: 0;
  background: transparent;
  color: var(--text-control-dim);
  cursor: pointer;
}

.company-bio-toggle:hover {
  color: var(--text-on-dark-bright);
}

.company-bio-toggle:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  border-radius: 8px;
}

.company-bio-chevron {
  width: 10px;
  height: 10px;
  display: block;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.company-bio-toggle[aria-expanded="true"] .company-bio-chevron {
  transform: rotate(225deg);
}

.company-bio-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;

  transition:
    grid-template-rows 0.28s ease,
    opacity 0.22s ease;
}

.company-bio-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.company-bio-text {
  min-height: 0;
  overflow: hidden;

  padding: 0 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;

  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-control);
}

.company-bio-panel.is-open .company-bio-text {
  padding-top: 10px;
  padding-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .company-bio-chevron,
  .company-bio-panel {
    transition: none;
  }
}


/* PUBLIC GUEST PREVIEW VIEWPORT LOCK */
html:has(body.public-view.guest-preview),
body.public-view.guest-preview {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.public-view.guest-preview #header,
body.public-view.guest-preview #footer {
  display: none;
}

body.public-view.guest-preview .main-container {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.public-view.guest-preview .posts-card--public {
  overflow: hidden;
}

body.public-view.guest-preview .posts-list--public {
  overflow: hidden;
}

/* Landing NOW guest return navigation */
.landing-now-back-btn {
  align-self: flex-start;
  flex: 0 0 auto;

  margin: 0 0 10px;
  padding: 0.34rem 0.62rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  background: var(--surface-control-soft);
  color: var(--text-body-strong);

  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.landing-now-back-btn.hidden {
  display: none !important;
}

.landing-now-back-btn:hover {
  background: var(--surface-control-hover-neutral);
}

.landing-now-back-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.landing-now-back-btn .back-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Guest preview conversion bar */
.guest-preview-notice {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;

  width: min(680px, calc(100% - 28px));
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  text-align: center;
}

.guest-preview-notice[hidden] {
  display: none;
}

.guest-preview-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.guest-preview-title {
  flex: 0 0 auto;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--text-panel-strong);
}

.guest-preview-message {
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-subtle);
}

.guest-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.guest-preview-btn {
  appearance: none;
  border-radius: 999px;
  padding: 6px 12px;

  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;

  cursor: pointer;
}

.guest-preview-btn--login {
  border: 1px solid var(--border-control-emphasis);
  background: var(--surface-control-neutral);
  color: var(--text-panel-control);
}

.guest-preview-btn--register {
  border: 1px solid transparent;
  background: var(--accent-surface-action-solid);
  color: var(--text-on-accent-deep);
}

.guest-preview-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@media (max-width: 700px) {
  .guest-preview-notice {
    top: 8px;
    width: calc(100% - 20px);
    flex-direction: column;
    gap: 7px;
  }

  .guest-preview-copy {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  .guest-preview-title {
    font-size: 0.78rem;
  }

  .guest-preview-message {
    font-size: 0.72rem;
  }

  .guest-preview-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}

/* === Mobile guest public layout correction === */
@media (max-width: 700px) {
  body.public-view.guest-preview .guest-preview-notice,
  body.public-post-page.guest-preview .guest-preview-notice {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;

    width: 100%;
    margin: 0 0 12px;
    transform: none;
  }

  body.public-view.guest-preview .company-card--public,
  body.public-post-page.guest-preview .public-post-company-card {
    padding-top: 14px;
  }

  body.public-view.guest-preview
    .company-card--public
    .avatar-share-btn,
  body.public-view.guest-preview
    .company-card--public
    .avatar-follow-btn {
    display: none;
  }

  body.public-view.guest-preview
    .company-card--public
    .company-back-btn {
    position: static;
    top: auto;
    left: auto;
    margin: 0 0 12px;
  }

  body.public-view.guest-preview
    .company-card--public
    .company-card-inner--public,
  body.public-post-page.guest-preview
    .public-post-company-card
    .company-card-inner--public {
    margin-top: 0;
  }
}

/* === Guest read-only post preview === */
.guest-preview .post-preview-content .is-guest-post-preview {
  overflow: hidden;
}

.guest-preview .post-preview-content .is-guest-post-preview .post-meta {
  padding-right: 0;
}

.ccv-guest-post-text {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-content-divider-soft);
  background: var(--surface-control-quiet);
}

.ccv-guest-post-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ccv-guest-post-description {
  margin: 9px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-content-secondary);
}

/* Public post guest detail */
.public-post-page .main-container {
  width: 100%;
}

.public-post-page .public-post-company-card,
.public-post-page .posts-divider {
  width: 100%;
  max-width: var(--app-content-max);
}

.public-post-page .public-post-company-card {
  padding-top: 52px;
}

.public-post-page .public-post-reminder-close {
  position: absolute;
  top: 14px;
  right: 11px;
  z-index: 2;

  width: 32px;
  height: 32px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--color-border-light);
  border-radius: 999px;

  background: var(--surface-card-navigation-control);
  color: var(--text-card-navigation-control);

  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.public-post-page
.public-post-reminder-close[hidden] {
  display: none;
}

.public-post-page
.public-post-reminder-close:hover {
  background: var(--surface-control-hover);
  transform: translateY(-1px);
}

.public-post-page
.public-post-reminder-close:focus,
.public-post-page
.public-post-reminder-close:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.public-post-page .public-post-single-card {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--app-content-max);
  margin-left: auto;
  margin-right: auto;
}

.public-post-page .public-post-content {
  width: 100%;
}

.public-post-page .public-post-media {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.public-post-page .public-post-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.public-post-page #publicPostImage {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 760px);
  object-fit: contain;
}

.public-post-page .public-post-date {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .public-post-page .public-post-media,
  .public-post-page .public-post-image-wrap {
    width: 100%;
  }

  .public-post-page #publicPostImage {
    width: 100%;
    max-height: 72vh;
  }
}

/* === Browse action rail spacing correction === */
.browse-image-wrap .browse-post-share-btn {
  top: 113px;
}

.browse-image-wrap .ccv-post-menu-btn {
  top: 161px;
}

.browse-image-wrap .ccv-post-menu {
  top: 195px;
}

/* --------------------
   COMPANY RADAR LOCATION
-------------------- */

#companyProfileForm .company-radar-location {
  padding-top: 0.9rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--border-divider);
}

#companyProfileForm .company-radar-location-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--color-text-main);
}

#companyProfileForm .company-radar-location-hint {
  display: block;
  margin-top: 0;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

#companyProfileForm .company-radar-coordinate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

#companyProfileForm .company-radar-coordinate-row > div {
  min-width: 0;
}

@media (max-width: 520px) {
  #companyProfileForm .company-radar-coordinate-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}


/* =========================
   COMPANY ANALYTICS
========================= */

.company-card--own .company-analytics-btn {
  top: 14px;
  left: 11px;
  right: auto;
}

.company-analytics-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  min-width: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.company-analytics-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;

  /* DARK */
  --analytics-backdrop:
    rgba(2, 14, 18, 0.72);

  --analytics-panel-surface:
    linear-gradient(
      145deg,
      rgba(5, 34, 40, 0.96),
      rgba(4, 25, 31, 0.94)
    );

  --analytics-panel-border:
    rgba(39, 221, 214, 0.32);

  --analytics-panel-shadow:
    inset 0 1px 0 rgba(148, 255, 248, 0.06),
    0 22px 58px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(39, 221, 214, 0.06);

  --analytics-text:
    rgba(244, 255, 255, 0.97);

  --analytics-text-secondary:
    rgba(216, 235, 237, 0.84);

  --analytics-text-muted:
    rgba(176, 207, 211, 0.62);

  --analytics-section-text:
    rgba(143, 205, 207, 0.80);

  --analytics-divider:
    rgba(39, 221, 214, 0.17);

  --analytics-control-surface:
    linear-gradient(
      180deg,
      rgba(10, 46, 52, 0.92),
      rgba(7, 35, 41, 0.88)
    );

  --analytics-control-surface-hover:
    linear-gradient(
      180deg,
      rgba(14, 59, 65, 0.95),
      rgba(9, 43, 49, 0.92)
    );

  --analytics-control-border:
    rgba(39, 221, 214, 0.34);

  --analytics-control-border-hover:
    rgba(58, 235, 225, 0.58);

  --analytics-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.14);

  --analytics-selected-surface: var(--auth-choice-selected-surface);

  --analytics-selected-border: var(--auth-choice-selected-border);

  --analytics-selected-text: var(--auth-choice-selected-text);

  --analytics-selected-shadow:
    inset 0 1px 0 rgba(255, 205, 166, 0.15),
    0 0 0 1px rgba(255, 139, 56, 0.16),
    0 0 8px rgba(255, 139, 56, 0.46),
    0 0 18px rgba(255, 111, 28, 0.22);
}


/* LIGHT */
html[data-theme="light"]
body.profile-page .company-analytics-modal {
  --analytics-backdrop:
    rgba(10, 54, 62, 0.40);

  --analytics-panel-surface:
    linear-gradient(
      145deg,
      rgba(188, 226, 232, 0.96),
      rgba(151, 202, 212, 0.94)
    );

  --analytics-panel-border:
    rgba(0, 128, 145, 0.54);

  --analytics-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 22px 54px rgba(15, 76, 88, 0.20),
    0 0 20px rgba(0, 174, 186, 0.08);

  --analytics-text:
    #0b3038;

  --analytics-text-secondary:
    rgba(14, 55, 64, 0.86);

  --analytics-text-muted:
    rgba(22, 67, 76, 0.60);

  --analytics-section-text:
    rgba(8, 77, 88, 0.76);

  --analytics-divider:
    rgba(0, 128, 145, 0.24);

  --analytics-control-surface:
    linear-gradient(
      135deg,
      rgba(198, 232, 237, 0.92),
      rgba(165, 211, 219, 0.88)
    );

  --analytics-control-surface-hover:
    linear-gradient(
      135deg,
      rgba(211, 239, 242, 0.95),
      rgba(177, 220, 227, 0.91)
    );

  --analytics-control-border:
    rgba(0, 128, 145, 0.48);

  --analytics-control-border-hover:
    rgba(0, 151, 166, 0.66);

  --analytics-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    0 4px 12px rgba(15, 91, 103, 0.10);

  --analytics-selected-surface: var(--auth-choice-selected-surface);

  --analytics-selected-border: var(--auth-choice-selected-border);

  --analytics-selected-text: var(--auth-choice-selected-text);

  --analytics-selected-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 0 1px rgba(255, 131, 56, 0.18),
    0 0 8px rgba(255, 131, 56, 0.44),
    0 0 17px rgba(0, 174, 186, 0.18);
}


.company-analytics-modal.hidden {
  display: none;
}


.company-analytics-backdrop {
  position: absolute;
  inset: 0;

  background:
    var(--analytics-backdrop);

  backdrop-filter:
    blur(14px) saturate(112%);

  -webkit-backdrop-filter:
    blur(14px) saturate(112%);
}


.company-analytics-panel {
  position: relative;
  z-index: 1;

  width:
    min(420px, 100%);

  max-height:
    calc(100dvh - 36px);

  overflow-y:
    auto;

  box-sizing:
    border-box;

  padding:
    20px;

  border:
    1px solid var(--analytics-panel-border);

  border-radius:
    22px;

  background:
    var(--analytics-panel-surface);

  color:
    var(--analytics-text);

  box-shadow:
    var(--analytics-panel-shadow);

  -webkit-backdrop-filter:
    blur(18px) saturate(125%);

  backdrop-filter:
    blur(18px) saturate(125%);
}


.company-analytics-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 28px;
  height: 28px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid var(--analytics-control-border);

  border-radius:
    999px;

  background:
    var(--analytics-control-surface);

  color:
    var(--analytics-text-secondary);

  box-shadow:
    var(--analytics-control-shadow);

  font-size:
    19px;

  line-height:
    1;

  cursor:
    pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}


.company-analytics-close:hover {
  background:
    var(--analytics-control-surface-hover);

  border-color:
    var(--analytics-control-border-hover);

  transform:
    translateY(-1px);
}


.company-analytics-title {
  margin:
    0 38px 16px 0;

  color:
    var(--analytics-text);

  font-size:
    1.2rem;

  line-height:
    1.2;
}


.company-analytics-periods {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}


.company-analytics-period {
  appearance:
    none;

  border:
    1px solid var(--analytics-control-border);

  border-radius:
    999px;

  padding:
    7px 13px;

  background:
    var(--analytics-control-surface);

  color:
    var(--analytics-text-secondary);

  box-shadow:
    var(--analytics-control-shadow);

  font:
    inherit;

  font-size:
    0.82rem;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}


.company-analytics-period:hover {
  background:
    var(--analytics-control-surface-hover);

  border-color:
    var(--analytics-control-border-hover);

  transform:
    translateY(-1px);
}


.company-analytics-period.is-active {
  background:
    var(--analytics-selected-surface);

  border-color:
    var(--analytics-selected-border);

  color:
    var(--analytics-selected-text);

  box-shadow:
    var(--analytics-selected-shadow);
}


.company-analytics-status {
  padding:
    22px 4px 18px;

  text-align:
    center;

  color:
    var(--analytics-text-muted);

  font-size:
    0.9rem;
}


.company-analytics-error {
  color:
    var(--color-error);
}


.company-analytics-content.hidden,
.company-analytics-status.hidden {
  display:
    none;
}


.company-analytics-group {
  padding:
    14px 0;

  border-top:
    1px solid var(--analytics-divider);
}


.company-analytics-group:first-child {
  border-top: 0;
  padding-top: 2px;
}


.company-analytics-group h3 {
  margin:
    0 0 10px;

  color:
    var(--analytics-section-text);

  font-size:
    0.72rem;

  font-weight:
    800;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


.company-analytics-row {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;

  min-height:
    38px;

  padding:
    7px 0;
}


.company-analytics-row > span {
  padding-top:
    2px;

  color:
    var(--analytics-text-secondary);

  font-size:
    0.9rem;

  line-height:
    1.35;
}


.company-analytics-value-wrap {
  min-width:
    78px;

  text-align:
    right;
}


.company-analytics-value-wrap strong {
  display:
    block;

  color:
    var(--analytics-text);

  font-size:
    1rem;

  line-height:
    1.15;
}


.company-analytics-value-wrap small {
  display:
    block;

  min-height:
    14px;

  margin-top:
    3px;

  color:
    var(--analytics-text-muted);

  font-size:
    0.68rem;

  line-height:
    1.2;
}


.company-analytics-value-wrap small.is-positive {
  color:
    var(--status-positive-text);
}


.company-analytics-value-wrap small.is-negative {
  color:
    var(--status-negative-text);
}


.company-analytics-note {
  margin:
    10px 0 0;

  color:
    var(--analytics-text-muted);

  font-size:
    0.72rem;

  line-height:
    1.4;
}


body.company-analytics-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .company-analytics-modal {
    padding:
      calc(12px + env(safe-area-inset-top))
      12px
      calc(12px + env(safe-area-inset-bottom));
  }

  .company-analytics-panel {
    width: 100%;
    max-height:
      calc(
        100dvh
        - 24px
        - env(safe-area-inset-top)
        - env(safe-area-inset-bottom)
      );
    padding: 18px 16px;
    border-radius: 20px;
  }

  .company-card--own .company-analytics-btn,
  .company-card--own .own-company-share-btn {
    min-height: 28px;
    padding: 0.22rem 0.42rem;
    gap: 0.32rem;
  }

  .company-card--own .company-analytics-btn .share-btn-text,
  .company-card--own .own-company-share-btn .share-btn-text {
    font-size: 0.82rem;
  }
}

/* =========================================================
   MOBILE AUTHENTICATED HEADER
   Fixed only after login, in mobile browser + installed PWA.
   Desktop and public headers remain unchanged.
========================================================= */
@media (max-width: 768px) {

  body.profile-page > #header {
    height: calc(53px + env(safe-area-inset-top));
    min-height: calc(53px + env(safe-area-inset-top));
    flex: 0 0 calc(53px + env(safe-area-inset-top));
  }

  body.profile-page .profile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    z-index: 1100;

    padding-top: calc(0.65rem + env(safe-area-inset-top));
  }
}

/* =========================================
   PWA notifications
   ========================================= */

.pwa-notification-box {
  margin-top: 0;
}

.pwa-notification-box .subscription-note {
  margin-top: 12px;
}

.pwa-notification-box
  .subscription-actions {
  display: flex;
  justify-content: flex-start;
}

.pwa-notification-status-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pwa-notification-disable-btn {
  padding: 0.48rem 0.78rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .pwa-notification-status-control {
    width: 100%;
    justify-content: space-between;
  }
}

/* === Own company posts: small join/share hint above company card === */
.company-join-share-hint {
  width: 100%;
  max-width: var(--app-content-max);
  box-sizing: border-box;

  margin: -10px auto 8px;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;

  color: var(--text-faint);

  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .company-join-share-hint {
    font-size: 9.5px;
    margin-top: -10px;
    margin-bottom: 7px;
  }
}



/* === Company NOW: own company posts page === */
.company-now-display {
  width: 100%;
  max-width: var(--app-content-max);
  box-sizing: border-box;
  margin: 8px auto 6px;
  padding: 8px 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.company-now-display.hidden {
  display: none;
}

.company-now-display-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 28px;
  padding: 4px 10px;

  border: 1px solid var(--border-control-emphasis);
  border-radius: 999px;

  background: var(--surface-control-faint);
}

.company-now-display-label {
  display: block;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  color: var(--text-control);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-now-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;
  background: var(--status-live-surface);

  box-shadow:
    0 0 0 0 var(--status-live-ring);

  animation:
    company-now-live-pulse
    2.4s
    ease-in-out
    infinite;
}

@keyframes company-now-live-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.92);
    box-shadow:
      0 0 0 0 var(--status-live-ring-clear);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 5px var(--status-live-ring-soft);
  }
}

.company-now-display-text {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-text-main);
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .company-now-live-dot {
    animation: none;
  }
}

.company-now-field #companyNowStatus {
  display: block;
  margin-top: 5px;
}

.company-now-field .subscription-actions {
  margin-top: 8px;
}

.company-now-public-control {
  margin-top: 10px;
  padding: 9px 10px;

  border: 1px solid var(--border-subtle);
  border-radius: 12px;

  background: var(--surface-control-quiet);
}

.company-now-public-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;

  margin: 0 !important;

  color: var(--color-text-main);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.company-now-public-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;

  flex: 0 0 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.company-now-public-toggle input:disabled {
  opacity: 0.65;
  cursor: wait;
}

.company-now-public-hint {
  display: block;
  margin-top: 6px !important;

  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.company-profile .posts-add #postsMeaning {
  margin: 2px 0 8px;
}

.company-profile .posts-add #postsMeaning.hidden {
  display: none;
}

@media (max-width: 640px) {
  .company-now-display {
    margin-top: 6px;
    padding: 7px 8px;
  }

  .company-now-display-text {
    font-size: 13px;
  }
}


/* === BROWSING: Company NOW ticker + expandable panel === */
.browse-now {
  width: 100%;
  max-width: 1200px;
  margin: 4px 0 8px;
}

.browse-now.hidden,
.browse-now-ticker.hidden,
.browse-now-panel.hidden {
  display: none;
}

.browse-now-ticker {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}

.browse-now-unread-badge {
  flex: 0 0 auto;
  align-self: center;
  min-width: 30px;
  height: 24px;
  margin: 0 7px 0 6px;
  padding: 0 7px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid var(--status-notification-border);
  background: var(--status-notification-surface);
  color: var(--text-on-status);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.browse-now-unread-badge.hidden {
  display: none;
}

.browse-now-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.browse-now-ticker-track {
  width: max-content;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 0;
  white-space: nowrap;
  animation: browseNowTicker 34s linear infinite;
  will-change: transform;
}

.browse-now-ticker-track.is-static {
  animation: none;
  min-width: 100%;
}

.browse-now-ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}

.browse-now-ticker-company {
  font-weight: 700;
}

.browse-now-ticker-text {
  color: var(--color-text-muted);
}

.browse-now-ticker-dot,
.browse-now-ticker-divider {
  color: var(--color-text-muted);
  opacity: var(--opacity-now-secondary);
  flex: 0 0 auto;
}

.browse-now-toggle {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-border-light);
  background: transparent;
  color: var(--color-text-main);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.browse-now-toggle:focus-visible,
.browse-now-scope:focus-visible,
.browse-now-item:focus-visible,
.browse-now-ticker-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.browse-now-panel {
  --browse-now-panel-height: 480px;
  width: 100%;
  height: var(--browse-now-panel-height);
  max-height: var(--browse-now-panel-height);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.browse-now-panel-head {
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-main);
  position: sticky;
  top: 0;
  z-index: 2;
}

.browse-now-title {
  flex: 0 0 auto;
  padding-left: 10px;
  font-size: 14px;
}

.browse-now-scopes {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.browse-now-scope {
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.browse-now-scope.is-active {
  color: var(--color-text-main);
  background: var(--color-bg-soft);
}

.browse-now-panel-head .browse-now-toggle {
  border-left: 1px solid var(--color-border-light);
}

.browse-now-swipe-hint {
  flex: 0 0 auto;
  margin: 4px 12px 2px;
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  opacity: var(--opacity-now-hint);
}

.browse-now-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

.browse-now-swipe-row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
}

.browse-now-swipe-row:last-child {
  border-bottom: 0;
}

.browse-now-report-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 92px;
  border: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  color: var(--color-text-main);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.browse-now-item {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  background: var(--color-bg-main);
  text-decoration: none;
  color: var(--color-text-main);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  will-change: transform;
}

.browse-now-item:focus {
  outline: none;
}

.browse-now-item:focus-visible {
  outline: 2px solid var(--accent-border-medium);
  outline-offset: -2px;
}

.browse-now-item-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 4px;
}

.browse-now-item-company {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.browse-now-item-time {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-size: 11px;
}

.browse-now-item-text {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.browse-now-empty {
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.browse-now-empty.hidden {
  display: none;
}

body.browse-now-open {
  overflow: hidden;
}

@keyframes browseNowTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .browse-now-ticker-item:hover,
  .browse-now-item:hover {
    text-decoration: underline;
  }

  .browse-now-scope:hover {
    background: var(--color-bg-soft);
  }
}

@media (max-width: 640px) {
  .browse-now {
    margin-top: 0;
  }

  .browse-now-ticker-track {
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .browse-now-title {
    padding-left: 8px;
    font-size: 13px;
  }

  .browse-now-scopes {
    gap: 4px;
  }

  .browse-now-scope {
    padding-left: 9px;
    padding-right: 9px;
  }

  .browse-now-list {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browse-now-ticker-track {
    animation: none;
    transform: none;
  }

  .browse-now-ticker-viewport {
    overflow-x: auto;
  }
}


/* =========================
   COMPANY NOW EMPTY CTA
========================= */

.company-now-empty-cta {
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 1.25rem auto 1.35rem auto;
  padding: 0 0 0.55rem 0;

  display: block;
  position: relative;

  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;

  cursor: pointer;
}

.company-now-empty-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4.6rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-decoration);
  transform: translateX(-50%);
}

.company-now-empty-cta:hover,
.company-now-empty-cta:focus-visible {
  color: var(--color-text-main);
}

.company-now-empty-cta:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 5px;
  border-radius: 6px;
}

.company-now-empty-cta.hidden {
  display: none;
}

.company-now-box {
  scroll-margin-top: 1rem;
}


/* =========================
   ACCOUNT PROFILE COLLAPSIBLE SECTIONS
========================= */

.account-collapsible {
  overflow: hidden;
}

.account-collapsible > summary {
  list-style: none;
}

.account-collapsible > summary::-webkit-details-marker {
  display: none;
}

.account-collapsible-summary {
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-text-main);
  cursor: pointer;
  user-select: none;
}

.account-collapsible-summary:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 4px;
  border-radius: 8px;
}

.account-collapsible-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.account-collapsible-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  color: var(--color-text-muted);
}

.account-collapsible[open] > .account-collapsible-summary {
  margin-bottom: 0.9rem;
}

.account-collapsible[open]
  > .account-collapsible-summary
  .account-collapsible-chevron {
  transform: rotate(225deg);
}

.profile-data-box > #privateProfileForm,
.profile-data-box > #companyProfileForm {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.company-now-box .company-now-field {
  margin: 0;
}

.profile-delete-section.account-collapsible {
  margin: 0 auto 1rem auto;
  text-align: left;
}

.profile-delete-section.account-collapsible
  > .account-collapsible-summary {
  color: var(--status-danger-strong);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.profile-delete-section.account-collapsible p {
  text-align: center;
}

.profile-delete-section.account-collapsible .delete-account-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .account-collapsible-chevron {
    transition: none;
  }
}

@media (max-width: 520px) {
  .account-collapsible-summary {
    min-height: 30px;
  }

  .account-collapsible-summary-side {
    gap: 0.5rem;
  }
}


/* === SIMINEO AUTH THEME TOGGLE ===
   Compact appearance control beside the language switch.
   The existing semantic tokens make it follow dark/light mode.
*/
.theme-toggle {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 22px;
  flex: 0 0 44px;
  margin: 0;
  padding: 0;

  border:
    1px solid var(--border-control);

  border-radius: 999px;

  background:
    var(--surface-control);

  color:
    var(--text-icon-muted);

  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.theme-toggle:hover {
  border-color:
    var(--border-control-hover);
}

.theme-toggle:focus-visible {
  outline:
    2px solid var(--focus-outline);

  outline-offset: 2px;
}

.theme-toggle__thumb {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 2px;
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border:
    1px solid rgba(39, 221, 214, 0.28);

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(5, 23, 28, 0.99),
      rgba(1, 12, 16, 0.99)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.34);

  pointer-events: none;
  transform: translateX(22px);

  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 160ms ease,
    border-color 160ms ease;
}

.theme-toggle__icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 11px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);

  color:
    rgba(112, 190, 196, 0.68);

  opacity: 0.66;
  pointer-events: none;

  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.theme-toggle__icon svg {
  display: block;

  width: 11px;
  height: 11px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__icon--sun {
  left: 5px;
}

.theme-toggle__icon--moon {
  right: 5px;
}

html[data-theme="light"]
.theme-toggle__thumb {
  transform: translateX(0);
}

html[data-theme="light"]
.theme-toggle__icon--sun {
  color:
    #ff8b38;

  opacity: 1;
}

html[data-theme="light"]
.theme-toggle__icon--moon {
  opacity: 0.52;
}

html:not([data-theme="light"])
.theme-toggle__icon--moon {
  color:
    #ff8b38;

  opacity: 1;
}

html:not([data-theme="light"])
.theme-toggle__icon--sun {
  opacity: 0.52;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle__thumb,
  .theme-toggle__icon {
    transition: none;
  }
}

/* ===== AURORA REFERENCE ENERGY START ===== */

/*
 * Final reference-strength accents.
 *
 * No layout, sizing, overflow or positioning changes.
 * Only glass transparency, selected-state energy and glow.
 */


/* ----------------------------------------------------------
   LIGHT HEADER CONTROLS
   Match DARK transparency instead of opaque white pills.
   ---------------------------------------------------------- */

html[data-theme="light"] body.profile-page .profile-header button {
    background-color: rgba(241, 252, 254, 0.20);
    border-color: rgba(0, 158, 173, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 3px 12px rgba(14, 102, 115, 0.06);

    -webkit-backdrop-filter:
        blur(10px) saturate(125%);

    backdrop-filter:
        blur(10px) saturate(125%);
}


/* ----------------------------------------------------------
   ACTIVE LANGUAGE
   Turquoise glass + warm orange energy ring.
   ---------------------------------------------------------- */

/* DARK */
html:not([data-theme="light"])
body.profile-page .lang-btn.is-active,

html:not([data-theme="light"])
body.profile-page .lang-switch.is-open .lang-current {
    background:
        linear-gradient(
            180deg,
            rgba(25, 221, 213, 0.42),
            rgba(4, 126, 133, 0.38)
        );

    border-color:
        rgba(255, 139, 56, 0.92);

    box-shadow:
        inset 0 1px 0 rgba(111, 255, 246, 0.22),
        0 0 0 1px rgba(255, 139, 56, 0.20),
        0 0 8px rgba(255, 139, 56, 0.58),
        0 0 18px rgba(255, 112, 31, 0.28);

    color: #f4ffff;
}


/* LIGHT */
html[data-theme="light"]
body.profile-page .lang-btn.is-active,

html[data-theme="light"]
body.profile-page .lang-switch.is-open .lang-current {
    background:
        linear-gradient(
            180deg,
            rgba(44, 226, 219, 0.58),
            rgba(0, 174, 186, 0.34)
        );

    border-color:
        rgba(244, 112, 32, 0.88);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 0 0 1px rgba(255, 131, 56, 0.18),
        0 0 8px rgba(255, 131, 56, 0.46),
        0 0 17px rgba(255, 131, 56, 0.22);

    color: #07343b;
}


/* ----------------------------------------------------------
   SELECTED TYPE + MOOD FILTERS
   Same selection language inside each theme.

   DARK  = warm orange / gold glass.
   LIGHT = turquoise glass + orange energy perimeter.
   ---------------------------------------------------------- */


/* DARK: every selected Type or Mood uses warm Aurora energy */
html:not([data-theme="light"])
body.profile-page.browsing-page
.browse-filter-chip.is-active,

html:not([data-theme="light"])
body.profile-page.browsing-page
.browse-filter-chip.is-selected,

html:not([data-theme="light"])
body.profile-page.following-page
.browse-filter-chip.is-active,

html:not([data-theme="light"])
body.profile-page.following-page
.browse-filter-chip.is-selected {
    background: var(--auth-choice-selected-surface);

    border-color: var(--auth-choice-selected-border);

    color: var(--text-control-active);

    box-shadow:
        inset 0 1px 0 rgba(255, 204, 136, 0.16),
        0 0 0 1px rgba(255, 139, 56, 0.16),
        0 0 8px rgba(255, 139, 56, 0.54),
        0 0 18px rgba(255, 111, 28, 0.26);
}


/* LIGHT: every selected Type or Mood uses turquoise glass
   with the same warm orange perimeter energy */
html[data-theme="light"]
body.profile-page.browsing-page
.browse-filter-chip.is-active,

html[data-theme="light"]
body.profile-page.browsing-page
.browse-filter-chip.is-selected,

html[data-theme="light"]
body.profile-page.following-page
.browse-filter-chip.is-active,

html[data-theme="light"]
body.profile-page.following-page
.browse-filter-chip.is-selected {
    background: var(--auth-choice-selected-surface);

    border-color: var(--auth-choice-selected-border);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 0 0 1px rgba(255, 131, 56, 0.18),
        0 0 8px rgba(255, 131, 56, 0.46),
        0 0 17px rgba(0, 174, 186, 0.18);

    color: var(--auth-choice-selected-text);
}


/* ----------------------------------------------------------
   FOOTER ACTIVE STATE
   NO active cell / tile.
   Orange light belongs only behind the PNG icon.
   ---------------------------------------------------------- */

html:not([data-theme="light"])
body.profile-page .profile-footer .footer-btn.active,

html:not([data-theme="light"])
body.profile-page .profile-footer .footer-btn.active:hover,

html[data-theme="light"]
body.profile-page .profile-footer .footer-btn.active,

html[data-theme="light"]
body.profile-page .profile-footer .footer-btn.active:hover {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}







/* ===== AURORA REFERENCE ENERGY END ===== */

/* ===== LIGHT AURORA CONTRAST BOOST START ===== */

/*
 * LIGHT Aurora surface hierarchy.
 *
 * The page remains bright.
 * Interactive surfaces and cards are deliberately darker
 * cool-aqua glass so they separate clearly from the artwork.
 *
 * No layout / sizing / overflow changes.
 */


/* ----------------------------------------------------------
   SEARCH
   ---------------------------------------------------------- */

html[data-theme="light"]
body.profile-page .browse-search {
    border-bottom:
        1px solid rgba(0, 132, 148, 0.34);
}

html[data-theme="light"]
body.profile-page #browseSearchInput,

html[data-theme="light"]
body.profile-page #followSearchInput {
    background:
        linear-gradient(
            180deg,
            rgba(214, 239, 243, 0.86),
            rgba(194, 226, 232, 0.82)
        );

    border-color:
        rgba(0, 132, 148, 0.58);

    color:
        #0b3038;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 0 0 1px rgba(0, 132, 148, 0.10),
        0 6px 18px rgba(15, 76, 88, 0.12);

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}

html[data-theme="light"]
body.profile-page #browseSearchInput::placeholder,

html[data-theme="light"]
body.profile-page #followSearchInput::placeholder {
    color:
        rgba(20, 69, 79, 0.68);
}

html[data-theme="light"]
body.profile-page #browseSearchInput:focus,

html[data-theme="light"]
body.profile-page #followSearchInput:focus {
    background:
        linear-gradient(
            180deg,
            rgba(205, 238, 241, 0.94),
            rgba(181, 224, 229, 0.90)
        );

    border-color:
        rgba(0, 145, 160, 0.82);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 0 0 1px rgba(0, 145, 160, 0.18),
        0 0 0 4px rgba(0, 174, 186, 0.13),
        0 8px 22px rgba(15, 76, 88, 0.14);
}


/* ----------------------------------------------------------
   FILTER TOGGLE
   ---------------------------------------------------------- */

html[data-theme="light"]
body.profile-page .browse-filter-toggle {
    background:
        linear-gradient(
            180deg,
            rgba(216, 239, 243, 0.88),
            rgba(194, 226, 231, 0.84)
        );

    border-color:
        rgba(0, 132, 148, 0.52);

    color:
        #12363f;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 4px 13px rgba(15, 76, 88, 0.10);
}


/* ----------------------------------------------------------
   DEFAULT TYPE + MOOD CHIPS
   Selected-state rules remain separate.
   ---------------------------------------------------------- */

html[data-theme="light"]
body.profile-page .browse-filter-chip {
    background:
        linear-gradient(
            180deg,
            rgba(218, 240, 243, 0.90),
            rgba(196, 227, 232, 0.86)
        );

    border-color:
        rgba(0, 132, 148, 0.52);

    color:
        #10333c;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 4px 13px rgba(15, 76, 88, 0.09);
}

html[data-theme="light"]
body.profile-page .browse-filter-chip:hover {
    background:
        linear-gradient(
            180deg,
            rgba(205, 237, 241, 0.94),
            rgba(181, 221, 227, 0.90)
        );

    border-color:
        rgba(0, 145, 160, 0.72);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 0 0 1px rgba(0, 145, 160, 0.12),
        0 6px 17px rgba(15, 76, 88, 0.12);
}

html[data-theme="light"]
body.profile-page .browse-filter-separator {
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(0, 132, 148, 0.42),
            transparent
        );
}


/* ----------------------------------------------------------
   CARD SHELL
   Main contrast correction:
   card surface is DARKER than the luminous page behind it.
   ---------------------------------------------------------- */

html[data-theme="light"]
body.profile-page .browse-item {
    background:
        linear-gradient(
            180deg,
            rgba(105, 166, 177, 0.58),
            rgba(72, 137, 150, 0.52)
        );

    border-color:
        rgba(0, 123, 140, 0.78);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 0 0 1px rgba(0, 145, 160, 0.16),
        0 12px 30px rgba(10, 58, 69, 0.22),
        0 0 20px rgba(0, 174, 186, 0.09);
}

html[data-theme="light"]
body.profile-page .browse-item:hover {
    border-color:
        rgba(0, 150, 166, 0.92);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 0 0 1px rgba(0, 145, 160, 0.20),
        0 15px 34px rgba(10, 58, 69, 0.25),
        0 0 22px rgba(0, 174, 186, 0.13);
}


/* ----------------------------------------------------------
   CARD TOP PILLS
   Slightly lighter than the card shell,
   still darker than the page.
   ---------------------------------------------------------- */


html[data-theme="light"]
body.profile-page .browse-follow-btn {
    background:
        linear-gradient(
            180deg,
            rgba(218, 240, 243, 0.92),
            rgba(195, 226, 231, 0.88)
        );

    border-color:
        rgba(0, 126, 143, 0.62);

    color:
        #0e3139;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 4px 13px rgba(12, 67, 79, 0.11);
}

html[data-theme="light"]
body.profile-page .browse-follow-btn:hover {
    background:
        linear-gradient(
            180deg,
            rgba(204, 235, 239, 0.96),
            rgba(179, 219, 225, 0.92)
        );

    border-color:
        rgba(0, 145, 160, 0.78);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.64),
        0 7px 18px rgba(12, 67, 79, 0.13);
}


/* Following state stays cyan, but now with enough contrast */
html[data-theme="light"]
body.profile-page .browse-follow-btn.is-following {
    background:
        linear-gradient(
            180deg,
            rgba(42, 211, 205, 0.58),
            rgba(0, 159, 172, 0.38)
        );

    border-color:
        rgba(0, 128, 145, 0.74);

    color:
        #082f37;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 0 0 1px rgba(0, 145, 160, 0.14),
        0 7px 18px rgba(11, 83, 94, 0.14);
}


/* ===== LIGHT AURORA CARD FOOTER MATCH START ===== */

/*
 * Light Browse cards:
 * bottom chrome must visually belong to the same glass surface
 * as the top of the card instead of becoming a separate white strip.
 */
html[data-theme="light"]
body.profile-page .browse-bottombar {
    background: transparent;
    background-color: transparent;

    border-top:
        1px solid rgba(0, 126, 143, 0.22);

    color:
        #0e3139;

    box-shadow:
        none;
}

/* ===== LIGHT AURORA CARD FOOTER MATCH END ===== */

/* ===== LIGHT AURORA CONTRAST BOOST END ===== */

/* ===== AURORA COMPANY CARD GLASS START ===== */

/*
 * Authenticated company profile card.
 *
 * Same Aurora hierarchy in both themes:
 * DARK  = deep teal translucent glass
 * LIGHT = darker aqua translucent glass
 *
 * Layout / sizing / positioning intentionally untouched.
 */


/* DARK */
html:not([data-theme="light"])
body.profile-page .company-card {
    background:
        linear-gradient(
            135deg,
            rgba(5, 27, 33, 0.74),
            rgba(10, 42, 49, 0.64)
        );

    border:
        1px solid rgba(39, 221, 214, 0.34);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 34px rgba(0, 0, 0, 0.26),
        0 0 18px rgba(39, 221, 214, 0.06);

    -webkit-backdrop-filter:
        blur(18px) saturate(125%);

    backdrop-filter:
        blur(18px) saturate(125%);
}


/* LIGHT */
html[data-theme="light"]
body.profile-page .company-card {
    background:
        linear-gradient(
            135deg,
            rgba(126, 184, 194, 0.54),
            rgba(91, 158, 171, 0.46)
        );

    border:
        1px solid rgba(0, 128, 145, 0.58);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 12px 30px rgba(11, 68, 80, 0.16),
        0 0 18px rgba(0, 174, 186, 0.08);

    -webkit-backdrop-filter:
        blur(18px) saturate(120%);

    backdrop-filter:
        blur(18px) saturate(120%);
}

/* ===== AURORA COMPANY CARD GLASS END ===== */

/* ===== AURORA COMPANY CONTROLS START ===== */

/*
 * Authenticated Company / Posts controls.
 *
 * Statistics + Share:
 *   neutral cyan-edged Aurora glass.
 *
 * List / Grid:
 *   same neutral glass when inactive.
 *   DARK active  = warm orange/gold.
 *   LIGHT active = turquoise + orange perimeter.
 *
 * No layout / sizing changes.
 */


/* ==========================================================
   STATISTICS + SHARE — DARK
   ========================================================== */

html:not([data-theme="light"])
body.profile-page
.company-card--own .company-analytics-btn,

html:not([data-theme="light"])
body.profile-page
.company-card--own .own-company-share-btn,

html:not([data-theme="light"])
body.profile-page.public-view:not(.guest-preview)
.company-card--public .company-back-btn,

html:not([data-theme="light"])
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-share-btn,

html:not([data-theme="light"])
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-follow-btn:not(.is-following) {
    background:
        linear-gradient(
            180deg,
            rgba(10, 42, 49, 0.72),
            rgba(5, 28, 34, 0.66)
        );

    border-color:
        rgba(39, 221, 214, 0.48);

    color:
        #f2fbfb;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 14px rgba(0, 0, 0, 0.16);

    -webkit-backdrop-filter:
        blur(10px) saturate(125%);

    backdrop-filter:
        blur(10px) saturate(125%);
}


@media (hover: hover) {

    html:not([data-theme="light"])
    body.profile-page
    .company-card--own .company-analytics-btn:hover,

    html:not([data-theme="light"])
    body.profile-page
    .company-card--own .own-company-share-btn:hover,

    html:not([data-theme="light"])
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .company-back-btn:hover,

    html:not([data-theme="light"])
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .avatar-share-btn:hover,

    html:not([data-theme="light"])
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .avatar-follow-btn:not(.is-following):hover {
        background:
            linear-gradient(
                180deg,
                rgba(16, 60, 67, 0.82),
                rgba(7, 39, 45, 0.76)
            );

        border-color:
            rgba(83, 247, 238, 0.76);

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 0 12px rgba(39, 221, 214, 0.16);
    }
}


/* ==========================================================
   STATISTICS + SHARE — LIGHT
   ========================================================== */

html[data-theme="light"]
body.profile-page
.company-card--own .company-analytics-btn,

html[data-theme="light"]
body.profile-page
.company-card--own .own-company-share-btn,

html[data-theme="light"]
body.profile-page.public-view:not(.guest-preview)
.company-card--public .company-back-btn,

html[data-theme="light"]
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-share-btn,

html[data-theme="light"]
body.profile-page.public-view:not(.guest-preview)
.company-card--public .avatar-follow-btn:not(.is-following) {
    background:
        linear-gradient(
            180deg,
            rgba(190, 226, 232, 0.76),
            rgba(153, 204, 213, 0.68)
        );

    border-color:
        rgba(0, 128, 145, 0.62);

    color:
        #0b3038;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.50),
        0 4px 14px rgba(11, 68, 80, 0.10);

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}


@media (hover: hover) {

    html[data-theme="light"]
    body.profile-page
    .company-card--own .company-analytics-btn:hover,

    html[data-theme="light"]
    body.profile-page
    .company-card--own .own-company-share-btn:hover,

    html[data-theme="light"]
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .company-back-btn:hover,

    html[data-theme="light"]
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .avatar-share-btn:hover,

    html[data-theme="light"]
    body.profile-page.public-view:not(.guest-preview)
    .company-card--public .avatar-follow-btn:not(.is-following):hover {
        background:
            linear-gradient(
                180deg,
                rgba(171, 219, 226, 0.86),
                rgba(128, 190, 201, 0.78)
            );

        border-color:
            rgba(0, 145, 160, 0.82);

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.56),
            0 0 12px rgba(0, 174, 186, 0.14);
    }
}


/* ==========================================================
   NORMAL / GRID — DARK INACTIVE
   ========================================================== */

html:not([data-theme="light"])
body.profile-page.company-profile
.posts-view-btn {
    background:
        var(--post-view-control-surface);

    border-color:
        var(--post-view-control-border);

    color:
        var(--post-view-control-text);

    box-shadow:
        var(--post-view-control-shadow);

    -webkit-backdrop-filter:
        var(--post-view-control-filter);

    backdrop-filter:
        var(--post-view-control-filter);
}


/* DARK ACTIVE */
html:not([data-theme="light"])
body.profile-page.company-profile
.posts-view-btn.is-active {
    background:
        var(--post-view-control-active-surface);

    border-color:
        var(--post-view-control-active-border);

    color:
        var(--post-view-control-active-text);

    box-shadow:
        var(--post-view-control-active-shadow);
}


/* ==========================================================
   NORMAL / GRID — LIGHT INACTIVE
   ========================================================== */

html[data-theme="light"]
body.profile-page.company-profile
.posts-view-btn {
    background:
        var(--post-view-control-surface);

    border-color:
        var(--post-view-control-border);

    color:
        var(--post-view-control-text);

    box-shadow:
        var(--post-view-control-shadow);

    -webkit-backdrop-filter:
        var(--post-view-control-filter);

    backdrop-filter:
        var(--post-view-control-filter);
}


/* LIGHT ACTIVE */
html[data-theme="light"]
body.profile-page.company-profile
.posts-view-btn.is-active {
    background:
        var(--post-view-control-active-surface);

    border-color:
        var(--post-view-control-active-border);

    color:
        var(--post-view-control-active-text);

    box-shadow:
        var(--post-view-control-active-shadow);
}


/* Common hover for inactive view buttons */
@media (hover: hover) {

    html:not([data-theme="light"])
    body.profile-page.company-profile
    .posts-view-btn:not(.is-active):hover {
        border-color:
            var(--post-view-control-hover-border);

        background:
            var(--post-view-control-hover-surface);
    }

    html[data-theme="light"]
    body.profile-page.company-profile
    .posts-view-btn:not(.is-active):hover {
        border-color:
            var(--post-view-control-hover-border);

        background:
            var(--post-view-control-hover-surface);
    }
}

/* ===== AURORA COMPANY CONTROLS END ===== */

/* ===== AURORA PROFILE SETTINGS CARDS START ===== */

/*
 * Profile settings accordions.
 * Same surface language as the main company card.
 *
 * Canonical token source for:
 * - profile/settings cards
 * - dialogs that must match those cards
 * - accent / selected-state controls inside that visual system
 *
 * All accordion sizing / spacing / open-close behaviour remains untouched.
 */


/* DARK */

html:not([data-theme="light"])
body.profile-page {

    --profile-settings-card-surface:
        linear-gradient(
            135deg,
            rgba(5, 27, 33, 0.74),
            rgba(10, 42, 49, 0.64)
        );

    --profile-settings-card-border:
        rgba(39, 221, 214, 0.34);

    --profile-settings-card-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 34px rgba(0, 0, 0, 0.26),
        0 0 18px rgba(39, 221, 214, 0.06);

    --profile-settings-card-filter:
        blur(18px) saturate(125%);

    /* Accent = the orange selected / highlighted state seen in profile UI */
    --profile-settings-accent-surface:
        linear-gradient(
            135deg,
            rgba(118, 78, 48, 0.72),
            rgba(81, 58, 41, 0.66)
        );

    --profile-settings-accent-border:
        rgba(255, 150, 74, 0.88);

    --profile-settings-accent-border-hover:
        rgba(255, 171, 108, 0.94);

    --profile-settings-accent-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 24px rgba(0, 0, 0, 0.22),
        0 0 16px rgba(255, 150, 74, 0.12);

    --profile-settings-accent-focus-shadow:
        0 0 0 1px rgba(255, 150, 74, 0.34),
        0 0 18px rgba(255, 150, 74, 0.18);

    --profile-menu-hover-surface:
        linear-gradient(
            180deg,
            rgba(22, 105, 108, 0.34),
            rgba(10, 73, 78, 0.26)
        );

    --profile-menu-hover-border:
        rgba(39, 221, 214, 0.34);
}


/* LIGHT */

html[data-theme="light"]
body.profile-page {

    --profile-settings-card-surface:
        linear-gradient(
            135deg,
            rgba(126, 184, 194, 0.54),
            rgba(91, 158, 171, 0.46)
        );

    --profile-settings-card-border:
        rgba(0, 128, 145, 0.58);

    --profile-settings-card-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 12px 30px rgba(11, 68, 80, 0.16),
        0 0 18px rgba(0, 174, 186, 0.08);

    --profile-settings-card-filter:
        blur(18px) saturate(120%);

    /* Warm action accent. */
    --profile-settings-accent-surface:
        linear-gradient(
            180deg,
            rgba(255, 151, 74, 0.42),
            rgba(243, 111, 33, 0.32)
        );

    --profile-settings-accent-border:
        rgba(244, 143, 67, 0.88);

    --profile-settings-accent-border-hover:
        rgba(255, 160, 88, 0.94);

    --profile-settings-accent-shadow:
        inset 0 1px 0 rgba(255, 218, 184, 0.30),
        0 8px 22px rgba(121, 67, 24, 0.10),
        0 0 14px rgba(244, 143, 67, 0.12);

    --profile-settings-accent-focus-shadow:
        0 0 0 1px rgba(244, 143, 67, 0.28),
        0 0 16px rgba(244, 143, 67, 0.16);

    /* Menu hover keeps the former turquoise selected surface. */
    --profile-menu-hover-surface:
        linear-gradient(
            135deg,
            rgba(104, 221, 226, 0.56),
            rgba(83, 199, 209, 0.44)
        );

    --profile-menu-hover-border:
        rgba(0, 128, 145, 0.58);
}


/* Profile settings cards use the canonical surface tokens */

body.profile-page .account-collapsible {

    background:
        var(--profile-settings-card-surface);

    border-color:
        var(--profile-settings-card-border);

    box-shadow:
        var(--profile-settings-card-shadow);

    -webkit-backdrop-filter:
        var(--profile-settings-card-filter);

    backdrop-filter:
        var(--profile-settings-card-filter);
}

/* ===== AURORA PROFILE SETTINGS CARDS END ===== */

/* ===== THEME TOGGLE FINAL TUNING START ===== */

/* LIGHT: active thumb remains dark, but not nearly black */
html[data-theme="light"]
body.profile-page .theme-toggle__thumb {
    background:
        linear-gradient(
            180deg,
            rgba(61, 82, 86, 0.97),
            rgba(39, 61, 66, 0.97)
        );
    border-color:
        rgba(19, 92, 102, 0.46);
}

/* LIGHT: inactive moon must be clearly dark */
html[data-theme="light"]
body.profile-page .theme-toggle__icon--moon {
    color:
        rgba(19, 43, 49, 0.88);
    opacity: 0.88;
}

/* DARK: inactive sun must be clearly lighter */
html:not([data-theme="light"])
body.profile-page .theme-toggle__icon--sun {
    color:
        rgba(218, 239, 240, 0.88);
    opacity: 0.88;
}

/* Active icons remain orange */
html[data-theme="light"]
body.profile-page .theme-toggle__icon--sun,
html:not([data-theme="light"])
body.profile-page .theme-toggle__icon--moon {
    color:
        #ff8b38;
    opacity: 1;
}

/* ===== THEME TOGGLE FINAL TUNING END ===== */

/* ===== LIGHT LAUNCH PERIOD BADGE START ===== */

/*
 * Launch-period badge:
 * LIGHT theme only.
 * Dark theme remains completely untouched.
 */

html[data-theme="light"]
body.profile-page #subStatusBadge.subscription-badge {
    background:
        linear-gradient(
            180deg,
            rgba(76, 183, 190, 0.34),
            rgba(37, 145, 156, 0.26)
        );

    border-color:
        rgba(0, 126, 143, 0.58);

    color:
        #07505a;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 3px 10px rgba(10, 82, 92, 0.10);

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}

/* ===== LIGHT LAUNCH PERIOD BADGE END ===== */



/* ===== MOBILE AURORA THEME CONSISTENCY START ===== */

@media (max-width: 768px) {

    /* ======================================================
       PWA NOTIFICATIONS
       Outer wrapper must be the card.
       Company-profile inner details must NOT create
       a second visual card.
       ====================================================== */

    html:not([data-theme="light"])
    body.profile-page .pwa-notification-box {
        background:
            linear-gradient(
                135deg,
                rgba(5, 27, 33, 0.74),
                rgba(10, 42, 49, 0.64)
            );

        border:
            1px solid rgba(39, 221, 214, 0.34);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.035),
            0 14px 34px rgba(0,0,0,0.26),
            0 0 18px rgba(39,221,214,0.06);

        -webkit-backdrop-filter:
            blur(18px) saturate(125%);

        backdrop-filter:
            blur(18px) saturate(125%);
    }


    html[data-theme="light"]
    body.profile-page .pwa-notification-box {
        background:
            linear-gradient(
                135deg,
                rgba(126, 184, 194, 0.54),
                rgba(91, 158, 171, 0.46)
            );

        border:
            1px solid rgba(0, 128, 145, 0.58);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.34),
            0 12px 30px rgba(11,68,80,0.16),
            0 0 18px rgba(0,174,186,0.08);

        -webkit-backdrop-filter:
            blur(18px) saturate(120%);

        backdrop-filter:
            blur(18px) saturate(120%);
    }


    /*
     * Company profile has:
     *
     * section.pwa-notification-box
     *   > details.account-collapsible
     *
     * The outer section is now the Aurora card,
     * therefore the nested details must stay transparent.
     */

    body.profile-page
    .pwa-notification-box > .account-collapsible {
        background: transparent !important;
        background-color: transparent !important;

        border:
            0 !important;

        box-shadow:
            none !important;

        -webkit-backdrop-filter:
            none !important;

        backdrop-filter:
            none !important;
    }


    /* ======================================================
       COMPANY NOW BADGE
       Light must not become an opaque white pill.
       ====================================================== */

    html[data-theme="light"]
    body.profile-page .company-now-display-badge {
        background:
            linear-gradient(
                180deg,
                rgba(190, 226, 232, 0.76),
                rgba(153, 204, 213, 0.68)
            );

        border-color:
            rgba(0, 128, 145, 0.62);

        color:
            #0b3038;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.50),
            0 4px 14px rgba(11,68,80,0.10);

        -webkit-backdrop-filter:
            blur(10px) saturate(120%);

        backdrop-filter:
            blur(10px) saturate(120%);
    }


    /* ======================================================
       FOLLOWING / SAVED POSTS TABS
       ====================================================== */

    html[data-theme="light"]
    body.profile-page.following-page .follow-tab {
        background:
            linear-gradient(
                180deg,
                rgba(190, 226, 232, 0.76),
                rgba(153, 204, 213, 0.68)
            );

        border-color:
            rgba(0, 128, 145, 0.58);

        color:
            #0b3038;

        opacity:
            1;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.50),
            0 4px 13px rgba(11,68,80,0.09);

        -webkit-backdrop-filter:
            blur(10px) saturate(120%);

        backdrop-filter:
            blur(10px) saturate(120%);
    }


    html[data-theme="light"]
    body.profile-page.following-page .follow-tab.is-active {
        background:
            linear-gradient(
                180deg,
                rgba(42, 211, 205, 0.64),
                rgba(0, 159, 172, 0.42)
            );

        border-color:
            rgba(244, 112, 32, 0.90);

        color:
            #07343b;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.48),
            0 0 0 1px rgba(255,131,56,0.16),
            0 0 8px rgba(255,131,56,0.34),
            0 0 15px rgba(0,174,186,0.14);
    }
}

/* ===== MOBILE AURORA THEME CONSISTENCY END ===== */

/* ===== MOBILE LIGHT AURORA POSTS FINISH START ===== */

@media (max-width: 768px) {

    /* ======================================================
       POST COMPOSER — LIGHT AURORA
       ====================================================== */


    /* Choose image */
    html[data-theme="light"]
    body.profile-page
    #postUploadForm .composer-choose-image-btn {
        background:
            linear-gradient(
                180deg,
                rgba(190, 226, 232, 0.82),
                rgba(153, 204, 213, 0.72)
            );

        border:
            1px solid rgba(0, 128, 145, 0.62);

        color:
            #0b3038;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.52),
            0 5px 15px rgba(11,68,80,0.10);

        -webkit-backdrop-filter:
            blur(10px) saturate(120%);

        backdrop-filter:
            blur(10px) saturate(120%);
    }


    /* Title + info */
    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postTitle,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postInfo,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postBackContent {
        background:
            linear-gradient(
                180deg,
                rgba(218, 240, 243, 0.86),
                rgba(196, 227, 232, 0.78)
            );

        border:
            1px solid rgba(0, 132, 148, 0.52);

        color:
            #10333c;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.58),
            0 5px 15px rgba(15,76,88,0.09);

        -webkit-backdrop-filter:
            blur(10px) saturate(120%);

        backdrop-filter:
            blur(10px) saturate(120%);
    }


    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postTitle::placeholder,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postInfo::placeholder,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postBackContent::placeholder {
        color:
            rgba(20, 69, 79, 0.52);
    }


    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postTitle:focus,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postInfo:focus,

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #postBackContent:focus {
        outline: none;

        border-color:
            rgba(0, 145, 160, 0.82);

        background:
            linear-gradient(
                180deg,
                rgba(205, 238, 241, 0.92),
                rgba(181, 224, 229, 0.86)
            );

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.64),
            0 0 0 3px rgba(0,174,186,0.12),
            0 7px 18px rgba(15,76,88,0.12);
    }


    /* ======================================================
       MOOD BUTTONS
       Same visual language as Type / Mood filters.
       ====================================================== */

    html[data-theme="light"]
    body.profile-page
    #postUploadForm .post-mood-option {
        background:
            linear-gradient(
                180deg,
                rgba(218, 240, 243, 0.88),
                rgba(196, 227, 232, 0.82)
            );

        border:
            1px solid rgba(0, 132, 148, 0.50);

        color:
            #10333c;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.58),
            0 5px 14px rgba(15,76,88,0.08);

        -webkit-backdrop-filter:
            blur(10px) saturate(120%);

        backdrop-filter:
            blur(10px) saturate(120%);

        transition:
            background 150ms ease,
            border-color 150ms ease,
            box-shadow 150ms ease,
            transform 120ms ease;
    }


    /* Selected mood */
    html[data-theme="light"]
    body.profile-page
    #postUploadForm .post-mood-option[aria-checked="true"] {
        background: var(--auth-choice-selected-surface);

        border-color: var(--auth-choice-selected-border);

        color: var(--auth-choice-selected-text);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.62),
            0 0 0 1px rgba(255,131,56,0.18),
            0 0 8px rgba(255,131,56,0.42),
            0 0 17px rgba(0,174,186,0.16);
    }


    /* ======================================================
       PUBLISH BUTTON
       Primary Aurora cyan action.
       ====================================================== */

    html[data-theme="light"]
    body.profile-page
    #postUploadForm #composerPostBtn {
        background:
            linear-gradient(
                135deg,
                rgba(39, 221, 214, 0.96),
                rgba(0, 174, 186, 0.90)
            );

        border:
            1px solid rgba(0, 132, 148, 0.64);

        color:
            #06282d;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.28),
            0 10px 24px rgba(0,174,186,0.16);
    }


    /* ======================================================
       POST SHARE ACTION
       Remove generic white circle.
       Keep existing sizing / positioning.
       ====================================================== */


}

/* ===== MOBILE LIGHT AURORA POSTS FINISH END ===== */

/* ===== AURORA FOLLOW TABS COLOR LOCK START ===== */

/*
 * Following / Saved Posts tabs:
 * hover and keyboard focus must never fall back to legacy blue.
 */


/* DARK */

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab,

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab:hover,

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab:focus-visible {
    color:
        rgba(242, 251, 251, 0.96) !important;
}


/* LIGHT */

html[data-theme="light"]
body.profile-page.following-page .follow-tab,

html[data-theme="light"]
body.profile-page.following-page .follow-tab:hover,

html[data-theme="light"]
body.profile-page.following-page .follow-tab:focus-visible {
    color:
        #0b3038 !important;
}


/* Active LIGHT tab keeps its selected Aurora tone */

html[data-theme="light"]
body.profile-page.following-page .follow-tab.is-active,

html[data-theme="light"]
body.profile-page.following-page .follow-tab.is-active:hover {
    color:
        #07343b !important;
}

/* ===== AURORA FOLLOW TABS COLOR LOCK END ===== */

/* ===== THEME TOGGLE THUMB EXACT COLOR MATCH START ===== */

/*
 * Theme selector moving thumb only.
 *
 * DARK  = exact active language-button surface.
 * LIGHT = exact selected saved-city-chip surface.
 *
 * No size / position / icon / outer-toggle changes.
 */

html:not([data-theme="light"])
body.profile-page .theme-toggle__thumb {
    background: linear-gradient( 180deg, rgba(25, 221, 213, 0.42), rgba(4, 126, 133, 0.38) ) !important;
}

html[data-theme="light"]
body.profile-page .theme-toggle__thumb {
    background: linear-gradient( 180deg, rgba(48, 226, 218, 0.62), rgba(0, 174, 186, 0.34) ) !important;
}

/* ===== THEME TOGGLE THUMB EXACT COLOR MATCH END ===== */

/* ===== DARK LAUNCH PERIOD BADGE COLOR START ===== */

/* Dark Aurora: remove legacy blue text from launch-period badge. */
html:not([data-theme="light"])
body.profile-page #subStatusBadge.subscription-badge {
    color: #27ddd6 !important;
}

/* ===== DARK LAUNCH PERIOD BADGE COLOR END ===== */

/* ===== BROWSE NOW HOVER COLOR START ===== */

@media (hover: hover) and (pointer: fine) {

    html:not([data-theme="light"])
    body.profile-page .browse-now-ticker-item:hover,
    html:not([data-theme="light"])
    body.profile-page .browse-now-item:hover {
        color: #27ddd6 !important;
        text-decoration: none !important;
    }

    html:not([data-theme="light"])
    body.profile-page .browse-now-ticker-item:hover *,
    html:not([data-theme="light"])
    body.profile-page .browse-now-item:hover * {
        color: inherit !important;
        text-decoration: none !important;
    }

    html[data-theme="light"]
    body.profile-page .browse-now-ticker-item:hover,
    html[data-theme="light"]
    body.profile-page .browse-now-item:hover {
        color: #007786 !important;
        text-decoration: none !important;
    }

    html[data-theme="light"]
    body.profile-page .browse-now-ticker-item:hover *,
    html[data-theme="light"]
    body.profile-page .browse-now-item:hover * {
        color: inherit !important;
        text-decoration: none !important;
    }
}

/* ===== BROWSE NOW HOVER COLOR END ===== */

/* ===== DARK POST CARD SURFACE UNIFICATION START ===== */

/*
 * DARK only.
 *
 * posts.html is the visual reference.
 *
 * Browse + Following/Saved keep their existing layout,
 * top company bar, actions and spacing, but the physical
 * card shell now uses exactly the same surface language
 * as .posts-list .post-item.
 *
 * The grid itself stays completely transparent so the
 * Aurora artwork is visible cleanly between cards.
 */

/* No glass / haze layer between cards */
html:not([data-theme="light"])
body.profile-page.browsing-page .browse-grid,

html:not([data-theme="light"])
body.profile-page.following-page .browse-grid {
    background: transparent !important;
    background-color: transparent !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}


/* Match posts.html post-card shell */
html:not([data-theme="light"])
body.profile-page.browsing-page .browse-item,

html:not([data-theme="light"])
body.profile-page.following-page .browse-item {
    background:
        var(--surface-card-muted) !important;

    border-color:
        var(--border-subtle) !important;

    box-shadow:
        var(--shadow-sm) !important;

    -webkit-backdrop-filter:
        blur(10px) !important;

    backdrop-filter:
        blur(10px) !important;
}


/* Same restrained hover as posts.html */
@media (hover: hover) and (pointer: fine) {

    html:not([data-theme="light"])
    body.profile-page.browsing-page .browse-item:hover,

    html:not([data-theme="light"])
    body.profile-page.following-page .browse-item:hover {
        border-color:
            var(--accent-border-soft) !important;

        box-shadow:
            var(--shadow-sm) !important;
    }
}

/* ===== DARK POST CARD SURFACE UNIFICATION END ===== */

/* ===== DARK POSTS AREA NO BACKDROP BLUR START ===== */

/*
 * posts.html:
 * keep the individual post-card surface,
 * but remove every glass / blur effect from the area BETWEEN cards.
 */

html:not([data-theme="light"])
body.profile-page.company-profile .posts-card,

html:not([data-theme="light"])
body.profile-page.company-profile .posts-list {
    background: transparent !important;
    background-color: transparent !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    filter: none !important;
}

/*
 * Important:
 * individual post cards retain their existing
 * var(--surface-card-muted) surface and blur(10px).
 */

/* ===== DARK POSTS AREA NO BACKDROP BLUR END ===== */

/* ===== LIGHT POST SURFACE + FOLLOW TABS FINAL START ===== */


/* ==========================================================
   EMPTY SPACE BETWEEN CARDS
   ========================================================== */

html[data-theme="light"]
body.profile-page .posts-card,

html[data-theme="light"]
body.profile-page .posts-list,

html[data-theme="light"]
body.profile-page.browsing-page .browse-grid,

html[data-theme="light"]
body.profile-page.following-page .browse-grid {

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    filter: none !important;
}


/* ==========================================================
   EVERY LIGHT POST CARD = LIGHT HEADER SURFACE
   ========================================================== */

html[data-theme="light"]
body.profile-page .posts-list .post-item,

html[data-theme="light"]
body.profile-page .post-preview-content .post-item,

html[data-theme="light"]
body.profile-page.browsing-page .browse-item,

html[data-theme="light"]
body.profile-page.following-page .browse-item {

    background:
        var(--auth-glass-surface) !important;

    border:
        1px solid var(--auth-glass-border) !important;

    box-shadow:
        var(--auth-glass-shadow) !important;

    -webkit-backdrop-filter:
        var(--auth-glass-filter) !important;

    backdrop-filter:
        var(--auth-glass-filter) !important;
}


/*
 * POSTS.HTML footer was the remaining opaque blue/white strip.
 * It must NOT paint another surface over the parent card.
 */

html[data-theme="light"]
body.profile-page .posts-list .post-item .post-meta,

html[data-theme="light"]
body.profile-page .post-preview-content .post-item .post-meta {

    background:
        transparent !important;

    background-color:
        transparent !important;

    border-top:
        1px solid var(--auth-glass-border) !important;
}


/*
 * Browse / Following footer follows the same rule.
 */

html[data-theme="light"]
body.profile-page.browsing-page .browse-bottombar,

html[data-theme="light"]
body.profile-page.following-page .browse-bottombar {

    background:
        transparent !important;

    background-color:
        transparent !important;

    border-top-color:
        var(--auth-glass-border) !important;
}


/* card hover */

@media (hover: hover) and (pointer: fine) {

    html[data-theme="light"]
    body.profile-page .posts-list .post-item:hover,

    html[data-theme="light"]
    body.profile-page.browsing-page .browse-item:hover,

    html[data-theme="light"]
    body.profile-page.following-page .browse-item:hover {

        border-color:
            var(--auth-glass-hover-border) !important;

        box-shadow:
            var(--auth-glass-hover-shadow) !important;
    }
}


/* ==========================================================
   FOLLOWING / SAVED TABS
   ========================================================== */

html[data-theme="light"]
body.profile-page.following-page .follow-tab {

    background:
        var(--auth-glass-surface) !important;

    border:
        1px solid var(--auth-glass-border) !important;

    color:
        #0b3038 !important;

    opacity:
        1 !important;

    box-shadow:
        var(--auth-glass-shadow) !important;

    -webkit-backdrop-filter:
        var(--auth-glass-filter) !important;

    backdrop-filter:
        var(--auth-glass-filter) !important;
}


html[data-theme="light"]
body.profile-page.following-page {
    --follow-tab-active-surface:
        linear-gradient(
            180deg,
            rgba(42, 211, 205, 0.46),
            rgba(0, 159, 172, 0.30)
        );

    --follow-tab-active-border:
        var(--auth-choice-selected-border);

    --follow-tab-active-text:
        var(--auth-choice-selected-text);

    --follow-tab-active-shadow:
        inset 0 1px 0 rgba(255,255,255,0.40),
        0 0 0 1px rgba(255,131,56,0.12),
        0 0 8px rgba(255,131,56,0.28),
        0 0 14px rgba(0,174,186,0.10);
}


html[data-theme="light"]
body.profile-page.following-page .follow-tab * {
    color:
        inherit !important;
}


html[data-theme="light"]
body.profile-page.following-page .follow-tab.is-active {

    background:
        var(--follow-tab-active-surface) !important;

    border-color:
        var(--follow-tab-active-border) !important;

    color:
        var(--follow-tab-active-text) !important;

    box-shadow:
        var(--follow-tab-active-shadow) !important;
}


/* ==========================================================
   POSTS.HTML MOST / NOW
   ========================================================== */

html[data-theme="light"]
body.profile-page .company-now-display-badge {

    background:
        var(--auth-now-surface) !important;

    background-color:
        transparent !important;

    border:
        1px solid var(--auth-now-border) !important;

    color:
        var(--auth-now-text) !important;

    box-shadow:
        var(--auth-now-shadow) !important;

    -webkit-backdrop-filter:
        var(--auth-glass-filter) !important;

    backdrop-filter:
        var(--auth-glass-filter) !important;
}


html[data-theme="light"]
body.profile-page .company-now-display-label {

    color:
        var(--auth-now-text) !important;
}


/* keep live indicator green */
html[data-theme="light"]
body.profile-page .company-now-live-dot {

    background-color:
        #2edc86 !important;
}


/* ===== LIGHT POST SURFACE + FOLLOW TABS FINAL END ===== */

/* ===== GLOBAL POST ACTION VISUAL UNIFICATION START ===== */

/*
 * Browsing is the visual reference.
 *
 * Applies to:
 * - Browsing
 * - Following / Saved posts
 * - own posts (posts.html)
 * - opened company profile
 * - post preview clones
 *
 * Layout / top / right positions are intentionally untouched.
 */


/* ----------------------------------------------------------
   MOOD
---------------------------------------------------------- */

body.profile-page .post-mood-badge--overlay,
body.public-view .post-mood-badge--overlay {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* ----------------------------------------------------------
   CALL
---------------------------------------------------------- */

body.profile-page .browse-call-btn--overlay,
body.profile-page .ccv-post-call-btn,
body.public-view .browse-call-btn--overlay,
body.public-view .ccv-post-call-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;

    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.profile-page .browse-call-btn--overlay .call-btn-icon,
body.profile-page .ccv-post-call-btn .call-btn-icon,
body.public-view .browse-call-btn--overlay .call-btn-icon,
body.public-view .ccv-post-call-btn .call-btn-icon {
    width: 26px !important;
    height: 26px !important;
}


/* ----------------------------------------------------------
   SHARE
---------------------------------------------------------- */

body.profile-page .ccv-post-share-btn,
body.public-view .ccv-post-share-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;

    padding: 0 !important;
    border-radius: 50% !important;
}


/* ----------------------------------------------------------
   REPORT / MENU TRIGGER
---------------------------------------------------------- */

body.profile-page .ccv-post-menu-btn,
body.public-view .ccv-post-menu-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;

    padding: 0 !important;
    border-radius: 50% !important;
}


/*
 * Browsing Aurora glow treatment is shared by every post rail.
 * The pseudo-element itself supplies the glow; the real icon/button
 * remains crisp above it.
 */

body.profile-page .post-mood-badge--overlay,
body.profile-page .browse-call-btn--overlay,
body.profile-page .ccv-post-call-btn,
body.profile-page .ccv-post-share-btn,
body.profile-page .ccv-post-menu-btn,
body.public-view .post-mood-badge--overlay,
body.public-view .browse-call-btn--overlay,
body.public-view .ccv-post-call-btn,
body.public-view .ccv-post-share-btn,
body.public-view .ccv-post-menu-btn {
    isolation: isolate;
}


/* ===== GLOBAL POST ACTION VISUAL UNIFICATION END ===== */

/* ===== LIGHT PROFILE OPEN CONTENT AURORA START ===== */

/*
 * LIGHT profile/settings inner hierarchy.
 *
 * DARK hierarchy is the reference:
 * outer accordion card -> translucent controls -> quieter inner panels.
 *
 * Background artwork and DARK theme are untouched.
 */

html[data-theme="light"] body.profile-page {

    --profile-light-control-surface:
        linear-gradient(
            135deg,
            rgba(231, 249, 251, 0.52),
            rgba(188, 226, 232, 0.40)
        );

    --profile-light-control-surface-hover:
        linear-gradient(
            135deg,
            rgba(237, 252, 253, 0.64),
            rgba(194, 232, 237, 0.50)
        );

    --profile-light-control-surface-focus:
        linear-gradient(
            135deg,
            rgba(240, 253, 254, 0.72),
            rgba(199, 236, 240, 0.58)
        );

    --profile-light-inner-surface:
        linear-gradient(
            135deg,
            rgba(222, 244, 247, 0.42),
            rgba(174, 217, 224, 0.30)
        );

    --profile-light-control-border:
        rgba(0, 128, 145, 0.42);

    --profile-light-control-border-hover:
        rgba(0, 151, 166, 0.58);

    --profile-light-control-border-focus:
        rgba(0, 166, 180, 0.78);

    --profile-light-control-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 5px 16px rgba(15, 91, 103, 0.08);

    --profile-light-inner-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 14px rgba(15, 91, 103, 0.06);

    --profile-light-focus-shadow:
        0 0 0 1px rgba(0, 166, 180, 0.20),
        0 0 14px rgba(0, 166, 180, 0.14);

    --profile-light-text:
        #0b3038;

    --profile-light-muted:
        #365b63;

    --profile-light-placeholder:
        rgba(25, 70, 79, 0.52);
}


/* ==========================================================
   FORM CONTROLS
   ========================================================== */

html[data-theme="light"]
body.profile-page #privateProfileForm
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),

html[data-theme="light"]
body.profile-page #companyProfileForm
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),

html[data-theme="light"]
body.profile-page #privateProfileForm textarea,

html[data-theme="light"]
body.profile-page #companyProfileForm textarea,

html[data-theme="light"]
body.profile-page #privateProfileForm select,

html[data-theme="light"]
body.profile-page #companyProfileForm select,

html[data-theme="light"]
body.profile-page .company-now-field textarea {

    background:
        var(--profile-light-control-surface) !important;

    background-color:
        transparent !important;

    border:
        1px solid var(--profile-light-control-border) !important;

    color:
        var(--profile-light-text) !important;

    box-shadow:
        var(--profile-light-control-shadow) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}


html[data-theme="light"]
body.profile-page #privateProfileForm
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,

html[data-theme="light"]
body.profile-page #companyProfileForm
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,

html[data-theme="light"]
body.profile-page #privateProfileForm textarea:focus,

html[data-theme="light"]
body.profile-page #companyProfileForm textarea:focus,

html[data-theme="light"]
body.profile-page #privateProfileForm select:focus,

html[data-theme="light"]
body.profile-page #companyProfileForm select:focus,

html[data-theme="light"]
body.profile-page .company-now-field textarea:focus {

    outline:
        none !important;

    background:
        var(--profile-light-control-surface-focus) !important;

    border-color:
        var(--profile-light-control-border-focus) !important;

    box-shadow:
        var(--profile-light-focus-shadow) !important;
}


html[data-theme="light"]
body.profile-page #privateProfileForm input::placeholder,

html[data-theme="light"]
body.profile-page #companyProfileForm input::placeholder,

html[data-theme="light"]
body.profile-page #privateProfileForm textarea::placeholder,

html[data-theme="light"]
body.profile-page #companyProfileForm textarea::placeholder,

html[data-theme="light"]
body.profile-page .company-now-field textarea::placeholder {

    color:
        var(--profile-light-placeholder) !important;

    opacity:
        1;
}


/* ==========================================================
   QUIET INNER PANELS
   subscription note / NOW public setting / export note
   ========================================================== */

html[data-theme="light"]
body.profile-page .account-collapsible .subscription-note,

html[data-theme="light"]
body.profile-page .account-collapsible .company-now-public-control {

    background:
        var(--profile-light-inner-surface) !important;

    background-color:
        transparent !important;

    border:
        1px solid rgba(0, 128, 145, 0.30) !important;

    color:
        var(--profile-light-muted) !important;

    box-shadow:
        var(--profile-light-inner-shadow) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(118%);

    backdrop-filter:
        blur(10px) saturate(118%);
}


/* preserve semantic warning/error surfaces */
html[data-theme="light"]
body.profile-page .account-collapsible .subscription-note.is-warning {

    background:
        var(--status-warning-surface) !important;

    border-color:
        var(--status-warning-border) !important;

    color:
        var(--status-warning-text) !important;
}


html[data-theme="light"]
body.profile-page .account-collapsible .subscription-note.is-problem {

    background:
        var(--status-danger-surface) !important;

    border-color:
        var(--status-danger-border) !important;

    color:
        var(--status-danger-text) !important;
}


/* ==========================================================
   SECONDARY ACTIONS
   ========================================================== */

html[data-theme="light"]
body.profile-page .account-collapsible
.subscription-action-btn.is-secondary {

    background:
        var(--profile-light-control-surface) !important;

    background-color:
        transparent !important;

    border:
        1px solid var(--profile-light-control-border) !important;

    color:
        var(--profile-light-text) !important;

    box-shadow:
        var(--profile-light-control-shadow) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}


@media (hover: hover) and (pointer: fine) {

    html[data-theme="light"]
    body.profile-page .account-collapsible
    .subscription-action-btn.is-secondary:hover {

        background:
            var(--profile-light-control-surface-hover) !important;

        border-color:
            var(--profile-light-control-border-hover) !important;
    }
}


/* ==========================================================
   INTERNAL TEXT / DIVIDERS
   ========================================================== */

html[data-theme="light"]
body.profile-page .account-collapsible .subscription-row
+ .subscription-row {

    border-top-color:
        rgba(0, 128, 145, 0.22);
}


html[data-theme="light"]
body.profile-page .account-collapsible .subscription-label,

html[data-theme="light"]
body.profile-page #privateProfileForm small,

html[data-theme="light"]
body.profile-page #companyProfileForm small,

html[data-theme="light"]
body.profile-page .company-now-public-hint {

    color:
        var(--profile-light-muted);
}


/* NOW checkbox keeps native accessibility/behaviour,
   only its semantic accent follows Aurora. */

html[data-theme="light"]
body.profile-page .company-now-public-toggle
input[type="checkbox"] {

    accent-color:
        #009fac;
}


/* ===== LIGHT PROFILE OPEN CONTENT AURORA END ===== */

/* ===== PROFILE TYPE + PRIMARY ACTION AURORA START ===== */

/*
 * Final profile-form visual cleanup.
 *
 * - LIGHT company-type tiles follow the new light glass hierarchy.
 * - Selected company type follows the established Type/Mood language:
 *      DARK  = warm orange/gold
 *      LIGHT = turquoise glass + orange perimeter
 * - Primary Save action uses SIMINEO turquoise instead of legacy blue.
 *
 * Layout / sizing / JS behaviour untouched.
 */


/* ==========================================================
   LIGHT — INACTIVE COMPANY TYPE OPTIONS
   ========================================================== */

html[data-theme="light"]
body.profile-page #companyProfileForm .company-type-option {

    background:
        var(--profile-light-control-surface) !important;

    background-color:
        transparent !important;

    border-color:
        var(--profile-light-control-border) !important;

    color:
        var(--profile-light-text) !important;

    box-shadow:
        var(--profile-light-control-shadow) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);
}


@media (hover: hover) and (pointer: fine) {

    html[data-theme="light"]
    body.profile-page #companyProfileForm
    .company-type-option:hover {

        background:
            var(--profile-light-control-surface-hover) !important;

        border-color:
            var(--profile-light-control-border-hover) !important;
    }
}


/* ==========================================================
   DARK — SELECTED COMPANY TYPE
   warm orange / gold, same logic as selected dark filters
   ========================================================== */

html:not([data-theme="light"])
body.profile-page #companyProfileForm
.company-type-option.is-selected,

html:not([data-theme="light"])
body.profile-page #companyProfileForm
.company-type-option.is-active,

html:not([data-theme="light"])
body.profile-page #companyProfileForm
.company-type-option[aria-pressed="true"],

html:not([data-theme="light"])
body.profile-page #companyProfileForm
.company-type-option[data-selected="true"],

html:not([data-theme="light"])
body.profile-page .posts-add
.post-mood-option.is-selected {

    background: var(--auth-choice-selected-surface) !important;

    border-color: var(--auth-choice-selected-border) !important;

    color: var(--auth-choice-selected-text) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 205, 166, 0.15),
        0 0 0 1px rgba(255, 139, 56, 0.16),
        0 0 8px rgba(255, 139, 56, 0.46),
        0 0 18px rgba(255, 111, 28, 0.22) !important;
}


/* ==========================================================
   LIGHT — SELECTED COMPANY TYPE
   turquoise glass + orange perimeter
   ========================================================== */

html[data-theme="light"]
body.profile-page #companyProfileForm
.company-type-option.is-selected,

html[data-theme="light"]
body.profile-page #companyProfileForm
.company-type-option.is-active,

html[data-theme="light"]
body.profile-page #companyProfileForm
.company-type-option[aria-pressed="true"],

html[data-theme="light"]
body.profile-page #companyProfileForm
.company-type-option[data-selected="true"],

html[data-theme="light"]
body.profile-page .posts-add
.post-mood-option.is-selected {

    background: var(--auth-choice-selected-surface) !important;

    border-color: var(--auth-choice-selected-border) !important;

    color: var(--auth-choice-selected-text) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 0 0 1px rgba(255, 131, 56, 0.18),
        0 0 8px rgba(255, 131, 56, 0.46),
        0 0 17px rgba(0, 174, 186, 0.18) !important;
}


/* ==========================================================
   PRIMARY SAVE BUTTON — DARK
   legacy blue -> SIMINEO turquoise
   ========================================================== */

html:not([data-theme="light"])
body.profile-page #privateProfileForm
button[type="submit"],

html:not([data-theme="light"])
body.profile-page #companyProfileForm
button[type="submit"],

html:not([data-theme="light"])
body.profile-page #composerPostBtn {

    background:
        linear-gradient(
            135deg,
            rgba(39, 221, 214, 0.96),
            rgba(0, 174, 186, 0.88)
        ) !important;

    border:
        1px solid rgba(39, 221, 214, 0.72) !important;

    color:
        #042c32 !important;

    box-shadow:
        inset 0 1px 0 rgba(164, 255, 249, 0.28),
        0 0 0 1px rgba(39, 221, 214, 0.08),
        0 0 14px rgba(39, 221, 214, 0.20) !important;
}


/* ==========================================================
   PRIMARY SAVE BUTTON — LIGHT
   same semantic color, tuned for light environment
   ========================================================== */

html[data-theme="light"]
body.profile-page #privateProfileForm
button[type="submit"],

html[data-theme="light"]
body.profile-page #companyProfileForm
button[type="submit"],

html[data-theme="light"]
body.profile-page #composerPostBtn {

    background:
        linear-gradient(
            135deg,
            rgba(48, 226, 218, 0.86),
            rgba(0, 174, 186, 0.66)
        ) !important;

    border:
        1px solid rgba(0, 137, 151, 0.66) !important;

    color:
        #06383f !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        0 5px 16px rgba(9, 96, 108, 0.10),
        0 0 12px rgba(0, 174, 186, 0.12) !important;
}


/* ==========================================================
   PRIMARY SAVE HOVER / FOCUS
   orange appears only as interaction energy
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    html:not([data-theme="light"])
    body.profile-page #privateProfileForm
    button[type="submit"]:hover,

    html:not([data-theme="light"])
    body.profile-page #companyProfileForm
    button[type="submit"]:hover,

    html[data-theme="light"]
    body.profile-page #privateProfileForm
    button[type="submit"]:hover,

    html[data-theme="light"]
    body.profile-page #companyProfileForm
    button[type="submit"]:hover {

        border-color:
            rgba(255, 139, 56, 0.84) !important;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.28),
            0 0 0 1px rgba(255,139,56,0.12),
            0 0 12px rgba(255,126,42,0.20),
            0 0 18px rgba(0,174,186,0.12) !important;
    }
}


html:not([data-theme="light"])
body.profile-page #privateProfileForm
button[type="submit"]:focus-visible,

html:not([data-theme="light"])
body.profile-page #companyProfileForm
button[type="submit"]:focus-visible,

html[data-theme="light"]
body.profile-page #privateProfileForm
button[type="submit"]:focus-visible,

html[data-theme="light"]
body.profile-page #companyProfileForm
button[type="submit"]:focus-visible {

    outline:
        none !important;

    border-color:
        rgba(255, 139, 56, 0.92) !important;

    box-shadow:
        0 0 0 2px rgba(255, 139, 56, 0.20),
        0 0 14px rgba(255, 126, 42, 0.22) !important;
}


/* ===== PROFILE TYPE + PRIMARY ACTION AURORA END ===== */

/* ===== IOS / TOUCH FOLLOW TAB STICKY FOCUS FIX START ===== */
/*
 * iOS standalone/PWA may retain button focus after a touch tab switch,
 * leaving the focus ring visible around the previously selected tab.
 *
 * Keep keyboard focus indication on desktop, but suppress the sticky
 * touch focus ring and press transform on coarse touch pointers.
 */
@media (hover: none) and (pointer: coarse) {
  body.profile-page.following-page .follow-tab:focus,
  body.profile-page.following-page .follow-tab:focus-visible {
    outline: none;
    box-shadow: none;
  }

  body.profile-page.following-page .follow-tab:active {
    transform: none;
  }
}
/* ===== IOS / TOUCH FOLLOW TAB STICKY FOCUS FIX END ===== */

/* ===== FOLLOW TABS DARK THEME = NORMAL / GRID LOOK START ===== */
html:not([data-theme="light"])
body.profile-page.following-page .follow-tab {
  background:
    linear-gradient(
      180deg,
      rgba(7, 33, 40, 0.82),
      rgba(5, 24, 30, 0.74)
    ) !important;
  border:
    1px solid rgba(0, 191, 205, 0.44) !important;
  color:
    rgba(238, 249, 250, 0.96) !important;
  opacity:
    1 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(0, 191, 205, 0.10),
    0 0 10px rgba(0, 191, 205, 0.12) !important;
  -webkit-backdrop-filter:
    blur(10px) saturate(120%) !important;
  backdrop-filter:
    blur(10px) saturate(120%) !important;
}

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab:hover {
  border-color:
    rgba(0, 210, 225, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(0, 210, 225, 0.12),
    0 0 14px rgba(0, 210, 225, 0.16) !important;
}

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab.is-active,
html:not([data-theme="light"])
body.profile-page.following-page .follow-tab[aria-pressed="true"] {
  background:
    linear-gradient(
      180deg,
      rgba(255, 153, 72, 0.34),
      rgba(186, 96, 28, 0.26)
    ) !important;
  border-color:
    rgba(255, 140, 70, 0.92) !important;
  color:
    rgba(255, 248, 241, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(255,131,56,0.20),
    0 0 9px rgba(255,131,56,0.34),
    0 0 18px rgba(255,131,56,0.16) !important;
}

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab * {
  color:
    inherit !important;
}
/* ===== FOLLOW TABS DARK THEME = NORMAL / GRID LOOK END ===== */


/* ===== FOLLOW TABS MATCH COMPANY VIEW CONTROLS START ===== */

/*
 * Following / Saved Posts uses the exact same visual language
 * as the accepted Company Normal / Grid switch.
 * Geometry remains unchanged; only theme surface styling is aligned.
 */


/* DARK — INACTIVE */

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab {
    background:
        linear-gradient(
            180deg,
            rgba(10, 42, 49, 0.72),
            rgba(5, 28, 34, 0.66)
        ) !important;

    border-color:
        rgba(39, 221, 214, 0.42) !important;

    color:
        #f2fbfb !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 13px rgba(0, 0, 0, 0.14) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(125%);

    backdrop-filter:
        blur(10px) saturate(125%);

    opacity:
        1 !important;
}


/* DARK — ACTIVE */

html:not([data-theme="light"])
body.profile-page.following-page .follow-tab.is-active {
    background:
        linear-gradient(
            180deg,
            rgba(255, 151, 74, 0.42),
            rgba(243, 111, 33, 0.32)
        ) !important;

    border-color:
        rgba(255, 139, 56, 0.92) !important;

    color:
        #fff8f1 !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 218, 180, 0.18),
        0 0 0 1px rgba(255, 139, 56, 0.14),
        0 0 10px rgba(255, 126, 42, 0.34) !important;
}

/* FOLLOWING: the active Followed Companies tab uses the card turquoise.
   Placed after the shared active-tab rule because it has !important colors. */
html:not([data-theme="light"])
body.profile-page.following-page #followTabFollowing.follow-tab.is-active {
  background: var(--aurora-following-surface) !important;
  border-color: var(--aurora-following-border) !important;
  box-shadow: var(--aurora-following-shadow) !important;
  color: #e8ffff !important;
}


/* LIGHT — INACTIVE */

html[data-theme="light"]
body.profile-page.following-page .follow-tab {
    background:
        linear-gradient(
            180deg,
            rgba(190, 226, 232, 0.76),
            rgba(153, 204, 213, 0.68)
        ) !important;

    border-color:
        rgba(0, 128, 145, 0.58) !important;

    color:
        #0b3038 !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.50),
        0 4px 13px rgba(11, 68, 80, 0.09) !important;

    -webkit-backdrop-filter:
        blur(10px) saturate(120%);

    backdrop-filter:
        blur(10px) saturate(120%);

    opacity:
        1 !important;
}


/* LIGHT — ACTIVE */

html[data-theme="light"]
body.profile-page.following-page .follow-tab.is-active {
    background:
        linear-gradient(
            180deg,
            rgba(42, 211, 205, 0.64),
            rgba(0, 159, 172, 0.42)
        ) !important;

    border-color:
        rgba(244, 112, 32, 0.90) !important;

    color:
        #07343b !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 0 0 1px rgba(255, 131, 56, 0.16),
        0 0 8px rgba(255, 131, 56, 0.34),
        0 0 15px rgba(0, 174, 186, 0.14) !important;
}


/* Child text/count always follows the button */

body.profile-page.following-page .follow-tab * {
    color:
        inherit !important;
}


/* Desktop hover = Company selector hover */

@media (hover: hover) {

    html:not([data-theme="light"])
    body.profile-page.following-page
    .follow-tab:not(.is-active):hover {
        border-color:
            rgba(83, 247, 238, 0.70) !important;

        background:
            linear-gradient(
                180deg,
                rgba(16, 60, 67, 0.82),
                rgba(7, 39, 45, 0.76)
            ) !important;
    }

    html[data-theme="light"]
    body.profile-page.following-page
    .follow-tab:not(.is-active):hover {
        border-color:
            rgba(0, 145, 160, 0.78) !important;

        background:
            linear-gradient(
                180deg,
                rgba(171, 219, 226, 0.86),
                rgba(128, 190, 201, 0.78)
            ) !important;
    }
}

/* ===== FOLLOW TABS MATCH COMPANY VIEW CONTROLS END ===== */


/* ===== FINAL PROFILE THEME TOUCH-UPS START ===== */

/*
 * Last small alignment fixes:
 * 1) subscription status/value text must follow the theme, not legacy blue
 * 2) public company profile Normal / Grid toggle must match the accepted company theme
 */

/* ==========================================================
   SUBSCRIPTION VALUE COLORS — DARK
   ========================================================== */

html:not([data-theme="light"]) body.profile-page .account-subscription-box .subscription-value,
html:not([data-theme="light"]) body.profile-page .account-subscription-box .subscription-row .subscription-value,
html:not([data-theme="light"]) body.profile-page .account-subscription-box .subscription-row strong.subscription-value,
html:not([data-theme="light"]) body.profile-page .account-subscription-box .subscription-row strong {
    color: #eef9fa !important;
    text-shadow: 0 0 8px rgba(39, 221, 214, 0.10);
}

/* ==========================================================
   SUBSCRIPTION VALUE COLORS — LIGHT
   ========================================================== */

html[data-theme="light"] body.profile-page .account-subscription-box .subscription-value,
html[data-theme="light"] body.profile-page .account-subscription-box .subscription-row .subscription-value,
html[data-theme="light"] body.profile-page .account-subscription-box .subscription-row strong.subscription-value,
html[data-theme="light"] body.profile-page .account-subscription-box .subscription-row strong {
    color: #0b3038 !important;
    text-shadow: none !important;
}

/* ==========================================================
   PUBLIC COMPANY PROFILE — NORMAL / GRID TOGGLE
   Same visual language as the accepted company controls
   ========================================================== */

/* DARK — inactive */
html:not([data-theme="light"]) body.public-view .posts-view-btn {
    background:
        linear-gradient(
            180deg,
            rgba(10, 42, 49, 0.72),
            rgba(5, 28, 34, 0.66)
        ) !important;
    border-color: rgba(39, 221, 214, 0.42) !important;
    color: #f2fbfb !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 13px rgba(0, 0, 0, 0.14) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    backdrop-filter: blur(10px) saturate(125%);
    opacity: 1 !important;
}

/* DARK — active */
html:not([data-theme="light"]) body.public-view .posts-view-btn.is-active,
html:not([data-theme="light"]) body.public-view .posts-view-btn[aria-pressed="true"] {
    background:
        linear-gradient(
            180deg,
            rgba(255, 151, 74, 0.42),
            rgba(243, 111, 33, 0.32)
        ) !important;
    border-color: rgba(255, 139, 56, 0.92) !important;
    color: #fff8f1 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 218, 180, 0.18),
        0 0 0 1px rgba(255, 139, 56, 0.14),
        0 0 10px rgba(255, 126, 42, 0.34) !important;
}

/* LIGHT — inactive */
html[data-theme="light"] body.public-view .posts-view-btn {
    background:
        linear-gradient(
            180deg,
            rgba(190, 226, 232, 0.76),
            rgba(153, 204, 213, 0.68)
        ) !important;
    border-color: rgba(0, 128, 145, 0.58) !important;
    color: #0b3038 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.50),
        0 4px 13px rgba(11, 68, 80, 0.09) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    opacity: 1 !important;
}

/* LIGHT — active */
html[data-theme="light"] body.public-view .posts-view-btn.is-active,
html[data-theme="light"] body.public-view .posts-view-btn[aria-pressed="true"] {
    background:
        linear-gradient(
            180deg,
            rgba(42, 211, 205, 0.64),
            rgba(0, 159, 172, 0.42)
        ) !important;
    border-color: rgba(244, 112, 32, 0.90) !important;
    color: #07343b !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 0 0 1px rgba(255, 131, 56, 0.16),
        0 0 8px rgba(255, 131, 56, 0.34),
        0 0 15px rgba(0, 174, 186, 0.14) !important;
}

/* child text/icons always inherit */
body.public-view .posts-view-btn * {
    color: inherit !important;
}

/* hover */
@media (hover: hover) {
    html:not([data-theme="light"]) body.public-view .posts-view-btn:not(.is-active):not([aria-pressed="true"]):hover {
        border-color: rgba(83, 247, 238, 0.70) !important;
        background:
            linear-gradient(
                180deg,
                rgba(16, 60, 67, 0.82),
                rgba(7, 39, 45, 0.76)
            ) !important;
    }

    html[data-theme="light"] body.public-view .posts-view-btn:not(.is-active):not([aria-pressed="true"]):hover {
        border-color: rgba(0, 145, 160, 0.78) !important;
        background:
            linear-gradient(
                180deg,
                rgba(171, 219, 226, 0.86),
                rgba(128, 190, 201, 0.78)
            ) !important;
    }
}

/* ===== FINAL PROFILE THEME TOUCH-UPS END ===== */

/* =========================================================
   POST REMINDER
   Shared authenticated Post reminder action + modal.
   This is the canonical styling block for this feature.
   ========================================================= */

.post-reminder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  flex: 0 0 auto;
  opacity: 0.72;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.post-reminder-btn:hover,
.post-reminder-btn:focus-visible {
  opacity: 1;
}

.post-reminder-btn:active {
  transform: scale(0.94);
}

.post-reminder-btn svg {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.post-reminder-bell-fill {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.post-reminder-bell-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/*
 * Image action rail.
 *
 * Inactive:
 * same neutral control language as the other Post actions.
 *
 * Active:
 * SIMINEO Aurora orange.
 */
.post-reminder-btn--overlay {
  position: absolute;
  top: 209px;
  right: 8px;
  left: auto;
  z-index: 6;

  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;

  padding: 0;

  border: 1px solid var(--post-action-border);
  border-radius: 50%;

  background: var(--post-action-surface);
  color: var(--post-action-text);

  opacity: 1;
  box-shadow: var(--post-action-shadow);
  -webkit-backdrop-filter: var(--post-action-filter);
  backdrop-filter: var(--post-action-filter);
}

.post-reminder-btn--overlay svg {
  width: 19px;
  height: 19px;
}

/* Public company profile rail:
   mood 10 -> call 65 -> share 120 -> menu 175 -> reminder 230 */
.post-item--public
.post-reminder-btn--overlay {
  top: 230px;
}

/* Own company Post rail:
   mood 10 -> share 65 -> reminder 120 */
.post-item:not(.post-item--public)
.post-reminder-btn--overlay {
  top: 120px;
}

/* Browsing rail:
   call 65 -> share 113 -> menu 161 -> reminder 209 */
body.profile-page.browsing-page .browse-item
.post-reminder-btn--overlay {
  top: 209px;
}

/* Following / Saved rail:
   no report/menu button, so reminder occupies that slot */
body.profile-page.following-page .browse-item
.post-reminder-btn--overlay {
  top: 161px;
}

.post-reminder-btn.is-active {
  opacity: 1;
  color: var(--post-view-control-active-border);
}

.post-reminder-btn.is-active
.post-reminder-bell-fill {
  fill: currentColor;
}

/* ---------------------------------------------------------
   REMINDER MODAL
   --------------------------------------------------------- */

/* ===== REMINDERS PAGE START ===== */

/*
 * My Reminders page.
 *
 * New page component only.
 * No existing selector overrides.
 * Surface language comes from the canonical
 * profile/settings theme tokens.
 */

body.profile-page.reminders-page .main-container {
    align-items: center;
}

.reminders-shell {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.reminders-page-head {
    width: 100%;
    margin-bottom: 1rem;
}

.reminders-page-title {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reminders-content {
    width: 100%;
}

.reminders-group + .reminders-group {
    margin-top: 1.5rem;
}

.reminders-group-title {
    margin: 0 0 0.7rem;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.reminders-group-note {
    margin: -0.25rem 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reminder-card {
    width: 100%;
    min-width: 0;
    padding: 0.8rem;
    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        96px
        minmax(0, 1fr)
        auto;
    align-items: stretch;
    gap: 0.9rem;

    border:
        1px solid
        var(--profile-settings-card-border);

    border-radius:
        var(--radius-md);

    background:
        var(--profile-settings-card-surface);

    box-shadow:
        var(--profile-settings-card-shadow);

    -webkit-backdrop-filter:
        var(--profile-settings-card-filter);

    backdrop-filter:
        var(--profile-settings-card-filter);
}

.reminder-card.is-unavailable {
    opacity: 0.78;
}

.reminder-card-thumb {
    width: 96px;
    height: 96px;
    min-width: 0;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(
            --profile-light-control-border,
            var(--border-subtle)
        );

    border-radius: 14px;

    background:
        var(
            --profile-light-inner-surface,
            var(--surface-control-neutral)
        );

    color:
        var(
            --profile-light-muted,
            var(--color-text-muted)
        );

    text-decoration: none;
}

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

.reminder-card-thumb-placeholder {
    font-size: 1.25rem;
    font-weight: 800;
    opacity: 0.5;
}

.reminder-card-main {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
}

.reminder-card-company {
    margin: 0;

    color:
        var(--color-text-main);

    font-size: 1rem;
    font-weight: 750;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reminder-card-company-link {
    color: inherit;
    text-decoration: none;
}

.reminder-card-company-link:hover,
.reminder-card-company-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.reminder-card-company-link:focus-visible {
    outline: none;
}


.reminder-card-date {
    color:
        var(--color-text-muted);

    font-size: 0.86rem;
    font-weight: 650;
}

.reminder-card-text {
    margin: 0.2rem 0 0;

    color:
        var(--color-text-main);

    font-size: 0.95rem;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

.reminder-card-unavailable {
    margin-top: 0.2rem;

    color:
        var(--color-text-muted);

    font-size: 0.8rem;
    font-weight: 650;
}

.reminder-card-side {
    min-width: 116px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem;
}

.reminder-unread-badge {
    align-self: flex-end;

    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid
        var(--status-notification-border);

    border-radius: 999px;

    background:
        var(--status-notification-surface);

    color:
        var(--text-on-status);

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.reminder-status {
    min-height: 28px;
    padding: 0.25rem 0.65rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.reminder-status--active {
    background:
        var(--profile-menu-hover-surface);

    border-color:
        var(--profile-menu-hover-border);

    color:
        var(--color-text-main);
}

.reminder-status--expired {
    background:
        var(
            --profile-light-inner-surface,
            var(--surface-control-neutral)
        );

    border-color:
        var(
            --profile-light-control-border,
            var(--border-subtle)
        );

    color:
        var(
            --profile-light-muted,
            var(--color-text-muted)
        );
}

.reminder-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.reminder-action {
    min-width: 96px;
    min-height: 34px;
    padding: 0.38rem 0.7rem;

    border:
        1px solid
        var(
            --profile-light-control-border,
            var(--border-control)
        );

    border-radius: 10px;

    background:
        var(
            --profile-light-control-surface,
            var(--surface-control)
        );

    color:
        var(
            --profile-light-text,
            var(--color-text-main)
        );

    box-shadow:
        var(
            --profile-light-control-shadow,
            none
        );

    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.14s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.reminder-action:hover,
.reminder-action:focus-visible {
    outline: none;

    transform:
        translateY(-1px);

    background:
        var(
            --profile-light-control-surface-hover,
            var(--profile-menu-hover-surface)
        );

    border-color:
        var(
            --profile-light-control-border-hover,
            var(--profile-menu-hover-border)
        );

    box-shadow:
        var(
            --profile-light-control-shadow,
            none
        );
}

.reminder-action--delete {
    background:
        var(--status-danger-surface);

    border-color:
        var(--status-danger-border);

    color:
        var(--status-danger-text);

    box-shadow: none;
}

.reminder-action--delete:hover,
.reminder-action--delete:focus-visible {
    background:
        var(--status-danger-surface);

    border-color:
        var(--status-danger-strong);

    color:
        var(--status-danger-text);

    box-shadow: none;
}

.reminder-action:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.reminders-state {
    width: 100%;
    padding: 1rem 1.1rem;
    box-sizing: border-box;

    border:
        1px solid
        var(--profile-settings-card-border);

    border-radius:
        var(--radius-md);

    background:
        var(--profile-settings-card-surface);

    box-shadow:
        var(--profile-settings-card-shadow);

    color:
        var(--color-text-muted);

    text-align: center;
    font-size: 0.92rem;

    -webkit-backdrop-filter:
        var(--profile-settings-card-filter);

    backdrop-filter:
        var(--profile-settings-card-filter);
}

.reminders-state.is-error {
    border-color:
        var(--status-danger-border);

    color:
        var(--status-danger-text);
}

@media (max-width: 640px) {
    .reminders-shell {
        max-width: 100%;
    }

    .reminder-card {
        grid-template-columns:
            76px
            minmax(0, 1fr);

        gap: 0.7rem;
        padding: 0.7rem;
    }

    .reminder-card-thumb {
        width: 76px;
        height: 76px;
        border-radius: 12px;
    }

    .reminder-card-side {
        grid-column: 1 / -1;

        min-width: 0;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .reminder-card-actions {
        flex-direction: row;
    }

    .reminder-action {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .reminders-page-title {
        font-size: 1.3rem;
    }

    .reminder-card {
        grid-template-columns:
            64px
            minmax(0, 1fr);
    }

    .reminder-card-thumb {
        width: 64px;
        height: 64px;
    }

    .reminder-card-side {
        align-items: stretch;
        flex-direction: column;
    }

    .reminder-status {
        align-self: flex-start;
    }

    .reminder-card-actions {
        width: 100%;
    }

    .reminder-action {
        flex: 1 1 0;
    }
}

/* ===== REMINDERS PAGE END ===== */


.post-reminder-overlay {
  box-sizing: border-box;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));

  overflow-x: hidden;
  overflow-y: auto;
}

.post-reminder-dialog {
  width: min(
    520px,
    calc(100vw - 32px)
  );

  max-width: 100%;

  max-height:
    calc(100dvh - 32px);

  margin: auto;

  box-sizing: border-box;

  overflow-x: hidden;
  overflow-y: auto;
}

.post-reminder-dialog,
.post-reminder-dialog *,
.post-reminder-dialog *::before,
.post-reminder-dialog *::after {
  box-sizing: border-box;
}

.post-reminder-dialog form {
  min-width: 0;
  max-width: 100%;
}

.post-reminder-dialog textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.post-reminder-dialog textarea::placeholder {
  color: var(
    --profile-light-placeholder,
    var(--color-text-muted)
  );
  opacity: 1;
}

.post-reminder-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 4px 0 18px;
}

.post-reminder-preview-image {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  object-fit: cover;
}

.post-reminder-preview-copy {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-reminder-preview-copy strong,
.post-reminder-post-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-reminder-post-title {
  opacity: 0.72;
  white-space: nowrap;
}

.post-reminder-datetime {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 14px;
}

.post-reminder-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.post-reminder-field
.ccv-report-label {
  margin-bottom: 6px;
}

.post-reminder-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid var(
    --profile-light-control-border,
    var(--color-border-light)
  );
  border-radius: 12px;
  background: var(
    --profile-light-control-surface,
    var(--surface-control-neutral)
  );
  color: var(
    --profile-light-text,
    var(--color-text-main)
  );
}

.post-reminder-control:focus-within {
  border-color: var(
    --profile-light-control-border-focus,
    var(--color-border-light)
  );
  background: var(
    --profile-light-control-surface-focus,
    var(--surface-control-focus)
  );
  box-shadow: var(
    --profile-light-focus-shadow,
    var(--ring)
  );
}

.post-reminder-native-input {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.post-reminder-push-warning {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .post-reminder-overlay {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .post-reminder-dialog {
    width: calc(100vw - 24px);
    max-height:
      calc(100dvh - 24px);
  }

  .post-reminder-datetime {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .post-reminder-preview-image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
}\n

/* Following unread: preserve a full-size touch target on mobile. */
body.following-page .browse-topbar .browse-company { flex: 1 1 auto; min-width: 0; max-width: none; }
body.following-page .browse-topbar .browse-follow-btn { flex: 0 0 auto; }
body.following-page .browse-topbar .browse-follow-btn.is-unread-posts { cursor: pointer; }

/* FOLLOWING: unread posts use Aurora orange; normal Follow stays cyan. */
html:not([data-theme="light"])
body.profile-page.following-page .browse-topbar .browse-follow-btn.is-unread-posts,
html:not([data-theme="light"])
body.profile-page.following-page .browse-topbar .browse-follow-btn.is-unread-posts:hover {
  background: linear-gradient(180deg, rgba(255, 151, 74, 0.55), rgba(218, 96, 28, 0.45));
  border-color: rgba(255, 146, 66, 0.96);
  color: #fff8f1;
  box-shadow:
    inset 0 1px 0 rgba(255, 218, 180, 0.18),
    0 0 0 1px rgba(255, 131, 56, 0.13),
    0 0 13px rgba(255, 126, 42, 0.32);
}

html[data-theme="light"]
body.profile-page.following-page .browse-topbar .browse-follow-btn.is-unread-posts,
html[data-theme="light"]
body.profile-page.following-page .browse-topbar .browse-follow-btn.is-unread-posts:hover {
  background: linear-gradient(180deg, rgba(255, 199, 126, 0.97), rgba(247, 147, 66, 0.94));
  border-color: rgba(187, 81, 18, 0.92);
  color: #4b250d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(227, 112, 39, 0.14),
    0 4px 13px rgba(145, 69, 17, 0.20);
}

body.profile-page.following-page .browse-topbar
.browse-follow-btn.is-unread-posts:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* ===== POST AI BADGE COMPONENT ===== */

.post-ai-badge-host {
  position: relative;
}

.post-ai-badge--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.post-ai-badge--overlay img {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
  pointer-events: none;
}

.post-ai-badge--overlay:focus-visible {
  outline: 2px solid var(--color-accent, #00a6b4);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Match the Mood badge position in opened previews. */
.post-preview-content .post-ai-badge--overlay {
  top: 65px;
  left: 10px;
  right: auto;
}

/*
 * The AI declaration belongs to the image front.
 * When a post is flipped to its text backside, hide the
 * external overlay without changing the flip controller.
 */
.post-ai-badge-host:has(.post-flip-stage.is-back)
  > .post-ai-badge--overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* Own company normal view: place AI badge below the delete control.
   Grid view and opened previews retain their existing positions. */
.company-profile .posts-list:not(.is-grid-view)
  .browse-image-wrap.post-ai-badge-host > .post-ai-badge--overlay {
  top: 65px;
  left: 10px;
}

/* Keep the AI badge visible in grid view. */
.posts-list.is-grid-view .post-ai-badge--overlay {
  display: inline-flex;
}

.public-post-image-wrap.post-ai-badge-host {
  position: relative;
}

.post-ai-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.post-ai-dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: 85vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 28px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(
    --profile-settings-card-border,
    var(--color-border-light)
  );
  background: var(
    --profile-settings-card-surface,
    var(--surface-elevated)
  );
  color: var(
    --profile-light-text,
    var(--color-text-main)
  );
  box-shadow: var(
    --profile-settings-card-shadow,
    var(--shadow-md)
  );
  backdrop-filter: var(
    --profile-settings-card-filter,
    blur(18px)
  );
  -webkit-backdrop-filter: var(
    --profile-settings-card-filter,
    blur(18px)
  );
}

.post-ai-dialog h2 {
  margin: 0 38px 18px 0;
  font-size: 1.2rem;
}

.post-ai-dialog strong {
  display: block;
  margin-bottom: 10px;
}

.post-ai-dialog p {
  margin: 0;
  line-height: 1.55;
}

.post-ai-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* AI CHECK REPORT FORM — LOCALIZED */
.post-ai-dialog {
  max-height: min(85dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.post-ai-report-container {
  margin-top: 16px;
}

.post-ai-report-button,
.post-ai-report-actions button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.post-ai-report-button:hover,
.post-ai-report-actions button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.post-ai-report-button:focus-visible,
.post-ai-report-actions button:focus-visible,
.post-ai-report-form textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.post-ai-report-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  min-width: 0;
}

.post-ai-report-form h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.post-ai-report-form p {
  margin: 0;
  overflow-wrap: anywhere;
}

.post-ai-report-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.post-ai-report-form textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.6);
  padding: 11px 12px;
  background: var(
    --profile-light-control-surface,
    var(--surface-control-neutral)
  );
  color: var(
    --profile-light-text,
    var(--color-text-main)
  );
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
}

.post-ai-report-counter {
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.post-ai-report-feedback {
  min-height: 1.2em;
  font-size: 0.9rem;
}

.post-ai-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-ai-report-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-ai-report-success {
  margin: 0;
  padding: 10px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .post-ai-report-actions {
    flex-direction: column;
  }

  .post-ai-report-actions button,
  .post-ai-report-button {
    width: 100%;
  }
}
