:root {
    --primary: #fb8600;
    --primary-dark: #e07500;
    --dark: #0f0f0f;
    --bg: #ffffff;
    --bg-off: #f8f9fb;
    --border: #e8e8e8;
    --text: #1a1a1a;
    --muted: #6b7280;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

/* ─── Container ───────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.primary {
    color: var(--primary);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    border: 1.5px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: rgba(251, 134, 0, 0.07);
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge-soon {
    background: rgba(251, 134, 0, 0.12);
    color: var(--primary);
    border: 1px solid rgba(251, 134, 0, 0.25);
}

.badge-pricing {
    background: var(--bg-off);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.1px;
}

.nav-links a:hover {
    color: var(--dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ─── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 20px 24px 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.mobile-menu ul a {
    display: block;
    padding: 10px 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu ul a:hover {
    color: var(--primary);
}

.mobile-menu .btn {
    width: 100%;
    justify-content: center;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Sliding grid — visible in centre, fades at all four edges */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: gridSlideX 5s linear infinite;
    -webkit-mask:
        linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    mask:
        linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridSlideX {
    from { background-position: 0 0; }
    to   { background-position: 52px 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 22px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.75;
}

.hero-content .hero-beta-note {
    max-width: auto;
    justify-content: center;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Section Base ───────────────────────────────────────────── */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.975rem;
    line-height: 1.75;
}

/* ─── About ──────────────────────────────────────────────────── */
.about {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 36px 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(251, 134, 0, 0.28);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(251, 134, 0, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.75;
}

/* ─── Stores ─────────────────────────────────────────────────── */

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 24px 28px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 260px;
    position: relative;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

.store-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(251, 134, 0, 0.28);
}

.store-logo-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-off);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-logo-placeholder {
    color: #ccc;
    font-size: 1.8rem;
}

.store-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.store-card-placeholder { cursor: default; }
.store-card-placeholder h3 { color: #ccc; }

.store-card-ext {
    font-size: 0.68rem;
    color: var(--muted);
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.store-card:hover .store-card-ext {
    opacity: 1;
    color: var(--primary);
}

.stores-footer {
    text-align: center;
}

/* ─── Changelog (landing timeline) ───────────────────────────── */
.changelog-section {
    background: var(--bg);
}

.changelog-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto 48px;
    padding-left: 48px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.changelog-entry {
    position: relative;
    margin-bottom: 20px;
}

.changelog-entry:last-child { margin-bottom: 0; }

/* Timeline dot — centered on the 2px line at left:8px */
.changelog-entry::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 1;
}

.changelog-entry-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    position: relative;
}

/* Arrow outer border */
.changelog-entry-card::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 9px solid var(--border);
}

/* Arrow inner fill */
.changelog-entry-card::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 19px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid var(--bg);
}

.changelog-entry-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.changelog-entry-version {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}

.changelog-entry-date {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.changelog-entry-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.changelog-footer {
    text-align: center;
}

/* ─── Feedback / Issues ──────────────────────────────────────── */
.feedback {
    background: transparent;
    padding: 100px 24px;
}

.feedback-bg {
    background: #111118;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Square grid on dark background */
.feedback-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridSlideX 9s linear infinite;
    pointer-events: none;
}

.feedback .section-header h2 {
    color: #fff;
}

.feedback .section-header p {
    color: rgba(255, 255, 255, 0.55);
}

.feedback-split {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 60px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feedback-divider {
    width: 1px;
    height: 220px;
    background: rgba(255, 255, 255, 0.1);
    align-self: center;
    justify-self: center;
}

.feedback-half {
    text-align: center;
    padding: 20px 24px;
}

.feedback-half-icon {
    width: 60px;
    height: 60px;
    background: rgba(251, 134, 0, 0.12);
    border: 1px solid rgba(251, 134, 0, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.feedback-half h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #fff;
}

.feedback-half p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.75;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.925rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text);
    user-select: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--muted);
    font-size: 0.8rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Grid trick — instant, no max-height delay */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease;
    background: #fdfdfd;
}

.faq-answer-inner {
    overflow: hidden;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-answer-inner {
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
    padding-top: 2px;
}

/* ─── Hero Beta Note ─────────────────────────────────────────── */
.hero-beta-note {
    margin-top: 48px!important;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.65rem;
    color: var(--muted);
    opacity: 0.7;
    font-style: italic;
}

.hero-beta-line {
    display: block;
    width: 50px;
    flex-shrink: 0;
    height: 2px;
    background: var(--muted);
    opacity: 0.3;
}

.hero-beta-note a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-style: normal;
}

/* ─── Back to Top ────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 2.5;
}

.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-dasharray: 97.4;
    stroke-dashoffset: 97.4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top i {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--dark);
}

/* ─── CTA Section ────────────────────────────────────────────── */
.cta-section {
    background: var(--bg);
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: -0.5px;
    margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 56px;
}

