*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

strong {
    font-weight: 700;
}

:root {
    --purple-950: #2B0A3D;
    --purple-900: #4B1248;
    --purple-700: #6B1E5B;
    --indigo-600: #4F46E5;
    --indigo-500: #6366F1;
    --white: #FFFFFF;
    --surface: #F5F5F7;
    --border: #E5E7EB;
    --text: #2F2937;
    --muted: #6B7280;
    --muted-strong: #5B5563;
    --soft-purple: #F5EAF5;
    --danger: #D92D42;
    --warning: #D49B1D;
    --success: #20A464;
    --whatsapp: #16A34A;
    --shadow-sm: 0 12px 30px rgba(43, 10, 61, .08);
    --shadow-lg: 0 28px 80px rgba(43, 10, 61, .18);
    color-scheme: light;
}

.figu-body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
    overflow-x: hidden;
}

.workspace,
.content-panel {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .13);
    color: var(--white);
    font-size: .9rem;
}

.brand-inverse .brand-mark,
.auth-brand .brand-mark {
    border-color: rgba(107, 30, 91, .2);
    background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.landing-hero {
    width: min(1440px, calc(100% - 1rem));
    min-height: 670px;
    margin: .5rem auto 0;
    overflow: hidden;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 68% 26%, rgba(255, 255, 255, .18), transparent 18rem),
        radial-gradient(circle at 12% 85%, rgba(107, 30, 91, .9), transparent 20rem),
        linear-gradient(135deg, var(--purple-950) 0%, #210527 42%, var(--purple-900) 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
}

.nav-links,
.nav-actions,
.hero-actions,
.topbar-actions,
.match-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.nav-links a,
.nav-actions a {
    font-size: .86rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .82);
}

.btn {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: .85rem;
    padding: .75rem 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover,
.album-card:hover,
.match-card:hover,
.preview-card:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo-600), var(--purple-900));
    color: var(--white);
    box-shadow: 0 16px 28px rgba(75, 18, 72, .24);
}

.btn-light {
    background: var(--white);
    color: var(--purple-950);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    backdrop-filter: blur(18px);
}

.btn-outline {
    border-color: var(--border);
    background: var(--white);
    color: var(--purple-950);
}

.btn-small {
    min-height: 2.25rem;
    padding: .55rem 1rem;
}

.btn-full {
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem) 2rem;
}

.hero-copy {
    max-width: 42rem;
}

.premium-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.premium-pill {
    margin-bottom: 1.1rem;
    padding: .45rem .8rem;
    background: rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .86);
}

.eyebrow {
    margin: 0 0 .25rem;
    color: var(--purple-700);
}

.hero-copy h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.055em;
}

.hero-copy p {
    max-width: 39rem;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-art {
    position: relative;
    min-height: 430px;
}

.trophy {
    position: absolute;
    inset: 18% 32% auto auto;
    width: 9rem;
    height: 15rem;
    border-radius: 5rem 5rem 1.6rem 1.6rem;
    background: linear-gradient(135deg, #F8D065, #C68322 45%, #FFF2A2 55%, #9D5C10);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .26);
}

.trophy::before,
.trophy::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    width: 3.5rem;
    height: 5rem;
    border: .7rem solid #D89A25;
    border-radius: 999px;
}

.trophy::before {
    left: -2.3rem;
}

.trophy::after {
    right: -2.3rem;
}

.sticker-card,
.album-card,
.login-card,
.panel,
.stat-card,
.match-card,
.info-panel,
.preview-card,
.filters-panel,
.component-strip {
    border: 1px solid rgba(229, 231, 235, .9);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.sticker-card {
    position: absolute;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    overflow: hidden;
    width: 9.5rem;
    min-height: 13rem;
    border-radius: 1rem;
    padding: .7rem;
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), transparent),
        linear-gradient(135deg, #2056B6, var(--purple-700));
}

.sticker-card span {
    font-size: 1.35rem;
    font-weight: 900;
}

.sticker-card strong,
.sticker-card small {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sticker-card strong {
    margin-top: .4rem;
    border-radius: .45rem;
    background: var(--white);
    color: var(--purple-950);
    font-size: .85rem;
    text-transform: uppercase;
}

.sticker-card small {
    color: rgba(255, 255, 255, .8);
}

.sticker-large {
    top: 4rem;
}

.sticker-tilt-left {
    left: 1rem;
    transform: rotate(-9deg);
}

.sticker-tilt-right {
    right: 1rem;
    background: linear-gradient(135deg, #222A68, var(--purple-900));
    transform: rotate(9deg);
}

.sticker-mini {
    right: 8.6rem;
    bottom: 2rem;
    width: 7rem;
    min-height: 9.5rem;
    transform: rotate(-4deg);
}

.sticker-xl {
    position: relative;
    width: min(100%, 18rem);
    min-height: 25rem;
    border-radius: 1.4rem;
}

.player-face {
    align-self: end;
    width: 72%;
    aspect-ratio: 1;
    margin: .2rem auto 0;
    border-radius: 50% 50% 42% 42%;
    background:
        radial-gradient(circle at 50% 31%, #3F2417 0 12%, transparent 13%),
        radial-gradient(circle at 50% 42%, #C6845D 0 30%, transparent 31%),
        linear-gradient(#F0C16A 0 0) bottom / 100% 34% no-repeat;
}

.player-face.alt {
    background:
        radial-gradient(circle at 50% 31%, #1D1A1A 0 12%, transparent 13%),
        radial-gradient(circle at 50% 42%, #C8946A 0 30%, transparent 31%),
        linear-gradient(#E6E9F2 0 0) bottom / 100% 34% no-repeat;
}

.player-face.third {
    background:
        radial-gradient(circle at 50% 31%, #1D1A1A 0 12%, transparent 13%),
        radial-gradient(circle at 50% 42%, #8A5238 0 30%, transparent 31%),
        linear-gradient(#6B1E5B 0 0) bottom / 100% 34% no-repeat;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.25rem clamp(1.25rem, 5vw, 5rem) 3rem;
}

.feature-row article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem .9rem;
    align-items: center;
    border-radius: 1rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
}

.feature-row h2,
.feature-row p {
    margin: 0;
}

.feature-row h2 {
    font-size: .98rem;
}

.feature-row p {
    grid-column: 2;
    color: rgba(255, 255, 255, .7);
    font-size: .86rem;
}

.feature-icon,
.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .12);
}

.feature-icon::before,
.nav-icon::before {
    font-weight: 900;
}

.icon-grid::before { content: "▦"; }
.icon-album::before { content: "▣"; }
.icon-swap::before { content: "⇄"; }
.icon-search::before { content: "⌕"; }
.icon-users::before { content: "◎"; }
.icon-settings::before { content: "⚙"; }
.icon-exit::before { content: "↩"; }
.icon-lock::before { content: "◈"; }
.icon-trophy::before { content: "★"; }

.showcase-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.section-heading h2 {
    max-width: 48rem;
    margin: .3rem 0 1.3rem;
    color: var(--purple-950);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preview-card {
    min-height: 12rem;
    border-radius: 1.2rem;
    padding: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.preview-kicker {
    color: var(--purple-700);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-card strong {
    display: block;
    margin-top: 3.5rem;
    color: var(--purple-950);
    font-size: 1.25rem;
    line-height: 1.15;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(107, 30, 91, .12), transparent 20rem),
        var(--surface);
}

.auth-brand {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    color: var(--purple-950);
}

.login-card {
    width: min(100%, 28rem);
    border-radius: 1.4rem;
    padding: clamp(1.5rem, 5vw, 2.4rem);
    text-align: center;
}

.login-logo {
    position: relative;
    width: 5.6rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
}

.mini-card {
    position: absolute;
    inset: .4rem auto auto 1.3rem;
    width: 2.2rem;
    height: 3rem;
    border: .22rem solid var(--purple-950);
    border-radius: .5rem;
    transform: rotate(-14deg);
}

.mini-card.second {
    left: 2.4rem;
    transform: rotate(14deg);
}

.login-card h1 {
    margin: 0;
    color: var(--purple-950);
    font-size: 1.75rem;
    letter-spacing: -.035em;
}

.login-card p {
    color: var(--muted);
}

.google-btn,
.login-form input,
.login-form select,
.filters-panel select {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: var(--white);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.google-mark {
    color: #4285F4;
    font-size: 1.25rem;
    font-weight: 900;
}

.divider {
    position: relative;
    margin: 1.4rem 0;
    color: var(--muted);
    font-size: .82rem;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    padding: 0 .9rem;
    background: var(--white);
}

.login-form {
    display: grid;
    gap: .9rem;
    text-align: left;
}

.login-form label span,
.filters-panel span {
    display: block;
    margin-bottom: .35rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.login-form input,
.login-form select {
    padding: 0 1rem;
}

.login-form input:focus,
.login-form select:focus {
    border-color: var(--purple-700);
    box-shadow: 0 0 0 .25rem rgba(107, 30, 91, .1);
    outline: none;
}

.register-card {
    width: min(100%, 34rem);
}

.location-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: .8rem;
}

.form-alert {
    margin: 1rem 0;
    border: 1px solid rgba(217, 45, 66, .18);
    border-radius: .9rem;
    background: #FFF1F3;
    padding: .8rem .9rem;
    color: #A51930;
    font-size: .9rem;
    font-weight: 800;
    text-align: left;
}

.privacy-copy {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}

.auth-note {
    margin-bottom: 0;
    font-size: .86rem;
}

.auth-note a {
    color: var(--purple-700);
    font-weight: 800;
}

.error-page {
    width: min(42rem, calc(100% - 2rem));
    margin: 4rem auto;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.error-page h1 {
    margin: .2rem 0 .5rem;
    color: var(--purple-950);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.04em;
}

.error-page p {
    color: var(--muted);
}

.app-shell {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 1.1rem;
    background:
        radial-gradient(circle at 0 0, rgba(107, 30, 91, .7), transparent 16rem),
        linear-gradient(180deg, var(--purple-950), #16031F);
    color: var(--white);
}

.side-nav {
    display: grid;
    gap: .35rem;
    margin-top: 2rem;
}

.side-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-radius: .85rem;
    padding: .75rem .8rem;
    color: rgba(255, 255, 255, .74);
    font-size: .92rem;
    font-weight: 800;
}

.side-link.is-active,
.side-link:hover {
    background: rgba(107, 30, 91, .72);
    color: var(--white);
}

.side-exit {
    margin-top: auto;
}

.logout-form {
    display: flex;
    margin-top: auto;
}

.logout-form .side-link {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.workspace {
    min-width: 0;
    padding: 1.4rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.topbar h1 {
    margin: 0;
    color: var(--purple-950);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.04em;
}

.icon-btn {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
}

.icon-btn::before {
    content: "◦";
    font-size: 1.8rem;
    color: var(--purple-950);
}

.dot {
    position: absolute;
    top: .55rem;
    right: .65rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--danger);
}

.avatar {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .32), transparent 28%), linear-gradient(135deg, var(--indigo-600), var(--purple-950));
    color: var(--white);
    font-size: .8rem;
    font-weight: 900;
}

.avatar-lg {
    width: 3.4rem;
    height: 3.4rem;
}

.user-name {
    color: var(--purple-950);
    font-weight: 800;
}

.topbar-user-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: inherit;
    text-decoration: none;
}

.topbar-user-link:hover .user-name {
    color: var(--purple-700);
}

.admin-hero,
.admin-panel,
.admin-stat-card,
.admin-plan-card {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(76, 29, 149, .06);
}

.admin-hero,
.admin-panel {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.admin-hero,
.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-actions,
.admin-shortcuts,
.admin-inline-form,
.admin-filter,
.admin-form-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat-card,
.admin-plan-card {
    padding: 1rem;
}

.admin-stat-card span,
.admin-table small {
    display: block;
    color: #6b7280;
    font-size: .82rem;
}

.admin-stat-card strong {
    display: block;
    color: #111827;
    font-size: 1.9rem;
    margin-top: .4rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #ede9fe;
    padding: .85rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #374151;
    font-size: .78rem;
    text-transform: uppercase;
}

.admin-table strong,
.admin-plan-card h3,
.admin-panel h2 {
    color: #111827;
}

.admin-filter input,
.admin-filter select,
.admin-inline-form input,
.admin-inline-form select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-plan-card input {
    border: 1px solid #e5e7eb;
    border-radius: .8rem;
    padding: .72rem .85rem;
    background: #fff;
    color: #111827;
}

.admin-form,
.admin-plan-card {
    display: grid;
    gap: .9rem;
}

.admin-form label,
.admin-plan-card label {
    display: grid;
    gap: .35rem;
    color: #374151;
    font-weight: 700;
}

.admin-check {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: .5rem !important;
}

.admin-shortcuts a {
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    padding: .7rem 1rem;
    color: #6d28d9;
    font-weight: 800;
    text-decoration: none;
}

.finance-stat-card strong {
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.finance-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .32rem .65rem;
    background: #f3f4f6;
    color: #374151;
    font-size: .78rem;
    font-weight: 800;
}

.finance-status-approved {
    background: #dcfce7;
    color: #166534;
}

.finance-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.finance-status-cancelled,
.finance-status-expired,
.finance-status-refunded {
    background: #fee2e2;
    color: #991b1b;
}

.finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 220px;
}

.btn-compact {
    min-height: auto;
    padding: .45rem .65rem;
    font-size: .78rem;
}

.finance-create-form {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.finance-create-form textarea,
.finance-create-form button {
    grid-column: 1 / -1;
}

.finance-plan-grid {
    align-items: start;
}

.finance-plan-grid .admin-plan-card {
    width: 100%;
    min-width: 0;
}

.package-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.package-card-head h3 {
    margin: 0;
    min-width: 0;
}

.package-delete-btn {
    flex: 0 0 auto;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #991b1b;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 900;
    padding: .42rem .7rem;
}

.package-delete-btn:hover {
    background: #ffe4e6;
}

.package-delete-form {
    display: none;
}

.admin-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-collections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-packages-grid .admin-plan-card,
.admin-collections-grid .admin-plan-card {
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-packages-grid .admin-plan-card input,
.admin-packages-grid .admin-plan-card select,
.admin-packages-grid .admin-plan-card textarea,
.admin-collections-grid .admin-plan-card input,
.admin-collections-grid .admin-plan-card select,
.admin-collections-grid .admin-plan-card textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-packages-grid .package-card-head,
.admin-collections-grid .package-card-head {
    padding-right: 5.8rem;
}

.admin-packages-grid .package-delete-btn,
.admin-collections-grid .package-delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.admin-collections-filter {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .35fr) minmax(10rem, .35fr) auto;
    align-items: center;
}

.admin-collections-filter input,
.admin-collections-filter select {
    width: 100%;
    min-width: 0;
}

.admin-collection-card textarea {
    resize: vertical;
}

.collection-status-line {
    display: block;
    margin-top: .2rem;
    color: #6B7280;
    font-size: .78rem;
    font-weight: 800;
}

.package-delete-btn.is-disabled {
    border-color: #E5E7EB;
    background: #F3F4F6;
    color: #6B7280;
    cursor: not-allowed;
}

.collection-market-card {
    align-content: start;
    min-height: 18rem;
}

.collection-cover {
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(76, 29, 149, .12);
}

.collection-card-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.collection-actions {
    display: grid;
    gap: .55rem;
    margin-top: .85rem;
}

.collection-actions form {
    margin: 0;
}

.collection-actions .is-static {
    pointer-events: none;
    opacity: .78;
}

.collection-legacy-section {
    margin-top: 1.25rem;
}

.collection-market-card.is-muted {
    opacity: .78;
}

.collection-dialog {
    width: min(520px, calc(100vw - 32px));
    border: 1px solid #eadcff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 28px 80px rgba(46, 16, 101, .18);
}

.collection-dialog::backdrop {
    background: rgba(17, 24, 39, .34);
    backdrop-filter: blur(6px);
}

.collection-dialog-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: #fff;
}

.collection-dialog-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
}

.collection-dialog-card p,
.collection-dialog-card label {
    margin: 0;
    color: #374151;
    font-weight: 700;
    line-height: 1.55;
}

.collection-dialog-card input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 12px 14px;
    color: #111827;
    box-sizing: border-box;
}

.collection-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.selection-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #E9DDF6;
    border-radius: 1.25rem;
    background: #FFFFFF;
    box-shadow: 0 18px 42px rgba(76, 29, 149, .08);
}

.selection-action-bar h3 {
    margin: .2rem 0 0;
    color: #111827;
    font-size: 1.2rem;
}

.selection-action-buttons {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.selection-action-buttons form {
    margin: 0;
}

.selection-pick-card {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.selection-pick-card:hover,
.selection-pick-card.selected,
.selection-pick-card.is-selected {
    border-color: #8B5CF6;
    box-shadow: 0 22px 54px rgba(109, 40, 217, .14);
    transform: translateY(-1px);
}

.selection-pick-card.selected,
.selection-pick-card.is-selected {
    outline: 3px solid rgba(139, 92, 246, .16);
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7FF 100%);
}

.plan-card-details {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.plan-card-details span {
    color: #374151;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
}

.plan-card-details strong {
    color: #111827;
    font-weight: 850;
}

.dashboard-top-grid .progress-orb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.8rem;
    height: 7.8rem;
    min-width: 7.8rem;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #FFFFFF 60%, transparent 61%),
        conic-gradient(#8B5CF6 calc(var(--progress, 0) * 1%), #EFE7F8 0);
    text-align: center;
}

.dashboard-top-grid .progress-orb strong {
    color: #111827;
    font-size: 2rem;
    line-height: 1;
    text-align: center;
}

.dashboard-top-grid .progress-orb span {
    display: block;
    width: 100%;
    color: #374151 !important;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .selection-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .selection-action-buttons,
    .selection-action-buttons form,
    .selection-action-buttons .btn {
        width: 100%;
    }

    .admin-packages-grid,
    .admin-collections-grid,
    .admin-collections-filter {
        grid-template-columns: 1fr;
    }
}

.content-panel {
    min-height: calc(100vh - 7rem);
    border-radius: 1.25rem;
}

.stats-grid,
.dashboard-grid,
.album-grid,
.sticker-page {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card,
.panel,
.filters-panel,
.component-strip,
.info-panel {
    border-radius: 1rem;
    padding: 1rem;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin: .45rem 0 .2rem;
    color: var(--purple-950);
    font-size: 2rem;
    letter-spacing: -.04em;
}

.stat-card small {
    color: var(--purple-700);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .8fr);
    margin-top: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.panel h2,
.album-toolbar h2,
.match-card h2,
.info-panel h2 {
    margin: 0;
    color: var(--purple-950);
    font-size: 1.05rem;
}

.chart-lines {
    display: flex;
    height: 16rem;
    align-items: end;
    gap: .8rem;
    padding-top: 2rem;
}

.chart-lines span {
    flex: 1;
    min-width: 1rem;
    border-radius: 999px 999px .4rem .4rem;
    background: linear-gradient(180deg, var(--purple-700), var(--purple-950));
}

.chart-bar-30 { height: 30%; }
.chart-bar-34 { height: 34%; }
.chart-bar-44 { height: 44%; }
.chart-bar-52 { height: 52%; }
.chart-bar-55 { height: 55%; }
.chart-bar-74 { height: 74%; }
.chart-bar-84 { height: 84%; }

.ranking-list {
    display: grid;
    gap: .8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .65rem;
    color: var(--muted);
    font-size: .9rem;
}

.ranking-list strong {
    color: var(--purple-950);
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 900;
}

.badge-purple {
    background: rgba(99, 102, 241, .11);
    color: var(--indigo-600);
}

.badge-soft {
    background: var(--surface);
    color: var(--muted);
}

.component-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: 1rem;
}

.skeleton {
    width: 10rem;
    height: 2.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ECECF1, #FFFFFF, #ECECF1);
    background-size: 200% 100%;
    animation: shimmer 1.35s infinite;
}

.alert {
    border-radius: .8rem;
    padding: .7rem .9rem;
    background: var(--soft-purple);
    color: var(--purple-950);
    font-weight: 800;
}

.album-toolbar,
.filters-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.segmented {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: var(--white);
}

.segmented button {
    min-height: 2.7rem;
    border: 0;
    border-right: 1px solid var(--border);
    padding: 0 1rem;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.segmented button:first-child {
    background: var(--soft-purple);
    color: var(--purple-700);
}

.album-grid {
    grid-template-columns: repeat(10, minmax(4.7rem, 1fr));
}

.album-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.album-card {
    position: relative;
    display: grid;
    min-height: 8.6rem;
    gap: .35rem;
    align-content: start;
    border-radius: .75rem;
    padding: .45rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.album-card-large {
    min-height: 0;
    border-radius: 1.1rem;
    padding: .8rem;
}

.album-card-large .sticker-thumb,
.album-card-large .empty-sticker {
    min-height: 15rem;
    border-radius: .9rem;
}

.album-card-large .sticker-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    display: inline-grid;
    min-width: 2.6rem;
    min-height: 2.1rem;
    place-items: center;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 18px rgba(43, 10, 61, .12);
}

.album-card-meta {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .85rem;
}

.album-card-meta strong,
.album-card-meta span {
    display: block;
}

.album-card-meta strong {
    color: var(--purple-950);
    font-size: 1.05rem;
}

.album-card-meta div > span {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.sticker-number {
    color: var(--purple-950);
    font-size: .72rem;
    font-weight: 900;
    text-align: center;
}

.sticker-thumb,
.empty-sticker {
    display: grid;
    min-height: 6.5rem;
    place-items: center;
    overflow: hidden;
    border-radius: .55rem;
    background: linear-gradient(135deg, #2D54A4, var(--purple-700));
}

.sticker-thumb .player-face {
    width: 62%;
}

.sticker-thumb strong {
    align-self: end;
    width: calc(100% - .5rem);
    margin-bottom: .25rem;
    border-radius: .35rem;
    background: var(--white);
    color: var(--purple-950);
    font-size: .58rem;
    text-align: center;
}

.empty-sticker {
    border: 1px dashed #D7D9DF;
    background: linear-gradient(135deg, #FAFAFB, #ECECF1);
}

.empty-sticker::before {
    content: "";
    width: 2.4rem;
    height: 3.8rem;
    border: .25rem solid #D6D7DE;
    border-radius: 999px 999px .8rem .8rem;
}

.state-dot {
    position: absolute;
    right: .35rem;
    bottom: .35rem;
    width: .85rem;
    height: .85rem;
    border: 2px solid var(--white);
    border-radius: 50%;
}

.state-tenho .state-dot,
.state-have .state-dot { background: var(--success); }
.state-repetida .state-dot,
.state-duplicate .state-dot { background: var(--warning); }
.state-preciso .state-dot,
.state-need .state-dot { background: var(--danger); }
.state-empty .state-dot { background: #D1D5DB; }

.sticker-link {
    display: grid;
    gap: .35rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.status-picker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem;
    margin-top: .35rem;
}

.status-badge {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    background: #F3F4F6;
    padding: .2rem .35rem;
    color: #374151;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.details-link {
    display: inline-flex;
    justify-content: center;
    margin-top: .35rem;
    color: var(--purple-700);
    font-size: .68rem;
    font-weight: 900;
}

.details-link-primary {
    min-height: 2.8rem;
    align-items: center;
    border-radius: .8rem;
    background: linear-gradient(135deg, var(--indigo-600), var(--purple-900));
    color: var(--white);
    font-size: .92rem;
    box-shadow: 0 14px 28px rgba(75, 18, 72, .18);
}

.album-toolbar-spacious {
    align-items: center;
    margin-bottom: 1.25rem;
}

.album-search {
    display: grid;
    gap: .35rem;
    min-width: min(100%, 21rem);
}

.album-search span {
    color: #374151;
    font-size: .78rem;
    font-weight: 800;
}

.album-search input {
    width: 100%;
    border: 1px solid #E9D5FF;
    border-radius: 16px;
    background: #FFFFFF;
    color: #111827;
    font: inherit;
    font-weight: 650;
    outline: none;
    padding: .82rem 1rem;
    box-shadow: 0 12px 28px rgba(109, 40, 217, .08);
}

.album-search input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

.album-search-empty {
    margin: 1rem 0;
    text-align: center;
}

.collectible-card[hidden],
.album-card[hidden] {
    display: none !important;
}

.register-card .login-form label.visible-field-label > span,
.register-card .login-form label[data-brazil-field] > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.register-card .login-form small,
.account-form small {
    color: #6B7280;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.35;
}

.register-card [data-register-cep-status].is-error,
.account-form [data-cep-status].is-error {
    color: #991B1B;
}

.legend-spacious {
    margin-top: 1.25rem;
}

.state-tenho .status-badge {
    background: #DCFCE7;
    color: #166534;
}

.state-repetida .status-badge {
    background: #F3E8FF;
    color: #6D28D9;
}

.state-preciso .status-badge {
    background: #DBEAFE;
    color: #1D4ED8;
}

.state-empty .status-badge {
    background: #F3F4F6;
    color: #6B7280;
}

.status-picker button {
    min-height: 1.65rem;
    border: 1px solid var(--border);
    border-radius: .45rem;
    background: var(--white);
    color: var(--purple-950);
    font-size: .62rem;
    font-weight: 900;
    cursor: pointer;
}

.status-picker button:hover,
.status-picker button:focus {
    border-color: var(--purple-700);
    background: var(--soft-purple);
}

.album-counters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.album-counters span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    padding: .55rem .8rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}

.album-counters strong {
    color: var(--purple-700);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.legend i {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
}

.legend-have { background: var(--success); }
.legend-duplicate { background: var(--warning); }
.legend-need { background: var(--danger); }
.legend-empty { background: #D1D5DB; }

.filters-panel {
    align-items: end;
}

.filters-panel label {
    flex: 1;
}

.filters-panel select {
    padding: 0 1rem;
}

.match-list {
    display: grid;
    gap: .85rem;
}

.match-hero-panel,
.profile-hub {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.match-hero-panel,
.profile-card-main {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .92);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.match-hero-panel h2,
.profile-card-main h2 {
    margin: .2rem 0;
    color: var(--purple-950);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.match-premium {
    margin: 0;
}

.match-list-modern {
    gap: 1rem;
}

.match-card {
    display: grid;
    grid-template-columns: auto minmax(11rem, 1fr) auto minmax(10rem, .8fr) auto;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    padding: .85rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.match-card-modern {
    grid-template-columns: auto minmax(14rem, 1fr) auto auto auto;
    border-radius: 1.2rem;
    padding: 1rem;
}

.match-main h2 {
    margin: 0;
}

.match-stickers,
.sticker-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
}

.match-stickers a,
.sticker-chip-list a {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    padding: .35rem .6rem;
    color: var(--purple-950);
    font-size: .78rem;
    font-weight: 900;
}

.sticker-chip-list.compact {
    max-height: 15rem;
    overflow: auto;
}

.compat-ring {
    display: grid;
    min-width: 6rem;
    min-height: 6rem;
    place-items: center;
    border: .55rem solid rgba(99, 102, 241, .18);
    border-radius: 50%;
    background: var(--white);
}

.compat-ring strong {
    color: var(--purple-950);
    font-size: 1.35rem;
    line-height: 1;
}

.compat-ring span {
    max-width: 5rem;
    text-align: center;
}

.trade-count {
    display: grid;
    min-width: 6.5rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    padding: .7rem;
    text-align: center;
}

.trade-count strong {
    color: var(--purple-950);
    font-size: 1.8rem;
    line-height: 1;
}

.trade-count span {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 900;
}

.avatar-xl {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.05rem;
}

.profile-card-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.monetization-panel {
    display: grid;
    align-content: center;
    gap: .7rem;
}

.reviews-preview {
    margin-top: 1rem;
}

.reputation-premium {
    display: grid;
    gap: 1rem;
}

.reputation-title h2 {
    color: #111827;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
}

.reputation-title p {
    color: #4B5563;
    font-weight: 700;
}

.reputation-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.reputation-card {
    display: grid;
    align-content: start;
    gap: .4rem;
    min-height: 11rem;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    background: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .06);
}

.reputation-card > strong {
    color: #111827;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 900;
    letter-spacing: -.03em;
}

.reputation-card h3 {
    color: #111827;
    font-size: .95rem;
    font-weight: 900;
}

.reputation-card p {
    color: #4B5563;
    font-size: .84rem;
    font-weight: 700;
}

.reputation-icon {
    display: inline-grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .85rem;
    font-weight: 900;
}

.reputation-yellow {
    background: #FEF3C7;
    color: #B45309;
}

.reputation-blue {
    background: #DBEAFE;
    color: #1D4ED8;
}

.reputation-green {
    background: #DCFCE7;
    color: #15803D;
}

.reputation-red {
    background: #FEE2E2;
    color: #B91C1C;
}

.reputation-purple {
    background: #F3E8FF;
    color: #6D28D9;
}

.review-stars {
    color: #F59E0B;
    font-weight: 900;
    letter-spacing: .08em;
}

.achievement-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    border: 1px solid #EDE9FE;
    border-radius: 1rem;
    background: #FBFAFF;
    padding: .85rem;
}

.achievement-strip strong {
    color: #111827;
    font-weight: 900;
}

.achievement-strip span {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    background: #FFFFFF;
    padding: .35rem .7rem;
    color: #374151;
    font-size: .82rem;
    font-weight: 850;
}

.review-list-premium {
    display: grid;
    gap: .85rem;
}

.review-comment-card,
.review-locked-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: .85rem;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    background: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .055);
}

.review-comment-card h3,
.review-locked-card h3 {
    color: #111827;
    font-size: .98rem;
    font-weight: 900;
}

.review-comment-card p,
.review-locked-card p {
    color: #6B7280;
    font-size: .84rem;
    font-weight: 700;
}

.review-comment-card strong {
    display: block;
    margin-top: .35rem;
    color: #374151;
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.55;
}

.review-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .6rem;
    font-size: .74rem;
    font-weight: 900;
    white-space: nowrap;
}

.review-badge.completed {
    background: #DCFCE7;
    color: #166534;
}

.review-badge.cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.review-locked-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(243, 232, 255, .72));
}

.review-locked-card::before {
    position: absolute;
    inset: 0;
    content: "";
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.review-locked-card > * {
    position: relative;
    z-index: 1;
}

.review-locked-card > span {
    display: inline-grid;
    min-width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    background: #F3E8FF;
    color: #6D28D9;
    font-size: .72rem;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 980px) {
    .reputation-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-reputation-shell,
.profile-reviews-shell {
    margin-top: 1rem;
    border: 1px solid #E9D5FF;
    border-radius: 1.35rem;
    background: #FFFFFF;
    padding: 1.35rem;
    box-shadow: 0 24px 60px rgba(76, 29, 149, .08);
}

.reputation-header,
.reviews-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.reputation-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.reputation-shield {
    display: inline-grid;
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: .9rem;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(109, 40, 217, .22);
}

.reputation-heading h2,
.reviews-section-heading h2 {
    color: #111827;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -.02em;
}

.reputation-heading p {
    margin-top: .25rem;
    color: #4B5563;
    font-weight: 700;
}

.reputation-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    border: 1px solid #DDD6FE;
    border-radius: .9rem;
    background: #FFFFFF;
    padding: .65rem 1rem;
    color: #6D28D9;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.reputation-all-link span {
    font-size: 1.15rem;
}

.reputation-metrics-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .95rem;
}

.reputation-metric-card {
    display: grid;
    gap: .38rem;
    min-height: 11.5rem;
    align-content: start;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 16px 34px rgba(17, 24, 39, .045);
}

.reputation-metric-card .metric-icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    font-size: 1.55rem;
    font-weight: 900;
}

.reputation-metric-card > strong {
    margin-top: .35rem;
    color: #111827;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: .95;
}

.reputation-metric-card h3 {
    color: #111827;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.25;
}

.reputation-metric-card p {
    color: #374151;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
}

.metric-stars {
    color: #F59E0B;
    font-size: 1.05rem;
    letter-spacing: .06em;
}

.metric-yellow {
    border: 1px solid #FDE68A;
    background: linear-gradient(135deg, #FFFBEB, #FFFFFF);
}

.metric-yellow .metric-icon {
    background: #FEF3C7;
    color: #F59E0B;
}

.metric-blue {
    border: 1px solid #BFDBFE;
    background: linear-gradient(135deg, #EFF6FF, #FFFFFF);
}

.metric-blue .metric-icon {
    background: #DBEAFE;
    color: #2563EB;
}

.metric-green {
    border: 1px solid #BBF7D0;
    background: linear-gradient(135deg, #F0FDF4, #FFFFFF);
}

.metric-green .metric-icon {
    background: #DCFCE7;
    color: #16A34A;
}

.metric-red {
    border: 1px solid #FECACA;
    background: linear-gradient(135deg, #FEF2F2, #FFFFFF);
}

.metric-red .metric-icon {
    background: #FEE2E2;
    color: #DC2626;
}

.metric-purple {
    border: 1px solid #DDD6FE;
    background: linear-gradient(135deg, #F5F3FF, #FFFFFF);
}

.metric-purple .metric-icon {
    background: #EDE9FE;
    color: #7C3AED;
    font-size: 1rem;
}

.profile-achievements-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1.15rem;
    border: 1px solid #E9D5FF;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FBFAFF, #FFFFFF);
    padding: .8rem 1rem;
    overflow-x: auto;
}

.profile-achievements-row > strong {
    flex: 0 0 auto;
    border-radius: .75rem;
    background: #F3E8FF;
    padding: .55rem .8rem;
    color: #111827;
    font-weight: 900;
}

.profile-achievements-row span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .55rem;
    color: #111827;
    font-weight: 850;
}

.profile-achievements-row i {
    display: inline-grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 999px;
    background: #EEF2FF;
    color: #6D28D9;
    font-style: normal;
    font-weight: 900;
}

.reviews-section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    min-height: 2rem;
    border-radius: 999px;
    background: #F3E8FF;
    color: #6D28D9;
    font-weight: 900;
}

.profile-review-list {
    display: grid;
    gap: 1rem;
}

.profile-review-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .95rem;
    align-items: start;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    background: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .045);
}

.profile-review-meta {
    display: grid;
    gap: .2rem;
}

.profile-review-meta h3 {
    color: #111827;
    font-size: .98rem;
    font-weight: 900;
}

.profile-review-meta p {
    color: #6B7280;
    font-size: .8rem;
    font-weight: 750;
}

.profile-review-stars {
    margin: .55rem 0 .35rem;
    color: #F59E0B;
    font-size: 1.15rem;
    letter-spacing: .06em;
}

.profile-review-text {
    color: #374151;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.55;
}

.review-side-status {
    display: grid;
    justify-items: end;
    gap: .65rem;
}

.review-side-status > strong {
    display: inline-flex;
    min-width: 3rem;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #FFFFFF;
    padding: .4rem .65rem;
    color: #111827;
    font-weight: 900;
}

.review-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.review-status-badge.is-completed {
    background: #DCFCE7;
    color: #15803D;
}

.review-status-badge.is-cancelled {
    background: #FEE2E2;
    color: #B91C1C;
}

.profile-review-locked {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    overflow: hidden;
    border: 1px solid #DDD6FE;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(245, 243, 255, .92), rgba(255, 255, 255, .8));
    padding: 1rem;
    box-shadow: 0 18px 42px rgba(109, 40, 217, .08);
}

.profile-review-locked > span {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    background: #EDE9FE;
    color: #6D28D9;
    font-size: .7rem;
    font-weight: 900;
}

.profile-review-locked h3 {
    color: #111827;
    font-weight: 900;
}

.profile-review-locked p {
    color: #4B5563;
    font-weight: 700;
}

/* Fine tuning for the profile reputation block to match the approved mockup. */
.profile-reputation-shell {
    padding: 1.55rem;
}

.reputation-header {
    margin-bottom: 1.35rem;
}

.reputation-all-link {
    min-height: 3.25rem;
    border-color: #D8B4FE;
    border-radius: 1rem;
    padding: .75rem 1.25rem;
    box-shadow: 0 10px 24px rgba(109, 40, 217, .04);
}

.reputation-metrics-row {
    gap: 1rem;
}

.reputation-metric-card {
    min-height: 10.9rem;
    padding: 1.05rem;
    border-width: 1.5px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .035);
}

.reputation-metric-card .metric-icon {
    width: 3.65rem;
    height: 3.65rem;
    border-radius: 1.15rem;
}

.reputation-metric-card .metric-icon svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.metric-yellow .metric-icon {
    background: #FEF3C7;
    color: #F59E0B;
}

.metric-blue .metric-icon {
    background: #DBEAFE;
    color: #2563EB;
}

.metric-green .metric-icon {
    background: #BBF7D0;
    color: #16A34A;
}

.metric-red .metric-icon {
    background: #FECACA;
    color: #DC2626;
}

.metric-purple .metric-icon {
    background: #EDE9FE;
    color: #7C3AED;
}

.reputation-metric-card > strong {
    margin-top: .2rem;
    font-size: clamp(2.05rem, 4vw, 2.75rem);
}

.reputation-metric-card h3 {
    margin-top: .15rem;
}

.metric-stars,
.profile-review-stars {
    color: #F59E0B;
    font-size: 1.25rem;
    letter-spacing: .08em;
    line-height: 1;
}

.profile-achievements-row {
    min-height: 5.35rem;
    padding: .95rem 1rem;
}

.profile-achievements-row > strong {
    background: #F3E8FF;
    color: #111827;
    padding: .7rem .9rem;
}

.profile-achievements-row .achievement-badge {
    position: relative;
    gap: .7rem;
    padding-right: 1.25rem;
}

.profile-achievements-row .achievement-badge:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: .25rem;
    color: #A78BFA;
    font-weight: 900;
}

.profile-achievements-row .achievement-badge i {
    background: #F3F4F6;
    color: #6D28D9;
}

.profile-achievements-row .achievement-badge i::before {
    content: "★";
}

.profile-achievements-row .achievement-verificado i {
    background: #DCFCE7;
    color: #16A34A;
}

.profile-achievements-row .achievement-verificado i::before {
    content: "✓";
}

.profile-achievements-row .achievement-colecionador-ativo i {
    background: #DBEAFE;
    color: #2563EB;
}

.profile-achievements-row .achievement-colecionador-ativo i::before {
    content: "▦";
}

.profile-achievements-row .achievement-top-trocas i {
    background: #FEF3C7;
    color: #D97706;
}

.profile-achievements-row .achievement-top-trocas i::before {
    content: "♛";
}

.profile-achievements-row .achievement-excelente-reputacao i {
    background: #EDE9FE;
    color: #7C3AED;
}

.profile-achievements-row .achievement-excelente-reputacao i::before {
    content: "★";
}

.profile-achievements-row .achievement-muted {
    opacity: .72;
}

.profile-achievements-row .achievement-muted i::before {
    content: "+";
}

.profile-review-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1.15rem 1.25rem;
}

.profile-review-card .avatar {
    width: 3.35rem;
    height: 3.35rem;
}

.profile-review-meta h3 {
    font-size: 1rem;
}

.profile-review-meta p {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.profile-review-text {
    max-width: 46rem;
}

.review-side-status {
    align-self: start;
    min-width: 9.5rem;
}

.review-status-badge {
    min-height: 2rem;
    padding: .5rem .9rem;
}

.review-side-status > strong {
    min-height: 2.1rem;
    min-width: 3.6rem;
}

.profile-review-locked {
    min-height: 5.5rem;
    background: linear-gradient(135deg, rgba(243, 232, 255, .86), rgba(255, 255, 255, .92));
    backdrop-filter: blur(8px);
}

@media (max-width: 1120px) {
    .reputation-metrics-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .reputation-header,
    .reviews-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-review-card,
    .profile-review-locked {
        grid-template-columns: 1fr;
    }

    .review-side-status {
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .profile-reputation-shell,
    .profile-reviews-shell {
        padding: 1rem;
    }

    .reputation-metrics-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reputation-card-grid,
    .review-comment-card,
    .review-locked-card {
        grid-template-columns: 1fr;
    }
}

.team-select-hero,
.smart-dashboard-hero,
.progress-panel,
.team-group {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .92);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.team-select-hero {
    margin-bottom: 1rem;
}

.team-select-hero h2,
.smart-dashboard-hero h2 {
    margin: .2rem 0;
    color: var(--purple-950);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.team-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-card button {
    display: grid;
    width: 100%;
    min-height: 12rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, var(--white), var(--soft-purple));
    padding: 1rem;
    color: var(--purple-950);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, border-color .18s ease;
}

.team-card button:hover {
    border-color: var(--purple-700);
    transform: translateY(-3px);
}

.team-flag {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
    color: var(--white);
    font-weight: 900;
}

.team-card strong {
    font-size: 1.25rem;
}

.team-card small {
    color: var(--muted);
    font-weight: 800;
}

.smart-dashboard-hero {
    border-radius: 1.45rem;
    padding: 1.35rem;
    min-height: 12rem;
}

.smart-dashboard-hero h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -.025em;
    line-height: .98;
}

.progress-orb {
    border: 1rem solid #F3EEF8;
    background: conic-gradient(var(--launch-purple) 0 60%, #F3EEF8 60% 100%);
}

.progress-orb strong {
    font-size: 2.05rem;
}

.dashboard-top-grid {
    gap: 1.35rem;
}

.plan-card {
    border-radius: 1.45rem;
    padding: 1.35rem;
}

.dashboard-card-panel {
    min-height: 22rem;
}

.latest-sticker-card {
    border-radius: 1.05rem;
    padding: .65rem;
}

.latest-sticker-card .player-face {
    height: 7rem;
    border-radius: .9rem;
}

.collectible-card .sticker-link-large {
    min-height: 11.25rem;
    background:
        radial-gradient(circle at 82% 12%, rgba(255,255,255,.72), transparent 3rem),
        linear-gradient(160deg, #B7A5F6 0%, #7C3AED 50%, #F4D047 51%, #18A15F 100%);
}

.collectible-face {
    height: 10.2rem;
    min-height: 10.2rem;
}

.collectible-face .player-face {
    width: 6.5rem;
    height: 8.7rem;
    margin-bottom: -.35rem;
}

.collectible-card .album-card-meta strong {
    font-size: 1.05rem;
}

.sticker-detail-clean {
    display: grid;
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.sticker-detail-clean .back-link,
.sticker-detail-clean .detail-heading,
.sticker-detail-clean .sticker-facts,
.sticker-detail-clean .sticker-social-strip,
.sticker-detail-clean .primary-status-actions,
.sticker-detail-clean .sticker-social-actions,
.sticker-detail-clean > h2 {
    grid-column: 2;
}

.premium-sticker-preview {
    grid-row: 1 / span 6;
    width: 100%;
    min-height: 21rem;
}

.premium-sticker-preview .player-face {
    width: 92%;
    height: 15.5rem;
}

.premium-sticker-preview strong {
    font-size: 1.2rem;
}

@media (max-width: 820px) {
    .sticker-detail-clean {
        grid-template-columns: 1fr;
    }

    .sticker-detail-clean .back-link,
    .sticker-detail-clean .detail-heading,
    .sticker-detail-clean .sticker-facts,
    .sticker-detail-clean .sticker-social-strip,
    .sticker-detail-clean .primary-status-actions,
    .sticker-detail-clean .sticker-social-actions,
    .sticker-detail-clean > h2 {
        grid-column: auto;
    }

    .premium-sticker-preview {
        grid-row: auto;
        max-width: 18rem;
    }
}

.smart-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-orb {
    display: grid;
    width: 8rem;
    height: 8rem;
    place-items: center;
    border: .75rem solid var(--soft-purple);
    border-radius: 50%;
    background: var(--white);
    text-align: center;
}

.progress-orb strong {
    color: var(--purple-950);
    font-size: 2rem;
    line-height: 1;
}

.progress-orb span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 900;
}

.progress-panel {
    margin-bottom: 1rem;
}

.progress-track {
    height: .9rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface);
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--indigo-500), var(--purple-950));
}

.progress-p-0 { width: 0%; }
.progress-p-5 { width: 5%; }
.progress-p-10 { width: 10%; }
.progress-p-15 { width: 15%; }
.progress-p-20 { width: 20%; }
.progress-p-25 { width: 25%; }
.progress-p-30 { width: 30%; }
.progress-p-35 { width: 35%; }
.progress-p-40 { width: 40%; }
.progress-p-45 { width: 45%; }
.progress-p-50 { width: 50%; }
.progress-p-55 { width: 55%; }
.progress-p-60 { width: 60%; }
.progress-p-65 { width: 65%; }
.progress-p-70 { width: 70%; }
.progress-p-75 { width: 75%; }
.progress-p-80 { width: 80%; }
.progress-p-85 { width: 85%; }
.progress-p-90 { width: 90%; }
.progress-p-95 { width: 95%; }
.progress-p-100 { width: 100%; }

.gamification-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .85rem;
}

.team-group {
    margin-top: 1rem;
}

.match-card p {
    margin: .15rem 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.compat {
    text-align: center;
}

.compat span {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 800;
}

.compat strong {
    color: var(--purple-950);
    font-size: 1.2rem;
}

.match-info {
    color: var(--purple-700) !important;
    font-weight: 800;
}

.whatsapp-btn {
    min-height: 2.55rem;
    border: 0;
    border-radius: .75rem;
    padding: 0 .95rem;
    background: var(--whatsapp);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.sticker-page {
    grid-template-columns: minmax(18rem, .85fr) minmax(18rem, 1fr) minmax(18rem, .8fr);
    align-items: center;
}

.sticker-hub {
    display: grid;
    grid-template-columns: minmax(18rem, .85fr) minmax(18rem, 1fr) minmax(18rem, .8fr);
    gap: 1rem;
    align-items: stretch;
}

.sticker-hub-clean {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .85fr);
    align-items: stretch;
}

.hub-showcase,
.hub-details,
.hub-stats {
    min-height: 31rem;
}

.hub-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sticker-detail-clean {
    justify-content: flex-start;
    min-height: auto;
    padding: 1.4rem;
}

.detail-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
}

.sticker-number-pill {
    display: inline-flex;
    min-width: 3.2rem;
    min-height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    background: #F3EEF8;
    color: #111827;
    font-weight: 800;
}

.sticker-detail-clean h2 {
    margin-top: .9rem;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
}

.sticker-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .8rem;
}

.sticker-facts span,
.sticker-facts a {
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #374151;
    padding: .45rem .7rem;
    font-size: .86rem;
    font-weight: 600;
}

.hub-status {
    align-self: flex-start;
    margin-top: 1rem;
}

.primary-status-actions {
    display: grid;
    gap: .75rem;
    margin-top: 1.4rem;
}

.status-action-large {
    min-height: 3.8rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--white);
    color: var(--purple-950);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(43, 10, 61, .06);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.status-action-large:hover,
.status-action-large:focus {
    border-color: var(--purple-700);
    background: var(--soft-purple);
    transform: translateY(-2px);
}

.modern-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(7.5rem, 1fr));
    gap: .8rem;
    margin: 1rem 0;
}

.modern-stats article {
    display: grid;
    min-width: 0;
    min-height: 6.4rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: var(--white);
    padding: 1rem;
    text-align: center;
}

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

.modern-stats strong {
    color: var(--purple-950);
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -.04em;
    line-height: 1;
}

.modern-stats span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.premium-lock {
    border: 1px solid rgba(107, 30, 91, .16);
    border-radius: 1rem;
    background: var(--soft-purple);
    padding: 1rem;
}

.premium-lock p {
    margin: .65rem 0 0;
    color: var(--purple-950);
    font-weight: 800;
}

.sticker-showcase,
.sticker-details,
.info-panel {
    border-radius: 1.2rem;
}

.sticker-showcase {
    display: grid;
    min-height: 30rem;
    place-items: center;
    background: linear-gradient(135deg, rgba(107, 30, 91, .08), rgba(255, 255, 255, .9));
}

.sticker-details {
    padding: 1rem;
}

.back-link {
    color: var(--muted);
    font-weight: 800;
}

.sticker-details h2 {
    margin: 1rem 0 .1rem;
    color: var(--purple-950);
    font-size: 2.2rem;
    letter-spacing: -.04em;
}

.sticker-details h3 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 1.7rem;
}

.sticker-details p {
    color: var(--muted);
    font-weight: 700;
}

.flag-dot {
    display: inline-block;
    width: .8rem;
    height: .8rem;
    margin-right: .4rem;
    border-radius: 50%;
    background: #F5C542;
    box-shadow: inset 0 0 0 .22rem #224AB8;
}

.detail-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1.5rem;
}

.info-panel dl {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 1.4rem;
}

.duplicates-panel {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .92);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.duplicate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-top: 1rem;
}

