/*Styling Sheet for BrandHunt frontEnd*/
/*noinspection ALL*/

@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato/Lato-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/*noinspection ALL*/
@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato/Lato-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}
/*noinspection ALL*/
@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato/Lato-Light.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}
/*noinspection ALL*/
@font-face {
    font-family: "Lato";
    src: url("/fonts/Lato/Lato-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

:root {
    /* Layout */
    --notification-height: 0px;
    --scrollbar-width: 12px;
    --navbar-height: 66px;

    /* ── Brand palette (BrandHunt: hunter orange on warm off-white) ── */
    --color-navy:     #1A3A5C;
    --color-rust:     #E5501E;
    --color-cream:    #FAF7F3;
    --color-charcoal: #23201D;
    --color-sage:     #6E8B74;

    /* ── Backgrounds (light mode) ── */
    --bg-page:        #FAF7F3;
    --bg-primary:     #FFFFFF;
    --bg-secondary:   #FCFAF7;
    --bg-muted:       #F3EEE7;
    --bg-overlay:     rgba(250, 247, 243, 0.92);

    /* ── Text (light mode) ── */
    --text-primary:   #23201D;
    --text-secondary: #625B54;
    --text-muted:     #9C948A;
    --text-inverse:   #FAF7F3;

    /* ── Borders (light mode) ── */
    --border:         #E8E1D8;
    --border-subtle:  #F1ECE4;

    /* ── Accents ── */
    --accent:         #E5501E;
    --accent-hover:   #C94314;
    --accent-light:   rgba(229, 80, 30, 0.10);
    --accent-navy:    #1A3A5C;
    --accent-sage:    #6E8B74;

    /* ── Typography ── */
    --font-heading:   'Inter', system-ui, sans-serif;
    --font-body:      'Inter', 'Lato', system-ui, sans-serif;
    --font-ui:        'Inter', 'Lato', system-ui, sans-serif;
    --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
    --bg-page:        #1C1A18;
    --bg-primary:     #252320;
    --bg-secondary:   #2C2A27;
    --bg-muted:       #332F2C;
    --bg-overlay:     rgba(28, 26, 24, 0.94);

    --text-primary:   #F0EBE4;
    --text-secondary: #B0A89E;
    --text-muted:     #6E6560;
    --text-inverse:   #23201D;

    --border:         #3A3733;
    --border-subtle:  #2E2C29;

    --accent:         #F0602B;
    --accent-hover:   #E5501E;
    --accent-light:   rgba(240, 96, 43, 0.14);
    --accent-navy:    #2A5A8C;
    --accent-sage:    #7EA086;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
    position: relative;
    z-index: 0;
}

body::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

body::-webkit-scrollbar-track {
    margin-top: calc(var(--notification-height) + var(--navbar-height));
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Reusable thin scrollbar — apply alongside any scrollable container's class.
   Matches the style first introduced for Blog Center. Compose with the
   parent's class, e.g. <div className="uc-list styled-scrollbar">. */
.styled-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.styled-scrollbar::-webkit-scrollbar       { width: 6px; height: 6px; }
.styled-scrollbar::-webkit-scrollbar-track { background: transparent; }
.styled-scrollbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.styled-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::-webkit-input-placeholder {
    font-style: italic;
}
::-moz-placeholder {
    font-style: italic;
}
:-ms-input-placeholder {
    font-style: italic;
}
:-moz-placeholder {
    font-style: italic;
}

/*Controls max width of entire site*/
.container {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    margin-top: 48px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}
.container-home{
    margin-top: 30px;
}

/*replaces defaultsStyles in styles/defaults.js*/
.bg-color-main {
    background-color: #f8f9fa;
}

/*no link underline or hover for entire site*/
a {
    color: inherit !important;
    text-decoration-line: none !important;
}


select {
    color: #2d4456 !important;        /* Your preferred font color */
    font-family: "Lato", sans-serif !important;
    -webkit-appearance: none;         /* Remove iOS default styling */
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;           /* Optional: match your UI */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ── Global Buttons ──────────────────────────────────────────────────────── */

/* Primary — pill, dark fill → orange on hover */
#buttons, .buttons {
    height: 40px !important;
    padding: 0 22px !important;
    background-color: var(--color-charcoal) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.18s, transform 0.12s, box-shadow 0.18s !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
    text-decoration: none !important;
}

#buttons:hover, .buttons:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(216, 90, 48, 0.32) !important;
}

#buttons:active, .buttons:active {
    background-color: var(--accent-hover) !important;
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
}

#buttons:focus-visible, .buttons:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
}