.footer .logo {
    color: #fff;
}

.footer .logo .primary {
    color: var(--primary);
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    max-width: 280px;
    line-height: 1.75;
}

.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.825rem;
}

/* ─── Changelog Page (/changelog) ────────────────────────────── */
.changelog-page {
    padding-top: 120px;
    padding-bottom: 100px;
    background: var(--bg);
    min-height: 100vh;
}

.changelog-page-header {
    margin-bottom: 64px;
}

.changelog-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.changelog-page-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.changelog-page-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.changelog-item-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.changelog-item-meta {
    background: #fff;
    padding: 32px 32px;
    border-right: 1px solid var(--border);
}

.changelog-item-meta .meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 4px;
}

.changelog-item-meta .meta-version {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
    margin-bottom: 20px;
}

.changelog-item-meta .meta-date-val {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.changelog-item-body {
    padding: 32px 36px;
}

.changelog-item-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Changelog page accordions */
.cl-accordion {
    border: none;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.cl-accordion:first-child {
    border-top: 1px solid var(--border);
}

.cl-accordion:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cl-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.cl-accordion-trigger:hover {
    background: rgba(0, 0, 0, 0.025);
}

.cl-accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.cl-accordion-icon.improvement { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.cl-accordion-icon.fix         { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.cl-accordion-icon.patch       { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }

.cl-accordion-label { flex: 1; }

.cl-accordion-count {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

.cl-accordion-chevron {
    color: var(--muted);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cl-accordion.open .cl-accordion-chevron {
    transform: rotate(180deg);
}

.cl-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease;
    background: #fff;
    border-top: 1px solid transparent;
}

.cl-accordion.open .cl-accordion-body {
    grid-template-rows: 1fr;
    border-top-color: var(--border);
}

.cl-accordion-body-inner {
    overflow: hidden;
}

.cl-accordion-list {
    padding: 16px 18px 20px 44px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: disc;
    color: var(--muted);
}

.cl-accordion-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    list-style: disc;
}

.cl-accordion-empty {
    padding: 14px 18px 18px 44px;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

/* ─── Stores Page (/stores) ──────────────────────────────────── */
.stores-page {
    padding-top: 120px;
    padding-bottom: 100px;
    background: var(--bg);
    min-height: 100vh;
}

.stores-page-header {
    margin-bottom: 56px;
}

.stores-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.stores-page-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.stores-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .feedback-split {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }

    .feedback-divider {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 72px 0;
    }

    .feedback {
        padding: 72px 16px;
    }

    .changelog-item-card {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .changelog-item-meta {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 24px 28px;
    }

    .changelog-item-meta .meta-version {
        margin-bottom: 8px;
    }

    .changelog-item-body {
        padding: 24px 28px;
    }

    /* CTA inline → stacked on mobile */
    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Hide changelog card arrow on small screens */
    .changelog-entry-card::before,
    .changelog-entry-card::after {
        display: none;
    }

    .changelog-timeline {
        padding-left: 32px;
    }

    .changelog-entry::before {
        left: -29px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .hero-beta-note {
        display: block;
        text-align: center;
    }

    .hero-beta-line {
        display: none;
    }

    .hero-beta-note a {
        display: inline-block;
        margin-top: 5px;
    }

    .hero-beta-note a::before {
        content: "— ";
        color: var(--muted);
        opacity: 0.5;
        font-style: italic;
        font-weight: 400;
    }
}

@media (max-width: 560px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

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

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

/* ─── Pricing Page ───────────────────────────────────────────── */
.pricing-section {
    padding: 120px 0 80px;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border-color: rgba(251, 134, 0, 0.25);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(251, 134, 0, 0.12);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-price {
    margin-bottom: 24px;
}

.pricing-price .amount {
    font-size: 1.85rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.pricing-price .period {
    color: var(--muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

.pricing-features li i {
    color: #10b981;
    font-size: 0.9rem;
}

.pricing-features li.disabled {
    color: var(--muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.pricing-features li.disabled i {
    color: var(--muted);
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--bg-off);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.65;
}

.pricing-note i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.78rem;
}

.pricing-btn-disabled {
    background: #f1f1f1 !important;
    color: #999 !important;
    border-color: #f1f1f1 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 60px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--dark);
    background: #f8f9fb;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-name {
    font-weight: 600;
    width: 40%;
}

.comparison-table .plan-col {
    text-align: center;
}

.comparison-table .check-icon {
    color: #10b981;
}

.comparison-table .cross-icon {
    color: var(--muted);
    opacity: 0.5;
}

/* ─── Pricing Page Header ────────────────────────────────────── */
.pricing-page-header {
    margin-bottom: 64px;
}

.pricing-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.pricing-page-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ─── Pricing Teaser (home section) ─────────────────────────── */
.pricing-teaser {
    background: transparent;
    padding: 100px 24px;
}

.pricing-teaser-bg {
    background: #111118;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 72px 60px;
}

.pricing-teaser-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridSlideX 9s linear infinite;
    pointer-events: none;
}

.pricing-teaser-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.pricing-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 134, 0, 0.15);
    border: 1px solid rgba(251, 134, 0, 0.3);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pricing-teaser-text h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.pricing-teaser-text h2 .pricing-teaser-highlight {
    color: var(--primary);
}

.pricing-teaser-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.8;
}

.pricing-teaser-cta {
    flex-shrink: 0;
}

/* ─── Done For You (pricing page) ───────────────────────────── */
.dfy {
    background: transparent;
    padding: 0 24px 100px;
}

.dfy-bg {
    background: #111118;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 80px 60px;
}

.dfy-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridSlideX 12s linear infinite;
    pointer-events: none;
}

.dfy-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.dfy-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 134, 0, 0.15);
    border: 1px solid rgba(251, 134, 0, 0.3);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dfy-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.dfy-text p {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 32px;
}

.dfy-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(5px);
}

.dfy-card-price {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.dfy-card-price-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dfy-card-features {
    list-style: none;
    margin-bottom: 32px;
}

.dfy-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.dfy-card-features li i {
    color: var(--primary);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.dfy-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 28px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.dfy-card-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .pricing-teaser {
        padding: 72px 16px;
    }

    .pricing-teaser-bg {
        padding: 48px 28px;
    }

    .pricing-teaser-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .pricing-teaser-cta {
        width: 100%;
    }

    .pricing-teaser-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .dfy {
        padding: 0 16px 72px;
    }

    .dfy-bg {
        padding: 48px 28px;
    }

    .dfy-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dfy-card {
        padding: 28px 24px;
    }

    .dfy-card-price {
        font-size: 1.75rem;
        letter-spacing: -0.3px;
    }

    .dfy-card-price-label {
        font-size: 0.72rem;
        margin-bottom: 20px;
    }

    .dfy-card-features li {
        font-size: 0.825rem;
        margin-bottom: 10px;
    }
}

/* ─── Contribute Page ─────────────────────────────────────────── */
.contribute-page {
    padding-top: 120px;
    padding-bottom: 100px;
    background: var(--bg);
    min-height: 100vh;
}

.contribute-page-header {
    margin-bottom: 40px;
}

.contribute-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.contribute-page-header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* Note Section */
.contribute-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbf5;
    border: 1px solid rgba(251, 134, 0, 0.25);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 56px;
}

.contribute-note-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contribute-note p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.75;
}

/* Cards Grid */
.contribute-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.contribute-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contribute-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(251, 134, 0, 0.28);
}

.contribute-card-featured {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(251, 134, 0, 0.12);
}

.contribute-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 50px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.contribute-card-amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1;
}

.contribute-card-amount-custom {
    font-size: 1.8rem;
}

.contribute-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: -4px;
}

.contribute-card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 8px 0 12px;
}