.duplicate-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: var(--white);
    padding: .8rem;
}

.duplicate-card strong,
.duplicate-card span {
    display: block;
}

.duplicate-card span,
.empty-copy {
    color: var(--muted);
    font-size: .86rem;
}

.profile-flash {
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 1rem;
    background: rgba(99, 102, 241, .09);
    padding: .9rem 1rem;
    color: var(--indigo-600);
    font-weight: 700;
}

.trust-badges,
.safety-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .7rem;
}

.contact-reveal {
    display: grid;
    gap: .25rem;
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: .9rem;
    background: rgba(99, 102, 241, .08);
    padding: .85rem;
}

.contact-reveal span {
    color: var(--muted-strong);
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    background: rgba(20, 10, 31, .46);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
    display: none;
}

.action-modal {
    display: grid;
    width: min(100%, 28rem);
    gap: .85rem;
    border: 1px solid rgba(229, 231, 235, .92);
    border-radius: 1.2rem;
    background: var(--white);
    padding: 1.2rem;
    box-shadow: var(--shadow-lg);
}

.action-modal h2 {
    margin: 0;
    color: var(--purple-950);
}

.action-modal p {
    margin: 0;
    color: var(--muted-strong);
}

.action-modal label {
    display: grid;
    gap: .35rem;
    color: var(--muted-strong);
    font-weight: 700;
}

.action-modal input,
.action-modal textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: .8rem;
    padding: .75rem .85rem;
}

.action-modal textarea {
    min-height: 6rem;
    resize: vertical;
}

.action-modal button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.interaction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.interaction-panel {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .92);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.mini-user-list {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
}

.mini-user-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    border: 1px solid var(--border);
    border-radius: .95rem;
    background: var(--white);
    padding: .75rem;
}

.mini-user-card strong,
.mini-user-card span {
    display: block;
}

.mini-user-card span,
.interest-preview p {
    color: var(--muted);
    font-size: .86rem;
}

.connect-btn {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .75rem;
    background: var(--purple-950);
    color: var(--white);
    padding: 0 .85rem;
    font-weight: 900;
    cursor: pointer;
}

.comment-skeleton {
    height: 3rem;
    border-radius: .8rem;
    background: linear-gradient(90deg, #ECECF1, #FFFFFF, #ECECF1);
    background-size: 200% 100%;
    animation: shimmer 1.35s infinite;
}

.comment-skeleton.short {
    width: 70%;
    margin-top: .75rem;
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    max-width: min(22rem, calc(100vw - 2rem));
    border-radius: .95rem;
    background: var(--purple-950);
    color: var(--white);
    padding: .85rem 1rem;
    box-shadow: var(--shadow-lg);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(.75rem);
    transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

.info-panel dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    z-index: 10;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.bottom-nav a {
    display: grid;
    place-items: center;
    gap: .2rem;
    padding: .65rem .3rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
}

.bottom-nav .nav-icon {
    width: 1.8rem;
    height: 1.8rem;
    background: var(--surface);
}

.bottom-nav a.is-active {
    color: var(--purple-700);
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

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

    .album-grid {
        grid-template-columns: repeat(5, minmax(4.7rem, 1fr));
    }

    .album-grid-large,
    .sticker-hub,
    .team-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-card {
        grid-template-columns: auto 1fr auto;
    }

    .match-card-modern {
        grid-template-columns: auto 1fr;
    }

    .match-card-modern .compat-ring,
    .match-card-modern .trade-count,
    .match-card-modern .match-actions {
        grid-column: 1 / -1;
    }

    .match-info {
        display: none;
    }

    .sticker-page {
        grid-template-columns: 1fr 1fr;
    }

    .info-panel {
        grid-column: 1 / -1;
    }

    .hub-stats {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .duplicate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .landing-hero {
        width: 100%;
        margin: 0;
        border-radius: 0 0 1.4rem 1.4rem;
    }

    .landing-nav {
        align-items: flex-start;
    }

    .nav-links,
    .nav-actions a:first-child,
    .user-name {
        display: none;
    }

    .hero-grid,
    .feature-row,
    .showcase-grid,
    .dashboard-grid,
    .sticker-page,
    .sticker-hub,
    .match-hero-panel,
    .profile-hub,
    .interaction-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 10ch;
        font-size: clamp(3rem, 13vw, 4.8rem);
    }

    .hero-art {
        min-height: 360px;
    }

    .feature-row article {
        grid-template-columns: auto 1fr;
    }

    .app-shell {
        display: block;
        padding-bottom: 5.5rem;
    }

    .sidebar {
        display: none;
    }

    .workspace {
        padding: 1rem;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: -1rem -1rem 1rem;
        padding: 1rem;
        background: rgba(245, 245, 247, .92);
        backdrop-filter: blur(20px);
    }

    .bottom-nav {
        display: grid;
    }
}

@media (max-width: 640px) {
    .landing-nav {
        padding: 1rem;
    }

    .hero-grid {
        padding: 2rem 1rem 1rem;
    }

    .hero-actions,
    .album-toolbar,
    .smart-dashboard-hero,
    .filters-panel,
    .match-actions,
    .location-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .location-grid {
        display: flex;
    }

    .hero-actions .btn,
    .match-actions .btn,
    .whatsapp-btn {
        width: 100%;
    }

    .feature-row {
        padding: 1rem;
    }

    .showcase-section {
        width: calc(100% - 2rem);
        margin-top: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .album-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }

    .team-card-grid {
        grid-template-columns: 1fr;
    }

    .album-card-large .sticker-thumb,
    .album-card-large .empty-sticker {
        min-height: 12rem;
    }

    .duplicate-grid {
        grid-template-columns: 1fr;
    }

    .modern-stats {
        grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr));
    }

    .mini-user-card {
        grid-template-columns: auto 1fr;
    }

    .connect-btn {
        grid-column: 1 / -1;
    }

    .segmented {
        width: 100%;
        overflow-x: auto;
    }

    .segmented button {
        flex: 1 0 auto;
    }

    .match-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .profile-card-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-card-main .avatar,
    .profile-card-main .compat-ring {
        margin-inline: auto;
    }

    .compat,
    .match-actions {
        grid-column: 1 / -1;
        text-align: left;
    }

    .sticker-large {
        width: 8rem;
        min-height: 11rem;
    }

    .sticker-tilt-left {
        left: 0;
    }

    .sticker-tilt-right {
        right: 0;
    }

    .trophy {
        right: 28%;
        width: 7rem;
        height: 12rem;
    }
}

@media (max-width: 460px) {
    .album-grid-large {
        grid-template-columns: 1fr;
    }
}

/* Modern SaaS refresh - indigo, clean surfaces, mobile-first trade flow */
:root {
    --primary: #4F46E5;
    --primary-2: #6366F1;
    --surface: #F8FAFC;
    --text: #374151;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft-indigo: #EEF2FF;
    --soft-blue: #EFF6FF;
    --sidebar: #172033;
    --sidebar-2: #111827;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.figu-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(99, 102, 241, .10), transparent 28rem),
        linear-gradient(180deg, #FFFFFF 0%, var(--surface) 28rem);
    color: var(--text);
    letter-spacing: 0;
}

.app-shell {
    grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
}

.workspace,
.content-panel,
.panel,
.interaction-panel,
.match-card,
.album-card-large,
.sticker-hub,
.profile-card-main,
.info-panel,
.hub-stats,
.progress-panel,
.trade-column,
.trade-submit-panel,
.account-panel,
.account-form {
    min-width: 0;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(79, 70, 229, .12), transparent 14rem),
        linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
    box-shadow: 10px 0 34px rgba(15, 23, 42, .08);
}

.brand-inverse,
.side-link,
.side-exit {
    color: #D1D5DB;
}

.side-link {
    border: 1px solid transparent;
    font-weight: 600;
}

.side-link:hover,
.side-link.is-active {
    background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(99, 102, 241, .78));
    border-color: rgba(255, 255, 255, .14);
    color: #FFFFFF;
    box-shadow: 0 14px 30px rgba(79, 70, 229, .22);
}

.content-panel {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(226, 232, 240, .9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
}

.topbar {
    color: var(--text);
}

.topbar h1,
.panel-title h2,
.panel h2,
.match-card h2,
.profile-card-main h2,
.smart-dashboard-hero h2,
.trade-flow-hero h2,
.account-panel h2 {
    color: #111827;
    font-weight: 700;
    line-height: 1.15;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
}

.empty-copy,
.match-card p,
.trade-submit-panel p,
.account-panel p,
.trade-column > p,
.premium-lock p,
.component-strip .alert,
.ranking-list span {
    color: var(--muted);
    line-height: 1.65;
    font-weight: 500;
}

.btn-primary,
.connect-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #FFFFFF;
    border: 0;
    box-shadow: 0 18px 38px rgba(79, 70, 229, .24);
}

.btn-primary:hover,
.connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(79, 70, 229, .30);
}

.btn-outline {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .82);
}

.btn-outline:hover {
    border-color: rgba(79, 70, 229, .34);
    color: var(--primary);
    background: var(--soft-indigo);
}

.badge-purple,
.badge-soft {
    border: 1px solid rgba(79, 70, 229, .14);
    background: var(--soft-indigo);
    color: var(--primary);
    font-weight: 700;
}

.smart-dashboard-hero,
.match-hero-panel,
.trade-flow-hero,
.account-panel {
    border: 1px solid rgba(226, 232, 240, .95);
    background:
        radial-gradient(circle at 86% 12%, rgba(99, 102, 241, .14), transparent 15rem),
        linear-gradient(135deg, #FFFFFF, #F8FAFC);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .07);
}

.progress-orb,
.compat-ring,
.avatar-xl {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #FFFFFF;
    box-shadow: 0 18px 42px rgba(79, 70, 229, .22);
}

.progress-track span,
.compat-bar span {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.match-card-modern {
    border: 1px solid rgba(226, 232, 240, .96);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .86));
    box-shadow: 0 16px 46px rgba(15, 23, 42, .06);
}