#buttons:disabled, .buttons:disabled {
    background-color: var(--bg-muted) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
}

/* Alt — pill ghost → dark fill on hover */
#buttons-alt {
    height: 40px !important;
    padding: 0 22px !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s,
                transform 0.12s, box-shadow 0.18s !important;
    text-decoration: none !important;
    align-self: center;
    min-width: max-content;
}

#buttons-alt:hover {
    background-color: var(--color-charcoal) !important;
    border-color: var(--color-charcoal) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(44, 44, 42, 0.20) !important;
}

#buttons-alt:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

#buttons-alt:focus-visible {
    outline: 2px solid var(--color-charcoal) !important;
    outline-offset: 2px !important;
}

#buttons-alt:disabled {
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

#buttons-alt.selected {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 74, 0, 0.28) !important;
}

/* ── Global Buttons — Dark Mode ──────────────────────────────────────────── */

[data-theme="dark"] #buttons,
[data-theme="dark"] .buttons {
    background-color: #ff4a00 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.30) !important;
}

[data-theme="dark"] #buttons:hover,
[data-theme="dark"] .buttons:hover {
    background-color: #e04200 !important;
    box-shadow: 0 6px 18px rgba(255, 74, 0, 0.38) !important;
}

[data-theme="dark"] #buttons:active,
[data-theme="dark"] .buttons:active {
    background-color: #c43900 !important;
}

[data-theme="dark"] #buttons:disabled,
[data-theme="dark"] .buttons:disabled {
    background-color: var(--bg-muted) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] #buttons-alt {
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] #buttons-alt:hover {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 74, 0, 0.32) !important;
}

[data-theme="dark"] #buttons-alt:disabled {
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #475569 !important;
}

[data-theme="dark"] #buttons-alt.selected {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
}

.button-search {
    width: 80px;
    margin: 0 0 0 10px;
    padding: 5px 15px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    border: none !important;
}

.button-login {
    height: 40px !important;
    padding: 0 20px !important;
    margin: 0 8px 0 0 !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    background-color: transparent !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s,
                transform 0.12s, box-shadow 0.18s !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.button-login:hover {
    background-color: var(--color-charcoal) !important;
    border-color: var(--color-charcoal) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(44, 44, 42, 0.18) !important;
}

.button-signup {
    margin: 0 8px 0 0 !important;
    color: #ffffff !important;
}

.button-switch-admin{
    margin-left: 12px;
    margin-right: -15px;
}

.button-switch-admin-sidebar{
    display: flex;
    justify-self: center;
    padding: 10px 20px;
    margin-bottom: 15px;
}

.button-admin,
.button-admin-sidebar {
    color: white !important;
    background-color: #1e9f22;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    border: none !important;
    border-radius: 10px !important;
    min-width: 100%;
}
.button-admin:hover,
.button-admin-sidebar:hover {
    background-color: #146b1f;
    color: white !important;
}

.button-logout {
    color: white !important;
    background-color: white !important;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    border: none !important;
    border-radius: 10px !important;
}

#login-input-email,
#login-input-pass {
    border: 1px solid var(--border);
}

#login-input:focus {
    box-shadow: 0 0 10px #f18805 !important;
    border-color: #f18805 !important;
    text-shadow: none !important;
}


.full-app-page {
    overflow-x: hidden;
    margin-right: 0 !important;
    background-color: var(--bg-page) !important;
    transition: margin-top 0.3s ease-in-out, background-color 0.25s ease;
    position: relative;
    overflow: initial;
    /* padding-top: calc(var(--notification-height) + var(--navbar-height)); */
    padding-top: calc(var(--navbar-height));
    display: flex;
    flex-direction: column;
    /* border-box so the navbar's padding-top is counted INSIDE min-height rather
       than added on top of it. Without this (default content-box) the wrapper is
       min-height + 66px tall and overflows the screen by exactly the navbar height
       — that was the leftover body-level scrollbar. */
    box-sizing: border-box;
    min-height: 100vh;
    /* Match the visible viewport on mobile (URL bar in/out) so full-height app
       shells like the scope don't overflow the screen and trigger a
       second, body-level scrollbar. vh kept above as the pre-dvh fallback. */
    min-height: 100dvh;
}