.contribute-custom-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.contribute-custom-input-wrap:focus-within {
    border-color: var(--primary);
}

.contribute-custom-prefix {
    padding: 10px 12px;
    background: var(--bg-off);
    font-size: 0.85rem;
    color: var(--muted);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.contribute-custom-input {
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background: transparent;
}

.contribute-card .btn {
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

/* Contributors Section */
.contribute-contributors-section {
    padding-top: 20px;
}

.contribute-contributors-header {
    margin-bottom: 40px;
}

.contribute-contributors-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.contribute-contributors-header p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.contributor-card-no-link {
    cursor: default;
}

.contributor-card-no-link:hover {
    box-shadow: none;
    border-color: var(--border);
}

/* Modal */
.contribute-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.contribute-modal-overlay.active {
    display: flex;
}

.contribute-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.contribute-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    transition: var(--transition);
}

.contribute-modal-close:hover {
    background: var(--border);
    color: var(--dark);
}

.contribute-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.contribute-modal-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Photo upload */
.contribute-modal-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    gap: 10px;
}

.contribute-modal-photo-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg-off);
}

.contribute-modal-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contribute-modal-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contribute-modal-photo-preview:hover .contribute-modal-photo-overlay {
    opacity: 1;
}

.contribute-modal-photo-label {
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
}

.contribute-modal-photo-input {
    display: none;
}

/* Fields */
.contribute-modal-field {
    margin-bottom: 18px;
}

.contribute-modal-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}

.contribute-modal-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease;
    color: var(--text);
}

.contribute-modal-field input:focus {
    border-color: var(--primary);
}

.contribute-modal-amount-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.contribute-modal-amount-wrap:focus-within {
    border-color: var(--primary);
}