.match-card-modern::before {
    background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

.match-card-modern:hover {
    border-color: rgba(99, 102, 241, .30);
    box-shadow: 0 24px 60px rgba(79, 70, 229, .12);
}

.trade-count,
.modern-stats article,
.info-card {
    background: #FFFFFF;
    border-color: rgba(226, 232, 240, .95);
}

.notif-count {
    position: absolute;
    top: -.35rem;
    right: -.35rem;
    display: grid;
    min-width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    padding: 0 .28rem;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}

.icon-btn {
    position: relative;
    text-decoration: none;
}

.trade-flow-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
}

.trade-builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.trade-column,
.trade-submit-panel,
.account-form {
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.trade-column {
    padding: 1rem;
}

.trade-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: .8rem;
    margin-top: .9rem;
}

.trade-pick-grid.readonly {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.trade-pick-card {
    position: relative;
    display: grid;
    gap: .35rem;
    min-height: 8rem;
    padding: .9rem;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 1rem;
    background: #FFFFFF;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.trade-pick-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.trade-pick-card span {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: .75rem;
    background: var(--soft-indigo);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
}

.trade-pick-card strong {
    color: #111827;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.25;
}

.trade-pick-card small {
    color: var(--muted);
    font-weight: 600;
}

.trade-pick-card:hover,
.trade-pick-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, .44);
    background: linear-gradient(180deg, #FFFFFF, var(--soft-indigo));
    box-shadow: 0 18px 38px rgba(79, 70, 229, .14);
}

.trade-pick-card.is-selected::after {
    content: "Selecionada";
    position: absolute;
    right: .65rem;
    top: .65rem;
    padding: .22rem .5rem;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: .68rem;
    font-weight: 800;
}

.trade-pick-card.send span {
    background: var(--soft-blue);
    color: #2563EB;
}

.trade-submit-panel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.trade-submit-panel form {
    display: inline-flex;
}

.match-success-panel {
    margin-top: 1rem;
    border-color: rgba(79, 70, 229, .20);
    background:
        radial-gradient(circle at 85% 15%, rgba(99, 102, 241, .12), transparent 16rem),
        #FFFFFF;
}

.account-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
}

.account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.account-form label {
    display: grid;
    gap: .45rem;
    color: #111827;
    font-weight: 700;
}

.account-form input,
.account-form select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: .9rem;
    background: #FFFFFF;
    padding: .85rem .95rem;
    color: var(--text);
    font: inherit;
    outline: none;
}

.account-form input:focus,
.account-form select:focus {
    border-color: rgba(79, 70, 229, .55);
    box-shadow: 0 0 0 .22rem rgba(79, 70, 229, .10);
}

.account-form .btn-full {
    grid-column: 1 / -1;
}

.profile-flash {
    border: 1px solid rgba(79, 70, 229, .18);
    background: var(--soft-indigo);
    color: var(--primary);
}

.bottom-nav {
    border-top-color: rgba(226, 232, 240, .94);
    background: rgba(255, 255, 255, .94);
}

.bottom-nav a.is-active {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .match-card-modern {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .match-card-modern .compat-ring,
    .match-card-modern .trade-count,
    .match-card-modern .match-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .topbar {
        background: rgba(248, 250, 252, .94);
    }

    .trade-builder,
    .account-form {
        grid-template-columns: 1fr;
    }

    .trade-submit-panel,
    .account-panel,
    .trade-flow-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .trade-submit-panel .btn,
    .trade-submit-panel form,
    .trade-submit-panel form .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .content-panel {
        border-radius: 1rem;
        padding: .85rem;
    }

    .trade-pick-grid,
    .trade-pick-grid.readonly {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-pick-card {
        min-height: 7.4rem;
        padding: .78rem;
    }
}

@media (max-width: 420px) {
    .trade-pick-grid,
    .trade-pick-grid.readonly {
        grid-template-columns: 1fr;
    }
}

/* Clean social SaaS polish */
:root {
    --primary: #2563EB;
    --primary-2: #3B82F6;
    --surface: #F8FAFC;
    --text: #374151;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft-indigo: #EFF6FF;
    --soft-blue: #DBEAFE;
    --sidebar: #111827;
    --sidebar-2: #111827;
}

.figu-body {
    background: var(--surface);
    color: var(--text);
}

.app-shell {
    grid-template-columns: 15rem minmax(0, 1fr);
}

.workspace {
    padding: 1.25rem;
}

.sidebar {
    width: 15rem;
    background: #111827;
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: none;
}

.brand-inverse {
    color: #FFFFFF;
    font-weight: 700;
}

.brand-mark {
    background: #FFFFFF;
    color: #2563EB;
    box-shadow: none;
}

.side-nav {
    gap: .35rem;
}

.side-link {
    min-height: 2.7rem;
    border-radius: .85rem;
    color: #CBD5E1;
    font-size: .92rem;
    font-weight: 600;
}

.side-link:hover,
.side-link.is-active {
    background: rgba(37, 99, 235, .16);
    border-color: rgba(59, 130, 246, .24);
    color: #FFFFFF;
    box-shadow: none;
}

.nav-icon {
    color: inherit;
    opacity: .88;
}

.icon-bell::before { content: "!"; }

.content-panel,
.panel,
.interaction-panel,
.match-card-modern,
.trade-column,
.trade-submit-panel,
.account-panel,
.account-form,
.notification-card,
.notification-hero {
    border: 1px solid var(--line);
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.content-panel {
    border-radius: 1.25rem;
}

.smart-dashboard-hero,
.match-hero-panel,
.trade-flow-hero,
.account-panel,
.notification-hero {
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.topbar h1,
.panel-title h2,
.panel h2,
.match-card h2,
.profile-card-main h2,
.smart-dashboard-hero h2,
.trade-flow-hero h2,
.account-panel h2,
.notification-hero h2,
.match-modal-card h2 {
    color: #111827;
    font-weight: 600;
    letter-spacing: 0;
}

.eyebrow,
.details-link,
.auth-note a,
.sticker-chip-list a {
    color: var(--primary);
}

.btn-primary,
.connect-btn {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.btn-primary:hover,
.connect-btn:hover {
    background: var(--primary-2);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

.badge-purple,
.badge-soft {
    border-color: #BFDBFE;
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

.progress-orb,
.compat-ring,
.avatar-xl {
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .18);
}

.progress-track span,
.compat-bar span,
.match-card-modern::before {
    background: var(--primary);
}

.trade-pick-card:hover,
.trade-pick-card.is-selected {
    border-color: #93C5FD;
    background: #EFF6FF;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.trade-pick-card.is-selected::after,
.notif-count {
    background: var(--primary);
    font-weight: 700;
}

.trade-hero-actions {
    margin-top: .75rem;
}

.notification-hero {
    margin-bottom: 1rem;
    padding: 1.15rem;
    border-radius: 1.25rem;
}

.notification-list {
    display: grid;
    gap: .75rem;
}

.notification-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .95rem;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.notification-card:hover,
.notification-card.is-unread {
    border-color: #BFDBFE;
    background: #F8FBFF;
}

.notification-card:hover {
    transform: translateY(-1px);
}

.notification-icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border-radius: .85rem;
    background: #EFF6FF;
    color: var(--primary);
    font-weight: 800;
}

.notification-card strong {
    display: block;
    color: #111827;
    font-weight: 600;
}

.notification-card small {
    display: block;
    margin-top: .18rem;
    color: var(--muted);
    line-height: 1.45;
}

.notification-card em {
    color: #94A3B8;
    font-size: .78rem;
    font-style: normal;
    white-space: nowrap;
}

.match-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(12px);
    animation: fade-in .18s ease-out;
}

.match-modal-backdrop.is-closing {
    animation: fade-out .18s ease-in forwards;
}

.match-modal-card {
    position: relative;
    width: min(100%, 26rem);
    overflow: hidden;
    border: 1px solid #DBEAFE;
    border-radius: 1.4rem;
    background: #FFFFFF;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
    animation: match-pop .28s cubic-bezier(.2, 1.2, .22, 1);
}

.match-modal-card h2 {
    margin: .25rem 0;
    color: var(--primary);
    font-size: clamp(2rem, 8vw, 3.25rem);
}

.match-modal-card p {
    color: var(--muted);
    line-height: 1.65;
}

.match-burst {
    width: 4rem;
    height: 4rem;
    margin: 0 auto .8rem;
    border-radius: 999px;
    background: radial-gradient(circle, #FFFFFF 28%, #DBEAFE 29%, #2563EB 62%, #93C5FD 63%);
    box-shadow: 0 0 0 .8rem rgba(37, 99, 235, .08);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes match-pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 860px) {
    .app-shell {
        display: block;
    }

    .workspace {
        padding: 1rem;
    }

    .sidebar {
        width: auto;
    }

    .notification-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-card em {
        grid-column: 2;
    }
}

/* Social refinement: calmer palette, sections and reward moments */
:root {
    --surface: #F7F8FC;
    --card: #FFFFFF;
    --soft-lilac: #F3EEF8;
    --sidebar: #1E293B;
    --sidebar-hover: #334155;
    --primary: #2563EB;
    --primary-2: #3B82F6;
    --text: #374151;
    --muted: #6B7280;
    --line: #E5E7EB;
}

.figu-body {
    background: var(--surface);
}

.sidebar {
    background: var(--sidebar);
}

.side-link:hover,
.side-link.is-active {
    background: var(--sidebar-hover);
    border-color: rgba(255, 255, 255, .08);
}

.content-panel,
.social-hero,
.social-match-card,
.social-trade-card,
.history-card,
.collection-card,
.social-stats-grid article,
.contact-unlocked-card {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.social-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
}

.social-hero h2,
.social-section-title h2,
.social-match-card h3,
.social-trade-card h3,
.history-card h3,
.collection-card h3 {
    color: #111827;
    font-weight: 600;
    line-height: 1.2;
}

.vip-preview {
    max-width: 17rem;
    border-radius: 1rem;
    background: var(--soft-lilac);
    padding: .85rem;
    color: var(--muted);
    line-height: 1.5;
}

.match-section {
    display: grid;
    gap: .85rem;
    margin-top: 1.25rem;
}

.social-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.social-section-title p {
    margin: .15rem 0 0;
    color: var(--muted);
}

.status-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 999px;
}

.status-new { background: #2563EB; }
.status-waiting { background: #D97706; }
.status-done { background: #059669; }

.status-pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 999px;
    padding: .22rem .55rem;
    font-size: .72rem;
    font-weight: 600;
}

.status-pill-new {
    background: #EFF6FF;
    color: #1D4ED8;
}

.status-pill-waiting {
    background: #FFFBEB;
    color: #B45309;
}

.social-match-grid,
.history-grid,
.collections-grid,
.social-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .85rem;
}

.social-match-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    padding: 1rem;
    border-radius: 1.15rem;
}

.social-match-main {
    min-width: 0;
}

.social-match-main h3,
.social-trade-card h3 {
    margin: .35rem 0 .15rem;
}

.social-match-main p,
.social-trade-card p,
.history-card p,
.collection-card p {
    color: var(--muted);
    line-height: 1.5;
}

.social-compat {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-radius: .9rem;
    background: #F8FAFC;
    padding: .7rem .85rem;
}

.social-compat strong {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.social-compat span {
    color: var(--muted);
    font-weight: 500;
}

.social-match-card .match-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
}

.social-trade-list {
    display: grid;
    gap: .75rem;
}

.social-trade-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    padding: .95rem;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
}

.social-trade-card small {
    display: block;
    margin-top: .3rem;
    color: var(--primary);
    font-weight: 600;
}

.history-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border-radius: 1rem;
}

.history-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.history-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.history-columns div {
    display: grid;
    gap: .35rem;
    border-radius: .85rem;
    background: #F8FAFC;
    padding: .75rem;
}

.history-columns strong {
    color: #111827;
    font-weight: 600;
}

.history-columns span {
    color: var(--muted);
    font-size: .86rem;
}

.social-stats-grid {
    margin: 1rem 0;
}

.social-stats-grid article {
    display: grid;
    gap: .25rem;
    border-radius: 1rem;
    padding: 1rem;
}

.social-stats-grid span,
.social-stats-grid small {
    color: var(--muted);
    line-height: 1.45;
}

.social-stats-grid strong {
    color: #111827;
    font-size: 1.55rem;
    font-weight: 600;
}

.collections-grid {
    align-items: stretch;
}

.collection-card {
    display: grid;
    gap: .6rem;
    border-radius: 1.15rem;
    padding: 1.1rem;
    color: #111827;
}

.collection-card.is-active {
    border-color: #D8B4FE;
    background: #FCFAFF;
}

.collection-card h3 {
    color: #111827;
    font-size: 1.08rem;
}

.collection-card p {
    color: #374151;
}

.collection-flag {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 1rem;
    background: var(--soft-lilac);
    color: #4B5563;
    font-weight: 700;
}

.country-picker {
    display: grid;
    gap: 1rem;
}

.country-option {
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.country-option:hover {
    transform: translateY(-2px);
    border-color: #D8B4FE;
    box-shadow: 0 18px 38px rgba(94, 63, 128, .1);
}

.country-option input {
    width: 1rem;
    height: 1rem;
    accent-color: #8B5CF6;
}

.country-option:has(input:checked) {
    border-color: #8B5CF6;
    background: #FCFAFF;
}

.sticker-social-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin: 1rem 0;
}

.sticker-social-strip article {
    display: grid;
    gap: .2rem;
    border-radius: .9rem;
    background: #F8FAFC;
    padding: .75rem;
    text-align: center;
}

.sticker-social-strip strong {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.sticker-social-strip span {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.3;
}

.sticker-social-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .85rem;
}

.contact-unlocked-card {
    display: grid;
    justify-items: center;
    gap: .65rem;
    text-align: center;
    border-color: #BBF7D0;
    background: linear-gradient(180deg, #FFFFFF, #F7FDF9);
}

.whatsapp-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: 999px;
    background: #22C55E;
    color: #FFFFFF;
    font-size: .72rem;
    font-weight: 700;
}

.contact-phone {
    color: #111827;
    font-size: clamp(1.35rem, 6vw, 2rem);
    font-weight: 600;
}

.safety-copy {
    max-width: 34rem;
    color: var(--muted);
    line-height: 1.65;
}

.match-modal-card {
    border-color: #E5E7EB;
}

.match-burst {
    background: radial-gradient(circle, #FFFFFF 30%, #DBEAFE 31%, #2563EB 62%, #F3EEF8 63%);
}

@media (max-width: 760px) {
    .social-hero,
    .trade-submit-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .vip-preview {
        max-width: none;
    }

    .sticker-social-strip,
    .sticker-social-actions,
    .history-columns,
    .social-match-card .match-actions {
        grid-template-columns: 1fr;
    }
}

/* Definitive sidebar scroll fix for admin menus at 100% zoom. */
@media (min-width: 861px) {
    .app-shell {
        min-height: 100vh !important;
    }

    .app-shell > .sidebar,
    body.app-shell > .sidebar,
    .sidebar {
        position: sticky !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: .62rem .68rem !important;
    }

    .sidebar .brand {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        margin: 0 0 .38rem !important;
        gap: .5rem !important;
    }

    .sidebar .brand-mark-compact,
    .brand-inverse .brand-mark-compact,
    .brand-mark-compact {
        width: 2.35rem !important;
        height: 2.35rem !important;
        flex: 0 0 2.35rem !important;
        border-radius: .72rem !important;
    }

    .sidebar .brand-copy {
        min-width: 0 !important;
    }

    .sidebar .brand-copy strong {
        font-size: .94rem !important;
        line-height: 1 !important;
    }

    .sidebar .brand-copy small {
        max-width: 8.2rem !important;
        font-size: .6rem !important;
        line-height: 1.05 !important;
    }

    .sidebar .side-nav,
    .side-nav {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: .22rem !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: .25rem 0 0 !important;
        padding: 0 .18rem .25rem 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin;
    }

    .side-nav::-webkit-scrollbar {
        width: .35rem;
    }

    .side-nav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(124, 58, 237, .32);
    }

    .sidebar .side-link,
    .side-link {
        min-height: 2.28rem !important;
        gap: .48rem !important;
        border-radius: .72rem !important;
        padding: .3rem .48rem !important;
        font-size: .78rem !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
    }

    .sidebar .side-link .nav-icon,
    .side-link .nav-icon {
        width: 1.62rem !important;
        height: 1.62rem !important;
        flex: 0 0 1.62rem !important;
        border-radius: .54rem !important;
    }

    .sidebar .logout-form,
    .logout-form {
        flex: 0 0 auto !important;
        margin: .42rem 0 0 !important;
        padding-top: .36rem !important;
        border-top: 1px solid rgba(124, 58, 237, .12);
    }

    .logout-form .side-link {
        width: 100% !important;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .sidebar .side-link,
    .side-link {
        min-height: 2.05rem !important;
        padding-block: .24rem !important;
        font-size: .74rem !important;
    }

    .sidebar .side-link .nav-icon,
    .side-link .nav-icon {
        width: 1.46rem !important;
        height: 1.46rem !important;
        flex-basis: 1.46rem !important;
    }
}

/* Final visual polish override: keep this last to beat older duplicated rules. */
.premium-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.premium-compare-grid article {
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: clamp(1rem, 1.55vw, 1.35rem) !important;
}

.premium-plan-head {
    min-width: 0 !important;
    align-items: flex-start !important;
}

.premium-plan-head span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.premium-plan-head small {
    flex: 0 0 auto !important;
}

.premium-plan-price {
    display: block !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: clamp(1.55rem, 2.35vw, 2.35rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.premium-compare-grid article .btn,
.premium-package-card .btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
}

.premium-hero,
.premium-package-grid,
.social-hero,
.account-panel,
.account-form {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.social-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 16rem) !important;
    align-items: center !important;
}

.social-hero > div:first-child {
    min-width: 0 !important;
}

.vip-preview {
    width: 100% !important;
    max-width: 16rem !important;
    justify-self: end !important;
    padding: .78rem .85rem !important;
}

.vip-preview p {
    margin: .45rem 0 0 !important;
    font-size: .88rem !important;
    line-height: 1.42 !important;
}

.account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
}

.account-form label {
    min-width: 0 !important;
    align-self: stretch !important;
}

.account-photo-field,
.account-form .btn-full {
    grid-column: 1 / -1 !important;
}

.account-form input,
.account-form select {
    min-height: 3.05rem !important;
}

@media (max-width: 1180px) and (min-width: 861px) {
    .premium-compare-grid {
        gap: .78rem !important;
    }

    .premium-plan-price {
        font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    }

    .premium-compare-grid article {
        padding: 1rem !important;
    }
}

@media (max-width: 860px) {
    .premium-hero,
    .premium-compare-grid,
    .premium-package-grid,
    .social-hero,
    .account-form {
        grid-template-columns: 1fr !important;
    }

    .premium-plan-price {
        font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
        white-space: normal !important;
    }

    .vip-preview {
        max-width: none !important;
        justify-self: stretch !important;
        margin-top: .1rem !important;
    }
}

@media (max-width: 760px) {
    .public-home .home-brand,
    .home-brand {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .12rem !important;
        min-width: 0 !important;
        max-width: 11rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 9.6rem !important;
        height: 2.35rem !important;
        max-height: 38px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 38px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        display: block !important;
        max-width: 10.5rem !important;
        color: #4B5563 !important;
        font-size: .58rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .public-home .home-nav,
    .home-nav {
        align-items: center !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-brand,
    .home-brand {
        max-width: 8.5rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 8rem !important;
        height: 2.1rem !important;
        max-height: 34px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 34px !important;
        max-height: 34px !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        max-width: 8.3rem !important;
        font-size: .52rem !important;
    }
}

/* Final Home mobile header alignment: brand first, actions grouped below. */
@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: .72rem !important;
        min-height: 0 !important;
        padding: .86rem !important;
        overflow-x: hidden !important;
    }

    .public-home .home-brand,
    .home-brand {
        align-self: flex-start !important;
        max-width: 100% !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .public-home .home-nav-actions,
    .home-nav-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .55rem !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-content: stretch !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn),
    .public-home .home-nav-actions .home-btn,
    .home-nav-actions .home-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 2.45rem !important;
        border-radius: 999px !important;
        padding: .68rem .78rem !important;
        font-size: .82rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        border: 1px solid #E9D5FF !important;
        background: #FFFFFF !important;
        color: #5B21B6 !important;
    }
}

@media (max-width: 360px) {
    .public-home .home-nav-actions,
    .home-nav-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Public mobile header: keep login and signup visible after all overrides. */
@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .55rem !important;
        overflow-x: hidden !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        display: flex !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .public-home .home-nav-actions,
    .home-nav-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: .38rem !important;
        min-width: 0 !important;
        max-width: 10.5rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2rem !important;
        border-radius: 999px !important;
        padding: .42rem .66rem !important;
        font-size: .73rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        border: 1px solid #E9D5FF !important;
        background: #FFFFFF !important;
        color: #5B21B6 !important;
    }

    .public-home .home-nav-actions .home-btn,
    .home-nav-actions .home-btn {
        min-width: 0 !important;
        box-shadow: 0 10px 24px rgba(124, 58, 237, .18) !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-nav-actions,
    .home-nav-actions {
        max-width: 8.2rem !important;
        gap: .28rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        min-height: 1.86rem !important;
        padding: .34rem .48rem !important;
        font-size: .66rem !important;
    }
}

/* Public mobile header: keep login and signup visible. */
@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .55rem !important;
        overflow-x: hidden !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        display: flex !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .public-home .home-nav-actions,
    .home-nav-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: .38rem !important;
        min-width: 0 !important;
        max-width: 10.5rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2rem !important;
        border-radius: 999px !important;
        padding: .42rem .66rem !important;
        font-size: .73rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        border: 1px solid #E9D5FF !important;
        background: #FFFFFF !important;
        color: #5B21B6 !important;
    }

    .public-home .home-nav-actions .home-btn,
    .home-nav-actions .home-btn {
        min-width: 0 !important;
        box-shadow: 0 10px 24px rgba(124, 58, 237, .18) !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-nav-actions,
    .home-nav-actions {
        max-width: 8.2rem !important;
        gap: .28rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        min-height: 1.86rem !important;
        padding: .34rem .48rem !important;
        font-size: .66rem !important;
    }
}

/* Small final layout polish for premium, matches, account and mobile brand. */
.premium-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.premium-compare-grid article {
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: clamp(1rem, 1.55vw, 1.35rem) !important;
}

.premium-plan-head {
    min-width: 0 !important;
    align-items: flex-start !important;
}

.premium-plan-head span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.premium-plan-head small {
    flex: 0 0 auto !important;
}

.premium-plan-price {
    display: block !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: clamp(1.55rem, 2.35vw, 2.35rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.premium-compare-grid article .btn,
.premium-package-card .btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
}

.premium-hero,
.premium-package-grid,
.social-hero,
.account-panel,
.account-form {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.social-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 16rem) !important;
    align-items: center !important;
}

.social-hero > div:first-child {
    min-width: 0 !important;
}

.vip-preview {
    width: 100% !important;
    max-width: 16rem !important;
    justify-self: end !important;
    padding: .78rem .85rem !important;
}

.vip-preview p {
    margin: .45rem 0 0 !important;
    font-size: .88rem !important;
    line-height: 1.42 !important;
}

.account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
}

.account-form label {
    min-width: 0 !important;
    align-self: stretch !important;
}

.account-photo-field,
.account-form .btn-full {
    grid-column: 1 / -1 !important;
}

.account-form input,
.account-form select {
    min-height: 3.05rem !important;
}

@media (max-width: 1180px) and (min-width: 861px) {
    .premium-compare-grid {
        gap: .78rem !important;
    }

    .premium-plan-price {
        font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    }

    .premium-compare-grid article {
        padding: 1rem !important;
    }
}

@media (max-width: 860px) {
    .premium-hero,
    .premium-compare-grid,
    .premium-package-grid,
    .social-hero,
    .account-form {
        grid-template-columns: 1fr !important;
    }

    .premium-plan-price {
        font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
        white-space: normal !important;
    }

    .vip-preview {
        max-width: none !important;
        justify-self: stretch !important;
        margin-top: .1rem !important;
    }
}

@media (max-width: 760px) {
    .public-home .home-brand,
    .home-brand {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .12rem !important;
        min-width: 0 !important;
        max-width: 11rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 9.6rem !important;
        height: 2.35rem !important;
        max-height: 38px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 38px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        display: block !important;
        max-width: 10.5rem !important;
        color: #4B5563 !important;
        font-size: .58rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .public-home .home-nav,
    .home-nav {
        align-items: center !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-brand,
    .home-brand {
        max-width: 8.5rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 8rem !important;
        height: 2.1rem !important;
        max-height: 34px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 34px !important;
        max-height: 34px !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        max-width: 8.3rem !important;
        font-size: .52rem !important;
    }
}

/* Native ColeMatch blog */
.blog-public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .12), transparent 28rem),
        linear-gradient(180deg, #FFFFFF 0%, #F8F5FF 100%);
}

.blog-hero,
.blog-shell,
.blog-article {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.blog-hero {
    padding-top: 18px;
}

.blog-hero-copy {
    max-width: 920px;
    padding: 86px 0 56px;
}

.blog-hero-copy h1,
.blog-article h1 {
    margin: 18px 0;
    color: #111827;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 950;
    letter-spacing: -.06em;
    line-height: .95;
}

.blog-hero-copy p,
.blog-article header p {
    color: #374151;
    font-size: 1.12rem;
    line-height: 1.75;
}

.blog-toolbar,
.blog-card,
.blog-sidebar section,
.blog-empty,
.blog-article,
.admin-blog-row,
.blog-editor-form {
    border: 1px solid #E9D5FF;
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 60px rgba(76, 29, 149, .08);
}

.blog-toolbar {
    margin-bottom: 24px;
    padding: 18px;
}

.blog-toolbar form,
.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr) auto;
    gap: 12px;
}

.blog-toolbar input,
.blog-toolbar select,
.admin-filter-bar input,
.admin-filter-bar select,
.blog-editor-form input,
.blog-editor-form select,
.blog-editor-form textarea {
    width: 100%;
    border: 1px solid #DDD6FE;
    border-radius: 15px;
    padding: 12px 14px;
    color: #111827;
    background: #FBFAFF;
    font: inherit;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    padding-bottom: 70px;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 190px 1fr;
}

.blog-card img,
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #7C3AED, #10B981);
}

.blog-card-placeholder {
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-weight: 950;
}

.blog-card div {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.blog-card span,
.blog-sidebar h2,
.blog-article-meta a {
    color: #6D28D9;
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-card h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.15;
}

.blog-card p,
.blog-card small,
.blog-sidebar a small {
    color: #4B5563;
    line-height: 1.55;
}

.blog-sidebar {
    display: grid;
    gap: 16px;
}

.blog-sidebar section {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.blog-sidebar a,
.blog-chip-list a {
    color: #111827;
    font-weight: 850;
    text-decoration: none;
}

.blog-sidebar a {
    display: grid;
    gap: 3px;
}

.blog-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-chip-list a,
.blog-article-meta a,
.blog-pagination a {
    border-radius: 999px;
    padding: 8px 11px;
    color: #4C1D95;
    background: #F3E8FF;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.blog-pagination a.is-active {
    color: #FFFFFF;
    background: #6D28D9;
}

.blog-empty {
    padding: 28px;
}

.blog-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: #6D28D9;
    font-weight: 900;
    text-decoration: none;
}

.blog-article {
    margin-top: 34px;
    margin-bottom: 70px;
    padding: clamp(22px, 5vw, 54px);
}

.blog-article-cover {
    width: 100%;
    max-height: 460px;
    border-radius: 24px;
    object-fit: cover;
}

.blog-article header {
    max-width: 900px;
    margin: 26px auto;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.blog-content {
    max-width: 860px;
    margin: 0 auto;
    color: #1F2937;
    font-size: 1.08rem;
    line-height: 1.85;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 1.6em;
    color: #111827;
    font-weight: 950;
}

.blog-content a {
    color: #6D28D9;
    font-weight: 900;
}

.blog-content img {
    max-width: 100%;
    border-radius: 20px;
}

.blog-conversion-cta {
    max-width: 860px;
    margin: 42px auto 0;
    border: 1px solid #DDD6FE;
    border-radius: 26px;
    padding: 28px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #6D28D9, #10B981);
    box-shadow: 0 24px 64px rgba(76, 29, 149, .22);
}

.blog-conversion-cta h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 950;
}

.blog-conversion-cta p {
    max-width: 680px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .9);
}