.page-content {
    flex: 1;
}

/* ── Dark Mode — base ──────────────────────────────────────────────────────── */
[data-theme="dark"] body {
    background-color: var(--bg-page);
    color: var(--text-primary);
}
[data-theme="dark"] .full-app-page {
    background-color: var(--bg-page) !important;
}

/* Signup page has no navbar — remove the navbar offset */
.full-app-page:has(.register-page-container) {
    padding-top: 0;
    background-color: transparent !important;
}

[data-theme="dark"] body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
[data-theme="dark"] body::-webkit-scrollbar-thumb {
    background: #4b5563;
}
/* ── End Dark Mode — base ──────────────────────────────────────────────────── */

.material-icons {
    vertical-align: middle;
}
.material-icons.mdi-18 {
    font-size: 18px;
}
.material-icons.mdi-24 {
    font-size: 24px;
}
.material-icons.mdi-36 {
    font-size: 36px;
}
.material-icons.mdi-48 {
    font-size: 48px;
}

.between {
    display: flex;
    justify-content: space-between;
}
.hover-pointer:hover {
    cursor: pointer;
}
#rsc-list:hover {
    background-color: #dedede;
}

/*Pagination for admin*/
.pagination {
    margin: 0 auto;
}

/*Disables interaction with the Preview feed on the post page*/
.previewFeed {
    pointer-events: none;
}

.profileStatus {
    text-transform: capitalize;
}

.side-bar-profile {
    display: flex;
    justify-content: left;
    align-items: center;
    font-size: 24px;
    border-bottom: 1px solid lightgray;
    padding: 15px;
    background-color: var(--bg-primary);
    border-radius: 15px;
}

.user-login {
    overflow: hidden;
    margin: 0 auto;
    font-weight: bold;
    color: #ffffff;
    overflow-wrap: anywhere;
    padding: 0 5px;
}

.sidebar-buttons-wrapper {
    display: flex;
    justify-content: space-evenly;
    margin: 30px 0;
}

.side-bar-bottom{
    padding: 0 0 15px 30px;
}

.sidebar-logout-link {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #c0392b;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.15s;
}
.sidebar-logout-link:hover {
    color: #e74c3c;
    text-decoration: none;
}

.button-login-sidebar,
.button-signup-sidebar {
    width: 45%;
}

.side-bar-wrappers {
    padding: 15px;
    margin-top: 15px;
}

.sidebar-links, .sidebar-links-admin {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bolder;
    color: var(--text-primary);
    padding: 5px 0 !important;
}

.header-profile {
    border: lightgray solid thin;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #2d4456;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    color: white;
    align-content: center;
}

.header-profile-pic,
.nav-profile-pic-xlarge,
.nav-profile-pic-large,
.nav-profile-pic-small,
.nav-profile-pic-round,
.skeleton-large,
.skeleton-xlarge,
.skeleton-xsmall {
    color: #2d4456 !important;
    background-color: white;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    transition: transform 0.1s;
    justify-content: center;
    overflow: hidden;
    height: 165px;
    width: 165px;
    font-size: 60px;
    font-weight: bolder;
    object-fit: cover !important;
    object-position: center !important;
    align-content: center;
}

.nav-profile-pic-wrapper-resource {
    border: none;
}

.nav-profile-pic-wrapper-nav {
    display: inline-flex;
    background: white;
    border-radius: 50%;
    line-height: 0;
}

.nav-profile-pic-wrapper-round {
    background: white;
}

.skeleton-xsmall,
.nav-profile-pic-xsmall,
.nav-profile-pic-initials-xsmall{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
    align-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: bolder;
    alignment-baseline: middle;
    line-height: 12px;
}

.nav-profile-pic-xsmall  img{
    width: 24px;
    height: 24px;
    border: 1px solid lightgray;
}

.nav-profile-pic-initials-xsmall{
    border: 1px solid lightgray;
}

.skeleton-xlarge,
.nav-profile-pic-small{
    object-fit: cover ;
    width: 80px;
    height: 80px;
    font-size: 40px;
}