.contribute-modal-amount-prefix {
    padding: 10px 12px;
    background: var(--bg-off);
    font-size: 0.85rem;
    color: var(--muted);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.contribute-modal-amount-wrap input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.contribute-modal-amount-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.contribute-preset-btn {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}

.contribute-preset-btn:hover,
.contribute-preset-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(251, 134, 0, 0.06);
}

.contribute-optional {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

.contribute-required {
    color: var(--primary);
}

.contribute-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contribute-modal-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.contribute-modal-submit {
    width: 100%;
    margin-top: 4px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .contribute-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .contribute-modal {
        padding: 28px 22px;
    }
}

/* ─── Contributor Card: badge + type/amount ───────────────────── */
.contributor-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 12px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-decoration: none;
}

.contributor-card-badge-link {
    cursor: pointer;
    transition: background 0.15s;
}
.contributor-card-badge-link:hover { background: #e5e7eb; color: #374151; }
.contributor-card-badge-link i { font-size: 0.6rem; }

.contributor-card-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.contributor-card-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
}

.contributor-card-type-link { transition: opacity 0.15s; }
.contributor-card-type-link:hover { opacity: 0.65; color: var(--muted); }
.contributor-card-type-link i { font-size: 0.55rem; }

.contributor-card-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.2px;
}

/* ─── Contributor x-count badge ────────────────────────────────── */
.contributor-xcount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    line-height: 1.5;
    letter-spacing: 0.3px;
    transition: opacity 0.15s;
}
.contributor-xcount-badge:hover { opacity: 0.82; }

/* ─── Contribution history modal ────────────────────────────────── */
.contribute-history-modal {
    max-width: 460px;
    max-height: 82vh;
    overflow-y: auto;
}

/* Profile header inside history modal */
.hist-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.hist-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

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

.hist-profile-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 7px;
}

.hist-profile-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* Per-contribution type + badge inside timeline entries */
.history-tl-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hist-tl-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-off);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hist-tl-type-link { cursor: pointer; transition: background 0.15s; }
.hist-tl-type-link:hover { background: #e5e7eb; color: var(--muted); }
.hist-tl-type-link i { font-size: 0.55rem; }

.hist-tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
}

.hist-tl-badge-link { cursor: pointer; transition: background 0.15s; }
.hist-tl-badge-link:hover { background: #e5e7eb; color: #374151; }
.hist-tl-badge-link i { font-size: 0.58rem; }

/* Timeline */
.history-timeline { position: relative; padding: 4px 0; }

.history-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.history-tl-last { padding-bottom: 4px; }

.history-tl-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}

.history-tl-item:not(.history-tl-last) .history-tl-left::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    bottom: -24px;
    background: var(--border);
}

.history-tl-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.history-tl-body { padding-top: 3px; }

.history-tl-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.history-tl-date {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

.hist-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px 0;
    font-size: 0.88rem;
}

/* contributor card meta: amount sits on same line as type */
.contributor-card-meta { gap: 4px; }
.contributor-card-amount { display: inline; }

/* ─── Pricing Page Mobile Mini Nav ──────────────────────────── */
.pricing-mobile-nav {
    display: none;
}

/* ─── Contribute Page Mobile Mini Nav ───────────────────────── */
.contribute-mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    /* ── Pricing mobile mini nav ── */
    .pricing-mobile-nav {
        display: flex;
        align-items: center;
        gap: 2px;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 990;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border);
        border-radius: 50px;
        padding: 4px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .pmn-tab {
        padding: 6px 13px;
        border-radius: 50px;
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--muted);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        font-family: 'Poppins', sans-serif;
        line-height: 1;
    }

    .pmn-tab:hover {
        background: var(--bg-off);
        color: var(--dark);
    }

    .pmn-tab.active {
        background: var(--primary);
        color: #fff;
    }

    /* ── Contribute mobile mini nav ── */
    .contribute-mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 990;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 8px 10px 6px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .cmn-label {
        font-size: 0.6rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        padding: 0 3px;
    }

    .cmn-tabs {
        display: flex;
        gap: 2px;
        background: var(--bg-off);
        border-radius: 50px;
        padding: 3px;
    }

    .cmn-tab {
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--muted);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        font-family: 'Poppins', sans-serif;
        line-height: 1;
    }

    .cmn-tab:hover {
        background: #fff;
        color: var(--dark);
    }

    .cmn-tab.active {
        background: var(--primary);
        color: #fff;
    }

    /* ── Equal-width contributor cards on mobile ── */
    .stores-page-grid {
        justify-items: stretch;
    }

    .stores-page-grid .store-card {
        max-width: 100%;
    }

    .stores-page-grid .contributor-card-badge,
    .stores-page-grid .contributor-card-type {
        white-space: normal;
        text-align: center;
        max-width: 100%;
        word-break: break-word;
    }
}