.admin-page-header,
.admin-filter-bar,
.admin-blog-list {
    margin-bottom: 18px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.admin-page-header h2 {
    color: #111827;
    font-size: 2rem;
    font-weight: 950;
}

.admin-page-header p {
    color: #4B5563;
}

.admin-flash {
    margin-bottom: 16px;
    border: 1px solid #BBF7D0;
    border-radius: 16px;
    padding: 12px 14px;
    color: #166534;
    background: #F0FDF4;
    font-weight: 900;
}

.admin-blog-list {
    display: grid;
    gap: 12px;
}

.admin-blog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.admin-blog-row h3 {
    margin: 8px 0 4px;
    color: #111827;
    font-weight: 950;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.btn-danger {
    border-color: #FCA5A5;
    color: #991B1B;
    background: #FEF2F2;
}

.blog-editor-form {
    padding: 22px;
}

.blog-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-editor-grid label {
    display: grid;
    gap: 7px;
    color: #111827;
    font-weight: 900;
}

.blog-editor-grid .full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 1040px) {
    .blog-layout,
    .blog-card-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .blog-hero,
    .blog-shell,
    .blog-article {
        width: min(100% - 24px, 1280px);
    }

    .blog-toolbar form,
    .admin-filter-bar,
    .admin-blog-row,
    .blog-editor-grid,
    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .admin-page-header,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-row-actions {
        justify-content: flex-start;
    }
}

.admin-catalog-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto;
}

.admin-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-player-grid {
    align-items: start;
}

.admin-catalog-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E9D5FF;
    border-radius: 22px;
    padding: 20px;
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(109, 40, 217, .08);
}

.admin-catalog-card.is-new {
    border-style: dashed;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFAFF 100%);
}

.admin-catalog-card form {
    display: grid;
    gap: 16px;
}

.admin-catalog-card-head,
.admin-catalog-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-catalog-card-head h3 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 950;
}

.admin-catalog-card-head span,
.admin-import-example,
.admin-import-summary span {
    color: #4B5563;
    font-size: .86rem;
    font-weight: 800;
}

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

.admin-catalog-fields label,
.admin-import-form label {
    display: grid;
    gap: 7px;
    color: #111827;
    font-size: .84rem;
    font-weight: 900;
}

.admin-catalog-fields input,
.admin-catalog-fields select,
.admin-import-form input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #DDD6FE;
    border-radius: 13px;
    padding: 11px 12px;
    background: #FBFAFF;
    color: #111827;
    font: inherit;
    font-weight: 800;
}

.admin-catalog-actions .btn,
.admin-user-actions .btn {
    white-space: nowrap;
}

.btn.danger,
.admin-catalog-actions .danger {
    border-color: #FECACA;
    color: #991B1B;
    background: #FEF2F2;
}