.skeleton-large,
.nav-profile-pic-large {
    height: 55px;
    width: 55px;
    font-size: 26px;
    font-weight: bolder;
}

.skeleton-round,
.nav-profile-pic-round{
    background: white;
    width: 128px;
    height: 128px;
    border: transparent 1px #D6D5D5;
    border-radius: 50%;
    flex-wrap: nowrap;
    gap: 24px;
}

.top-contributors-profile{
    background: white;
    border-radius: 50%;
    margin-right: 10px;
}

.top-contributors-profile-pic,
.top-contributors-profile-initials {
    display: inherit;
    text-align: center;
    height: 61px;
    width: 61px;
}
.top-contributors-profile-initials {
    justify-content: center;
    align-items: center;
}

.nav-profile-pic-large img,
.nav-profile-pic-small img,
.nav-profile-pic-round img {
    contain: content !important;
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
}

.sidebar-links-admin {
    background-color: rgba(30, 159, 34, 0.15);
    border-radius: 15px;
    margin-left: -25px;
    margin-right: -25px;
    width: calc(100% + 50px);
    display: flex;
    justify-content: space-between;
    padding: 5px 25px !important;
}


.spinner {
    color: #2d4456 !important;
    z-index: 1;
    position: absolute;
    bottom: 50%;
    transform: translate(0, -50%);
}

.spinner.opposite {
    transform: translate(0, 50%);
}

.shared-posts-wrapper {
    display: flex;
    flex-direction: row;
    padding: 15px 0;
    background-color: #ffffff;
    border: 1px solid lightgray;
    border-radius: 15px;
    margin-bottom: 15px;
}

.shared-posts-leftCol {
    max-width: 35%;
    min-width: 35%;
    align-self: center;
}

.shared-posts-centerCol {
    display: flex;
    align-self: center;
}

.shared-posts-rightCol {
    max-width: fit-content;
    align-self: flex-end;
}

.shared-posts-screenshot-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    min-width: 30%;
    min-height: 150px;
    object-fit: cover;
}

.contact-us-full {
    display: flex;
    margin-left: 30px;
    margin-right: 30px;
}

.contact-inline {
    margin-top: -60px;
    min-height: 0;
    margin-bottom: 120px;
}

.contact-inline-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.contact-inline-form {
    justify-content: center;
}

.contact-inline .contact-us-main {
    max-width: 760px;
    min-width: 0;
    width: 100%;
    background-color: #ffffff;
    padding-bottom: 24px;
}

.contact-inline textarea {
    height: 140px !important;
}

.contact-us-wrapper {
    display: flex;
    flex-direction: row;
}

.contact-us-main {
    border: solid 1px lightgray;
    border-radius: 15px;
    padding: 30px;
    margin: 0 auto ;
    min-width: 70%;
    gap: 30px;
}

.contact-us-sidebar {
    max-width: 75%;
    margin: 0 auto;
}

.contact-us-thanks {
    border: 1px solid lightgray;
    border-radius: 15px;
    background-color: #ffffff;
    padding: 30px;
}

/*** Modal Styling Start ***/
.modal-header, .modal-footer{
    border: none !important;
}

.modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    max-width: 360px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.contact-form > :not(:last-child) {
    margin-bottom: 16px;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
}

.contact-form .label-content {
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.contact-form label {
    text-align: left;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 10px auto;
}

.otp-input {
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
    flex: 1;
    border: 1px solid var(--border);
}

.otp-input:focus {
    box-shadow: 0 0 10px #f18805 !important;
    outline: none !important;
    border-color: #f18805 !important;
    text-shadow: none !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; !important;
}

.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}


/* ════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT — custom banner (cookieConsentBanner.jsx)
   Light is the default; dark overrides live under [data-theme="dark"].
   Tokens kept local so the banner never depends on page-specific vars.
   ════════════════════════════════════════════════════════════════════════ */
.ck {
    --ck-bg: #ffffff;
    --ck-surface: #f6f4f1;
    --ck-border: rgba(0, 0, 0, 0.10);
    --ck-text: #1b1b1b;
    --ck-sub: #5c5650;
    --ck-muted: #8a837c;
    --ck-accent: #f8b400;
    --ck-accent-ink: #1b1b1b;
    --ck-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.35);

    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 4000;
    width: min(440px, calc(100vw - 40px));
    pointer-events: none; /* only the card is interactive */
}

[data-theme="dark"] .ck {
    --ck-bg: #1f1d1a;
    --ck-surface: #2a2724;
    --ck-border: rgba(255, 255, 255, 0.10);
    --ck-text: #f0ebe4;
    --ck-sub: #b8b0a8;
    --ck-muted: #8a8079;
    --ck-accent: #f8b400;
    --ck-accent-ink: #1b1b1b;
    --ck-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
}

.ck-card {
    pointer-events: auto;
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: 18px;
    box-shadow: var(--ck-shadow);
    padding: 18px;
    overflow: hidden;
    position: relative;
    animation: ck-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Brand-gold hairline glow along the top edge — the little "pop". */
.ck-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ck-accent), transparent);
    opacity: 0.9;
}

@keyframes ck-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.ck-head { display: flex; gap: 13px; align-items: flex-start; }
.ck-emoji {
    font-size: 30px; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    transform-origin: 70% 70%;
    animation: ck-wiggle 2.8s ease-in-out 0.5s infinite;
}
@keyframes ck-wiggle {
    0%, 88%, 100% { transform: rotate(0deg); }
    91% { transform: rotate(-11deg); }
    94% { transform: rotate(9deg); }
    97% { transform: rotate(-5deg); }
}

.ck-title {
    margin: 1px 0 4px;
    font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
    color: var(--ck-text);
}
.ck-sub { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ck-sub); }
.ck-sub strong { color: var(--ck-text); font-weight: 700; }
.ck-link {
    color: var(--ck-accent) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ck-accent) 45%, transparent);
    white-space: nowrap;
}
.ck-link:hover { border-bottom-color: var(--ck-accent); }

/* ── Categories (expanded view) ───────────────────────────────────────── */
.ck-cats {
    margin-top: 16px;
    display: flex; flex-direction: column; gap: 9px;
    animation: ck-unfold 0.35s ease both;
}
@keyframes ck-unfold {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ck-cat {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 13px;
    border: 1px solid var(--ck-border);
    border-radius: 13px;
    background: var(--ck-surface);
    transition: border-color 0.18s, background 0.18s;
}
.ck-cat.is-on { border-color: color-mix(in srgb, var(--ck-accent) 50%, var(--ck-border)); }
.ck-cat-ic { font-size: 17px; line-height: 1.4; flex-shrink: 0; }
.ck-cat-body { flex: 1; min-width: 0; }
.ck-cat-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.ck-cat-title { font-size: 13px; font-weight: 700; color: var(--ck-text); }
.ck-cat-vendor {
    font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--ck-muted);
    padding: 2px 7px; border-radius: 999px;
    border: 1px solid var(--ck-border);
}
.ck-cat-badge {
    font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ck-accent);
    padding: 2px 7px; border-radius: 999px;
    background: color-mix(in srgb, var(--ck-accent) 14%, transparent);
}
.ck-cat-desc { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ck-sub); }

/* ── Toggle switch ────────────────────────────────────────────────────── */
.ck-switch {
    flex-shrink: 0;
    width: 42px; height: 24px;
    border-radius: 999px;
    border: 1px solid var(--ck-border);
    background: color-mix(in srgb, var(--ck-muted) 35%, transparent);
    padding: 0; margin-top: 2px;
    position: relative; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.ck-switch-knob {
    position: absolute; top: 50%; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    transition: left 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ck-switch.is-on {
    background: var(--ck-accent);
    border-color: var(--ck-accent);
}
.ck-switch.is-on .ck-switch-knob { left: 21px; }
.ck-switch.is-locked { opacity: 0.6; cursor: not-allowed; }

/* ── Actions ──────────────────────────────────────────────────────────── */
.ck-actions { display: flex; gap: 9px; margin-top: 16px; }
.ck-btn {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 16px;
    border-radius: 11px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.12s, background 0.16s, border-color 0.16s, box-shadow 0.16s, color 0.16s;
}
.ck-btn:active { transform: translateY(1px); }

.ck-btn--ghost {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--ck-border);
    color: var(--ck-sub);
}
.ck-btn--ghost:hover { border-color: var(--ck-muted); color: var(--ck-text); }

.ck-btn--primary {
    background: var(--ck-accent);
    border: 1px solid var(--ck-accent);
    color: var(--ck-accent-ink);
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ck-accent) 75%, transparent);
}
.ck-btn--primary:hover {
    box-shadow: 0 9px 22px -6px color-mix(in srgb, var(--ck-accent) 85%, transparent);
    filter: brightness(1.03);
}
.ck-btn-spark { font-size: 11px; opacity: 0.85; }