.admin-import-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.admin-import-example {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.admin-import-example code {
    display: block;
    border: 1px solid #E9D5FF;
    border-radius: 12px;
    padding: 10px 12px;
    color: #2E1065;
    background: #F8F5FF;
    white-space: normal;
}

.admin-import-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.admin-import-summary article {
    border: 1px solid #E9D5FF;
    border-radius: 16px;
    padding: 14px;
    background: #FBFAFF;
}

.admin-import-summary strong {
    display: block;
    color: #111827;
    font-size: 1.7rem;
    font-weight: 950;
}

.admin-import-errors {
    display: grid;
    gap: 6px;
    border: 1px solid #FECACA;
    border-radius: 16px;
    margin: 14px 0;
    padding: 14px;
    color: #7F1D1D;
    background: #FEF2F2;
    font-weight: 800;
}

.admin-import-errors p {
    margin: 0;
}

@media (max-width: 980px) {
    .admin-catalog-filter,
    .admin-import-form {
        grid-template-columns: 1fr;
    }

    .admin-catalog-grid,
    .admin-import-summary {
        grid-template-columns: 1fr;
    }

    .admin-catalog-fields {
        grid-template-columns: 1fr;
    }

    .admin-catalog-card-head,
    .admin-catalog-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Reference mockup alignment: soft lilac SaaS social shell */
:root {
    --surface: #F7F3FC;
    --surface-2: #FBFAFF;
    --card: #FFFFFF;
    --soft-lilac: #F3EEF8;
    --soft-lilac-2: #EEE4FA;
    --primary: #8B5CF6;
    --primary-2: #A855F7;
    --primary-dark: #5B21B6;
    --text: #17142A;
    --muted: #6B6280;
    --line: #E9DFF4;
}

body.figu-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(168, 85, 247, .10), transparent 28rem),
        linear-gradient(180deg, #FFFCFF 0%, var(--surface) 100%);
    color: var(--text);
}

.app-shell {
    grid-template-columns: 15.5rem minmax(0, 1fr);
}

.sidebar {
    width: 15.5rem;
    background: linear-gradient(180deg, #FBF7FF, #F4ECFB);
    border-right: 1px solid #EFE4F7;
    box-shadow: 16px 0 45px rgba(103, 58, 183, .06);
    color: var(--text);
}

.brand-inverse {
    color: #111827;
}

.brand-mark {
    background: linear-gradient(135deg, #B84AB8, #8B5CF6);
    color: #D7C8FF;
    border-radius: .75rem;
    box-shadow: 0 12px 28px rgba(139, 92, 246, .22);
}

.side-nav {
    gap: .75rem;
}

.side-link {
    min-height: 3.95rem;
    border: 1px solid transparent;
    border-radius: 1.05rem;
    color: #211936;
    font-weight: 600;
}

.side-link .nav-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .75rem;
    background: rgba(139, 92, 246, .09);
    color: #5B21B6;
}

.side-link:hover,
.side-link.is-active {
    background: rgba(139, 92, 246, .10);
    border-color: rgba(139, 92, 246, .10);
    color: #4C1D95;
    box-shadow: none;
}

.side-link:hover .nav-icon,
.side-link.is-active .nav-icon {
    background: #E9D5FF;
    color: #6D28D9;
}

.workspace {
    padding: 1.65rem 1.9rem;
}

.content-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.topbar {
    margin-bottom: 1.75rem;
}

.topbar .eyebrow,
.topbar h1 {
    display: none;
}

.topbar-actions {
    margin-left: auto;
}

.avatar {
    overflow: hidden;
    background: #EDE4F7;
    color: #5B21B6;
    font-weight: 700;
}

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

.icon-btn {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.notif-count {
    background: var(--primary);
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
    gap: 1.35rem;
    margin-bottom: 1.35rem;
}

.smart-dashboard-hero,
.plan-card,
.social-stats-grid article,
.dashboard-card-panel,
.social-hero,
.social-match-card,
.social-trade-card,
.history-card,
.trade-flow-hero,
.trade-column,
.trade-submit-panel,
.interaction-panel,
.account-panel,
.account-form,
.notification-card,
.notification-hero,
.collection-card,
.album-card-large,
.sticker-hub,
.info-panel {
    border: 1px solid rgba(223, 209, 237, .88);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(94, 63, 128, .08);
}

.smart-dashboard-hero {
    min-height: 14.5rem;
    border-radius: 1.25rem;
    padding: 2rem 2.2rem;
}

.smart-dashboard-hero h2 {
    font-size: clamp(2.25rem, 5vw, 3.4rem);
    letter-spacing: 0;
}

.team-spark,
.team-stars {
    color: #22A45A;
}

.team-stars {
    margin: .55rem 0 1.2rem;
    letter-spacing: .35rem;
}

.progress-orb {
    width: 9.5rem;
    height: 9.5rem;
    background:
        radial-gradient(circle at center, #FFFFFF 58%, transparent 59%),
        conic-gradient(var(--primary) calc(var(--progress, 60) * 1%), #EFE7F8 0);
    color: var(--text);
    box-shadow: none;
}

.progress-orb strong {
    color: var(--text);
    font-size: 2.25rem;
}

.plan-card {
    position: relative;
    overflow: hidden;
    min-height: 14.5rem;
    border-radius: 1.25rem;
    padding: 2rem;
}

.plan-card::after {
    content: "☆";
    position: absolute;
    right: 2rem;
    top: 1.2rem;
    color: rgba(139, 92, 246, .12);
    font-size: 8rem;
    line-height: 1;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 1rem 0;
    color: var(--primary-dark);
}

.progress-track {
    height: .45rem;
    background: #EFE7F8;
}

.progress-track span {
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.badge-purple,
.badge-soft {
    border-color: #DDD0F3;
    background: linear-gradient(180deg, #A78BFA, #8B5CF6);
    color: #FFFFFF;
}

.badge-soft {
    background: #F3EEF8;
    color: #6D28D9;
}

.social-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 1.35rem;
}

.social-stats-grid article {
    min-height: 11rem;
    border-radius: 1.25rem;
    padding: 1.55rem;
}

.social-stats-grid article::before {
    content: "";
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #EFE1FB;
    display: block;
}

.social-stats-grid strong {
    color: #111827;
    font-size: 1.65rem;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(22rem, .9fr);
    gap: 1.35rem;
}

.dashboard-card-panel {
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.latest-sticker-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
    gap: .8rem;
}

.latest-sticker-card {
    display: grid;
    gap: .25rem;
    border: 1px solid #E8DDF2;
    border-radius: .95rem;
    background: #FFFFFF;
    padding: .5rem;
    color: inherit;
    text-decoration: none;
}

.latest-sticker-card .player-face {
    height: 5.8rem;
    border-radius: .75rem;
}

.latest-sticker-card strong {
    color: #211447;
    font-weight: 700;
}

.latest-sticker-card span {
    color: #211447;
    font-size: .86rem;
    font-weight: 600;
}

.latest-sticker-card small {
    color: var(--primary);
    font-weight: 600;
}

.dashboard-trade-card {
    display: grid;
    gap: .85rem;
    border: 1px solid #E8DDF2;
    border-radius: 1rem;
    padding: .85rem;
}

.btn-primary,
.connect-btn {
    background: linear-gradient(180deg, #9B6DF4, #7C3AED);
    box-shadow: 0 12px 24px rgba(124, 58, 237, .18);
}

.btn-primary:hover,
.connect-btn:hover {
    background: linear-gradient(180deg, #A78BFA, #8B5CF6);
}

.component-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.35rem;
    border: 1px solid rgba(223, 209, 237, .88);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .78);
    padding: 1.1rem 1.3rem;
    box-shadow: 0 18px 45px rgba(94, 63, 128, .06);
}

.promo-copy {
    display: grid;
    gap: .2rem;
    margin-right: auto;
}

.promo-copy strong {
    color: #28164E;
    font-size: 1.05rem;
}

.promo-copy span {
    color: var(--muted);
}

.match-modal-card h2,
.eyebrow,
.details-link,
.auth-note a,
.sticker-chip-list a {
    color: #7C3AED;
}

.sticker-social-strip article,
.history-columns div,
.social-compat {
    background: #FBF8FE;
}

@media (max-width: 1180px) {
    .dashboard-top-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .social-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .workspace {
        padding: 1rem;
    }

    .topbar .eyebrow,
    .topbar h1 {
        display: block;
    }

    .smart-dashboard-hero,
    .component-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .progress-orb {
        width: 8rem;
        height: 8rem;
    }
}

@media (max-width: 560px) {
    .social-stats-grid,
    .latest-sticker-cards {
        grid-template-columns: 1fr;
    }
}

.account-photo-field {
    grid-column: 1 / -1;
    border: 1px dashed #D8C7EE;
    border-radius: 1rem;
    background: #FBF8FE;
    padding: 1rem;
}

.account-photo-field small {
    color: var(--muted);
    font-weight: 500;
}

.status-new,
.status-waiting,
.status-done {
    background: #8B5CF6;
}

.status-pill-new,
.status-pill-waiting {
    background: #F3EEF8;
    color: #6D28D9;
}

.social-compat strong,
.sticker-social-strip strong,
.notification-icon {
    color: #7C3AED;
}

.whatsapp-icon {
    background: #25D366;
}

.album-toolbar,
.album-card-large,
.team-group,
.sticker-hub,
.profile-card-main,
.modern-stats article {
    border-color: rgba(223, 209, 237, .88);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(94, 63, 128, .07);
}

.collectible-grid.album-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.collectible-card.album-card-large {
    display: grid;
    gap: .65rem;
    border-radius: 1rem;
    padding: .7rem;
    background: #FFFFFF;
}

.collectible-card .sticker-link-large {
    min-height: 8rem;
    border: 1px solid #E8DDF2;
    border-radius: .9rem;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.72), transparent 2.5rem),
        linear-gradient(160deg, #D9C7F8 0%, #BCA2ED 55%, #F8D56C 56%, #F6C84F 100%);
    overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.collectible-card .sticker-link-large:hover {
    border-color: #D8B4FE;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .18);
    transform: translateY(-1px);
}

.collectible-card:nth-child(3n + 2) .sticker-link-large {
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.72), transparent 2.5rem),
        linear-gradient(160deg, #C9B9F4 0%, #A88BEA 55%, #3FC985 56%, #1FA464 100%);
}

.collectible-card:nth-child(3n) .sticker-link-large {
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.72), transparent 2.5rem),
        linear-gradient(160deg, #E5D8FB 0%, #C5B0F3 55%, #7BC7FF 56%, #4DA3F7 100%);
}

.collectible-card .sticker-number {
    top: .55rem;
    left: .55rem;
    background: rgba(255,255,255,.86);
    color: #2B174F;
}

.collectible-face {
    display: grid;
    place-items: end center;
    height: 7.15rem;
    min-height: 7.15rem;
    background: transparent;
}

.collectible-face .player-face {
    width: 4.35rem;
    height: 5.35rem;
    margin-top: auto;
    border-radius: 2.2rem 2.2rem .9rem .9rem;
    background:
        radial-gradient(circle at 50% 18%, #332033 0 10%, transparent 11%),
        radial-gradient(circle at 50% 34%, #C98962 0 20%, transparent 21%),
        linear-gradient(90deg, transparent 0 22%, #F6D557 23% 77%, transparent 78%),
        linear-gradient(#0FA36B 0 0) bottom / 76% 28% no-repeat;
    box-shadow: inset 0 -1rem 0 rgba(255,255,255,.12);
}

.collectible-card:nth-child(4n + 2) .player-face {
    background:
        radial-gradient(circle at 50% 16%, #18131D 0 12%, transparent 13%),
        radial-gradient(circle at 50% 34%, #7B4A31 0 21%, transparent 22%),
        linear-gradient(90deg, transparent 0 22%, #F6D557 23% 77%, transparent 78%),
        linear-gradient(#0FA36B 0 0) bottom / 76% 28% no-repeat;
}

.collectible-card:nth-child(4n + 3) .player-face {
    background:
        radial-gradient(circle at 50% 16%, #2A2430 0 12%, transparent 13%),
        radial-gradient(circle at 50% 34%, #D69A72 0 21%, transparent 22%),
        linear-gradient(90deg, transparent 0 22%, #22A66A 23% 77%, transparent 78%),
        linear-gradient(#12965E 0 0) bottom / 76% 28% no-repeat;
}

.collectible-face strong {
    display: none;
}

.collectible-card .album-card-meta {
    display: grid;
    gap: .35rem;
    align-items: start;
}

.collectible-card .album-card-meta strong {
    color: #111827;
    font-size: .95rem;
    line-height: 1.2;
    font-weight: 700;
}

.collectible-card .album-card-meta div > span {
    display: block;
    color: #374151;
    font-size: .78rem;
    line-height: 1.25;
}

.collectible-card .album-card-meta div > span + span {
    color: #6B7280;
}

.quick-status-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .3rem;
}

.quick-status-actions button {
    min-width: 0;
    border: 1px solid #E8DDF2;
    border-radius: .55rem;
    background: #FBF8FE;
    color: #374151;
    padding: .38rem .2rem;
    font: inherit;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}

.quick-status-actions button:hover {
    border-color: #C4B5FD;
    background: #F3EEF8;
}

.state-tenho .quick-status-actions [data-status-action="tenho"],
.state-preciso .quick-status-actions [data-status-action="preciso"],
.state-repetida .quick-status-actions [data-status-action="repetida"] {
    border-color: #C4B5FD;
    background: #F3EEF8;
    color: #4C1D95;
}

.latest-sticker-card em {
    color: #374151;
    font-size: .72rem;
    font-style: normal;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .collectible-grid.album-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .collectible-grid.album-grid-large {
        grid-template-columns: 1fr;
    }
}

/* Refinamento de legibilidade e cards sociais */
.content-panel h1,
.content-panel h2,
.content-panel h3,
.panel-title h2,
.smart-dashboard-hero h2,
.plan-card h2,
.profile-card-main h2,
.sticker-detail-clean h2,
.collection-card h3,
.social-match-main h3,
.social-trade-card h3,
.history-card h3,
.dashboard-trade-card h3 {
    color: #111827;
    font-weight: 700;
}

.empty-copy,
.social-hero p,
.social-section-title p,
.profile-card-main p,
.plan-card p,
.plan-card small,
.collection-card p,
.social-match-main p,
.social-trade-card p,
.history-card p,
.premium-lock p,
.promo-copy span {
    color: #374151;
}

.eyebrow,
.topbar .eyebrow,
.social-stats-grid small,
.sticker-social-strip span,
.notification-card small {
    color: #4B5563;
}

.badge-purple,
.badge-soft,
.status-pill,
.status-pill-new,
.status-pill-waiting {
    border-color: #E5E7EB;
    background: #F3EEF8;
    color: #111827;
    font-weight: 700;
}

.social-stats-grid article {
    color: #111827;
}

.social-stats-grid span {
    color: #111827;
    font-weight: 700;
}

.social-stats-grid small {
    font-weight: 600;
}

.social-stats-grid strong,
.progress-orb strong,
.trust-row strong,
.modern-stats strong,
.dashboard-trade-card .history-head > strong,
.compat-ring strong,
.social-compat strong,
.sticker-social-strip strong,
.notification-icon {
    color: #111827;
}

.latest-sticker-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-sticker-card {
    min-width: 0;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .05);
}

.latest-sticker-card strong,
.latest-sticker-card span {
    color: #111827;
}

.latest-sticker-card em {
    color: #374151;
    font-weight: 600;
}

.latest-sticker-card small {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #F3F4F6;
    color: #111827;
    padding: .18rem .45rem;
    font-weight: 700;
}

.player-face {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    background:
        radial-gradient(circle at 42% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(circle at 58% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(ellipse at 50% 46%, #B86E52 0 23%, transparent 24%),
        radial-gradient(ellipse at 50% 18%, #2B1C19 0 17%, transparent 18%),
        linear-gradient(90deg, transparent 0 20%, #F5D44E 21% 79%, transparent 80%),
        linear-gradient(#16A060 0 0) bottom / 80% 31% no-repeat;
    box-shadow: inset 0 -.8rem 0 rgba(255,255,255,.1), 0 10px 18px rgba(17,24,39,.12);
}

.player-face.portrait-rendered {
    display: block;
    overflow: hidden;
    border-radius: 1.35rem;
    background: linear-gradient(160deg, #C4B5FD, #6D28D9);
}

.collectible-face .player-face.portrait-rendered,
.trade-pick-card .player-face.portrait-rendered {
    border-radius: 1.15rem 1.15rem .75rem .75rem;
}

.player-face.portrait-rendered canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-face.portrait-rendered::before,
.player-face.portrait-rendered::after {
    display: none;
}

.player-face::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 48%;
    width: .55rem;
    height: .18rem;
    border-radius: 999px;
    background: rgba(88, 43, 35, .65);
    transform: translateX(-50%);
}

.player-face::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 19%;
    width: 52%;
    height: .25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    transform: translateX(-50%);
}

.collectible-card:nth-child(4n + 2) .player-face,
.latest-sticker-card:nth-child(4n + 2) .player-face {
    background:
        radial-gradient(circle at 42% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(circle at 58% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(ellipse at 50% 46%, #7B4A31 0 23%, transparent 24%),
        radial-gradient(ellipse at 50% 17%, #111827 0 18%, transparent 19%),
        linear-gradient(90deg, transparent 0 20%, #F5D44E 21% 79%, transparent 80%),
        linear-gradient(#158B55 0 0) bottom / 80% 31% no-repeat;
}

.collectible-card:nth-child(4n + 3) .player-face,
.latest-sticker-card:nth-child(4n + 3) .player-face {
    background:
        radial-gradient(circle at 42% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(circle at 58% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(ellipse at 50% 46%, #D69A72 0 23%, transparent 24%),
        radial-gradient(ellipse at 50% 17%, #2A2430 0 18%, transparent 19%),
        linear-gradient(90deg, transparent 0 20%, #22A66A 21% 79%, transparent 80%),
        linear-gradient(#12965E 0 0) bottom / 80% 31% no-repeat;
}

.collectible-card:nth-child(4n) .player-face,
.latest-sticker-card:nth-child(4n) .player-face {
    background:
        radial-gradient(circle at 42% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(circle at 58% 33%, #111827 0 .14rem, transparent .15rem),
        radial-gradient(ellipse at 50% 46%, #C98962 0 23%, transparent 24%),
        radial-gradient(ellipse at 50% 17%, #201A19 0 18%, transparent 19%),
        linear-gradient(90deg, transparent 0 20%, #E5E7EB 21% 79%, transparent 80%),
        linear-gradient(#4F46E5 0 0) bottom / 80% 31% no-repeat;
}

.collectible-card .album-card-meta strong,
.sticker-chip-list a,
.match-stickers a,
.history-columns span,
.mini-trade-summary span {
    color: #111827;
    font-weight: 700;
}

.collectible-card .album-card-meta div > span,
.history-columns span,
.mini-trade-summary span {
    color: #374151;
}

.social-compat {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.social-compat span {
    color: #374151;
    font-weight: 700;
}

.match-stickers {
    display: grid;
    gap: .35rem;
    margin-top: .65rem;
}

.match-stickers a,
.sticker-chip-list a {
    border: 1px solid #E5E7EB;
    border-radius: .7rem;
    background: #FFFFFF;
    padding: .45rem .6rem;
    text-decoration: none;
}

.mini-trade-summary {
    display: grid;
    gap: .28rem;
    margin-top: .65rem;
}

.mini-trade-summary strong {
    color: #111827;
    font-size: .82rem;
    font-weight: 800;
}

.history-columns div,
.mini-trade-summary {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
}

.future-badge {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    background: #FFFFFF;
    color: #111827;
    padding: .65rem .9rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .06);
}

.future-premium {
    background: linear-gradient(180deg, #FFF7ED, #FFFFFF);
}

.future-vip {
    background: linear-gradient(180deg, #F3EEF8, #FFFFFF);
}

.future-ranking {
    background: linear-gradient(180deg, #EFF6FF, #FFFFFF);
}

.notification-card {
    grid-template-columns: minmax(0, 1fr) auto;
}

.notification-open {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    color: inherit;
    text-decoration: none;
}

.notification-delete-form button {
    border: 1px solid #E5E7EB;
    border-radius: .7rem;
    background: #FFFFFF;
    color: #374151;
    padding: .5rem .7rem;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.notification-delete-form button:hover {
    border-color: #D8B4FE;
    background: #F3EEF8;
    color: #111827;
}

.sticker-facts span,
.sticker-facts a,
.premium-lock p,
.sticker-social-actions .btn,
.primary-status-actions button {
    color: #111827;
}

.premium-lock {
    color: #111827;
}

@media (max-width: 720px) {
    .latest-sticker-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notification-open {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-open em {
        grid-column: 2;
    }
}

@media (max-width: 460px) {
    .latest-sticker-cards {
        grid-template-columns: 1fr;
    }

    .notification-card {
        grid-template-columns: 1fr;
    }
}

/* Launch premium visual system */
:root {
    --launch-bg: #F8F5FF;
    --launch-card: #FFFFFF;
    --launch-text: #111827;
    --launch-secondary: #374151;
    --launch-muted: #6B7280;
    --launch-purple: #6D28D9;
    --launch-purple-2: #8B5CF6;
    --launch-green: #22C55E;
    --launch-yellow: #FBBF24;
}

.figu-body {
    background:
        radial-gradient(circle at 88% 0%, rgba(139, 92, 246, .13), transparent 26rem),
        linear-gradient(180deg, #FFFFFF 0%, var(--launch-bg) 100%);
    color: var(--launch-text);
}

.brand {
    color: var(--launch-text);
    font-weight: 800;
}

.brand span:last-child {
    display: grid;
    gap: .05rem;
}

.brand small,
.premium-brand small {
    color: var(--launch-muted);
    font-size: .72rem;
    font-weight: 600;
}

.brand-mark {
    position: relative;
    border: 0;
    background: linear-gradient(135deg, var(--launch-purple), var(--launch-purple-2));
    color: #FFFFFF;
    box-shadow: 0 14px 30px rgba(109, 40, 217, .24);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 3px solid rgba(255,255,255,.95);
    border-radius: 999px;
    border-left-color: transparent;
    transform: rotate(-28deg);
}

.sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,.96), #F4ECFB);
    border-right: 1px solid #E9DDF6;
    box-shadow: 18px 0 50px rgba(76, 29, 149, .08);
}

.brand-inverse,
.side-link,
.side-exit {
    color: var(--launch-text);
}

.side-link {
    border-color: transparent;
    font-weight: 700;
}

.side-link:hover,
.side-link.is-active {
    border-color: #E9D5FF;
    background: #F3EEF8;
    color: var(--launch-purple);
    box-shadow: inset 0 0 0 1px rgba(109, 40, 217, .08);
}

.nav-icon {
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.workspace {
    background: transparent;
}

.topbar {
    border: 1px solid rgba(233, 221, 246, .8);
    border-radius: 1.4rem;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 45px rgba(76, 29, 149, .06);
    backdrop-filter: blur(18px);
    padding: 1rem 1.15rem;
    margin-bottom: 1.15rem;
}

.topbar h1,
.topbar .user-name {
    color: var(--launch-text);
    font-weight: 800;
}

.content-panel {
    color: var(--launch-text);
}

.album-toolbar,
.album-card-large,
.team-group,
.sticker-hub,
.profile-card-main,
.modern-stats article,
.plan-card,
.social-stats-grid article,
.dashboard-card-panel,
.social-hero,
.social-match-card,
.social-trade-card,
.history-card,
.interaction-panel,
.trade-column,
.trade-submit-panel,
.notification-card,
.notification-hero,
.collection-card,
.account-form,
.component-strip {
    border: 1px solid rgba(233, 221, 246, .92);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 46px rgba(76, 29, 149, .08);
}

.btn-primary,
.connect-btn {
    border: 0;
    background: linear-gradient(180deg, var(--launch-purple-2), var(--launch-purple));
    color: #FFFFFF;
    box-shadow: 0 16px 30px rgba(109, 40, 217, .24);
}

.btn-outline,
.google-btn,
.create-account-btn {
    border-color: #E5E7EB;
    background: #FFFFFF;
    color: var(--launch-text);
    font-weight: 800;
}

.whatsapp-button,
.contact-unlocked-card .btn-primary {
    background: linear-gradient(180deg, #22C55E, #16A34A);
    box-shadow: 0 16px 30px rgba(34, 197, 94, .22);
}

.premium-auth-page {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
    background: #FFFFFF;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(22rem, .85fr) minmax(28rem, 1.35fr);
    width: min(100%, 92rem);
    min-height: min(58rem, calc(100vh - 4rem));
    border: 1px solid #E5E7EB;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .08);
}

.auth-shell-register {
    grid-template-columns: minmax(28rem, 1fr) minmax(24rem, .95fr);
}

.premium-login-card {
    width: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(2rem, 5vw, 4rem);
    align-content: center;
}

.premium-login-card .auth-brand {
    position: static;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.auth-heading h1,
.login-card h1 {
    color: var(--launch-text);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
}

.auth-heading p,
.login-card p,
.privacy-copy {
    color: var(--launch-secondary);
}

.login-form input,
.login-form select,
.login-form textarea {
    min-height: 3.4rem;
    border: 1px solid #E5E7EB;
    border-radius: .9rem;
    background: #FFFFFF;
    color: var(--launch-text);
    font-weight: 700;
}

.login-form label span {
    color: var(--launch-secondary);
    font-weight: 800;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--launch-secondary);
    font-weight: 700;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.remember-row input {
    min-height: auto;
    accent-color: var(--launch-purple);
}

.auth-showcase {
    position: relative;
    display: grid;
    align-content: center;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 78% 20%, rgba(168, 85, 247, .45), transparent 18rem),
        radial-gradient(circle at 30% 78%, rgba(251, 191, 36, .13), transparent 18rem),
        linear-gradient(145deg, #18084F 0%, #2C0A73 44%, #661BBE 100%);
    color: #FFFFFF;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.22) 0 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .26;
}

.auth-showcase > * {
    position: relative;
    z-index: 1;
}

.auth-showcase h2 {
    max-width: 45rem;
    color: #FFFFFF;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.02em;
}

.auth-showcase h2 strong {
    color: var(--launch-yellow);
}

.auth-showcase ul {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-showcase li {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 800;
}

.auth-showcase li::before {
    content: "";
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.auth-showcase p,
.auth-showcase a {
    color: #FFFFFF;
    font-weight: 800;
}

.showcase-cards {
    position: absolute;
    right: 7%;
    bottom: 14%;
    width: min(39%, 23rem);
    min-height: 27rem;
}

.mock-player-card {
    position: absolute;
    display: grid;
    gap: .45rem;
    width: 14rem;
    min-height: 19rem;
    border: .45rem solid rgba(255,255,255,.92);
    border-radius: 1.4rem;
    background: linear-gradient(160deg, #C4B5FD, #6D28D9);
    padding: .75rem;
    color: #FFFFFF;
    box-shadow: 0 28px 50px rgba(0,0,0,.34);
    transform: rotate(10deg);
}

.mock-card-sm {
    right: 8.6rem;
    bottom: -1.5rem;
    width: 11.4rem;
    min-height: 15.6rem;
    transform: rotate(-5deg);
}

.mock-player-card .player-face {
    width: 82%;
    height: 11rem;
    margin: auto auto 0;
}

.mock-player-card strong,
.mock-player-card span {
    color: #FFFFFF;
    font-weight: 900;
}

.premium-sticker-preview {
    display: grid;
    gap: .4rem;
    width: min(100%, 13rem);
    border: .45rem solid #FFFFFF;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 86% 14%, rgba(255,255,255,.72), transparent 3rem),
        linear-gradient(160deg, #C4B5FD, #6D28D9);
    padding: .75rem;
    color: #FFFFFF;
    box-shadow: 0 22px 42px rgba(109, 40, 217, .2);
}

.premium-sticker-preview .player-face {
    width: 70%;
    height: 8rem;
    margin-inline: auto;
}

.premium-sticker-preview span,
.premium-sticker-preview strong,
.premium-sticker-preview small {
    color: #FFFFFF;
    font-weight: 900;
}

.premium-sticker-preview small {
    opacity: .9;
}

.trade-pick-card {
    min-height: 13rem;
    border-color: #E9DDF6;
    background: #FFFFFF;
}

.trade-pick-card .player-face {
    width: 4.4rem;
    height: 5.5rem;
    margin: .1rem auto .25rem;
    border-radius: 1.6rem 1.6rem .8rem .8rem;
}

.trade-pick-card span {
    background: #F3EEF8;
    color: var(--launch-purple);
}

.trade-pick-card small {
    color: var(--launch-secondary);
}

.trade-pick-card:hover,
.trade-pick-card.is-selected {
    border-color: #C4B5FD;
    background: linear-gradient(180deg, #FFFFFF, #F8F5FF);
    box-shadow: 0 18px 40px rgba(109, 40, 217, .13);
}

.trade-pick-card.is-selected::after,
.notif-count {
    background: var(--launch-purple);
}

.match-celebration-panel {
    border: 1px solid #E9DDF6;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(251,191,36,.2), transparent 10rem),
        radial-gradient(circle at 90% 5%, rgba(139,92,246,.22), transparent 14rem),
        #FFFFFF;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(109, 40, 217, .1);
}

.match-celebration-panel h2 {
    color: var(--launch-text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

.match-modal-backdrop {
    background: rgba(17, 24, 39, .22);
    backdrop-filter: blur(10px);
}

.match-modal-card h2 {
    color: var(--launch-text);
    font-weight: 900;
}

.bottom-nav {
    border: 1px solid #E9DDF6;
    background: rgba(255,255,255,.94);
    box-shadow: 0 -10px 40px rgba(76, 29, 149, .12);
}

.bottom-nav a.is-active {
    color: var(--launch-purple);
}

@media (max-width: 980px) {
    .auth-shell,
    .auth-shell-register {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: 34rem;
    }

    .showcase-cards {
        right: 5%;
        bottom: 10%;
    }
}

@media (max-width: 640px) {
    .premium-auth-page {
        padding: .75rem;
    }

    .premium-login-card {
        padding: 1.35rem;
    }

    .auth-showcase {
        display: none;
    }

    .auth-shell {
        min-height: auto;
    }
}

.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    margin: 1rem 0;
}

.ranking-podium article,
.premium-plan-grid article,
.premium-brand-panel {
    display: grid;
    gap: .65rem;
    border: 1px solid #E9DDF6;
    border-radius: 1.25rem;
    background: #FFFFFF;
    padding: 1.25rem;
    color: var(--launch-text);
    box-shadow: 0 18px 46px rgba(76, 29, 149, .08);
}

.ranking-podium article {
    min-height: 11rem;
    place-items: center;
    text-align: center;
}

.ranking-podium .is-top {
    min-height: 14rem;
    background: linear-gradient(180deg, #FFF7E6, #FFFFFF);
}

.ranking-podium span {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 999px;
    background: #F3EEF8;
    color: var(--launch-purple);
    font-weight: 900;
}

.ranking-podium strong,
.premium-plan-grid strong,
.premium-brand-panel h2 {
    color: var(--launch-text);
    font-weight: 900;
}

.ranking-podium small,
.premium-plan-grid small,
.premium-brand-panel p,
.premium-brand-panel li {
    color: var(--launch-secondary);
    font-weight: 700;
}

.premium-launch-page {
    display: grid;
    grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.4fr);
    gap: 1rem;
}

.premium-brand-panel {
    background: linear-gradient(150deg, #2B0A73, var(--launch-purple));
    color: #FFFFFF;
}

.premium-brand-panel h2,
.premium-brand-panel p,
.premium-brand-panel li {
    color: #FFFFFF;
}

.premium-brand-panel ul {
    display: grid;
    gap: .55rem;
    margin: .5rem 0 0;
    padding-left: 1.1rem;
}

.premium-crown {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    background: #FEF3C7;
    color: #5B21B6;
    box-shadow: 0 10px 24px rgba(251, 191, 36, .18);
    font-weight: 900;
    padding: .42rem .78rem;
}

.premium-plan-price {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    letter-spacing: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.55rem) !important;
}

.premium-compare-grid article {
    min-width: 0;
    grid-template-rows: auto auto auto 1fr auto;
}

.premium-compare-grid article p,
.premium-compare-grid article ul {
    min-width: 0;
}

@media (max-width: 420px) {
    .premium-plan-price {
        font-size: 1.45rem !important;
    }
}

/* Legacy selector kept below by cascade compatibility. */
.premium-crown {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    background: #FEF3C7;
    color: #5B21B6;
    box-shadow: 0 10px 24px rgba(251, 191, 36, .18);
    padding: .42rem .78rem;
    font-weight: 900;
}

.premium-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.premium-plan-grid article {
    align-content: center;
}

.premium-plan-grid .is-featured {
    border-color: #C4B5FD;
    background: linear-gradient(180deg, #F8F5FF, #FFFFFF);
}

@media (max-width: 860px) {
    .ranking-podium,
    .premium-launch-page,
    .premium-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Final premium visual pass: approved logo, real player image support and tighter mockup spacing. */
.brand-mark {
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    background: transparent !important;
    color: transparent !important;
    box-shadow: 0 18px 36px rgba(109, 40, 217, .22) !important;
}

.brand-mark::before,
.brand-mark::after {
    display: none !important;
    content: none !important;
}

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

.premium-brand .brand-mark,
.auth-brand .brand-mark {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
}

.brand-inverse .brand-mark,
.sidebar .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .8rem;
}

.premium-brand span:last-child strong,
.auth-brand span:last-child strong {
    color: #111827;
    font-size: clamp(2.35rem, 4.2vw, 3.2rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: 0;
}

.premium-brand span:last-child small,
.auth-brand span:last-child small {
    color: #6B7280;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    font-weight: 600;
}

.auth-shell,
.auth-shell-register {
    width: min(96vw, 94rem);
    min-height: min(56rem, calc(100vh - 3rem));
    grid-template-columns: minmax(28rem, .78fr) minmax(42rem, 1.22fr);
    border: 1px solid #E9DDF6;
    border-radius: 1.55rem;
    background: #FFFFFF;
    box-shadow: 0 34px 90px rgba(76, 29, 149, .12);
}

.premium-login-card {
    padding: clamp(3.5rem, 6vw, 6rem) clamp(2.4rem, 4.8vw, 5.2rem);
    justify-content: center;
    gap: 1.65rem;
}

.premium-login-card .auth-brand {
    justify-content: center;
    margin-bottom: clamp(1rem, 3vw, 2.8rem);
}

.auth-heading {
    text-align: center;
    margin-bottom: 1.05rem;
}

.auth-heading h1 {
    color: #111827;
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    font-weight: 800;
}

.auth-heading p {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.65;
}

.premium-login-card .login-form label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.premium-login-card .remember-row span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: #374151;
    font-weight: 700;
}

.premium-login-card .login-form label {
    position: relative;
}

.premium-login-card input:not([type="checkbox"]),
.premium-login-card select {
    min-height: 4.35rem;
    border-radius: 1rem;
    border-color: #D8DCE8;
    color: #111827;
    font-size: 1.08rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .035);
}

.premium-login-card input::placeholder {
    color: #8B90A0;
}

.premium-login-card input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    accent-color: #6D28D9;
    box-shadow: none;
}

.premium-login-card .auth-row {
    align-items: center;
    gap: 1rem;
}

.premium-login-card .remember-row {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #374151;
    font-size: .96rem;
    line-height: 1.2;
    white-space: nowrap;
}

.premium-login-card .login-form label.remember-row > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

.premium-login-card .btn-primary,
.premium-login-card .create-account-btn,
.premium-login-card .google-btn {
    min-height: 4.35rem;
    border-radius: .9rem;
    font-size: 1.12rem;
    font-weight: 800;
}

.premium-login-card .btn-primary {
    background: linear-gradient(135deg, #7C3AED, #4C1D95);
    box-shadow: 0 22px 42px rgba(109, 40, 217, .28);
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 0 1.55rem 1.55rem 0;
    padding: clamp(4rem, 7vw, 7rem) clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(circle at 88% 16%, rgba(168, 85, 247, .45), transparent 18rem),
        radial-gradient(circle at 18% 88%, rgba(251, 191, 36, .16), transparent 19rem),
        linear-gradient(135deg, #271066 0%, #4C1D95 46%, #1E1B4B 100%);
}

.auth-showcase h2 {
    max-width: 36rem;
    color: #FFFFFF;
    font-size: clamp(2.8rem, 5vw, 4.85rem);
    line-height: 1.12;
    font-weight: 900;
}

.auth-showcase h2 strong {
    color: #FBBF24;
}

.auth-showcase ul {
    margin-top: clamp(2.5rem, 5vw, 4.8rem);
    gap: 1.55rem;
}

.auth-showcase li {
    color: #FFFFFF;
    font-size: clamp(1.15rem, 1.9vw, 1.55rem);
    font-weight: 800;
}

.auth-showcase li::before {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(139, 92, 246, .62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.24);
}

.auth-showcase > p {
    position: absolute;
    left: clamp(3rem, 6vw, 5.5rem);
    right: clamp(3rem, 6vw, 5.5rem);
    bottom: 3.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.28);
    color: #FFFFFF;
    text-align: center;
    font-size: 1.12rem;
    font-weight: 700;
}

.auth-showcase > p a {
    color: #FFFFFF;
    text-decoration: underline;
}

.showcase-cards {
    right: clamp(1.25rem, 3.5vw, 3.5rem);
    bottom: clamp(6.5rem, 10vw, 8rem);
    width: min(20rem, 32%);
    min-height: 21rem;
}

.mock-player-card {
    border: .55rem solid #FFFFFF;
    background: linear-gradient(160deg, #A78BFA, #5B21B6);
    box-shadow: 0 28px 58px rgba(0,0,0,.34);
}

.mock-card-lg {
    width: 13.8rem;
    transform: rotate(10deg);
}

.mock-card-sm {
    width: 12.4rem;
    left: -5.6rem;
    bottom: -4.3rem;
    transform: rotate(-4deg);
}

.mock-player-card .player-face {
    height: 13.6rem;
}

.player-face {
    background:
        radial-gradient(circle at 50% 18%, rgba(255,255,255,.4), transparent 38%),
        linear-gradient(150deg, #BDA7F7, #6D28D9 56%, #2E1065);
}

.player-face.has-player-image {
    background: #EEE7FF;
}

.player-face.has-player-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}

/* Home premium refresh. Scoped and intentionally placed last for the public landing. */
.public-home {
    --home-purple: #6D28D9;
    --home-purple-2: #8B5CF6;
    --home-ink: #111827;
    --home-text: #374151;
    --home-muted: #6B7280;
    --home-line: #E9D5FF;
    --home-soft: #F8F5FF;
    --home-card: rgba(255, 255, 255, .9);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .18), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .12), transparent 22rem),
        linear-gradient(180deg, #FBFAFF 0%, #F8F5FF 46%, #FFFFFF 100%);
    color: var(--home-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-home * {
    box-sizing: border-box;
}

.home-hero,
.home-section,
.home-final-cta {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.home-hero {
    padding: 18px 0 96px;
}

.home-nav {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding: 12px 16px;
    border: 1px solid rgba(124, 58, 237, .16);
    border-radius: 26px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 60px rgba(76, 29, 149, .1);
    backdrop-filter: blur(20px);
}

.home-brand,
.home-nav-links,
.home-nav-actions,
.home-hero-actions,
.home-trust-strip {
    display: flex;
    align-items: center;
}

.home-brand {
    gap: 12px;
    color: var(--home-ink);
    text-decoration: none;
}

.home-brand span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--home-purple-2), #4C1D95);
    box-shadow: 0 16px 34px rgba(109, 40, 217, .28);
}

.home-brand img {
    width: 27px;
    height: 27px;
}

.home-brand strong {
    color: #0F172A;
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.home-nav-links {
    justify-content: center;
    gap: 8px;
}

.home-nav-links a,
.home-nav-actions a {
    border-radius: 999px;
    padding: 10px 13px;
    color: var(--home-text);
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.home-nav-links a:hover,
.home-nav-actions a:hover {
    color: var(--home-purple);
    background: #F3E8FF;
}

.home-nav-actions {
    justify-content: flex-end;
    gap: 8px;
}

.home-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 24px;
    color: var(--home-ink);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn-primary {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 52%, #4C1D95 100%);
    box-shadow: 0 18px 42px rgba(109, 40, 217, .28);
}

.home-btn-secondary {
    border-color: #DDD6FE;
    color: #3B0764;
    background: #FFFFFF;
    box-shadow: 0 12px 32px rgba(76, 29, 149, .08);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
    gap: 64px;
    align-items: center;
    padding-top: 92px;
}

.home-hero-copy {
    max-width: 760px;
    animation: homeFadeUp .7s ease both;
}

.home-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    padding: 8px 14px;
    color: #4C1D95;
    background: linear-gradient(180deg, #FFFFFF, #F3E8FF);
    box-shadow: 0 10px 24px rgba(76, 29, 149, .08);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.home-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.home-hero-copy h1 {
    max-width: 780px;
    margin: 24px 0 22px;
    color: var(--home-ink);
    font-size: clamp(3.25rem, 6.4vw, 6.25rem);
    font-weight: 950;
    letter-spacing: -.07em;
    line-height: .91;
}

.home-hero-copy p,
.home-section-heading p,
.certificate-copy p,
.home-seo-panel p,
.home-final-cta p {
    color: var(--home-text);
    font-size: 1.08rem;
    line-height: 1.78;
}

.home-hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.home-trust-strip {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-trust-strip span {
    border: 1px solid #E9D5FF;
    border-radius: 999px;
    padding: 8px 12px;
    color: #2E1065;
    background: rgba(255, 255, 255, .82);
    font-size: .86rem;
    font-weight: 850;
}

.home-seo-line {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--home-muted) !important;
    font-size: .95rem !important;
}

.home-product-mockup {
    position: relative;
    isolation: isolate;
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 38px;
    padding: 20px;
    background:
        radial-gradient(circle at 82% 12%, rgba(139, 92, 246, .26), transparent 18rem),
        radial-gradient(circle at 14% 92%, rgba(251, 191, 36, .18), transparent 15rem),
        rgba(255, 255, 255, .7);
    box-shadow: 0 34px 100px rgba(76, 29, 149, .18);
    backdrop-filter: blur(18px);
    animation: homeFloatIn .82s ease .08s both;
}

.home-product-mockup::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(109, 40, 217, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 40, 217, .06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.mockup-window-bar,
.mockup-top,
.mockup-match-card,
.mockup-certificate,
.before-after-demo,
.comparison-card,
.home-seo-panel,
.certificate-preview-card,
.home-final-cta {
    border: 1px solid var(--home-line);
    background: var(--home-card);
    box-shadow: 0 20px 54px rgba(76, 29, 149, .1);
    backdrop-filter: blur(16px);
}

.mockup-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 20px 20px 12px 12px;
    padding: 12px 14px;
}

.mockup-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DDD6FE;
}

.mockup-window-bar span:first-child {
    background: #FCA5A5;
}

.mockup-window-bar span:nth-child(2) {
    background: #FDE68A;
}

.mockup-window-bar span:nth-child(3) {
    background: #86EFAC;
}

.mockup-window-bar strong {
    margin-left: auto;
    color: #4B5563;
    font-size: .82rem;
    font-weight: 900;
}

.mockup-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    border-radius: 24px;
    padding: 20px;
}

.mockup-top span {
    display: block;
    color: var(--home-muted);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mockup-top strong {
    display: block;
    margin-top: 4px;
    color: var(--home-ink);
    font-size: 1.55rem;
    font-weight: 950;
}

.mockup-score {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    padding: 8px 12px;
    background: #FFFFFF;
}

.mockup-score small {
    color: var(--home-muted);
    font-weight: 900;
}

.progress-number,
.progress-number-final {
    color: var(--home-ink);
    font-size: 1.15rem;
    font-weight: 950;
}

.progress-number-final {
    color: var(--home-purple);
    animation: homePulseNumber 2.4s ease-in-out infinite;
}

.mockup-progress {
    height: 14px;
    margin: 18px 0 22px;
    overflow: hidden;
    border-radius: 999px;
    background: #EDE9FE;
}

.mockup-progress span {
    display: block;
    height: 100%;
    width: 46%;
    border-radius: inherit;
    background: linear-gradient(90deg, #C4B5FD, #8B5CF6, #6D28D9);
    box-shadow: 0 8px 18px rgba(109, 40, 217, .24);
    animation: homeProgressGrow 3.8s ease-in-out infinite;
}

.mockup-album {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mock-sticker {
    position: relative;
    display: flex;
    min-height: 152px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    overflow: hidden;
    border: 1px solid #DDD6FE;
    border-radius: 24px;
    padding: 16px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .78), transparent 4rem),
        linear-gradient(150deg, rgba(124, 58, 237, .22), rgba(255, 255, 255, .86) 58%),
        #FFFFFF;
    color: var(--home-ink);
    transition: transform .18s ease, box-shadow .18s ease;
}

.mock-sticker:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(76, 29, 149, .12);
}

.mock-sticker::before {
    content: "";
    position: absolute;
    inset: 16px 16px auto auto;
    width: 58px;
    height: 78px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255,255,255,.6), transparent 1.3rem),
        linear-gradient(160deg, #FBBF24 0%, #22C55E 100%);
    opacity: .92;
}

.mock-sticker span,
.mock-sticker strong,
.mock-sticker small {
    position: relative;
    z-index: 1;
}

.mock-sticker span {
    color: var(--home-purple);
    font-weight: 950;
}

.mock-sticker strong {
    color: var(--home-ink);
    font-size: 1.04rem;
    font-weight: 950;
}

.mock-sticker small,
.mockup-match-card small,
.mockup-certificate small {
    color: var(--home-muted);
    font-weight: 800;
}

.mock-sticker.is-empty {
    border-style: dashed;
    background: rgba(255, 255, 255, .62);
}

.sticker-flying {
    animation: homeStickerDrop 3.8s ease-in-out infinite;
}

.mockup-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    gap: 14px;
    margin-top: 14px;
}

.mockup-match-card,
.mockup-certificate {
    border-radius: 24px;
    padding: 18px;
}

.mockup-match-card span,
.mockup-certificate span,
.certificate-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    color: #4C1D95;
    background: #F3E8FF;
    font-size: .76rem;
    font-weight: 950;
}

.mockup-match-card strong,
.mockup-certificate strong {
    display: block;
    margin: 10px 0 5px;
    color: var(--home-ink);
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.2;
}

.home-section {
    padding: 84px 0;
}

.home-section-heading {
    max-width: 840px;
    margin-bottom: 34px;
}

.home-section-heading h2,
.certificate-copy h2,
.home-seo-panel h2,
.home-final-cta h2 {
    margin: 18px 0 12px;
    color: var(--home-ink);
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1.03;
}

.how-grid,
.plans-grid,
.collection-public-grid,
.stats-section {
    display: grid;
    gap: 20px;
}

.how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-grid article,
.plan-public-card,
.collection-public-grid article,
.stats-section article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 30px;
    background: #FFFFFF;
    box-shadow: 0 20px 54px rgba(76, 29, 149, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.how-grid article:hover,
.plan-public-card:hover,
.collection-public-grid article:hover,
.stats-section article:hover {
    transform: translateY(-4px);
    border-color: #C4B5FD;
    box-shadow: 0 28px 70px rgba(76, 29, 149, .13);
}

.how-grid article {
    min-height: 320px;
    padding: 28px;
}

.how-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 16px 30px rgba(109, 40, 217, .22);
    font-weight: 950;
}

.how-grid h3,
.plan-public-card h3,
.certificate-preview-card h3 {
    margin: 20px 0 10px;
    color: var(--home-ink);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.18;
}

.how-grid p,
.plan-public-card p,
.collection-public-grid small,
.stats-section span {
    color: var(--home-text);
    line-height: 1.65;
}

.how-mini {
    display: grid;
    min-height: 78px;
    margin-top: 22px;
    border: 1px solid #EDE9FE;
    border-radius: 22px;
    background: linear-gradient(180deg, #FFFFFF, #F8F5FF);
}

.how-mini-album {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
}

.how-mini-album span {
    border-radius: 12px;
    background: linear-gradient(150deg, #DDD6FE, #FFFFFF);
}

.how-mini-match {
    place-items: center;
}

.how-mini-match strong {
    color: var(--home-purple);
    font-size: 2rem;
    font-weight: 950;
}

.how-mini-match small {
    color: var(--home-muted);
    font-weight: 850;
}

.how-mini-progress {
    align-items: center;
    padding: 18px;
}

.how-mini-progress span {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8B5CF6 0 68%, #EDE9FE 68% 100%);
}

.before-after-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    border-radius: 30px;
    padding: 22px;
}

.before-after-demo div:not(.demo-arrow) {
    display: grid;
    gap: 4px;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(180deg, #FFFFFF, #F8F5FF);
}

.before-after-demo strong {
    color: var(--home-ink);
    font-size: 1.05rem;
}

.before-after-demo span {
    color: var(--home-purple);
    font-size: 1.65rem;
    font-weight: 950;
}

.before-after-demo small {
    color: var(--home-text);
    font-weight: 800;
}

.demo-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--home-purple);
    font-size: 1.25rem;
    font-weight: 950;
}

.home-seo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 22px;
    border-radius: 36px;
    padding: 24px;
}

.seo-card-main,
.seo-card-side {
    border: 1px solid #F3E8FF;
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    padding: 28px;
}

.home-seo-panel h3 {
    margin: 0 0 12px;
    color: var(--home-ink);
    font-size: 1.45rem;
    font-weight: 950;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.seo-tags span {
    border-radius: 999px;
    padding: 8px 10px;
    color: #4C1D95;
    background: #F3E8FF;
    font-size: .82rem;
    font-weight: 850;
}

.certificate-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 36px;
    align-items: center;
}

.certificate-preview-card {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    overflow: hidden;
    border-radius: 38px;
    padding: 30px;
    background:
        radial-gradient(circle at 86% 10%, rgba(251, 191, 36, .26), transparent 12rem),
        radial-gradient(circle at 12% 90%, rgba(139, 92, 246, .18), transparent 12rem),
        #FFFFFF;
}

.certificate-shine {
    position: absolute;
    inset: auto -42px -58px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(251, 191, 36, .24);
    filter: blur(4px);
}

.certificate-preview-card p {
    color: var(--home-text);
    font-weight: 850;
}

.certificate-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.certificate-preview-grid span {
    display: grid;
    min-height: 54px;
    place-items: center;
    border: 1px solid #DDD6FE;
    border-radius: 16px;
    color: #4C1D95;
    background: #F8F5FF;
    font-weight: 950;
}

.qr-preview {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid #DDD6FE;
    border-radius: 22px;
    padding: 14px;
    background: #FFFFFF;
}

.qr-preview span {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, var(--home-purple) 6px, transparent 6px) 0 0 / 14px 14px,
        linear-gradient(var(--home-purple) 6px, transparent 6px) 0 0 / 14px 14px,
        #F8F5FF;
}

.qr-preview strong,
.qr-preview small {
    grid-column: 2;
}

.qr-preview strong {
    color: var(--home-ink);
    font-weight: 950;
}

.qr-preview small {
    color: var(--home-muted);
    font-weight: 850;
}

.plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.plan-public-card {
    display: flex;
    min-height: 460px;
    flex-direction: column;
    padding: 30px;
}

.plan-public-card em {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    padding: 8px 11px;
    color: #4C1D95;
    background: #F3E8FF;
    font-size: .74rem;
    font-style: normal;
    font-weight: 950;
}

.plan-public-card > span {
    color: var(--home-purple);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .09em;
}

.plan-public-card ul {
    display: grid;
    gap: 11px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.plan-public-card li {
    display: flex;
    gap: 10px;
    color: var(--home-text);
    font-weight: 800;
}

.plan-public-card li::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: .5em;
    border-radius: 50%;
    background: #22C55E;
}

.plan-public-card a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 999px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 16px 34px rgba(109, 40, 217, .22);
    font-weight: 950;
    text-decoration: none;
}

.plan-public-card.is-popular {
    border-color: #C4B5FD;
    box-shadow: 0 30px 80px rgba(109, 40, 217, .14);
}

.plan-public-card.is-vip {
    border-color: #FBBF24;
    background:
        radial-gradient(circle at 86% 10%, rgba(251, 191, 36, .26), transparent 10rem),
        linear-gradient(180deg, #FFFFFF, #FFFBEB 145%);
    box-shadow: 0 34px 90px rgba(109, 40, 217, .18), 0 0 0 6px rgba(251, 191, 36, .1);
}

.comparison-card {
    overflow: hidden;
    margin-top: 26px;
    border-radius: 32px;
}

.comparison-card table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-card th,
.comparison-card td {
    padding: 18px 20px;
    border-bottom: 1px solid #F3E8FF;
    color: var(--home-ink);
    text-align: center;
    vertical-align: middle;
    font-weight: 850;
}

.comparison-card th:first-child,
.comparison-card td:first-child {
    width: 42%;
    text-align: left;
}

.comparison-card thead th {
    color: #4C1D95;
    background: linear-gradient(180deg, #F8F5FF, #F3E8FF);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.comparison-card tbody tr:nth-child(even) {
    background: rgba(248, 245, 255, .55);
}

.comparison-card tbody tr:last-child td {
    border-bottom: 0;
}

.plan-check,
.plan-x,
.plan-symbol {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 950;
}

.plan-check {
    color: #166534;
    background: #DCFCE7;
}

.plan-x {
    color: #991B1B;
    background: #FEE2E2;
}

.plan-symbol {
    color: #4C1D95;
    background: #F3E8FF;
}

.collection-public-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.collection-public-grid article {
    min-height: 190px;
    padding: 22px;
    background:
        radial-gradient(circle at 88% 0%, rgba(139, 92, 246, .16), transparent 8rem),
        #FFFFFF;
}

.collection-flag {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 14px 28px rgba(109, 40, 217, .2);
    font-size: .82rem;
    font-weight: 950;
}

.collection-public-grid strong {
    display: block;
    margin-top: 18px;
    color: var(--home-ink);
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1.2;
}

.collection-public-grid small {
    display: block;
    margin-top: 7px;
    font-weight: 750;
}

.collection-public-grid em {
    display: inline-flex;
    margin-top: 16px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #4C1D95;
    background: #F3E8FF;
    font-size: .78rem;
    font-style: normal;
    font-weight: 950;
}

.stats-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-section article {
    padding: 28px;
    background: linear-gradient(180deg, #FFFFFF, #FBFAFF);
}

.stats-section strong {
    display: block;
    color: var(--home-ink);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.home-final-cta {
    margin-bottom: 78px;
    overflow: hidden;
    border-radius: 42px;
    padding: 68px;
    text-align: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(251, 191, 36, .2), transparent 15rem),
        radial-gradient(circle at 82% 8%, rgba(139, 92, 246, .26), transparent 18rem),
        linear-gradient(135deg, #FFFFFF 0%, #F8F5FF 58%, #F3E8FF 100%);
}

.home-final-cta .home-pill {
    margin-inline: auto;
}

.home-final-cta .home-btn {
    margin-top: 18px;
}

@media (max-width: 1120px) {
    .home-nav {
        grid-template-columns: auto auto;
    }

    .home-nav-links {
        grid-column: 1 / -1;
        order: 3;
        flex-wrap: wrap;
    }

    .home-hero-grid,
    .certificate-section,
    .home-seo-panel {
        grid-template-columns: 1fr;
    }

    .home-product-mockup {
        min-height: auto;
    }

    .plans-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .collection-public-grid,
    .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-hero,
    .home-section,
    .home-final-cta {
        width: min(100% - 24px, 1280px);
    }

    .home-hero {
        padding-top: 12px;
        padding-bottom: 58px;
    }

    .home-nav {
        position: relative;
        top: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 22px;
    }

    .home-brand,
    .home-nav-actions,
    .home-hero-actions {
        width: 100%;
    }

    .home-nav-actions {
        justify-content: stretch;
    }

    .home-nav-actions > a:not(.home-btn) {
        display: none;
    }

    .home-nav-actions .home-btn,
    .home-hero-actions .home-btn,
    .home-final-cta .home-btn {
        width: 100%;
    }

    .home-nav-links {
        display: none;
    }

    .home-hero-grid {
        gap: 32px;
        padding-top: 46px;
    }

    .home-hero-copy h1 {
        font-size: clamp(2.75rem, 15vw, 4.3rem);
        letter-spacing: -.06em;
    }

    .home-product-mockup,
    .home-seo-panel,
    .certificate-preview-card,
    .home-final-cta {
        border-radius: 28px;
        padding: 20px;
    }

    .mockup-top,
    .mockup-bottom-grid,
    .mockup-album,
    .before-after-demo,
    .collection-public-grid,
    .stats-section {
        grid-template-columns: 1fr;
    }

    .mockup-score {
        justify-self: start;
    }

    .mock-sticker {
        min-height: 128px;
    }

    .home-section {
        padding: 50px 0;
    }

    .comparison-card {
        overflow-x: auto;
    }

    .comparison-card table {
        min-width: 700px;
    }

    .home-final-cta {
        margin-bottom: 40px;
    }
}

/* Public SEO home. Scoped to avoid changing the logged-in app. */
.public-home {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .16), transparent 28rem),
        radial-gradient(circle at 88% 2%, rgba(109, 40, 217, .12), transparent 24rem),
        #F8F5FF;
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-home * {
    box-sizing: border-box;
}

.home-hero,
.home-section,
.home-final-cta {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero {
    padding: 24px 0 76px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 60px rgba(76, 29, 149, .08);
    backdrop-filter: blur(18px);
}

.home-brand,
.home-nav-links,
.home-nav-actions,
.home-hero-actions {
    display: flex;
    align-items: center;
}

.home-brand {
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.home-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED, #4C1D95);
    box-shadow: 0 12px 28px rgba(109, 40, 217, .25);
}

.home-brand img {
    width: 26px;
    height: 26px;
}

.home-brand strong {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.home-nav-links {
    gap: 22px;
}

.home-nav-links a,
.home-nav-actions a {
    color: #374151;
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
}

.home-nav-links a:hover,
.home-nav-actions a:hover {
    color: #6D28D9;
}

.home-nav-actions {
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn-primary {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    box-shadow: 0 18px 38px rgba(109, 40, 217, .22);
}

.home-btn-secondary {
    color: #2E1065;
    border-color: #DDD6FE;
    background: #FFFFFF;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
    gap: 56px;
    align-items: center;
    padding-top: 74px;
}

.home-hero-copy {
    animation: homeFadeUp .7s ease both;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    padding: 8px 14px;
    color: #5B21B6;
    background: #F3E8FF;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.home-hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    color: #111827;
    font-size: clamp(2.7rem, 6vw, 5.35rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .94;
}

.home-hero-copy p,
.home-section-heading p,
.certificate-copy p,
.home-seo-panel p,
.home-final-cta p {
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.home-seo-line {
    max-width: 700px;
    margin: 22px 0 0;
    color: #6B7280 !important;
    font-size: .95rem !important;
}

.home-product-mockup {
    position: relative;
    min-height: 540px;
    padding: 26px;
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .72)),
        radial-gradient(circle at 80% 18%, rgba(139, 92, 246, .2), transparent 16rem);
    box-shadow: 0 32px 90px rgba(76, 29, 149, .16);
    animation: homeFloatIn .82s ease .08s both;
}

.mockup-top,
.mockup-match-card,
.mockup-certificate,
.before-after-demo,
.comparison-card,
.home-seo-panel,
.certificate-preview-card,
.home-final-cta {
    border: 1px solid #E9D5FF;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 48px rgba(76, 29, 149, .08);
}

.mockup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 22px;
    padding: 18px;
}

.mockup-top span {
    color: #111827;
    font-weight: 900;
}

.mockup-top strong {
    color: #111827;
    font-size: 1.25rem;
}

.progress-number-final {
    color: #6D28D9;
    animation: homePulseNumber 2.4s ease-in-out infinite;
}

.mockup-progress {
    height: 12px;
    margin: 18px 0 24px;
    overflow: hidden;
    border-radius: 999px;
    background: #EDE9FE;
}

.mockup-progress span {
    display: block;
    height: 100%;
    width: 46%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8B5CF6, #6D28D9);
    animation: homeProgressGrow 3.8s ease-in-out infinite;
}

.mockup-album {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mock-sticker {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid #DDD6FE;
    border-radius: 22px;
    padding: 16px;
    color: #111827;
    background:
        linear-gradient(150deg, rgba(124, 58, 237, .2), rgba(255, 255, 255, .8) 54%),
        #FFFFFF;
}

.mock-sticker::before {
    content: "";
    position: absolute;
    inset: 16px 18px auto auto;
    width: 54px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(160deg, #FBBF24, #22C55E);
    opacity: .86;
}

.mock-sticker span,
.mock-sticker strong,
.mock-sticker small {
    position: relative;
    z-index: 1;
}

.mock-sticker span {
    color: #6D28D9;
    font-weight: 900;
}

.mock-sticker strong {
    font-size: 1.02rem;
    font-weight: 900;
}

.mock-sticker small,
.mockup-match-card small,
.mockup-certificate small {
    color: #6B7280;
    font-weight: 700;
}

.mock-sticker.is-empty {
    border-style: dashed;
    background: #F7F2FF;
}

.sticker-flying {
    animation: homeStickerDrop 3.8s ease-in-out infinite;
}

.mockup-match-card,
.mockup-certificate {
    margin-top: 16px;
    border-radius: 22px;
    padding: 18px;
}

.mockup-match-card span,
.mockup-certificate span,
.certificate-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: #5B21B6;
    background: #F3E8FF;
    font-size: .76rem;
    font-weight: 900;
}

.mockup-match-card strong,
.mockup-certificate strong {
    display: block;
    margin: 8px 0 4px;
    color: #111827;
    font-size: 1.05rem;
}

.home-section {
    padding: 70px 0;
}

.home-section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.home-section-heading h2,
.certificate-copy h2,
.home-seo-panel h2,
.home-final-cta h2 {
    margin: 16px 0 12px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.how-grid,
.plans-grid,
.collection-public-grid,
.stats-section {
    display: grid;
    gap: 18px;
}

.how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-grid article,
.plan-public-card,
.collection-public-grid article,
.stats-section article {
    border: 1px solid #E9D5FF;
    border-radius: 26px;
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(76, 29, 149, .07);
}

.how-grid article {
    min-height: 250px;
    padding: 28px;
}

.how-grid article span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #FFFFFF;
    background: #6D28D9;
    font-weight: 900;
}

.how-grid h3,
.plan-public-card h3,
.certificate-preview-card h3 {
    margin: 18px 0 10px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.18;
}

.how-grid p,
.plan-public-card p,
.collection-public-grid span,
.stats-section span {
    color: #374151;
    line-height: 1.65;
}

.before-after-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    border-radius: 28px;
    padding: 22px;
}

.before-after-demo div:not(.demo-arrow) {
    display: grid;
    gap: 4px;
    border-radius: 20px;
    padding: 18px;
    background: #F8F5FF;
}

.before-after-demo strong {
    color: #111827;
    font-size: 1.1rem;
}

.before-after-demo span {
    color: #6D28D9;
    font-size: 1.6rem;
    font-weight: 900;
}

.before-after-demo small {
    color: #4B5563;
    font-weight: 700;
}

.demo-arrow {
    color: #6D28D9;
    font-size: 1.8rem;
    font-weight: 900;
}

.home-seo-panel {
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    gap: 28px;
    border-radius: 34px;
    padding: 34px;
}

.home-seo-panel h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 900;
}

.certificate-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: center;
}

.certificate-preview-card {
    min-height: 360px;
    border-radius: 34px;
    padding: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(251, 191, 36, .18), transparent 12rem),
        #FFFFFF;
}

.certificate-preview-card p {
    color: #374151;
    font-weight: 800;
}

.certificate-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.certificate-preview-grid span {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #5B21B6;
    background: #F3E8FF;
    font-weight: 900;
}

.qr-preview {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid #DDD6FE;
    border-radius: 18px;
    padding: 12px;
    background: #FFFFFF;
}

.qr-preview span {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, #6D28D9 6px, transparent 6px) 0 0 / 14px 14px,
        linear-gradient(#6D28D9 6px, transparent 6px) 0 0 / 14px 14px,
        #F8F5FF;
}

.qr-preview strong,
.qr-preview small {
    grid-column: 2;
}

.plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-public-card {
    position: relative;
    display: flex;
    min-height: 440px;
    flex-direction: column;
    padding: 28px;
}

.plan-public-card em {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #5B21B6;
    background: #F3E8FF;
    font-size: .74rem;
    font-style: normal;
    font-weight: 900;
}

.plan-public-card > span {
    color: #6D28D9;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.plan-public-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.plan-public-card li {
    color: #374151;
    font-weight: 700;
}

.plan-public-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: #22C55E;
}

.plan-public-card a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 999px;
    color: #FFFFFF;
    background: #6D28D9;
    font-weight: 900;
    text-decoration: none;
}

.plan-public-card.is-popular,
.plan-public-card.is-vip {
    border-color: #C4B5FD;
    box-shadow: 0 24px 62px rgba(109, 40, 217, .15);
}

.plan-public-card.is-vip {
    background:
        radial-gradient(circle at 85% 10%, rgba(251, 191, 36, .22), transparent 10rem),
        #FFFFFF;
}

.comparison-card {
    overflow: hidden;
    margin-top: 24px;
    border-radius: 28px;
}

.comparison-card > div {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) repeat(3, minmax(90px, .7fr));
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F3E8FF;
}

.comparison-card > div:first-child {
    color: #111827;
    background: #F3E8FF;
}

.comparison-card > div:last-child {
    border-bottom: 0;
}

.comparison-card span,
.comparison-card strong {
    color: #111827;
    font-weight: 800;
}

.comparison-card span:not(:first-child) {
    color: #5B21B6;
}

.collection-public-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.collection-public-grid article {
    min-height: 140px;
    padding: 22px;
    background:
        linear-gradient(160deg, rgba(124, 58, 237, .09), rgba(255, 255, 255, .92)),
        #FFFFFF;
}

.collection-public-grid strong {
    display: block;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.25;
}

.collection-public-grid span {
    display: inline-flex;
    margin-top: 16px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #5B21B6;
    background: #F3E8FF;
    font-size: .78rem;
    font-weight: 900;
}

.stats-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-section article {
    padding: 26px;
}

.stats-section strong {
    display: block;
    color: #111827;
    font-size: 2.25rem;
    font-weight: 900;
}

.home-final-cta {
    margin-bottom: 70px;
    border-radius: 38px;
    padding: 58px;
    text-align: center;
    background:
        radial-gradient(circle at 18% 10%, rgba(251, 191, 36, .18), transparent 14rem),
        linear-gradient(135deg, #FFFFFF, #F8F5FF);
}

.home-final-cta .home-btn {
    margin-top: 16px;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeFloatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes homeProgressGrow {
    0%, 100% {
        width: 42%;
    }
    52% {
        width: 46%;
    }
}

@keyframes homePulseNumber {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes homeStickerDrop {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
        box-shadow: none;
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
        box-shadow: 0 22px 38px rgba(109, 40, 217, .16);
    }
}

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

@media (max-width: 1040px) {
    .home-nav {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .home-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-hero-grid,
    .certificate-section,
    .home-seo-panel {
        grid-template-columns: 1fr;
    }

    .home-product-mockup {
        min-height: auto;
    }

    .how-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .collection-public-grid,
    .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-hero,
    .home-section,
    .home-final-cta {
        width: min(100% - 24px, 1180px);
    }

    .home-hero {
        padding-top: 12px;
    }

    .home-nav {
        border-radius: 20px;
    }

    .home-nav-actions,
    .home-hero-actions {
        width: 100%;
    }

    .home-nav-actions .home-btn,
    .home-hero-actions .home-btn,
    .home-final-cta .home-btn {
        width: 100%;
    }

    .home-nav-links {
        display: none;
    }

    .home-hero-grid {
        gap: 30px;
        padding-top: 46px;
    }

    .home-product-mockup,
    .home-seo-panel,
    .certificate-preview-card,
    .home-final-cta {
        border-radius: 26px;
        padding: 20px;
    }

    .mockup-album,
    .before-after-demo,
    .collection-public-grid,
    .stats-section {
        grid-template-columns: 1fr;
    }

    .mock-sticker {
        min-height: 126px;
    }

    .before-after-demo {
        text-align: center;
    }

    .comparison-card {
        overflow-x: auto;
    }

    .comparison-card > div {
        min-width: 640px;
    }

    .home-section {
        padding: 48px 0;
    }
}

.payment-shell {
    max-width: 68rem;
    margin: 0 auto;
}

.payment-card {
    background: #FFFFFF;
    border: 1px solid #E9DDF6;
    border-radius: 1.4rem;
    box-shadow: 0 24px 70px rgba(76, 29, 149, .12);
    padding: clamp(1.2rem, 3vw, 2rem);
}

.payment-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.payment-card-head h2 {
    color: #111827;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 850;
    margin: .15rem 0 .35rem;
}

.payment-card-head p,
.payment-details p {
    color: #374151;
    font-weight: 650;
    line-height: 1.55;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 850;
    color: #4C1D95;
    background: #F3E8FF;
    border: 1px solid #E9D5FF;
}

.payment-status-approved {
    color: #166534;
    background: #DCFCE7;
    border-color: #BBF7D0;
}

.payment-status-expired,
.payment-status-cancelled {
    color: #991B1B;
    background: #FEE2E2;
    border-color: #FECACA;
}

.payment-grid {
    display: grid;
    grid-template-columns: minmax(17rem, .85fr) minmax(0, 1.15fr);
    gap: 1.4rem;
    align-items: stretch;
}

.payment-qr-panel,
.payment-details {
    border: 1px solid #E9DDF6;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #FBFAFF, #FFFFFF);
    padding: 1.2rem;
}

.payment-qr-panel {
    display: grid;
    place-items: center;
}

.payment-qr {
    width: min(100%, 18rem);
    aspect-ratio: 1;
    border-radius: 1rem;
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
}

.payment-qr-empty {
    min-height: 18rem;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .45rem;
    color: #4B5563;
}

.payment-qr-empty strong,
.payment-details h3 {
    color: #111827;
    font-weight: 900;
}

.payment-kind {
    display: inline-flex;
    border-radius: 999px;
    padding: .45rem .75rem;
    background: #F3E8FF;
    color: #581C87;
    font-size: .78rem;
    font-weight: 900;
}

.payment-details h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: .7rem 0 .35rem;
}

.payment-copy-label {
    display: block;
    margin: 1rem 0 .35rem;
    color: #111827;
    font-weight: 850;
}

.payment-details textarea {
    width: 100%;
    min-height: 7rem;
    resize: vertical;
    border: 1px solid #DDD6FE;
    border-radius: .9rem;
    padding: .85rem;
    color: #111827;
    background: #FFFFFF;
    font-size: .86rem;
    line-height: 1.45;
}

.payment-meta {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: .45rem .75rem;
    margin-top: 1rem;
    font-size: .9rem;
}

.payment-meta span {
    color: #6B7280;
    font-weight: 750;
}

.payment-meta strong {
    color: #111827;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.payment-progress,
.payment-alert {
    margin-top: 1rem;
    border-radius: 1rem;
    padding: .9rem 1rem;
    font-weight: 850;
}

.payment-progress {
    color: #4C1D95;
    background: #F3E8FF;
    border: 1px solid #E9D5FF;
}

.payment-alert-error {
    color: #991B1B;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    margin-bottom: 1rem;
}

.payment-success-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: rgba(17, 24, 39, .35);
    backdrop-filter: blur(10px);
}

.payment-success-modal[hidden] {
    display: none;
}

.payment-success-modal > div {
    width: min(100%, 28rem);
    border-radius: 1.4rem;
    background: #FFFFFF;
    border: 1px solid #D1FAE5;
    box-shadow: 0 24px 70px rgba(22, 101, 52, .18);
    padding: 2rem;
    text-align: center;
}

.success-orb {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #22C55E;
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 900;
}

.payment-success-modal h2 {
    color: #111827;
    font-size: 1.8rem;
    font-weight: 900;
}

.payment-success-modal p {
    color: #374151;
    font-weight: 650;
}

.certificate-public-page {
    width: min(100% - 2rem, 78rem);
    margin: 2rem auto;
}

.certificate-hero,
.certificate-stickers-panel {
    background: #FFFFFF;
    border: 1px solid #E9D5FF;
    border-radius: 1.6rem;
    box-shadow: 0 24px 70px rgba(76, 29, 149, .12);
}

.certificate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 82% 18%, rgba(139, 92, 246, .18), transparent 18rem),
        linear-gradient(145deg, #FFFFFF, #FBFAFF);
}

.certificate-seal {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: .55rem .85rem;
    background: #F3E8FF;
    color: #4C1D95;
    font-weight: 900;
    border: 1px solid #DDD6FE;
}

.certificate-hero h1 {
    color: #111827;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .95;
    font-weight: 900;
    margin: .6rem 0 .8rem;
}

.certificate-hero p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 650;
}

.certificate-sheet {
    border: 1px solid #E9D5FF;
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at 84% 10%, rgba(139, 92, 246, .15), transparent 20rem),
        linear-gradient(145deg, #FFFFFF, #FBFAFF);
    box-shadow: 0 28px 76px rgba(76, 29, 149, .13);
    padding: clamp(1.4rem, 4vw, 3rem);
}

.certificate-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
    gap: clamp(1.2rem, 4vw, 2.4rem);
    align-items: start;
}

.certificate-main-grid h1 {
    color: #111827;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: .95;
    font-weight: 900;
    margin: .6rem 0 .8rem;
}

.certificate-main-grid p {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 650;
}

.certificate-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(15rem, 1fr));
    gap: .72rem;
    margin: 1.35rem 0;
}

.certificate-detail-list div {
    display: grid;
    grid-template-columns: minmax(8.5rem, .6fr) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    border: 1px solid #E9D5FF;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .84);
    padding: .8rem .9rem;
}

.certificate-detail-list span {
    color: #6B7280;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: normal;
}

.certificate-detail-list strong {
    color: #111827;
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.certificate-validation-row {
    display: flex;
    justify-content: center;
    margin: 1.15rem 0 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #F3E8FF;
}

.certificate-validation-row .certificate-auth-mini {
    width: min(100%, 28rem);
}

.certificate-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: 1.4rem 0;
}

.certificate-meta-grid span,
.certificate-qr-card,
.certificate-profile-card {
    border: 1px solid #E9D5FF;
    background: rgba(255, 255, 255, .82);
    border-radius: 1rem;
    padding: .9rem;
    color: #4B5563;
    font-weight: 750;
}

.certificate-meta-grid strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: .2rem;
}

.certificate-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.certificate-qr-card {
    display: grid;
    place-items: center;
    text-align: center;
    align-self: stretch;
}

.certificate-qr svg {
    width: 12rem;
    height: 12rem;
}

.certificate-qr-card strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
}

.certificate-qr-card span {
    color: #6D28D9;
    font-weight: 900;
}

.certificate-profile-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .85rem;
    text-align: center;
    align-self: stretch;
    min-height: 100%;
    background:
        radial-gradient(circle at 50% 12%, rgba(139, 92, 246, .18), transparent 9rem),
        linear-gradient(145deg, #FFFFFF, #F8F5FF);
}

.certificate-profile-photo {
    width: min(100%, 14.5rem);
    aspect-ratio: 4 / 5;
    border: 4px solid #FFFFFF;
    outline: 1px solid #DDD6FE;
    border-radius: 1.35rem;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, .8), transparent 7rem),
        linear-gradient(145deg, #F3E8FF, #DDD6FE);
    box-shadow: 0 24px 48px rgba(76, 29, 149, .16);
}

.certificate-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.certificate-profile-photo span {
    color: #6D28D9;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 950;
}

.certificate-profile-card > strong {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 950;
    line-height: 1.15;
}

.certificate-profile-card > span {
    color: #6D28D9;
    font-size: .86rem;
    font-weight: 850;
}

.certificate-auth-mini {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    border: 1px solid #E9D5FF;
    border-radius: 1rem;
    background: #FFFFFF;
    padding: .75rem;
    text-align: left;
}

.certificate-mini-qr {
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    border: 1px dashed #C4B5FD;
    border-radius: .85rem;
    background: #FBFAFF;
    color: #6D28D9;
    font-size: .85rem;
    font-weight: 950;
}

.certificate-mini-qr svg {
    width: 3.8rem;
    height: 3.8rem;
    display: block;
}

.certificate-auth-mini p {
    margin: 0;
    color: #374151;
    font-size: .86rem;
    line-height: 1.25;
}

.certificate-auth-mini p strong,
.certificate-auth-mini p small {
    display: block;
}

.certificate-auth-mini p strong {
    color: #111827;
    font-size: .9rem;
    font-weight: 900;
}

.certificate-auth-mini p small {
    color: #6D28D9;
    font-weight: 850;
    margin-top: .18rem;
    overflow-wrap: anywhere;
}

.certificate-auth-preview .certificate-mini-qr {
    background: repeating-linear-gradient(135deg, #FFFFFF, #FFFFFF 8px, #F3E8FF 8px, #F3E8FF 16px);
}

.certificate-stickers-panel {
    margin-top: 1.2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.certificate-sheet .certificate-stickers-panel {
    margin-top: 0;
    padding: 1.25rem 0 0;
    border: 0;
    border-top: 1px solid #F3E8FF;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.certificate-sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr));
    gap: .8rem;
}

.certificate-sticker-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid #E9D5FF;
    border-radius: 1rem;
    background: #FFFFFF;
    padding: .55rem;
    box-shadow: 0 14px 34px rgba(76, 29, 149, .08);
}

.certificate-sticker-grid article > span {
    position: absolute;
    top: .65rem;
    left: .65rem;
    z-index: 1;
    color: #FFFFFF;
    background: rgba(76, 29, 149, .88);
    border-radius: .55rem;
    padding: .22rem .42rem;
    font-size: .78rem;
    font-weight: 900;
}

.certificate-sticker-grid img,
.certificate-sticker-grid article > div {
    width: 100%;
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
    object-position: center top;
    border-radius: .8rem;
    background: linear-gradient(145deg, #F3E8FF, #DDD6FE);
}

.certificate-sticker-grid strong {
    display: block;
    color: #111827;
    font-weight: 850;
    margin-top: .45rem;
    line-height: 1.2;
}

.certificate-sticker-grid small {
    color: #4B5563;
    font-weight: 650;
}

.certificate-preview-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-color: #E9D5FF;
    background: linear-gradient(135deg, #FFFFFF, #FBFAFF);
}

.certificate-upsell {
    margin-top: 1rem;
    border: 1px solid #E9D5FF;
    border-radius: 1.1rem;
    background: #FBFAFF;
    padding: 1rem;
}

.certificate-upsell h2,
.certificate-preview-page .certificate-meta-grid strong {
    color: #111827;
    font-weight: 900;
}

.certificate-preview-lock {
    background: linear-gradient(145deg, #FFFFFF, #F3E8FF);
}

.certificate-preview-code {
    width: 12rem;
    height: 12rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    border: 2px dashed #C4B5FD;
    color: #6D28D9;
    font-size: 2rem;
    font-weight: 900;
    background: #FFFFFF;
}

.certificate-preview-grid article.is-locked {
    opacity: .72;
    background: #F9FAFB;
}

.certificate-preview-grid article.is-locked img,
.certificate-preview-grid article.is-locked > div {
    display: grid;
    place-items: center;
    color: #6B7280;
    font-weight: 850;
    background: repeating-linear-gradient(135deg, #F3F4F6, #F3F4F6 10px, #E5E7EB 10px, #E5E7EB 20px);
}

@media (max-width: 820px) {
    .payment-card-head,
    .payment-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .payment-meta {
        grid-template-columns: 1fr;
    }

    .certificate-hero,
    .certificate-main-grid,
    .certificate-meta-grid,
    .certificate-preview-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .certificate-detail-list {
        grid-template-columns: 1fr;
    }

    .certificate-detail-list div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .certificate-validation-row {
        justify-content: stretch;
    }
}

/* Public profile top refinement only. */
.profile-card-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "avatar compat"
        "info compat";
    gap: .65rem 1.5rem;
    align-items: start;
}

.profile-card-main .avatar-xl {
    grid-area: avatar;
    width: clamp(6.6rem, 10vw, 8rem);
    height: clamp(6.6rem, 10vw, 8rem);
    margin-bottom: .15rem;
    font-size: 1.45rem;
    box-shadow: 0 18px 42px rgba(76, 29, 149, .14);
}

.profile-card-main .profile-main-info {
    grid-area: info;
}

.profile-card-main h2 {
    margin: .05rem 0 .32rem;
    color: #111827;
    font-size: clamp(2rem, 4.8vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.profile-card-main p:not(.eyebrow) {
    color: #374151;
    font-weight: 700;
}

.profile-card-main .compat-ring {
    grid-area: compat;
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    justify-items: center;
    width: clamp(6.7rem, 10vw, 8rem);
    height: clamp(6.7rem, 10vw, 8rem);
    margin-top: 2.1rem;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: conic-gradient(#8B5CF6 var(--compat, 0%), #EDE9FE 0);
    box-shadow: 0 12px 30px rgba(109, 40, 217, .12);
}

.profile-card-main .compat-ring::before {
    position: absolute;
    inset: .62rem;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background: #FFFFFF;
}

.profile-card-main .compat-ring strong {
    color: #111827;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1;
}

.profile-card-main .compat-ring span {
    max-width: none;
    color: #6D28D9;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-transform: lowercase;
    white-space: nowrap;
}

.sticker-chip-list {
    gap: .55rem;
}

.sticker-chip-list a {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 2.35rem;
    border: 1px solid #E9D5FF;
    border-radius: 999px;
    background: #FFFFFF;
    padding: .52rem .78rem;
    color: #2E1065;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(76, 29, 149, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sticker-chip-list a:hover {
    border-color: #C4B5FD;
    box-shadow: 0 12px 26px rgba(109, 40, 217, .09);
    transform: translateY(-1px);
}

.sticker-chip-list .chip-number {
    color: #7C3AED;
    font-weight: 950;
}

.sticker-chip-list .chip-player {
    color: #2E1065;
    font-weight: 850;
}

.sticker-chip-list .chip-club {
    color: #6B4E3D;
    font-weight: 700;
}

.sticker-chip-list .chip-player::before,
.sticker-chip-list .chip-club::before {
    content: "·";
    margin-right: .38rem;
    color: #A78BFA;
}

@media (max-width: 760px) {
    .profile-card-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "avatar"
            "info"
            "compat";
        justify-items: center;
        text-align: center;
    }

    .profile-card-main .compat-ring {
        margin-top: .75rem;
    }

    .profile-card-main .trust-badges {
        justify-content: center;
    }
}

/* Monetization phase 1: premium page and plan-limit modal. */
.premium-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .36fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.premium-hero > div,
.premium-quota-card,
.premium-table-card,
.premium-payment-card,
.premium-compare-grid article {
    border: 1px solid #E9DDF6;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 58px rgba(76, 29, 149, .09);
}

.premium-hero > div,
.premium-quota-card,
.premium-payment-card {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.premium-hero h2,
.premium-payment-card h2,
.premium-table-card h2 {
    margin: .35rem 0;
    color: #111827;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1;
}

.premium-hero p,
.premium-payment-card p {
    max-width: 46rem;
    color: #374151;
    font-weight: 650;
    line-height: 1.65;
}

.premium-quota-card {
    display: grid;
    align-content: center;
    gap: .35rem;
}

.premium-quota-card span,
.premium-plan-head span {
    color: #6D28D9;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-quota-card strong,
.premium-compare-grid strong {
    color: #111827;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.premium-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.premium-compare-grid article {
    display: grid;
    gap: .9rem;
    padding: 1.35rem;
    align-content: start;
}

.premium-compare-grid article .btn {
    align-self: end;
    margin-top: auto;
}

.premium-compare-grid article.is-featured {
    border-color: #C4B5FD;
    background: linear-gradient(180deg, #F8F5FF, #FFFFFF);
}

.premium-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.premium-plan-head small {
    border-radius: 999px;
    background: #EDE9FE;
    padding: .3rem .55rem;
    color: #5B21B6 !important;
    font-weight: 900 !important;
}

.premium-compare-grid p,
.premium-compare-grid li {
    color: #374151;
    font-weight: 650;
    line-height: 1.5;
}

.premium-compare-grid ul {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-compare-grid li::before {
    content: "✓";
    margin-right: .45rem;
    color: #22C55E;
    font-weight: 950;
}

.premium-table-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.premium-table-wrap {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.premium-table th,
.premium-table td {
    border-bottom: 1px solid #E9DDF6;
    padding: .95rem;
    color: #111827;
    text-align: left;
}

.premium-table th {
    color: #6D28D9;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-table td:not(:first-child) {
    font-weight: 850;
}

.premium-section-head,
.premium-package-card,
.premium-empty-card {
    border: 1px solid #E9DDF6;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 58px rgba(76, 29, 149, .08);
}

.premium-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1.25rem;
}

.premium-section-head h2,
.premium-package-card h3,
.premium-empty-card h3 {
    margin: .2rem 0;
    color: #111827;
}

.premium-section-head p,
.premium-package-card li,
.premium-empty-card p {
    color: #374151;
    font-weight: 650;
    line-height: 1.55;
}

.premium-packages-title {
    margin-top: 1rem;
}

.premium-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.premium-package-card,
.premium-empty-card {
    display: grid;
    min-height: 20rem;
    gap: 1rem;
    padding: 1.35rem;
}

.premium-package-card {
    grid-template-rows: auto 1fr auto;
}

.premium-package-card span {
    color: #6D28D9;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.premium-package-card h3 {
    font-size: 1.35rem;
}

.premium-package-card strong {
    display: block;
    margin-top: .5rem;
    color: #111827;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
}

.premium-package-card ul {
    display: grid;
    align-content: start;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-package-card li::before {
    content: "✓";
    margin-right: .45rem;
    color: #22C55E;
    font-weight: 950;
}

.plan-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(17, 24, 39, .32);
    backdrop-filter: blur(12px);
}

.plan-limit-card {
    position: relative;
    display: grid;
    width: min(100%, 28rem);
    gap: .85rem;
    border: 1px solid #E9D5FF;
    border-radius: 1.35rem;
    background: #FFFFFF;
    padding: 1.4rem;
    text-align: center;
    box-shadow: 0 28px 90px rgba(76, 29, 149, .22);
}

.plan-limit-icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    justify-self: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6D28D9, #8B5CF6);
    color: #FFFFFF;
    font-size: 1.4rem;
}

.plan-limit-card h2 {
    margin: 0;
    color: #111827;
    font-size: 1.45rem;
}

.plan-limit-card p {
    margin: 0;
    color: #374151;
    font-weight: 650;
    line-height: 1.55;
}

.plan-limit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

@media (max-width: 860px) {
    .premium-hero,
    .premium-compare-grid,
    .premium-package-grid,
    .plan-limit-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 861px) and (max-width: 1120px) {
    .premium-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* VIP proximity layer. */
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.nearby-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #E9DDF6;
    border-radius: 1.2rem;
    background: #FFFFFF;
    padding: 1rem;
    box-shadow: 0 16px 42px rgba(76, 29, 149, .07);
}

.nearby-card h3 {
    margin: .35rem 0 .2rem;
    color: #111827;
    font-size: 1.08rem;
}

.nearby-card p,
.nearby-meta span {
    color: #374151;
    font-weight: 650;
}

.nearby-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem;
}

.nearby-meta span {
    border: 1px solid #E9D5FF;
    border-radius: 999px;
    background: #F8F5FF;
    padding: .28rem .55rem;
    font-size: .78rem;
}

.nearby-lock {
    background: linear-gradient(135deg, #FFFFFF, #F8F5FF);
}

[data-cep-status].is-error {
    color: #991B1B;
}

[data-register-cep-status].is-error {
    color: #991B1B;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .32rem .68rem;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-badge-free {
    border-color: #BFDBFE;
    background: #DBEAFE;
    color: #1E3A8A;
}

.plan-badge-premium {
    border-color: #DDD6FE;
    background: #EDE9FE;
    color: #4C1D95;
}

.plan-badge-vip {
    border-color: #BBF7D0;
    background: #DCFCE7;
    color: #166534;
}

.profile-flash-warning {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #92400E;
}

/* Menu, dashboard stat colors and real ranking polish. */
.dashboard-social-card::before {
    display: inline-grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: 1rem;
    margin-bottom: .85rem;
    font-size: 1.25rem;
    font-weight: 950;
    color: #FFFFFF !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, .08);
}

.dashboard-social-card.stat-purple::before { content: "◎"; background: #7C3AED; }
.dashboard-social-card.stat-cyan::before { content: "▴"; background: #38BDF8; }
.dashboard-social-card.stat-green::before { content: "⇄"; background: #22C55E; }
.dashboard-social-card.stat-pink::before { content: "⌕"; background: #EC4899; }
.dashboard-social-card.stat-orange::before { content: "⌖"; background: #F97316; }

.real-ranking-list li {
    align-items: center;
}

.real-ranking-list li > div {
    display: grid;
    gap: .15rem;
}

.ranking-position {
    color: #7C3AED;
    font-size: .78rem;
    font-weight: 900;
}

@media (max-width: 860px) {
    .nearby-grid,
    .nearby-card {
        grid-template-columns: 1fr;
    }
}

.collectible-card .collectible-face .player-face.has-player-image,
.collectible-face .player-face.has-player-image {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
}

.collectible-face .player-face.has-player-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}

.collectible-face:has(.player-face.has-player-image) {
    place-items: stretch;
}

.duplicate-quantity-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: .45rem;
}

.collectible-card .duplicate-quantity-actions {
    width: 100%;
    align-self: end;
    justify-self: center;
    padding-top: .1rem;
}

.duplicate-quantity-actions button {
    display: inline-grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 1px solid #E5E7EB;
    border-radius: .55rem;
    background: #FFFFFF;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

.duplicate-quantity-actions span {
    color: #374151;
    font-size: .78rem;
    font-weight: 800;
}

/* Trade status premium flow only. */
.trade-secure-code-card,
.trade-stepper,
.trade-confirm-panel {
    border: 1px solid #E9D5FF;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #FBFAFF, #F5F3FF);
    box-shadow: 0 18px 42px rgba(109, 40, 217, .08);
}

.trade-secure-code-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1.1rem;
}

.trade-secure-code-card strong {
    display: block;
    color: #111827;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 900;
    letter-spacing: .08em;
}

.trade-secure-code-card span,
.trade-confirm-panel p {
    color: #374151;
    font-weight: 700;
}

.secure-trade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: .45rem .8rem;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    background: #FFFFFF;
    color: #4C1D95;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.trade-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin: 1rem 0;
    padding: .8rem;
}

.trade-stepper article {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    border-radius: .9rem;
    padding: .75rem;
    color: #6B7280;
}

.trade-stepper span {
    display: inline-grid;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border-radius: 999px;
    background: #E5E7EB;
    color: #374151;
    font-size: .8rem;
    font-weight: 900;
}

.trade-stepper strong {
    color: inherit;
    font-size: .86rem;
    font-weight: 850;
}

.trade-stepper article.is-done,
.trade-stepper article.is-current {
    background: #FFFFFF;
    color: #111827;
}

.trade-stepper article.is-current {
    outline: 2px solid #8B5CF6;
    box-shadow: 0 10px 26px rgba(109, 40, 217, .12);
}

.trade-stepper article.is-done span,
.trade-stepper article.is-current span {
    background: #6D28D9;
    color: #FFFFFF;
}

.trade-confirm-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.trade-confirm-panel h2 {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 900;
}

.trade-cancelled-panel,
.trade-cancel-card {
    border: 1px solid #FECACA;
    border-radius: 1.15rem;
    background: #FFF7F7;
    box-shadow: 0 18px 42px rgba(127, 29, 29, .06);
}

.trade-cancelled-panel {
    margin: 1rem 0;
    padding: 1rem;
}

.trade-cancelled-panel h2,
.trade-cancel-card h2 {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 900;
}

.trade-cancelled-panel p,
.trade-cancel-card p {
    color: #374151;
    font-weight: 700;
}

.trade-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(17, 24, 39, .38);
    backdrop-filter: blur(8px);
}

.trade-cancel-card {
    position: relative;
    width: min(100%, 30rem);
    padding: 1.2rem;
}

.trade-cancel-card label {
    display: grid;
    gap: .35rem;
    margin-top: .75rem;
    color: #374151;
    font-weight: 800;
}

.trade-cancel-card input,
.trade-cancel-card select,
.trade-cancel-card textarea {
    width: 100%;
    margin: .8rem 0;
    border: 1px solid #E5E7EB;
    border-radius: .9rem;
    padding: .85rem;
    color: #111827;
    font: inherit;
    resize: vertical;
}

.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #374151;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 760px) {
    .trade-secure-code-card,
    .trade-confirm-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .trade-stepper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Uploaded sticker photos must fill the entire visual area without changing card layout. */
.player-face.has-player-image,
.collectible-face .player-face.has-player-image,
.latest-sticker-card .player-face.has-player-image,
.premium-sticker-preview .player-face.has-player-image,
.trade-pick-card .player-face.has-player-image,
.match-sticker-thumb.player-face.has-player-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #F3EEF8 !important;
    background-image: none !important;
}

.player-face.has-player-image > img,
.collectible-face .player-face.has-player-image > img,
.latest-sticker-card .player-face.has-player-image > img,
.premium-sticker-preview .player-face.has-player-image > img,
.trade-pick-card .player-face.has-player-image > img,
.match-sticker-thumb.player-face.has-player-image > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: inherit;
}

.sticker-number,
.collectible-card .sticker-number,
.album-card-large .sticker-number {
    position: relative;
    z-index: 2;
}

/* Surgical readability pass for collection status controls and sticker detail chips. */
.state-tenho .status-badge,
[data-status="tenho"] .status-badge,
.status-badge[data-status-value="tenho"] {
    border-color: #86EFAC !important;
    background: #DCFCE7 !important;
    color: #166534 !important;
}

.state-preciso .status-badge,
[data-status="preciso"] .status-badge,
.status-badge[data-status-value="preciso"] {
    border-color: #FCA5A5 !important;
    background: #FEE2E2 !important;
    color: #991B1B !important;
}

.state-repetida .status-badge,
[data-status="repetida"] .status-badge,
.status-badge[data-status-value="repetida"] {
    border-color: #FDE68A !important;
    background: #FEF3C7 !important;
    color: #78350F !important;
}

.state-empty .status-badge,
[data-status=""] .status-badge,
.status-badge[data-status-value=""] {
    border-color: #E5E7EB !important;
    background: #F3F4F6 !important;
    color: #374151 !important;
}

.quick-status-actions [data-status-action],
.primary-status-actions [data-status-action] {
    border-width: 1px;
    font-weight: 800;
}

.quick-status-actions [data-status-action="tenho"],
.primary-status-actions [data-status-action="tenho"] {
    border-color: #86EFAC !important;
    background: #DCFCE7 !important;
    color: #166534 !important;
}

.quick-status-actions [data-status-action="preciso"],
.primary-status-actions [data-status-action="preciso"] {
    border-color: #FCA5A5 !important;
    background: #FEE2E2 !important;
    color: #991B1B !important;
}

.quick-status-actions [data-status-action="repetida"],
.primary-status-actions [data-status-action="repetida"] {
    border-color: #FDE68A !important;
    background: #FEF3C7 !important;
    color: #78350F !important;
}

.sticker-facts span,
.sticker-facts a {
    border-color: #E5E7EB !important;
    background: #F9FAFB !important;
    color: #111827 !important;
    font-weight: 800 !important;
}

.sticker-facts span:nth-child(1) {
    border-color: #DDD6FE !important;
    background: #F5F3FF !important;
}

.sticker-facts span:nth-child(2),
.sticker-facts a {
    border-color: #BBF7D0 !important;
    background: #F0FDF4 !important;
}

.sticker-facts span:nth-child(4) {
    border-color: #FDE68A !important;
    background: #FFFBEB !important;
    color: #78350F !important;
}

.trade-pick-card span,
.match-stickers span:not(.player-face),
.status-pill-new,
.status-pill-waiting,
.status-pill-done {
    color: #111827 !important;
    font-weight: 800;
}

/* Definitive neutralization of old CSS-only player bodies/faces. */
.player-face,
.player-face.alt,
.player-face.third,
.player-face.portrait-rendered,
.player-face.no-player-image,
.collectible-face .player-face,
.collectible-face .player-face.portrait-rendered,
.sticker-thumb .player-face,
.latest-sticker-card .player-face,
.premium-sticker-preview .player-face,
.trade-pick-card .player-face,
.trade-pick-card .player-face.portrait-rendered,
.match-sticker-thumb.player-face,
.mock-player-card .player-face,
.collectible-card:nth-child(4n + 2) .player-face,
.collectible-card:nth-child(4n + 3) .player-face,
.collectible-card:nth-child(4n) .player-face,
.latest-sticker-card:nth-child(4n + 2) .player-face,
.latest-sticker-card:nth-child(4n + 3) .player-face,
.latest-sticker-card:nth-child(4n) .player-face {
    background:
        radial-gradient(circle at 76% 18%, rgba(255,255,255,.65), transparent 7rem),
        radial-gradient(circle at 20% 80%, rgba(251,191,36,.2), transparent 8rem),
        linear-gradient(150deg, #F3EEF8 0%, #DDD0FF 42%, #7C3AED 100%) !important;
    background-color: transparent !important;
    background-image:
        radial-gradient(circle at 76% 18%, rgba(255,255,255,.65), transparent 7rem),
        radial-gradient(circle at 20% 80%, rgba(251,191,36,.2), transparent 8rem),
        linear-gradient(150deg, #F3EEF8 0%, #DDD0FF 42%, #7C3AED 100%) !important;
}

.player-face::before,
.player-face::after,
.player-face.alt::before,
.player-face.alt::after,
.player-face.third::before,
.player-face.third::after,
.player-face.portrait-rendered::before,
.player-face.portrait-rendered::after,
.player-face.no-player-image::before,
.player-face.no-player-image::after,
.collectible-face .player-face::before,
.collectible-face .player-face::after,
.latest-sticker-card .player-face::before,
.latest-sticker-card .player-face::after,
.premium-sticker-preview .player-face::before,
.premium-sticker-preview .player-face::after,
.trade-pick-card .player-face::before,
.trade-pick-card .player-face::after,
.match-sticker-thumb.player-face::before,
.match-sticker-thumb.player-face::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

.player-face.has-player-image {
    background: #F3EEF8 !important;
    background-image: none !important;
}

.sticker-upload-form {
    margin-top: .75rem;
}

.sticker-upload-form label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 2.55rem;
    border: 1px dashed #C4B5FD;
    border-radius: .85rem;
    background: #FBFAFF;
    color: #4C1D95;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
}

.sticker-upload-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.album-complete-message {
    margin-bottom: 1rem;
    border-color: #BBF7D0;
    background: linear-gradient(180deg, #F0FDF4, #FFFFFF);
}

.trade-toast.is-visible {
    display: block;
    margin-top: .75rem;
    border: 1px solid #BBF7D0;
    border-radius: .9rem;
    background: #F0FDF4;
    color: #166534;
    padding: .8rem;
    font-weight: 850;
}

.trade-toast.is-error {
    border-color: #FCA5A5;
    background: #FEF2F2;
    color: #991B1B;
}

.social-compat {
    align-items: center !important;
    border: 0 !important;
    background: #3B0764 !important;
    color: #FFFFFF !important;
}

.social-compat strong,
.social-compat span {
    color: #FFFFFF !important;
    line-height: 1.1;
}

.social-compat strong {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
}

.social-compat span {
    font-size: .82rem;
    font-weight: 750 !important;
}

.match-stickers a {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
}

.match-sticker-thumb.player-face {
    width: 3rem;
    height: 3.75rem;
    min-height: 0;
    border-radius: .7rem;
}

.collectible-face .player-face,
.latest-sticker-card .player-face {
    min-height: 11.2rem;
}

.collectible-card,
.latest-sticker-card,
.premium-sticker-preview,
.trade-pick-card {
    border-color: #E9DDF6;
    box-shadow: 0 18px 42px rgba(76, 29, 149, .1);
}

.collectible-card strong,
.latest-sticker-card strong,
.latest-sticker-card span,
.premium-sticker-preview strong,
.trade-pick-card strong {
    color: #111827 !important;
    font-weight: 800;
}

.collectible-card span,
.collectible-card small,
.latest-sticker-card em,
.trade-pick-card small {
    color: #374151 !important;
    font-weight: 650;
}

.dashboard-top-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(21rem, .8fr);
    gap: 1.8rem;
}

.smart-dashboard-hero,
.plan-card,
.social-stats-grid article,
.dashboard-card-panel,
.component-strip {
    border-color: #E9DDF6;
    box-shadow: 0 22px 58px rgba(76, 29, 149, .09);
}

.smart-dashboard-hero h2,
.plan-card h2,
.social-stats-grid strong,
.dashboard-card-panel h2 {
    color: #111827 !important;
    font-weight: 850;
}

.smart-dashboard-hero p,
.plan-card p,
.plan-card small,
.social-stats-grid span,
.social-stats-grid small {
    color: #374151 !important;
    font-weight: 650;
}

@media (max-width: 980px) {
    .auth-shell,
    .auth-shell-register {
        width: min(100%, 44rem);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Image-ready sticker cards: no generated faces, no cartoons, no canvas fallback. */
.player-face canvas,
.player-face svg {
    display: none !important;
}

.player-face {
    background:
        radial-gradient(circle at 76% 18%, rgba(255,255,255,.65), transparent 7rem),
        radial-gradient(circle at 20% 80%, rgba(251,191,36,.2), transparent 8rem),
        linear-gradient(150deg, #F3EEF8 0%, #DDD0FF 42%, #7C3AED 100%) !important;
}

.player-face::before,
.player-face::after {
    display: none !important;
    content: none !important;
}

.player-face.no-player-image {
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 18%, rgba(255,255,255,.65), transparent 7rem),
        radial-gradient(circle at 20% 80%, rgba(251,191,36,.2), transparent 8rem),
        linear-gradient(150deg, #F3EEF8 0%, #DDD0FF 42%, #7C3AED 100%) !important;
}

/* VIP certificate access and admin users polish. */
.vip-certificate-dashboard {
    margin: 1.35rem 0;
}

.collector-trophy-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border: 1px solid #E9D5FF;
    border-radius: 1.45rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FBFAFF 58%, #F5F0FF 100%);
    padding: 1.15rem;
    box-shadow: 0 22px 58px rgba(76, 29, 149, .09);
}

.collector-trophy-card.is-ready {
    border-color: #FDE68A;
    background:
        radial-gradient(circle at 96% 8%, rgba(251, 191, 36, .25), transparent 10rem),
        linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 42%, #F3E8FF 100%);
}

.collector-trophy-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #FDE68A, #8B5CF6);
    color: #FFFFFF;
    font-size: 1.8rem;
    box-shadow: 0 16px 32px rgba(124, 58, 237, .18);
}

.collector-trophy-card h2 {
    margin: .12rem 0 .25rem;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 900;
}

.collector-trophy-card p {
    margin: 0;
    color: #374151;
    font-weight: 650;
}

.collector-trophy-progress {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .7rem;
}

.collector-trophy-progress span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid #E9D5FF;
    border-radius: 999px;
    background: #FFFFFF;
    color: #374151;
    padding: .38rem .65rem;
    font-size: .82rem;
    font-weight: 800;
}

.collector-trophy-progress strong {
    color: #6D28D9;
}

.collector-trophy-action {
    display: flex;
    justify-content: flex-end;
}

.collector-trophy-action form {
    margin: 0;
}

.admin-users-shell,
.admin-users-panel {
    overflow: hidden;
}

.admin-users-filter {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .35fr) minmax(10rem, .35fr) auto;
    align-items: center;
}

.admin-users-filter input,
.admin-users-filter select {
    width: 100%;
    min-width: 0;
}

.admin-users-table-wrap {
    overflow-x: visible;
}

.admin-users-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-users-table th {
    white-space: nowrap;
}

.admin-users-table tbody tr {
    transition: background .18s ease, box-shadow .18s ease;
}

.admin-users-table tbody tr:nth-child(even) {
    background: #FCFAFF;
}

.admin-users-table tbody tr:hover {
    background: #F8F5FF;
}

.admin-users-table td {
    vertical-align: middle;
}

.admin-user-main {
    display: grid;
    gap: .25rem;
    min-width: 13rem;
}

.admin-user-main strong {
    color: #111827;
    font-size: .98rem;
    line-height: 1.2;
}

.admin-user-main small {
    color: #4B5563;
    line-height: 1.35;
    word-break: break-word;
}

.admin-user-status,
.admin-user-metrics,
.admin-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.admin-status-badge,
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.admin-status-badge.is-active {
    border: 1px solid #BBF7D0;
    background: #DCFCE7;
    color: #166534;
}

.admin-status-badge.is-blocked {
    border: 1px solid #FECACA;
    background: #FEE2E2;
    color: #991B1B;
}

.admin-role-badge {
    border: 1px solid #E9D5FF;
    background: #F8F5FF;
    color: #4C1D95;
}

.admin-user-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: .25rem;
    color: #4B5563;
    font-size: .84rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-user-metrics strong {
    color: #111827;
    font-size: 1rem;
}

.admin-user-edit-form {
    display: grid;
    grid-template-columns: minmax(5.5rem, .6fr) minmax(11.5rem, 1.1fr) minmax(7rem, .8fr) minmax(7rem, .8fr);
    gap: .55rem;
    align-items: center;
}

.admin-user-edit-form select,
.admin-user-edit-form input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-user-actions {
    justify-content: flex-end;
    min-width: 10.5rem;
}

.admin-user-actions .btn {
    min-height: 2.55rem;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .admin-users-filter {
        grid-template-columns: 1fr 1fr;
    }

    .admin-users-filter .btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .collector-trophy-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .collector-trophy-action {
        justify-content: stretch;
    }

    .collector-trophy-action .btn,
    .collector-trophy-action form,
    .collector-trophy-action button {
        width: 100%;
    }

    .admin-users-table {
        min-width: 0;
        border-spacing: 0 .8rem;
    }

    .admin-users-table thead {
        display: none;
    }

    .admin-users-table,
    .admin-users-table tbody,
    .admin-users-table tr,
    .admin-users-table td {
        display: block;
        width: 100%;
    }

    .admin-users-table tr {
        border: 1px solid #E9D5FF;
        border-radius: 1rem;
        background: #FFFFFF !important;
        box-shadow: 0 12px 32px rgba(76, 29, 149, .07);
        overflow: hidden;
    }

    .admin-users-table td {
        display: grid;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: .85rem;
        border-bottom: 1px solid #F3E8FF;
        padding: .85rem 1rem;
    }

    .admin-users-table td::before {
        content: attr(data-label);
        color: #6B7280;
        font-size: .72rem;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .admin-users-table td:last-child {
        border-bottom: 0;
    }

    .admin-user-edit-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-user-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .admin-users-filter,
    .admin-user-edit-form,
    .admin-users-table td {
        grid-template-columns: 1fr;
    }

    .admin-users-table td::before {
        margin-bottom: -.25rem;
    }
}

.player-face.no-player-image::before,
.player-face.no-player-image::after {
    display: none !important;
    content: none !important;
}

.player-face.has-player-image {
    background: #F3EEF8;
}

/* ColeMatch logo and focused admin users polish. */
.brand-mark {
    width: 11.75rem !important;
    height: 4.2rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.premium-brand .brand-mark,
.auth-brand .brand-mark {
    width: min(22rem, 100%) !important;
    height: 6.2rem !important;
}

.brand-inverse .brand-mark,
.sidebar .brand-mark {
    width: 11.8rem !important;
    height: 4.25rem !important;
}

.brand-mark img,
.home-brand img {
    object-fit: contain !important;
}

.brand span:last-child,
.premium-brand span:last-child,
.auth-brand span:last-child {
    display: none !important;
}

.home-brand span {
    width: 13.75rem !important;
    height: 4.85rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-brand img {
    width: 100% !important;
    height: 100% !important;
}

.home-brand strong {
    display: none !important;
}

.admin-users-table-wrap {
    overflow-x: visible;
}

.admin-users-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.admin-users-table th:nth-child(1) { width: 16%; }
.admin-users-table th:nth-child(2) { width: 22%; }
.admin-users-table th:nth-child(3) { width: 14%; }
.admin-users-table th:nth-child(4) { width: 10%; }
.admin-users-table th:nth-child(5) { width: 10%; }
.admin-users-table th:nth-child(6) { width: 12%; }
.admin-users-table th:nth-child(7) { width: 16%; }

.admin-user-email,
.admin-user-location {
    display: block;
    color: #374151;
    font-size: .9rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.admin-user-actions {
    justify-content: flex-start;
    min-width: 0;
}

.admin-user-actions .btn,
.admin-user-actions button {
    min-height: 2.25rem;
}

.admin-user-actions .btn-compact {
    padding: .55rem .72rem;
    font-size: .78rem;
}

.admin-user-direct-delete-form,
.admin-user-actions [data-delete-user-open] {
    display: none !important;
}

.admin-delete-confirm {
    max-width: 760px;
    margin-inline: auto;
}

.admin-delete-confirm-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #eadcff;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(88, 28, 135, .08);
}

.admin-delete-confirm-card dl {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.admin-delete-confirm-card div {
    display: grid;
    gap: .25rem;
}

.admin-delete-confirm-card dt {
    color: #6b7280;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-delete-confirm-card dd {
    margin: 0;
    color: #111827;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.admin-delete-warning {
    margin: 0;
    padding: .9rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 800;
}

.admin-user-edit-page {
    max-width: 860px;
    margin-inline: auto;
}

.admin-user-edit-page-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-user-edit-page-form label,
.password-recovery-card label {
    color: #111827;
    font-weight: 800;
}

.admin-user-edit-page-form input,
.admin-user-edit-page-form select,
.password-recovery-card input {
    width: 100%;
    margin-top: .45rem;
    border: 1px solid #e5e7eb;
    border-radius: .9rem;
    padding: .85rem 1rem;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
}

.admin-user-edit-page-form .admin-modal-actions {
    grid-column: 1 / -1;
}

.password-recovery-shell {
    min-height: calc(100vh - 2rem);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, .14), transparent 34rem),
        linear-gradient(135deg, #fbfaff 0%, #f4efff 100%);
}

.password-recovery-card {
    width: min(460px, 100%);
    padding: 2rem;
    border: 1px solid #eadcff;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(76, 29, 149, .14);
}

.password-recovery-logo {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.password-recovery-logo img {
    width: 158px;
    height: 44px;
    object-fit: contain;
}

.password-recovery-card h1 {
    margin: 0 0 .55rem;
    color: #111827;
    font-size: clamp(1.7rem, 5vw, 2.25rem);
    line-height: 1.08;
}

.password-recovery-card p {
    margin: 0 0 1.4rem;
    color: #4b5563;
    line-height: 1.55;
}

.password-recovery-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: .85rem;
}

.form-success {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: .9rem;
    background: #f0fdf4;
    color: #14532d;
    font-weight: 800;
}

.form-success a {
    display: block;
    margin-top: .45rem;
    color: #5b21b6;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .admin-user-edit-page-form {
        grid-template-columns: 1fr;
    }

    .password-recovery-card {
        padding: 1.35rem;
        border-radius: 1.1rem;
    }
}

.admin-user-quick-form,
.admin-user-details-row form[id^="delete-user-"],
td > form[id^="delete-user-"] {
    display: contents;
}

.admin-user-details-row {
    display: table-row !important;
    height: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.admin-users-table .admin-user-details-row > td {
    display: table-cell;
    height: 0;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible;
}

.admin-users-table .admin-user-details-row > td::before {
    display: none !important;
    content: none !important;
}

.admin-user-modal,
.admin-user-delete-modal {
    z-index: 1200;
}

.admin-user-edit-modal {
    max-width: 48rem;
}

.admin-user-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 1rem 0 1.1rem;
}

.admin-user-detail-grid span {
    display: grid;
    gap: .25rem;
    padding: .8rem;
    border: 1px solid #E9D5FF;
    border-radius: .9rem;
    background: #FCFAFF;
    color: #374151;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-user-detail-grid strong,
.admin-user-edit-form label {
    color: #111827;
    font-size: .78rem;
    font-weight: 900;
}

.admin-user-edit-form label {
    display: grid;
    gap: .35rem;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    grid-column: 1 / -1;
    margin-top: .25rem;
}

.admin-user-delete-modal .action-modal h2 {
    color: #111827;
}

.admin-user-delete-modal .action-modal p {
    color: #991B1B;
    font-weight: 800;
}

@media (max-width: 900px) {
    .admin-users-table {
        table-layout: auto;
    }

    .admin-user-detail-grid,
    .admin-user-edit-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .brand-mark,
    .brand-inverse .brand-mark,
    .sidebar .brand-mark,
    .home-brand span {
        width: 10.5rem !important;
        height: 3.8rem !important;
    }

    .premium-brand .brand-mark,
    .auth-brand .brand-mark {
        width: min(18rem, 100%) !important;
        height: 5.2rem !important;
    }

    .admin-user-detail-grid,
    .admin-user-edit-form,
    .admin-modal-actions {
        grid-template-columns: 1fr;
    }

    .admin-modal-actions {
        display: grid;
    }
}

/* ColeMatch SaaS identity v2: compact navbar/sidebar, text slogan outside the mark. */
.brand-mark,
.brand-inverse .brand-mark,
.sidebar .brand-mark,
.premium-brand .brand-mark,
.auth-brand .brand-mark {
    display: inline-grid !important;
    place-items: center !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.brand-mark img,
.home-brand img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.brand-mark-compact {
    overflow: hidden !important;
    border-radius: 1rem !important;
}

.brand-mark-compact img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.brand-mark-horizontal {
    width: min(18rem, 100%) !important;
    height: 4.6rem !important;
}

.brand-mark-compact,
.brand-inverse .brand-mark-compact,
.sidebar .brand-mark-compact {
    width: 3.25rem !important;
    height: 3.25rem !important;
    flex: 0 0 3.25rem;
}

.brand-copy,
.brand span:last-child,
.premium-brand span:last-child,
.auth-brand span:last-child {
    display: grid !important;
    gap: .1rem;
}

.brand-copy strong {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1;
}

.brand-copy small {
    color: #4B5563;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.15;
}

.auth-brand {
    align-items: center;
    gap: .9rem;
}

.auth-brand .brand-copy strong,
.auth-brand .brand-copy small {
    display: none;
}

.sidebar .brand {
    min-height: 56px;
    gap: .75rem;
    align-items: center;
}

.sidebar .brand-copy {
    min-width: 0;
}

.sidebar.is-collapsed .brand-copy,
.app-shell.is-sidebar-collapsed .sidebar .brand-copy {
    display: none !important;
}

.home-nav {
    min-height: 56px !important;
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
}

.home-brand {
    gap: .7rem !important;
    align-items: center !important;
}

.home-brand span {
    width: 12.5rem !important;
    height: 3.5rem !important;
    max-height: 56px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-brand strong {
    display: none !important;
}

.home-brand small {
    display: block;
    max-width: 12rem;
    color: #374151;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.15;
}

.admin-delete-message {
    display: grid;
    gap: .45rem;
    margin: 1rem 0 1.2rem;
}

.admin-delete-message strong {
    color: #111827;
    font-size: 1.2rem;
}

.admin-delete-message small {
    color: #374151;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.admin-delete-message em {
    color: #991B1B;
    font-style: normal;
    font-weight: 850;
}

@media (max-width: 620px) {
    .brand-mark-horizontal {
        width: min(13rem, 100%) !important;
        height: 3.4rem !important;
    }

    .brand-mark-compact,
    .brand-inverse .brand-mark-compact,
    .sidebar .brand-mark-compact {
        width: 2.75rem !important;
        height: 2.75rem !important;
        flex-basis: 2.75rem;
    }

    .home-nav {
        min-height: 44px !important;
    }

    .home-brand span {
        width: 9.75rem !important;
        height: 2.75rem !important;
        max-height: 44px !important;
    }

    .home-brand small {
        display: none;
    }
}

.player-face.has-player-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}

/* Final public home override: keeps the landing premium even with older home rules above. */
.public-home .home-nav {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 60px rgba(76, 29, 149, .12);
    backdrop-filter: blur(20px);
}

.public-home .home-hero,
.public-home .home-section,
.public-home .home-final-cta {
    width: min(1280px, calc(100% - 48px));
}

.public-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
    gap: 64px;
    padding-top: 44px;
}

.public-home .home-hero-copy h1 {
    max-width: 780px;
    color: #111827;
    font-size: clamp(2.85rem, 4.55vw, 4.55rem);
    font-weight: 950;
    letter-spacing: -.062em;
    line-height: .94;
}

.public-home .home-hero {
    padding-bottom: 60px;
}

.public-home .home-hero-copy p {
    max-width: 660px;
}

.public-home .home-product-mockup {
    isolation: isolate;
    min-height: 590px;
    overflow: hidden;
    border-radius: 38px;
    transform: translateY(-6px);
    padding: 20px;
    background:
        radial-gradient(circle at 82% 12%, rgba(139, 92, 246, .26), transparent 18rem),
        radial-gradient(circle at 14% 92%, rgba(251, 191, 36, .18), transparent 15rem),
        rgba(255, 255, 255, .92);
    box-shadow: 0 34px 100px rgba(76, 29, 149, .2);
}

.public-home .mockup-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #E9D5FF;
    border-radius: 20px 20px 12px 12px;
    padding: 12px 14px;
    background: #FFFFFF;
}

.public-home .mockup-window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DDD6FE;
}

.public-home .mockup-window-bar span:first-child { background: #FCA5A5; }
.public-home .mockup-window-bar span:nth-child(2) { background: #FDE68A; }
.public-home .mockup-window-bar span:nth-child(3) { background: #86EFAC; }

.public-home .mockup-window-bar strong {
    margin-left: auto;
    color: #4B5563;
    font-size: .82rem;
    font-weight: 900;
}

.public-home .mockup-top {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 14px;
    border-radius: 24px;
    padding: 20px;
    background: #FFFFFF;
}

.public-home .mockup-score {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #DDD6FE;
    border-radius: 999px;
    padding: 8px 12px;
    background: #FFFFFF;
}

.public-home .mockup-progress span {
    background: linear-gradient(90deg, #C4B5FD, #8B5CF6, #6D28D9);
    box-shadow: 0 8px 18px rgba(109, 40, 217, .24);
}

.public-home .mock-sticker {
    min-height: 152px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .78), transparent 4rem),
        linear-gradient(150deg, rgba(124, 58, 237, .22), rgba(255, 255, 255, .96) 58%),
        #FFFFFF;
}

.public-home .mockup-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    gap: 14px;
    margin-top: 14px;
}

.public-home .how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-home .how-grid article,
.public-home .plan-public-card,
.public-home .collection-public-grid article,
.public-home .stats-section article {
    border-radius: 30px;
    background: #FFFFFF;
    box-shadow: 0 20px 54px rgba(76, 29, 149, .09);
}

.public-home .home-seo-panel {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    border-radius: 36px;
    padding: 24px;
}

.public-home .seo-card-main,
.public-home .seo-card-side {
    border: 1px solid #F3E8FF;
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    padding: 28px;
}

.public-home .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.public-home .plan-public-card {
    min-height: 460px;
    padding: 30px;
}

.public-home .plan-public-card.is-vip {
    border-color: #FBBF24;
    background:
        radial-gradient(circle at 86% 10%, rgba(251, 191, 36, .26), transparent 10rem),
        linear-gradient(180deg, #FFFFFF, #FFFBEB 145%);
    box-shadow: 0 34px 90px rgba(109, 40, 217, .18), 0 0 0 6px rgba(251, 191, 36, .1);
}

.public-home .comparison-card {
    overflow: hidden;
    border-radius: 32px;
}

.public-home .comparison-card table {
    width: 100%;
    border-collapse: collapse;
}

.public-home .comparison-card th,
.public-home .comparison-card td {
    padding: 18px 20px;
    border-bottom: 1px solid #F3E8FF;
    color: #111827;
    text-align: center;
    vertical-align: middle;
    font-weight: 850;
}

.public-home .comparison-card th:first-child,
.public-home .comparison-card td:first-child {
    width: 42%;
    text-align: left;
}

.public-home .comparison-card thead th {
    color: #4C1D95;
    background: linear-gradient(180deg, #F8F5FF, #F3E8FF);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-home .comparison-card tbody tr:nth-child(even) {
    background: rgba(248, 245, 255, .55);
}

.public-home .plan-check,
.public-home .plan-x,
.public-home .plan-symbol {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 950;
}

.public-home .plan-check {
    color: #166534;
    background: #DCFCE7;
}

.public-home .plan-x {
    color: #991B1B;
    background: #FEE2E2;
}

.public-home .plan-symbol {
    color: #4C1D95;
    background: #F3E8FF;
}

.public-home .collection-public-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-home .stats-section {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-home .match-flow-demo {
    position: absolute;
    inset: 88px 24px auto 24px;
    pointer-events: none;
}

.public-home .flow-label {
    position: absolute;
    top: 0;
    border: 1px solid #E9D5FF;
    border-radius: 999px;
    padding: 7px 10px;
    color: #4C1D95;
    background: rgba(255, 255, 255, .92);
    font-size: .72rem;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(76, 29, 149, .1);
}

.public-home .flow-label-repeat {
    left: 10px;
}

.public-home .flow-label-need {
    right: 10px;
}

.public-home .flow-card {
    position: absolute;
    top: 42px;
    left: 18px;
    display: grid;
    width: 54px;
    height: 72px;
    place-items: end start;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 18px;
    padding: 9px;
    color: #FFFFFF;
    background: linear-gradient(150deg, #8B5CF6, #22C55E);
    box-shadow: 0 18px 34px rgba(109, 40, 217, .24);
    font-size: .82rem;
    font-weight: 950;
    animation: homeFlowCard 6.2s ease-in-out infinite;
}

.public-home .match-modal-demo {
    position: absolute;
    top: 150px;
    left: 50%;
    display: grid;
    width: min(280px, 86%);
    gap: 6px;
    transform: translateX(-50%) scale(.94);
    border: 1px solid #DDD6FE;
    border-radius: 24px;
    padding: 18px;
    opacity: 0;
    color: #111827;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(76, 29, 149, .2);
    animation: homeMatchModal 6.2s ease-in-out infinite;
}

.public-home .match-modal-demo strong {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 950;
}

.public-home .match-modal-demo small {
    color: #374151;
    font-weight: 800;
}

.public-home .match-modal-demo span {
    border-radius: 999px;
    padding: 7px 10px;
    color: #4C1D95;
    background: #F3E8FF;
    font-size: .78rem;
    font-weight: 950;
}

.public-home .match-modal-demo em {
    display: inline-flex;
    justify-content: center;
    margin-top: 4px;
    border-radius: 999px;
    padding: 10px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    font-style: normal;
    font-weight: 950;
}

.public-home .home-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(220px, auto);
    gap: 28px;
    align-items: center;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto 36px;
    border: 1px solid #E9D5FF;
    border-radius: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 20px 54px rgba(76, 29, 149, .08);
}

.public-home .home-footer p,
.public-home .home-footer small,
.public-home .home-footer-future span {
    color: #4B5563;
    font-weight: 750;
}

.public-home .home-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.public-home .home-footer nav a,
.public-home .home-footer-future span {
    border-radius: 999px;
    padding: 8px 11px;
    color: #4C1D95;
    background: #F8F5FF;
    font-size: .85rem;
    font-weight: 900;
    text-decoration: none;
}

.public-home .home-footer-future {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.public-home.public-page {
    padding-bottom: 60px;
}

.public-page-hero,
.public-page-grid,
.privacy-sheet {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.public-page-hero {
    padding-top: 18px;
}

.public-page-heading {
    max-width: 860px;
    padding: 76px 0 46px;
}

.public-page-heading h1 {
    margin: 18px 0 14px;
    color: #111827;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 950;
    letter-spacing: -.06em;
    line-height: .96;
}

.public-page-heading p {
    color: #374151;
    font-size: 1.12rem;
    line-height: 1.75;
}

.public-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 24px;
    align-items: start;
}

.contact-form-card,
.contact-info-stack article,
.privacy-sheet {
    border: 1px solid #E9D5FF;
    border-radius: 30px;
    background: #FFFFFF;
    box-shadow: 0 20px 54px rgba(76, 29, 149, .08);
}

.contact-form-card {
    padding: 30px;
}

.contact-form-card h2,
.privacy-sheet h2 {
    color: #111827;
    font-weight: 950;
}

.contact-form-card form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.contact-form-card label {
    display: grid;
    gap: 8px;
    color: #111827;
    font-weight: 900;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid #DDD6FE;
    border-radius: 16px;
    padding: 13px 14px;
    color: #111827;
    background: #FBFAFF;
    font: inherit;
}

.public-flash {
    margin-bottom: 16px;
    border: 1px solid #BBF7D0;
    border-radius: 16px;
    padding: 12px 14px;
    color: #166534;
    background: #F0FDF4;
    font-weight: 900;
}

.contact-info-stack {
    display: grid;
    gap: 16px;
}

.contact-info-stack article {
    padding: 24px;
}

.contact-info-stack span {
    color: #6D28D9;
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contact-info-stack strong {
    display: block;
    margin: 8px 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 950;
    word-break: break-word;
}

.contact-info-stack p,
.privacy-sheet p {
    color: #374151;
    line-height: 1.72;
}

.privacy-sheet {
    display: grid;
    gap: 18px;
    padding: 32px;
}

.privacy-sheet section {
    border-bottom: 1px solid #F3E8FF;
    padding-bottom: 18px;
}

.privacy-sheet section:last-child {
    border-bottom: 0;
}

@keyframes homeFlowCard {
    0%, 14% {
        left: 18px;
        top: 42px;
        opacity: 0;
        transform: scale(.86) rotate(-4deg);
    }
    22%, 38% {
        opacity: 1;
        transform: scale(1) rotate(2deg);
    }
    48%, 62% {
        left: calc(100% - 82px);
        top: 42px;
        opacity: 1;
        transform: scale(1.02) rotate(3deg);
    }
    74%, 86% {
        left: 50%;
        top: 250px;
        opacity: 1;
        transform: translateX(-50%) scale(.92) rotate(0deg);
    }
    100% {
        left: 50%;
        top: 250px;
        opacity: 0;
        transform: translateX(-50%) scale(.82);
    }
}

@keyframes homeMatchModal {
    0%, 54% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px) scale(.94);
    }
    66%, 90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px) scale(.96);
    }
}

@media (max-width: 1120px) {
    .public-home .home-nav {
        grid-template-columns: auto auto;
    }

    .public-home .home-nav-links {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .public-home .home-hero-grid,
    .public-home .certificate-section,
    .public-home .home-seo-panel,
    .public-home .how-grid,
    .public-home .plans-grid {
        grid-template-columns: 1fr;
    }

    .public-home .collection-public-grid,
    .public-home .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-home .home-hero,
    .public-home .home-section,
    .public-home .home-final-cta {
        width: min(100% - 24px, 1280px);
    }

    .public-home .home-nav {
        position: relative;
        top: auto;
        grid-template-columns: 1fr;
    }

    .public-home .home-nav-links {
        display: none;
    }

    .public-home .home-hero-grid,
    .public-home .mockup-top,
    .public-home .mockup-bottom-grid,
    .public-home .mockup-album,
    .public-home .before-after-demo,
    .public-home .collection-public-grid,
    .public-home .stats-section {
        grid-template-columns: 1fr;
    }

    .public-home .home-hero-copy h1 {
        font-size: clamp(2.45rem, 13vw, 3.9rem);
    }

    .public-home .comparison-card {
        overflow-x: auto;
    }

    .public-home .comparison-card table {
        min-width: 700px;
    }

    .public-home .home-footer,
    .public-page-grid {
        grid-template-columns: 1fr;
    }

    .public-home .home-footer {
        width: min(100% - 24px, 1280px);
    }

    .public-home .home-footer-future {
        justify-content: flex-start;
    }

    .public-page-hero,
    .public-page-grid,
    .privacy-sheet {
        width: min(100% - 24px, 1180px);
    }

    .public-page-heading {
        padding: 46px 0 30px;
    }
}

/* Final ColeMatch identity sizing override. Keep public navbar compact. */
.public-home .home-nav,
.home-nav {
    width: min(1360px, calc(100% - 48px)) !important;
    height: 90px !important;
    min-height: 90px !important;
    padding-top: .55rem !important;
    padding-bottom: .55rem !important;
    align-items: center !important;
}

.public-home .home-brand span,
.home-brand span {
    width: 17.25rem !important;
    height: 4.5rem !important;
    max-height: 72px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.public-home .home-brand img,
.home-brand img {
    width: 100% !important;
    height: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
}

.public-home .home-nav-links,
.home-nav-links {
    gap: .35rem !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.public-home .home-nav-links a,
.public-home .home-nav-actions a,
.home-nav-links a,
.home-nav-actions a {
    white-space: nowrap !important;
}

.public-home .home-brand small,
.home-brand small {
    display: block;
    color: #374151;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .public-home .home-nav,
    .home-nav {
        height: 44px !important;
        min-height: 44px !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 10rem !important;
        height: 2.75rem !important;
        max-height: 44px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 44px !important;
        max-height: 44px !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        display: none;
    }
}

/* Final public navbar/footer polish. */
.public-home .home-nav,
.home-nav {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.75rem !important;
    height: 92px !important;
    min-height: 92px !important;
}

.public-home .home-brand,
.home-brand {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 15.5rem !important;
    gap: .28rem !important;
}

.public-home .home-brand span,
.home-brand span {
    display: inline-flex !important;
    width: 16.5rem !important;
    height: 4.25rem !important;
    max-height: 68px !important;
}

.public-home .home-brand img,
.home-brand img {
    width: 100% !important;
    height: 68px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.public-home .home-brand small,
.home-brand small {
    display: block !important;
    max-width: 15.5rem !important;
    color: #374151 !important;
    font-size: .78rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.public-home .home-nav-menu,
.home-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 1rem !important;
}

.public-home .home-nav-links,
.home-nav-links,
.public-home .home-nav-actions,
.home-nav-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.public-home .home-nav-links,
.home-nav-links {
    justify-content: flex-end !important;
    gap: .2rem !important;
}

.public-home .home-nav-actions,
.home-nav-actions {
    justify-content: flex-end !important;
    gap: .7rem !important;
}

.public-home .home-nav-links a,
.public-home .home-nav-actions a,
.home-nav-links a,
.home-nav-actions a {
    white-space: nowrap !important;
}

.public-home .home-footer {
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, .75fr)) !important;
    align-items: start !important;
    gap: 2rem !important;
    padding: 2rem !important;
}

.public-home .home-footer-brand,
.public-home .home-footer nav,
.public-home .home-footer-future {
    display: grid !important;
    justify-content: start !important;
    gap: .65rem !important;
}

.public-home .home-footer strong {
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
}

.public-home .home-footer-brand strong {
    color: #4C1D95 !important;
    font-size: 1.35rem !important;
}

.public-home .home-footer p,
.public-home .home-footer small,
.public-home .home-footer-future span {
    max-width: 26rem !important;
    color: #4B5563 !important;
    font-weight: 750 !important;
    line-height: 1.55 !important;
}

.public-home .home-footer nav a,
.public-home .home-footer-future span {
    display: inline-flex !important;
    width: fit-content !important;
    border-radius: 999px !important;
    padding: .45rem .7rem !important;
    color: #4C1D95 !important;
    background: #F8F5FF !important;
    font-size: .88rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

@media (max-width: 1120px) {
    .public-home .home-nav,
    .home-nav {
        gap: 1rem !important;
    }

    .public-home .home-brand,
    .home-brand {
        min-width: 12.5rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 13rem !important;
        height: 3.5rem !important;
        max-height: 56px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 56px !important;
        max-height: 56px !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        gap: .6rem !important;
    }

    .public-home .home-nav-links a,
    .home-nav-links a {
        padding-inline: .55rem !important;
    }

    .public-home .home-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        height: auto !important;
        min-height: 72px !important;
        padding: .75rem !important;
    }

    .public-home .home-brand,
    .home-brand {
        min-width: 0 !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 10.5rem !important;
        height: 2.75rem !important;
        max-height: 44px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 44px !important;
        max-height: 44px !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        display: none !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        flex: 0 0 auto !important;
    }

    .public-home .home-nav-links,
    .home-nav-links {
        display: none !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        display: none !important;
    }

    .public-home .home-footer {
        grid-template-columns: 1fr !important;
        gap: 1.35rem !important;
        padding: 1.35rem !important;
    }
}

/* Final sidebar override: keep logo and logout visible, scroll menu internally. */
@media (min-width: 861px) {
    .app-shell {
        min-height: 100vh !important;
    }

    .app-shell > .sidebar,
    body.app-shell > .sidebar,
    .sidebar {
        position: sticky !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: .62rem .68rem !important;
    }

    .sidebar .brand {
        flex: 0 0 auto !important;
        min-height: 40px !important;
        margin: 0 0 .38rem !important;
        gap: .5rem !important;
    }

    .sidebar .brand-mark-compact,
    .brand-inverse .brand-mark-compact,
    .brand-mark-compact {
        width: 2.35rem !important;
        height: 2.35rem !important;
        flex: 0 0 2.35rem !important;
        border-radius: .72rem !important;
    }

    .sidebar .brand-copy strong {
        font-size: .94rem !important;
        line-height: 1 !important;
    }

    .sidebar .brand-copy small {
        max-width: 8.2rem !important;
        font-size: .6rem !important;
        line-height: 1.05 !important;
    }

    .sidebar .side-nav,
    .side-nav {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: .22rem !important;
        min-height: 0 !important;
        margin: .25rem 0 0 !important;
        padding: 0 .18rem .25rem 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin;
    }

    .sidebar .side-nav::-webkit-scrollbar,
    .side-nav::-webkit-scrollbar {
        width: .35rem;
    }

    .sidebar .side-nav::-webkit-scrollbar-thumb,
    .side-nav::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(124, 58, 237, .32);
    }

    .sidebar .side-link,
    .side-link {
        min-height: 2.28rem !important;
        gap: .48rem !important;
        border-radius: .72rem !important;
        padding: .3rem .48rem !important;
        font-size: .78rem !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
    }

    .sidebar .side-link .nav-icon,
    .side-link .nav-icon {
        width: 1.62rem !important;
        height: 1.62rem !important;
        flex: 0 0 1.62rem !important;
        border-radius: .54rem !important;
    }

    .sidebar .logout-form,
    .logout-form {
        flex: 0 0 auto !important;
        margin: .42rem 0 0 !important;
        padding-top: .36rem !important;
        border-top: 1px solid rgba(124, 58, 237, .12);
    }

    .logout-form .side-link {
        width: 100% !important;
    }
}

@media (min-width: 861px) and (max-height: 760px) {
    .sidebar .side-link,
    .side-link {
        min-height: 2.05rem !important;
        padding-block: .24rem !important;
        font-size: .74rem !important;
    }

    .sidebar .side-link .nav-icon,
    .side-link .nav-icon {
        width: 1.46rem !important;
        height: 1.46rem !important;
        flex-basis: 1.46rem !important;
    }
}

/* Public mobile header: keep login and signup visible after all older duplicated rules. */
@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .55rem !important;
        overflow-x: hidden !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        display: flex !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .public-home .home-nav-actions,
    .home-nav-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: .38rem !important;
        min-width: 0 !important;
        max-width: 10.5rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 2rem !important;
        border-radius: 999px !important;
        padding: .42rem .66rem !important;
        font-size: .73rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        border: 1px solid #E9D5FF !important;
        background: #FFFFFF !important;
        color: #5B21B6 !important;
    }

    .public-home .home-nav-actions .home-btn,
    .home-nav-actions .home-btn {
        min-width: 0 !important;
        box-shadow: 0 10px 24px rgba(124, 58, 237, .18) !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-nav-actions,
    .home-nav-actions {
        max-width: 8.2rem !important;
        gap: .28rem !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        min-height: 1.86rem !important;
        padding: .34rem .48rem !important;
        font-size: .66rem !important;
    }
}

/* Mobile app UX: visible brand slogan and logout access. */
.mobile-top-brand {
    display: none;
}

.bottom-logout-form {
    margin: 0;
}

.bottom-logout-form button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 860px) {
    .topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .65rem !important;
        align-items: center !important;
    }

    .mobile-top-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: .5rem !important;
        min-width: 0 !important;
        color: #111827 !important;
        text-decoration: none !important;
    }

    .mobile-top-brand .brand-mark-compact {
        width: 2.15rem !important;
        height: 2.15rem !important;
        flex: 0 0 2.15rem !important;
    }

    .mobile-top-brand .brand-copy {
        display: grid !important;
        gap: .04rem !important;
        min-width: 0 !important;
    }

    .mobile-top-brand .brand-copy strong {
        font-size: .92rem !important;
        line-height: 1 !important;
    }

    .mobile-top-brand .brand-copy small {
        display: block !important;
        max-width: 9.4rem !important;
        color: #6B21A8 !important;
        font-size: .58rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
    }

    .topbar > div:first-of-type {
        display: none !important;
    }

    .bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: .18rem !important;
        padding-inline: .35rem !important;
    }

    .bottom-nav a,
    .bottom-logout-form button {
        display: grid !important;
        place-items: center !important;
        gap: .14rem !important;
        width: 100% !important;
        min-width: 0 !important;
        border-radius: .85rem !important;
        padding: .32rem .1rem !important;
        color: #4B5563 !important;
        font-size: .62rem !important;
        font-weight: 900 !important;
        line-height: 1.05 !important;
        text-align: center !important;
        text-decoration: none !important;
    }

    .bottom-logout-form button {
        color: #7F1D1D !important;
    }

    .bottom-logout-form .nav-icon {
        width: 1.58rem !important;
        height: 1.58rem !important;
        border-radius: .55rem !important;
    }
}

@media (max-width: 390px) {
    .mobile-top-brand .brand-copy small {
        max-width: 7.4rem !important;
        font-size: .52rem !important;
    }

    .bottom-nav a,
    .bottom-logout-form button {
        font-size: .56rem !important;
    }
}

/* Final Home mobile header alignment: brand first, actions grouped below. */
@media (max-width: 760px) {
    .public-home .home-nav,
    .home-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: .72rem !important;
        min-height: 0 !important;
        padding: .86rem !important;
        overflow-x: hidden !important;
    }

    .public-home .home-brand,
    .home-brand {
        align-self: flex-start !important;
        max-width: 100% !important;
    }

    .public-home .home-nav-menu,
    .home-nav-menu {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .public-home .home-nav-actions,
    .home-nav-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .55rem !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-content: stretch !important;
    }

    .public-home .home-nav-actions > a,
    .home-nav-actions > a,
    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn),
    .public-home .home-nav-actions .home-btn,
    .home-nav-actions .home-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 2.45rem !important;
        border-radius: 999px !important;
        padding: .68rem .78rem !important;
        font-size: .82rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .public-home .home-nav-actions > a:not(.home-btn),
    .home-nav-actions > a:not(.home-btn) {
        border: 1px solid #E9D5FF !important;
        background: #FFFFFF !important;
        color: #5B21B6 !important;
    }
}

@media (max-width: 360px) {
    .public-home .home-nav-actions,
    .home-nav-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Final visual polish override: keep this after all older duplicated rules. */
.premium-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.premium-compare-grid article {
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: clamp(1rem, 1.55vw, 1.35rem) !important;
}

.premium-plan-head {
    min-width: 0 !important;
    align-items: flex-start !important;
}

.premium-plan-head span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.premium-plan-head small {
    flex: 0 0 auto !important;
}

.premium-plan-price {
    display: block !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: clamp(1.55rem, 2.35vw, 2.35rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.premium-compare-grid article .btn,
.premium-package-card .btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
}

.premium-hero,
.premium-package-grid,
.social-hero,
.account-panel,
.account-form {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.social-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 16rem) !important;
    align-items: center !important;
}

.social-hero > div:first-child {
    min-width: 0 !important;
}

.vip-preview {
    width: 100% !important;
    max-width: 16rem !important;
    justify-self: end !important;
    padding: .78rem .85rem !important;
}

.vip-preview p {
    margin: .45rem 0 0 !important;
    font-size: .88rem !important;
    line-height: 1.42 !important;
}

.account-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
}

.account-form label {
    min-width: 0 !important;
    align-self: stretch !important;
}

.account-photo-field,
.account-form .btn-full {
    grid-column: 1 / -1 !important;
}

.account-form input,
.account-form select {
    min-height: 3.05rem !important;
}

@media (max-width: 1180px) and (min-width: 861px) {
    .premium-compare-grid {
        gap: .78rem !important;
    }

    .premium-plan-price {
        font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    }

    .premium-compare-grid article {
        padding: 1rem !important;
    }
}

@media (max-width: 860px) {
    .premium-hero,
    .premium-compare-grid,
    .premium-package-grid,
    .social-hero,
    .account-form {
        grid-template-columns: 1fr !important;
    }

    .premium-plan-price {
        font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
        white-space: normal !important;
    }

    .vip-preview {
        max-width: none !important;
        justify-self: stretch !important;
        margin-top: .1rem !important;
    }
}

@media (max-width: 760px) {
    .public-home .home-brand,
    .home-brand {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .12rem !important;
        min-width: 0 !important;
        max-width: 11rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 9.6rem !important;
        height: 2.35rem !important;
        max-height: 38px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 38px !important;
        max-height: 38px !important;
        object-fit: contain !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        display: block !important;
        max-width: 10.5rem !important;
        color: #4B5563 !important;
        font-size: .58rem !important;
        font-weight: 800 !important;
        line-height: 1.05 !important;
        white-space: normal !important;
    }

    .public-home .home-nav,
    .home-nav {
        align-items: center !important;
    }
}

@media (max-width: 430px) {
    .public-home .home-brand,
    .home-brand {
        max-width: 8.5rem !important;
    }

    .public-home .home-brand span,
    .home-brand span {
        width: 8rem !important;
        height: 2.1rem !important;
        max-height: 34px !important;
    }

    .public-home .home-brand img,
    .home-brand img {
        height: 34px !important;
        max-height: 34px !important;
    }

    .public-home .home-brand small,
    .home-brand small {
        max-width: 8.3rem !important;
        font-size: .52rem !important;
    }
}