@media (max-width: 540px) {
    .ck { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .ck-actions { flex-wrap: wrap; }
    .ck-btn--ghost { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ck-card, .ck-cats { animation: none; }
    .ck-emoji { animation: none; }
}

/* Google login / signup */
.google-signin-wrapper,
.googleAuth-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.google-signin-wrapper [role="button"],
.googleAuth-wrapper [role="button"] {
    border-radius: 999px !important;
    overflow: hidden;
}

.google-signin-wrapper iframe,
.googleAuth-wrapper iframe {
    border-radius: 999px !important;
}

.terms-wrapper{
    padding: 30px;
}

/* --- Universal Toast Styling Override --- */
.Toastify__toast {
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
}

/* Progress bar – soft pastel */
.Toastify__progress-bar {
    height: 4px !important;
    opacity: 0.7 !important;
    border-radius: 0 0 12px 12px !important;
}

/* SUCCESS – soft green */
.Toastify__toast--success {
    background: #e9f7ee !important;
    color: #256f3a !important;
    border: 1px solid #c6e8cf !important;
}
.Toastify__progress-bar--success {
    background: #6bcf8b !important;
}

/* ERROR – soft red */
.Toastify__toast--error {
    background: #fdecea !important;
    color: #a72626 !important;
    border: 1px solid #f5c2c0 !important;
}
.Toastify__progress-bar--error {
    background: #f28b82 !important;
}

/* INFO – pastel blue */
.Toastify__toast--info {
    background: #e8f1fd !important;
    color: #1a4f9c !important;
    border: 1px solid #bfd3f2 !important;
}
.Toastify__progress-bar--info {
    background: #82b2f2 !important;
}

/* WARNING – gentle amber */
.Toastify__toast--warning {
    background: #fff7e1 !important;
    color: #9c6b00 !important;
    border: 1px solid #ffe4a3 !important;
}
.Toastify__progress-bar--warning {
    background: #ffd666 !important;
}

/* ── Mini-app shared: header top row (back btn + theme toggle) ─────────────── */
.app-header-top-row {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 24px 0 32px;
}

/* Right-side group: HIW button + theme toggle */
.app-header-top-row__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Mini-app standard header shell ────────────────────────────────────────── */
/* All mini-app header outer wrappers get this class.
   Individual apps keep only their background/border/glow — no height/overflow needed. */
.mini-app-header {
    height: 300px;
    overflow: hidden;
}

/* Cancel global .container rules; fill the header height as a flex column */
.mini-app-header .container {
    min-height: 0;
    margin-top: 0;
    padding-top: 48px;
    padding-bottom: 16px;
    height: 100%;
    box-sizing: border-box;
}

/* Anchors the bottom row (chips / mode-tabs) to the footer of the header */
.app-header-bottom-row {
    margin-top: auto;
}

/* ── Theme toggle pill ─────────────────────────────────────────────────────── */
.app-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.app-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.app-theme-toggle__track {
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.app-theme-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.app-theme-toggle--light .app-theme-toggle__track {
    background: rgba(0, 0, 0, 0.15);
}

.app-theme-toggle--light .app-theme-toggle__thumb {
    transform: translateX(12px);
    background: #fff;
}

.app-theme-toggle--light {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.14);
    color: rgba(0, 0, 0, 0.70);
}

.app-theme-toggle--light:hover {
    background: rgba(0, 0, 0, 0.12);
}

.app-theme-toggle__icon {
    font-size: 0.9rem;
    line-height: 1;
}


/* ── Verified badge overlay on avatars ────────────────────────────────────── */
/* Badge is a sibling of (not inside) the circular avatar wrapper so the
   wrapper's `overflow: hidden` can't clip it. The outer .avatar-with-badge
   stays inline-block with overflow visible, badge floats top-right. */
.avatar-with-badge {
    position: relative;
    display: inline-block;
    overflow: visible;
    line-height: 0;
}

.avatar-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #d85a30);
    line-height: 0;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.30));
}

.avatar-verified-badge svg { display: block; }

/* Size variants — proportional to the avatar. */
.avatar-verified-badge--xsmall svg { width: 11px; height: 11px; }
.avatar-verified-badge--small  svg { width: 14px; height: 14px; }
.avatar-verified-badge--large  svg { width: 18px; height: 18px; }
.avatar-verified-badge--xlarge svg { width: 22px; height: 22px; }
.avatar-verified-badge--round  svg { width: 26px; height: 26px; }

/* Round avatars are rendered larger and the bottom-right corner of the
   bounding box is past the circle — pull the badge in slightly. */
.avatar-verified-badge--round  { bottom: 6px; right: 6px; }
.avatar-verified-badge--xlarge { bottom: 2px; right: 2px; }

/* All `.nav-profile-pic-*` and skeleton variants hardcode `background: white`
   in the multi-class declaration above. That shows as a white halo in dark
   mode whenever an avatar image has transparent edges. Override across every
   variant so the wrapper blends with the dark surface instead. */
[data-theme="dark"] .header-profile-pic,
[data-theme="dark"] .nav-profile-pic-xlarge,
[data-theme="dark"] .nav-profile-pic-large,
[data-theme="dark"] .nav-profile-pic-small,
[data-theme="dark"] .nav-profile-pic-round,
[data-theme="dark"] .nav-profile-pic-xsmall,
[data-theme="dark"] .skeleton-large,
[data-theme="dark"] .skeleton-xlarge,
[data-theme="dark"] .skeleton-xsmall,
[data-theme="dark"] .skeleton-small,
[data-theme="dark"] .skeleton-round,
[data-theme="dark"] .feed-profile-pic,
[data-theme="dark"] .comment-profile-pic-wrapper,
[data-theme="dark"] .author-profile-pic-wrapper,
[data-theme="dark"] .nav-profile-pic-wrapper-nav,
[data-theme="dark"] .nav-profile-pic-wrapper-round {
    background-color: white !important;
}

/* ── Email verification confirmation page (/email-verified) ───────────────── */
.email-verified-page {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

.email-verified-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 36px 40px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}
[data-theme="dark"] .email-verified-card {
    background: var(--bg-secondary, #18191c);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.email-verified-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.2s, box-shadow 0.2s;
}
.email-verified-icon svg { width: 36px; height: 36px; }

/* State-specific icon colors */
.email-verified-card--verifying .email-verified-icon {
    background: rgba(216, 90, 48, 0.12);
    color: var(--accent, #d85a30);
}
.email-verified-card--success .email-verified-icon {
    background: var(--accent, #d85a30);
    box-shadow: 0 8px 24px rgba(216, 90, 48, 0.30);
}
.email-verified-card--error .email-verified-icon {
    background: #d23a3a;
    box-shadow: 0 8px 24px rgba(210, 58, 58, 0.28);
}

/* Spinner inside the verifying state */
.email-verified-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-top-color: transparent;
    animation: email-verified-spin 0.8s linear infinite;
}
@keyframes email-verified-spin {
    to { transform: rotate(360deg); }
}

.email-verified-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #0f1115);
    letter-spacing: -0.01em;
}
[data-theme="dark"] .email-verified-title {
    color: var(--text-primary, #f0ebe4);
}

.email-verified-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted, #6b7280);
}
[data-theme="dark"] .email-verified-subtitle {
    color: var(--text-muted, rgba(240, 235, 228, 0.55));
}

.email-verified-cta {
    margin-top: 24px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--accent, #d85a30);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.email-verified-cta:hover { background: #b94216; }
.email-verified-cta:active { transform: translateY(1px); }


/* ── Scope page: chromeless ──────────────────────────────────────────────
   Whenever the Scope view (.bh-scope) is on the page — /scope, /brand-footprint
   or / with an active report — the global navbar and footer hide and the page
   never scrolls; the Scope sidebar carries the brand mark + profile menu. */
body:has(.bh-scope) { overflow: hidden; }
body:has(.bh-scope) .nav-bar { display: none !important; }
.full-app-page:has(.bh-scope) { padding-top: 0 !important; }
.full-app-page:has(.bh-scope) .ft-root { display: none !important; }
