/* ===================================================================
 * MY PSICO AGENDA — MARKETING DESIGN SYSTEM
 * Loaded AFTER styles.css on public pages; overrides marketing visuals.
 * The dashboard and legal pages keep using styles.css untouched.
 * ================================================================= */

/* ---------- Design tokens (light) ---------- */
:root {
    --mk-bg:           #f7f6fb;
    --mk-bg-soft:      #ffffff;
    --mk-bg-muted:     #eeecf6;
    --mk-ink:          #1a1433;
    --mk-ink-soft:     #3c3560;
    --mk-ink-muted:    #6b6590;
    --mk-line:         rgba(26, 20, 51, 0.08);
    --mk-line-strong:  rgba(26, 20, 51, 0.14);
    --mk-primary:      #6a4bff;
    --mk-primary-600:  #5838e6;
    --mk-primary-700:  #4527c0;
    --mk-primary-50:   #efeaff;
    --mk-accent:       #00c2a8;
    --mk-accent-600:   #00a38d;
    --mk-accent-50:    #e4fbf6;
    --mk-warm:         #ff7b5c;
    --mk-gold:         #f5b301;
    --mk-rose:         #ff5f8f;
    --mk-sky:          #3aa1ff;

    --mk-grad-hero:    linear-gradient(135deg, #6a4bff 0%, #00c2a8 100%);
    --mk-grad-soft:    linear-gradient(135deg, rgba(106,75,255,0.08) 0%, rgba(0,194,168,0.08) 100%);
    --mk-grad-warm:    linear-gradient(135deg, #ff7b5c 0%, #ff5f8f 100%);

    --mk-shadow-xs:    0 1px 2px rgba(26, 20, 51, 0.05);
    --mk-shadow-sm:    0 4px 12px rgba(26, 20, 51, 0.06);
    --mk-shadow-md:    0 10px 30px rgba(26, 20, 51, 0.08);
    --mk-shadow-lg:    0 22px 60px rgba(26, 20, 51, 0.12);
    --mk-shadow-xl:    0 30px 80px rgba(26, 20, 51, 0.18);

    --mk-r-sm:  10px;
    --mk-r-md:  16px;
    --mk-r-lg:  22px;
    --mk-r-xl:  32px;
    --mk-r-pill: 999px;

    --mk-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --mk-font-display: "Space Grotesk", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

    --mk-maxw: 1200px;
    --mk-pad-x: clamp(1rem, 4vw, 3rem);
}

/* ---------- Design tokens (dark) ---------- */
html[data-theme="dark"] {
    --mk-bg:           #0d0b1a;
    --mk-bg-soft:      #15122a;
    --mk-bg-muted:     #1e1a38;
    --mk-ink:          #eceaf5;
    --mk-ink-soft:     #c7c3dd;
    --mk-ink-muted:    #8e89ad;
    --mk-line:         rgba(255, 255, 255, 0.08);
    --mk-line-strong:  rgba(255, 255, 255, 0.14);
    --mk-primary:      #8a72ff;
    --mk-primary-600:  #6d52f0;
    --mk-primary-700:  #4f33c8;
    --mk-primary-50:   rgba(138, 114, 255, 0.12);
    --mk-accent:       #2ee0c3;
    --mk-accent-600:   #16c4a8;
    --mk-accent-50:    rgba(46, 224, 195, 0.12);

    --mk-grad-hero:    linear-gradient(135deg, #8a72ff 0%, #2ee0c3 100%);
    --mk-grad-soft:    linear-gradient(135deg, rgba(138,114,255,0.14) 0%, rgba(46,224,195,0.14) 100%);

    --mk-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.25);
    --mk-shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.35);
    --mk-shadow-md:    0 10px 30px rgba(0, 0, 0, 0.45);
    --mk-shadow-lg:    0 22px 60px rgba(0, 0, 0, 0.55);
    --mk-shadow-xl:    0 30px 80px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset ---------- */
body.mk {
    font-family: var(--mk-font);
    background: var(--mk-bg);
    color: var(--mk-ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
    overflow-x: hidden;
}
body.mk ::selection { background: var(--mk-primary); color: #fff; }
body.mk h1, body.mk h2, body.mk h3, body.mk h4, body.mk h5 {
    font-family: var(--mk-font-display);
    color: var(--mk-ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}
body.mk h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.75rem); letter-spacing: -0.03em; }
body.mk h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem); }
body.mk h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
body.mk h4 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); }
body.mk p  { color: var(--mk-ink-soft); margin: 0 0 1em; }
body.mk a  { color: var(--mk-primary); text-decoration: none; transition: color .2s; }
body.mk a:hover { color: var(--mk-primary-600); }
body.mk img, body.mk svg { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.mk-wrap { max-width: var(--mk-maxw); margin: 0 auto; padding: 0 var(--mk-pad-x); }
.mk-section {
    padding: clamp(3.5rem, 6vw, 6.5rem) 0;
    position: relative;
}
.mk-section.tight { padding: clamp(2.5rem, 4vw, 4rem) 0; }
.mk-section.alt   { background: var(--mk-bg-soft); }
.mk-section.inverted {
    background: linear-gradient(180deg, var(--mk-bg-soft) 0%, var(--mk-bg-muted) 100%);
}
.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--mk-r-pill);
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
html[data-theme="dark"] .mk-eyebrow {
    background: var(--mk-primary-50);
    color: var(--mk-primary);
}
.mk-eyebrow.accent {
    background: var(--mk-accent-50);
    color: var(--mk-accent-600);
}
.mk-section-head {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}
.mk-section-head.left { text-align: left; margin-left: 0; }
.mk-lead {
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
    color: var(--mk-ink-soft);
    line-height: 1.7;
}

/* ---------- Header override ---------- */
body.mk .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 251, 0.72);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: none;
    padding: 0;
    transition: background .25s, border-color .25s;
}
html[data-theme="dark"] body.mk .topbar {
    background: rgba(13, 11, 26, 0.72);
}
body.mk .topbar.scrolled {
    background: rgba(247, 246, 251, 0.92);
    box-shadow: var(--mk-shadow-sm);
}
html[data-theme="dark"] body.mk .topbar.scrolled {
    background: rgba(13, 11, 26, 0.92);
}
body.mk .header-container {
    max-width: var(--mk-maxw);
    margin: 0 auto;
    padding: 0.85rem var(--mk-pad-x);
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.5vw, 1.25rem);
    flex-wrap: nowrap;
}
body.mk .brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-family: var(--mk-font-display);
    color: var(--mk-ink) !important;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
body.mk .brand .logo-img {
    width: 36px; height: 36px;
    border-radius: 10px;
    box-shadow: var(--mk-shadow-sm);
}
body.mk .brand-name { white-space: nowrap; }
body.mk .nav-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}
body.mk .nav-primary ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.2rem, 0.9vw, 0.65rem);
    list-style: none;
    padding: 0;
    margin: 0;
}
body.mk .nav-primary .nav-link {
    color: var(--mk-ink-soft);
    font-weight: 500;
    font-size: clamp(0.84rem, 0.78rem + 0.35vw, 0.95rem);
    padding: 0.45rem clamp(0.45rem, 0.9vw, 0.8rem);
    border-radius: var(--mk-r-sm);
    transition: background .2s, color .2s;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}
body.mk .nav-primary .nav-link:hover,
body.mk .nav-primary .nav-link.active {
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
}
html[data-theme="dark"] body.mk .nav-primary .nav-link:hover,
html[data-theme="dark"] body.mk .nav-primary .nav-link.active {
    color: var(--mk-primary);
}
body.mk .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}
body.mk .auth-group {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: nowrap;
}
body.mk .auth-group .button {
    padding: 0.62rem 1.05rem;
    font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.93rem);
}
body.mk .controls-group {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    padding-left: 0.75rem;
    border-left: 1px solid var(--mk-line);
}

/* Hamburger */
body.mk .hamburger {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-sm);
    background: var(--mk-bg-soft);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
    margin-left: auto;
}
body.mk .hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--mk-ink);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

/* Dropdowns (theme/lang triggers) */
body.mk .hdr-dropdown { position: relative; }
body.mk .hdr-dropdown-trigger {
    width: 40px; height: 40px;
    border-radius: var(--mk-r-sm);
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: border-color .2s, transform .15s;
}
body.mk .hdr-dropdown-trigger:hover {
    border-color: var(--mk-primary);
    transform: translateY(-1px);
}
body.mk .hdr-dropdown-trigger .flag-img { width: 20px; height: 14px; border-radius: 2px; }
body.mk .hdr-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    box-shadow: var(--mk-shadow-md);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 50;
}
body.mk .hdr-dropdown.open .hdr-dropdown-menu,
body.mk .hdr-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
body.mk .theme-toggle-header, body.mk .lang-switch {
    display: flex;
    gap: 0.25rem;
}
body.mk .theme-toggle-btn, body.mk .lang-btn {
    width: 40px; height: 40px;
    border-radius: var(--mk-r-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    font-size: 1.1rem;
}
body.mk .theme-toggle-btn:hover, body.mk .lang-btn:hover {
    background: var(--mk-primary-50);
}
body.mk .theme-toggle-btn.active, body.mk .lang-btn.active {
    background: var(--mk-primary);
    color: #fff;
}
body.mk .lang-btn .flag-img { width: 24px; height: 16px; border-radius: 2px; }

/* ---------- Buttons override ---------- */
body.mk .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--mk-font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.75rem 1.35rem;
    border-radius: var(--mk-r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    text-decoration: none;
    color: var(--mk-ink);
    background: var(--mk-bg-soft);
    border-color: var(--mk-line-strong);
    white-space: nowrap;
}
body.mk .button:hover {
    transform: translateY(-1px);
    box-shadow: var(--mk-shadow-sm);
    border-color: var(--mk-primary);
    color: var(--mk-primary);
}
body.mk .button.primary {
    background: var(--mk-primary);
    color: #fff;
    border-color: var(--mk-primary);
    box-shadow: 0 10px 24px -8px rgba(106, 75, 255, 0.55);
}
body.mk .button.primary:hover {
    background: var(--mk-primary-600);
    border-color: var(--mk-primary-600);
    color: #fff;
    box-shadow: 0 16px 32px -8px rgba(106, 75, 255, 0.65);
}
body.mk .button.ghost {
    background: transparent;
    border-color: transparent;
    color: var(--mk-ink-soft);
}
body.mk .button.ghost:hover {
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    border-color: transparent;
    box-shadow: none;
}
body.mk .button.accent {
    background: var(--mk-accent);
    color: #002f29;
    border-color: var(--mk-accent);
    box-shadow: 0 10px 24px -8px rgba(0, 194, 168, 0.55);
}
body.mk .button.accent:hover {
    background: var(--mk-accent-600);
    border-color: var(--mk-accent-600);
    color: #001a17;
}
body.mk .button.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
}
body.mk .button svg { width: 1em; height: 1em; }

/* ---------- Hero ---------- */
.mk-hero {
    position: relative;
    padding: clamp(3rem, 6vw, 6rem) 0 clamp(2rem, 4vw, 5rem);
    overflow: hidden;
}
.mk-hero::before {
    content: "";
    position: absolute;
    top: -25%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(closest-side, rgba(106, 75, 255, 0.22), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.mk-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(closest-side, rgba(0, 194, 168, 0.22), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.mk-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 920px) {
    .mk-hero-grid { grid-template-columns: 1fr; }
}
.mk-hero h1 {
    margin-bottom: 1.25rem;
}
.mk-hero h1 .mk-grad-text {
    background: var(--mk-grad-hero);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.mk-hero-lead {
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
    color: var(--mk-ink-soft);
    margin-bottom: 1.75rem;
    max-width: 620px;
}
.mk-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.mk-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--mk-ink-muted);
    font-size: 0.9rem;
}
.mk-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.mk-hero-trust svg { color: var(--mk-accent); width: 1.1em; height: 1.1em; }

/* Hero visual: SVG illustration card with floating badges */
.mk-hero-visual {
    position: relative;
}
.mk-hero-mockup {
    position: relative;
    border-radius: var(--mk-r-xl);
    overflow: hidden;
    box-shadow: var(--mk-shadow-xl);
    background: linear-gradient(135deg, #fff, #f3efff);
    border: 1px solid var(--mk-line);
    aspect-ratio: 4 / 3;
}
html[data-theme="dark"] .mk-hero-mockup {
    background: linear-gradient(135deg, #1e1a38, #14112a);
}
.mk-hero-mockup svg { width: 100%; height: 100%; }
.mk-hero-badge {
    position: absolute;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    padding: 0.75rem 1rem;
    box-shadow: var(--mk-shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--mk-ink);
    animation: mk-float 6s ease-in-out infinite;
}
.mk-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mk-accent); box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.2); }
.mk-hero-badge.top-left  { top: 8%;  left: -4%;  animation-delay: 0s; }
.mk-hero-badge.mid-right { top: 40%; right: -5%; animation-delay: 1.5s; }
.mk-hero-badge.bot-left  { bottom: 8%; left: 4%; animation-delay: 3s; }
@keyframes mk-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@media (max-width: 920px) {
    .mk-hero-badge.top-left  { left: 0%; }
    .mk-hero-badge.mid-right { right: 0%; }
}

/* ---------- Stats strip ---------- */
.mk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    border-radius: var(--mk-r-lg);
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    box-shadow: var(--mk-shadow-sm);
}
@media (max-width: 720px) {
    .mk-stats { grid-template-columns: repeat(2, 1fr); }
}
.mk-stat {
    text-align: center;
    padding: 0.5rem 0.75rem;
}
.mk-stat-n {
    font-family: var(--mk-font-display);
    font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 800;
    background: var(--mk-grad-hero);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1;
}
.mk-stat-n.mk-stat-static {
    font-size: clamp(1rem, 0.88rem + 0.45vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.mk-stat-l {
    color: var(--mk-ink-muted);
    font-size: 0.88rem;
    margin-top: 0.35rem;
}

/* ---------- Audience cards ---------- */
.mk-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.mk-audience-card {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 2rem;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}
.mk-audience-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mk-grad-soft);
    opacity: 0;
    transition: opacity .3s;
    z-index: 0;
}
.mk-audience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mk-shadow-lg);
    border-color: var(--mk-primary);
}
.mk-audience-card:hover::before { opacity: 1; }
.mk-audience-card > * { position: relative; z-index: 1; }
.mk-audience-icon {
    width: 56px; height: 56px;
    border-radius: var(--mk-r-md);
    background: var(--mk-grad-hero);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 24px -8px rgba(106, 75, 255, 0.45);
}
.mk-audience-card h3 { margin-bottom: 0.5rem; }

/* ---------- Feature showcase ---------- */
.mk-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    margin: clamp(3rem, 6vw, 5rem) 0;
}
@media (max-width: 900px) {
    .mk-feature { grid-template-columns: 1fr; }
}
.mk-feature.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
    .mk-feature.reverse > :first-child { order: 0; }
}
.mk-feature-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--mk-r-pill);
    background: var(--mk-accent-50);
    color: var(--mk-accent-600);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.mk-feature h3 { margin-bottom: 0.75rem; }
.mk-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.mk-checklist li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2rem;
    color: var(--mk-ink-soft);
    font-size: 0.98rem;
}
.mk-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--mk-accent-50);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300a38d'><path d='M16.7 6.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L9 12.6l6.3-6.3a1 1 0 011.4 0z'/></svg>");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.mk-feature-visual {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-xl);
    padding: 2rem;
    box-shadow: var(--mk-shadow-lg);
    position: relative;
    overflow: hidden;
}
.mk-feature-visual::after {
    content: "";
    position: absolute;
    top: -40%; right: -40%;
    width: 80%; height: 80%;
    background: radial-gradient(closest-side, rgba(106, 75, 255, 0.18), transparent 70%);
    pointer-events: none;
}
.mk-feature-visual > * { position: relative; z-index: 1; }

/* ---------- Feature mini grid ---------- */
.mk-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}
.mk-mini {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    padding: 1.5rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mk-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-md);
    border-color: var(--mk-primary);
}
.mk-mini-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.mk-mini-icon .mk-svg-icon,
.mk-mini-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}
.mk-mini-icon svg[fill="none"] {
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
html[data-theme="dark"] .mk-mini-icon { color: var(--mk-primary); }
.mk-mini h4 { margin-bottom: 0.35rem; }
.mk-mini p { font-size: 0.92rem; color: var(--mk-ink-muted); margin: 0; }

/* ---------- Timeline / how it works ---------- */
.mk-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}
.mk-step {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    counter-increment: step;
}
.mk-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -18px;
    left: 1.5rem;
    background: var(--mk-grad-hero);
    color: #fff;
    font-family: var(--mk-font-display);
    font-weight: 800;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--mk-shadow-md);
    font-size: 0.95rem;
    letter-spacing: 0;
}
.mk-step h4 { margin: 0.35rem 0 0.4rem; }
.mk-step p  { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.mk-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.mk-testimonial {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.mk-testimonial::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 1.5rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--mk-primary);
    opacity: 0.25;
}
.mk-testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: var(--mk-ink-soft);
    line-height: 1.7;
}
.mk-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}
.mk-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--mk-grad-hero);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-family: var(--mk-font-display);
}
.mk-testimonial-name { font-weight: 600; color: var(--mk-ink); font-size: 0.95rem; }
.mk-testimonial-role { color: var(--mk-ink-muted); font-size: 0.85rem; }
.mk-rating { color: var(--mk-gold); letter-spacing: 2px; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.mk-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
}
.mk-price {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.mk-price:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-md);
}
.mk-price.popular {
    border-color: var(--mk-primary);
    box-shadow: var(--mk-shadow-lg);
    transform: scale(1.02);
}
@media (max-width: 720px) {
    .mk-price.popular { transform: none; }
}
.mk-price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mk-grad-hero);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: var(--mk-r-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--mk-shadow-md);
}
.mk-price-name {
    font-family: var(--mk-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mk-price-glyph {
    flex-shrink: 0;
    display: inline-block;
}
.mk-price-glyph--junior {
    width: 0.42rem;
    height: 1.05em;
    border-radius: 3px;
    background: linear-gradient(180deg, #9aa6ff, #6a4bff);
    box-shadow: 0 1px 3px rgba(106, 75, 255, 0.35);
}
.mk-price-glyph--senior {
    width: 0.55em;
    height: 0.55em;
    border-radius: 3px;
    transform: rotate(45deg);
    margin: 0 0.06em;
    background: linear-gradient(135deg, #00c2a8, #ffb020);
    box-shadow: 0 1px 3px rgba(0, 194, 168, 0.35);
}
.mk-price-amount {
    font-family: var(--mk-font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mk-ink);
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0.25rem 0 1rem;
}
.mk-price-amount .per {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mk-ink-muted);
}
.mk-price-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    flex: 1;
}
.mk-price-list li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    color: var(--mk-ink-soft);
    font-size: 0.93rem;
    border-bottom: 1px dashed var(--mk-line);
}
.mk-price-list li:last-child { border-bottom: none; }
.mk-price-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.65rem;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300a38d'><path d='M16.7 6.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L9 12.6l6.3-6.3a1 1 0 011.4 0z'/></svg>");
    background-size: 16px 16px;
    background-repeat: no-repeat;
}
.mk-price-list li.strong {
    color: var(--mk-ink);
    font-weight: 600;
}
.mk-price-cta { width: 100%; justify-content: center; }

/* ---------- Comparison table ---------- */
.mk-compare {
    overflow-x: auto;
    border-radius: var(--mk-r-lg);
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    box-shadow: var(--mk-shadow-sm);
}
.mk-compare table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}
.mk-compare th, .mk-compare td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--mk-line);
    font-size: 0.95rem;
    color: var(--mk-ink-soft);
}
.mk-compare th {
    background: var(--mk-bg-muted);
    color: var(--mk-ink);
    font-family: var(--mk-font-display);
    font-weight: 700;
    font-size: 1rem;
}
.mk-compare th small { display: block; color: var(--mk-ink-muted); font-weight: 500; margin-top: 0.2rem; font-size: 0.78rem; }
.mk-compare td:first-child, .mk-compare th:first-child { text-align: left; }
.mk-compare tbody tr:hover td { background: var(--mk-primary-50); color: var(--mk-ink); }
.mk-compare .col-hl { background: var(--mk-primary-50); color: var(--mk-primary-700); }
html[data-theme="dark"] .mk-compare .col-hl { color: var(--mk-primary); }

/* ---------- CTA banner ---------- */
.mk-cta-banner {
    background: var(--mk-grad-hero);
    color: #fff;
    border-radius: var(--mk-r-xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mk-shadow-xl);
}
.mk-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 30%);
    pointer-events: none;
}
.mk-cta-banner > * { position: relative; z-index: 1; }
/* Must beat `body.mk h2` / `body.mk p` (ink colors) */
body.mk .mk-cta-banner h2 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
body.mk .mk-cta-banner p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
body.mk .mk-cta-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.mk .mk-cta-banner a:hover {
    color: rgba(255, 255, 255, 0.9);
}
/* Beat `body.mk .mk-cta-banner a` (white + underline) for real buttons */
body.mk .mk-cta-banner a.button {
    text-decoration: none;
    background: #fff;
    color: var(--mk-primary-700);
    border-color: #fff;
}
body.mk .mk-cta-banner a.button:hover {
    background: var(--mk-bg-muted);
    color: var(--mk-primary-700);
}
body.mk .mk-cta-banner a.button.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
body.mk .mk-cta-banner a.button.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.mk-cta-banner .button {
    background: #fff;
    color: var(--mk-primary-700);
    border-color: #fff;
}
.mk-cta-banner .button:hover {
    background: var(--mk-bg-muted);
    color: var(--mk-primary-700);
}
.mk-cta-banner .button.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.mk-cta-banner .button.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ---------- FAQ ---------- */
.mk-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.mk-faq details {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.mk-faq details[open] {
    border-color: var(--mk-primary);
    box-shadow: var(--mk-shadow-sm);
}
.mk-faq summary {
    list-style: none;
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--mk-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mk-font-display);
    font-size: 1rem;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
    content: "+";
    margin-left: auto;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--mk-primary);
    transition: transform .25s;
    line-height: 1;
}
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq .mk-faq-body {
    padding: 0 1.35rem 1.25rem;
    color: var(--mk-ink-soft);
    line-height: 1.75;
    font-size: 0.96rem;
}

/* ---------- Trust / logo row ---------- */
.mk-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
    opacity: 0.85;
}
.mk-trust-row .mk-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mk-ink-muted);
    font-weight: 500;
    font-size: 0.92rem;
}

/* ---------- Footer ---------- */
body.mk .footer {
    background: linear-gradient(180deg, var(--mk-bg-muted) 0%, var(--mk-bg) 100%);
    border-top: 1px solid var(--mk-line);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}
body.mk .footer-content {
    max-width: var(--mk-maxw);
    margin: 0 auto;
    padding: 0 var(--mk-pad-x);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}
body.mk .footer-brand {
    font-family: var(--mk-font-display);
    font-weight: 600;
    color: var(--mk-ink-soft);
}
body.mk .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
body.mk .footer-links a {
    color: var(--mk-ink-muted);
    font-size: 0.9rem;
}
body.mk .footer-links a:hover { color: var(--mk-primary); }

/* Rich footer variant */
.mk-footer-rich {
    background: linear-gradient(180deg, var(--mk-bg-muted) 0%, var(--mk-bg) 100%);
    border-top: 1px solid var(--mk-line);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.94rem;
}
.mk-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 780px) {
    .mk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .mk-footer-grid { grid-template-columns: 1fr; }
}
.mk-footer-col h5 {
    font-family: var(--mk-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mk-ink);
    margin: 0 0 1rem;
}
.mk-footer-col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.mk-footer-col a {
    color: var(--mk-ink-muted);
    font-size: 0.92rem;
}
.mk-footer-col a:hover { color: var(--mk-primary); }
.mk-footer-brand-block {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.mk-footer-brand-block img {
    width: 44px; height: 44px; border-radius: 12px;
}
.mk-footer-brand-block strong {
    font-family: var(--mk-font-display);
    font-size: 1.1rem;
    color: var(--mk-ink);
    display: block;
    margin-bottom: 0.15rem;
}
.mk-footer-col p {
    font-size: 0.9rem;
    color: var(--mk-ink-muted);
    line-height: 1.6;
    margin: 0;
}
.mk-footer-legal {
    border-top: 1px solid var(--mk-line);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--mk-ink-muted);
    font-size: 0.85rem;
}

/* ---------- Auth pages (login, register, verify_email) ---------- */
body.mk main.page {
    min-height: calc(100vh - 160px);
    padding: 2rem 0 4rem;
}
body.mk .auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--mk-pad-x);
    min-height: 70vh;
    position: relative;
}
body.mk .auth-container::before {
    content: "";
    position: absolute;
    top: 10%; left: 50%;
    width: 80vw; max-width: 900px;
    height: 600px;
    background: radial-gradient(closest-side, rgba(106, 75, 255, 0.18), transparent 70%);
    transform: translateX(-50%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
body.mk .auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-xl);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--mk-shadow-lg);
}
body.mk .auth-card.wide { max-width: 640px; }
body.mk .auth-header { text-align: center; margin-bottom: 1.5rem; }
body.mk .auth-header h1 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    margin-bottom: 0.35rem;
}
body.mk .auth-subtitle { color: var(--mk-ink-muted); font-size: 0.95rem; margin: 0; }
body.mk .auth-form .form-group { margin-bottom: 1.1rem; }
body.mk .auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--mk-ink);
    margin-bottom: 0.5rem;
}
body.mk .auth-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-r-sm);
    background: var(--mk-bg);
    transition: border-color .2s, box-shadow .2s;
}
body.mk .auth-form .input-wrapper:focus-within {
    border-color: var(--mk-primary);
    box-shadow: 0 0 0 4px rgba(106, 75, 255, 0.14);
}
/* Override styles.css .input-icon { position:absolute } — must be in-flow for flex row */
body.mk .auth-form .input-icon {
    position: static;
    left: auto;
    top: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.9rem;
    padding-right: 0.25rem;
    color: var(--mk-ink-muted);
    font-size: 1rem;
    line-height: 1;
    opacity: 1;
    pointer-events: none;
}
/* Inline SVG icons (no emoji / no icon fonts) — login & register */
body.mk .mk-svg-icon {
    width: 1.15em;
    height: 1.15em;
    display: block;
    flex-shrink: 0;
}
body.mk #theme-trigger-icon .mk-svg-icon,
body.mk .theme-toggle-btn .mk-svg-icon {
    width: 1.28em;
    height: 1.28em;
}
body.mk .auth-form .toggle-password .mk-svg-toggle {
    width: 1.22em;
    height: 1.22em;
}
body.mk .role-icon .mk-svg-icon {
    width: 2rem;
    height: 2rem;
    opacity: 0.92;
}
body.mk .logo-upload-placeholder .mk-svg-icon {
    width: 2.35rem;
    height: 2.35rem;
    opacity: 0.4;
}
body.mk .center-fields-header h3,
body.mk .crop-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
body.mk .center-fields-header h3 .mk-svg-icon,
body.mk .crop-modal-header h3 .mk-svg-icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    opacity: 0.88;
}
body.mk .btn-upload-logo .mk-svg-icon {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    vertical-align: -0.15em;
    margin-right: 0.35rem;
}
/* Reset .auth-form input { width:100% } from styles.css so flex row keeps icon left of field */
body.mk .auth-form input[type="text"],
body.mk .auth-form input[type="email"],
body.mk .auth-form input[type="password"],
body.mk .auth-form input[type="tel"],
body.mk .auth-form select {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0.85rem 0.9rem;
    border: none;
    background: transparent;
    color: var(--mk-ink);
    font-size: 1rem;
    font-family: var(--mk-font);
    outline: none;
}
body.mk .auth-form input::placeholder { color: var(--mk-ink-muted); }
body.mk .auth-form .toggle-password {
    position: static;
    flex-shrink: 0;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--mk-ink-muted);
    font-size: 1.1rem;
    opacity: 1;
}
body.mk .auth-form .toggle-password:hover { color: var(--mk-primary); }
body.mk .auth-form .btn-submit {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: var(--mk-grad-hero);
    color: #fff;
    border: none;
    border-radius: var(--mk-r-pill);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 10px 24px -8px rgba(106, 75, 255, 0.55);
    font-family: var(--mk-font);
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}
body.mk .auth-form .btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -8px rgba(106, 75, 255, 0.65);
}
body.mk .auth-form .btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: saturate(0.7);
}
body.mk .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mk-line);
    color: var(--mk-ink-muted);
    font-size: 0.93rem;
}
body.mk .auth-footer a {
    font-weight: 600;
}

body.mk .recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 0.25rem;
}

body.mk .alert {
    padding: 0.85rem 1rem;
    border-radius: var(--mk-r-sm);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    border: 1px solid;
    line-height: 1.5;
}
body.mk .alert.success {
    background: var(--mk-accent-50);
    border-color: var(--mk-accent);
    color: var(--mk-accent-600);
}
body.mk .alert.error {
    background: rgba(255, 95, 143, 0.1);
    border-color: var(--mk-rose);
    color: #d13a68;
}
html[data-theme="dark"] body.mk .alert.error {
    color: var(--mk-rose);
}
body.mk .alert.warning {
    background: rgba(245, 179, 1, 0.12);
    border-color: var(--mk-gold);
    color: #a37900;
}
body.mk .alert.info {
    background: rgba(58, 161, 255, 0.12);
    border-color: var(--mk-sky);
    color: #2a7fd5;
}

/* Register split layout */
.mk-register-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--mk-r-xl);
    overflow: hidden;
    box-shadow: var(--mk-shadow-lg);
    background: var(--mk-bg-soft);
    max-width: 1040px;
    margin: 0 auto;
}
@media (max-width: 880px) { .mk-register-split { grid-template-columns: 1fr; } }
.mk-register-hero {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--mk-grad-hero);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.mk-register-hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -30%;
    width: 80%; height: 80%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}
.mk-register-hero > * { position: relative; z-index: 1; }
.mk-register-hero h2 { color: #fff; margin-bottom: 0.75rem; }
.mk-register-hero p { color: rgba(255, 255, 255, 0.92); }
.mk-register-hero ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.65rem; }
.mk-register-hero ul li {
    padding-left: 1.75rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}
.mk-register-hero ul li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    top: 2px;
}
.mk-register-form-wrap {
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---------- Reveal animations ---------- */
.mk-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
}
.mk-reveal.revealed { opacity: 1; transform: translateY(0); }
.mk-reveal.delay-1 { transition-delay: .08s; }
.mk-reveal.delay-2 { transition-delay: .16s; }
.mk-reveal.delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .mk-reveal, .mk-hero-badge { animation: none !important; transition: none !important; }
    .mk-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
    body.mk .brand { margin-right: auto; }
    body.mk .hamburger { display: flex; }
    body.mk .nav-primary {
        flex: none;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--mk-bg-soft);
        border-top: 1px solid var(--mk-line);
        padding: 1.25rem var(--mk-pad-x);
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
        box-shadow: var(--mk-shadow-lg);
    }
    body.mk .nav-primary.open {
        opacity: 1; transform: translateY(0); visibility: visible;
    }
    body.mk .nav-primary ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
    }
    body.mk .nav-primary .nav-link {
        padding: 0.85rem 1rem;
        border-radius: var(--mk-r-sm);
        white-space: normal;
        justify-content: flex-start;
    }
    body.mk .nav-actions {
        margin-left: 0;
    }
    body.mk .nav-primary .nav-link.nav-cta {
        background: var(--mk-primary);
        color: #fff;
        margin-top: 0.35rem;
        text-align: center;
        justify-content: center;
    }
    body.mk .nav-actions .controls-group {
        padding-left: 0;
        border-left: none;
    }
}

/* Expand/collapse details for center plans (keeps existing classes working) */
body.mk .has-details { display: block; }
body.mk .expand-details-btn {
    background: transparent;
    border: none;
    color: var(--mk-primary);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0;
    margin-top: 0.2rem;
    font-family: var(--mk-font);
}
body.mk .expand-details-btn:hover { text-decoration: underline; }
body.mk .plan-sub-details {
    margin: 0.5rem 0 0 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--mk-line);
    list-style: none;
    font-size: 0.87rem;
    color: var(--mk-ink-muted);
}
body.mk .plan-sub-details li {
    padding: 0.2rem 0;
    border-bottom: none;
}
body.mk .plan-sub-details li::before { content: "•"; position: static; margin-right: 0.5rem; background: none; }

/* Ensure long hero content doesn't overflow on tiny screens */
@media (max-width: 420px) {
    .mk-hero { padding-top: 2rem; }
    .mk-hero-ctas .button { width: 100%; justify-content: center; }
    .mk-hero-trust { gap: 0.75rem; font-size: 0.85rem; }
    body.mk .brand-name { display: none; }
}

/* ===================================================================
 * LEGACY PRICING COMPATIBILITY
 * Keeps subscribe.html's functional HTML (IDs/classes) but restyles it.
 * ================================================================= */
body.mk .pricing-section {
    max-width: var(--mk-maxw);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) var(--mk-pad-x);
}
body.mk .pricing-section h2 {
    text-align: center;
    margin-bottom: 0.6rem;
}
body.mk .pricing-section .subtitle,
body.mk .pricing-section p.subtitle {
    text-align: center;
    color: var(--mk-ink-soft);
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
    max-width: 720px;
    margin: 0 auto 2rem;
}

body.mk .promo-code-box {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--mk-shadow-sm);
}
body.mk .promo-code-box label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--mk-ink);
}
body.mk .promo-code-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
body.mk .promo-code-row input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-r-sm);
    font-size: 0.95rem;
    background: var(--mk-bg);
    color: var(--mk-ink);
    letter-spacing: 0.5px;
    transition: border-color .2s, box-shadow .2s;
}
body.mk .promo-code-row input:focus {
    outline: none;
    border-color: var(--mk-primary);
    box-shadow: 0 0 0 4px rgba(106,75,255,.14);
}
body.mk .promo-code-row .button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.7rem 1.35rem;
}
body.mk .button.secondary {
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    border-color: transparent;
}
html[data-theme="dark"] body.mk .button.secondary { color: var(--mk-primary); }
body.mk .button.secondary:hover {
    background: var(--mk-primary);
    color: #fff;
    border-color: var(--mk-primary);
}
body.mk #promo-result {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    min-height: 1.2em;
}
body.mk #promo-result.success { color: var(--mk-accent-600); }
body.mk #promo-result.error   { color: #d13a68; }

body.mk .security-banner {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1rem 1.25rem;
    border-radius: var(--mk-r-md);
    background: linear-gradient(135deg, rgba(106,75,255,.06), rgba(0,194,168,.06));
    border: 1px dashed var(--mk-primary);
    color: var(--mk-ink-soft);
    font-size: 0.93rem;
    line-height: 1.65;
}
body.mk .security-banner strong { color: var(--mk-ink); }

body.mk .pricing-grid,
body.mk .pricing-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1040px;
    margin: 0 auto;
}
body.mk .pricing-card {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    padding: 2rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
body.mk .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-md);
}
body.mk .pricing-card.popular {
    border-color: var(--mk-primary);
    box-shadow: var(--mk-shadow-lg);
}
body.mk .pricing-card.current-plan {
    border-color: var(--mk-accent);
    box-shadow: 0 0 0 3px var(--mk-accent-50);
}
body.mk .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mk-grad-hero);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: var(--mk-r-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--mk-shadow-md);
}
body.mk .plan-name {
    font-family: var(--mk-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mk-ink);
    margin: 0 0 0.25rem;
}
body.mk .plan-price {
    font-family: var(--mk-font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mk-ink);
    letter-spacing: -0.02em;
    margin: 0.2rem 0 1rem;
    line-height: 1.1;
}
body.mk .plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mk-ink-muted);
}
body.mk .plan-price .original-price {
    text-decoration: line-through;
    color: var(--mk-ink-muted);
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 0.3rem;
}
body.mk .plan-price .discounted-price {
    color: var(--mk-accent-600);
    font-weight: 800;
}
html[data-theme="dark"] body.mk .plan-price .discounted-price { color: var(--mk-accent); }
body.mk .plan-price .discount-badge {
    display: inline-block;
    background: var(--mk-accent-50);
    color: var(--mk-accent-600);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--mk-r-pill);
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.04em;
}
body.mk .plan-divider {
    height: 1px;
    background: var(--mk-line);
    margin: 0 0 1rem;
}
body.mk .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
body.mk .plan-features li {
    padding: 0.45rem 0 0.45rem 1.85rem;
    position: relative;
    color: var(--mk-ink-soft);
    font-size: 0.93rem;
    border-bottom: 1px dashed var(--mk-line);
}
body.mk .plan-features li:last-child { border-bottom: none; }
body.mk .plan-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.7rem;
    width: 18px; height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300a38d'><path d='M16.7 6.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L9 12.6l6.3-6.3a1 1 0 011.4 0z'/></svg>");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}
body.mk .plan-features li.highlight {
    color: var(--mk-ink);
    font-weight: 600;
}
body.mk .plan-features li.has-details { padding-left: 1.85rem; }
body.mk .plan-features li.has-details > span { display: block; }
body.mk .plan-cta {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
}
body.mk .btn-current {
    background: var(--mk-accent) !important;
    color: #002f29 !important;
    border-color: var(--mk-accent) !important;
}
body.mk .hint {
    text-align: center;
    color: var(--mk-ink-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}
body.mk .user-greeting {
    color: var(--mk-ink-soft);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.35rem 0.75rem;
    background: var(--mk-primary-50);
    border-radius: var(--mk-r-pill);
}
html[data-theme="dark"] body.mk .user-greeting { color: var(--mk-primary); }

/* ===================================================================
 * REGISTER PAGE — Role selection + form
 * ================================================================= */
body.mk .auth-card.auth-card-wide,
body.mk .auth-card-wide { max-width: 920px; }

body.mk .register-step { animation: mk-fade-in .35s ease both; }
@keyframes mk-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

body.mk .step-title {
    text-align: center;
    font-family: var(--mk-font-display);
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
    margin: 0 0 0.35rem;
}
body.mk .step-subtitle {
    text-align: center;
    color: var(--mk-ink-muted);
    margin-bottom: 2rem;
}

body.mk .role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}
body.mk .role-card {
    background: var(--mk-bg);
    border: 2px solid var(--mk-line-strong);
    border-radius: var(--mk-r-lg);
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
body.mk .role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-md);
    border-color: var(--mk-primary);
}
body.mk .role-icon {
    font-size: 2.4rem;
    width: 64px; height: 64px;
    border-radius: var(--mk-r-md);
    background: var(--mk-grad-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 1rem;
}
body.mk .role-title {
    font-family: var(--mk-font-display);
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    color: var(--mk-ink);
    text-align: center;
}
body.mk .role-desc {
    color: var(--mk-ink-soft);
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0 0 0.85rem;
    text-align: center;
}
body.mk .role-divider {
    height: 1px;
    background: var(--mk-line);
    margin: 0.5rem 0 0.85rem;
}
body.mk .role-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}
body.mk .role-features li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    font-size: 0.88rem;
    color: var(--mk-ink-soft);
}
body.mk .role-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mk-accent-600);
    font-weight: 700;
}
body.mk .role-features li.highlight {
    color: var(--mk-ink);
    font-weight: 600;
}
body.mk .role-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.75rem 0;
    border-top: 1px dashed var(--mk-line);
    border-bottom: 1px dashed var(--mk-line);
    margin-bottom: 0.85rem;
}
body.mk .role-price-from {
    font-size: 0.75rem;
    color: var(--mk-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
body.mk .role-price-amount {
    font-family: var(--mk-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--mk-ink);
    letter-spacing: -0.02em;
}
body.mk .role-price-period {
    color: var(--mk-ink-muted);
    font-size: 0.88rem;
}
body.mk .role-ideal {
    font-size: 0.82rem;
    color: var(--mk-ink-muted);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

body.mk .back-btn {
    background: transparent;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-pill);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--mk-ink-soft);
    font-family: var(--mk-font);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: background .2s, color .2s, border-color .2s;
}
body.mk .back-btn:hover {
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    border-color: var(--mk-primary);
}

body.mk .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) {
    body.mk .form-row { grid-template-columns: 1fr; }
}

body.mk .form-divider {
    height: 1px;
    background: var(--mk-line);
    margin: 1.75rem 0 1rem;
}

body.mk #center-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}
body.mk .center-fields-header {
    margin: 0.5rem 0 0.85rem;
}
body.mk .center-fields-header h3 {
    font-family: var(--mk-font-display);
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
    color: var(--mk-ink);
}
body.mk .hint-text {
    color: var(--mk-ink-muted);
    font-size: 0.85rem;
    margin: 0;
}
body.mk .required { color: var(--mk-rose); margin-left: 0.2rem; }
body.mk .hint-label {
    color: var(--mk-ink-muted);
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 0.3rem;
}
body.mk .input-hint {
    font-size: 0.78rem;
    color: var(--mk-ink-muted);
    margin: 0.3rem 0 0;
}

body.mk .logo-upload-area {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 2px dashed var(--mk-line-strong);
    border-radius: var(--mk-r-md);
    background: var(--mk-bg);
}
body.mk .logo-upload-preview {
    width: 84px; height: 84px;
    border-radius: var(--mk-r-sm);
    background: var(--mk-bg-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--mk-line);
}
body.mk .logo-upload-preview.has-image { background: transparent; }
body.mk .logo-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
body.mk .logo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
body.mk .btn-upload-logo, body.mk .btn-remove-logo {
    padding: 0.5rem 0.85rem;
    border-radius: var(--mk-r-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--mk-line-strong);
    background: var(--mk-bg-soft);
    color: var(--mk-ink);
    transition: background .2s, border-color .2s;
    font-family: var(--mk-font);
    align-self: flex-start;
}
body.mk .btn-upload-logo:hover { background: var(--mk-primary); color: #fff; border-color: var(--mk-primary); }
body.mk .btn-remove-logo:hover { background: var(--mk-rose); color: #fff; border-color: var(--mk-rose); }
body.mk .logo-upload-hint {
    font-size: 0.76rem;
    color: var(--mk-ink-muted);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

body.mk .legal-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    padding: 1rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
}
body.mk .legal-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.87rem;
    color: var(--mk-ink-soft);
    line-height: 1.5;
    cursor: pointer;
}
body.mk .legal-check input[type="checkbox"] {
    margin: 0.15rem 0 0;
    accent-color: var(--mk-primary);
    width: 16px; height: 16px;
    flex-shrink: 0;
}
body.mk .legal-check a {
    color: var(--mk-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.mk .password-strength {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-height: 1em;
}
body.mk .password-strength.weak   { color: #d13a68; }
body.mk .password-strength.medium { color: var(--mk-gold); }
body.mk .password-strength.strong { color: var(--mk-accent-600); }

/* Crop modal */
body.mk .crop-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(13, 11, 26, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
body.mk .crop-modal {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    max-width: 560px;
    width: 100%;
    box-shadow: var(--mk-shadow-xl);
    overflow: hidden;
}
body.mk .crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--mk-bg-muted);
    border-bottom: 1px solid var(--mk-line);
}
body.mk .crop-modal-header h3 {
    margin: 0;
    font-family: var(--mk-font-display);
    font-size: 1.05rem;
    color: var(--mk-ink);
}
body.mk .crop-modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--mk-ink-muted);
    line-height: 1;
}
body.mk .crop-modal-close:hover { color: var(--mk-ink); }
body.mk .crop-modal-body { padding: 1.25rem; }
body.mk .crop-container { display: flex; flex-direction: column; gap: 0.75rem; }
body.mk .crop-image-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--mk-r-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    max-height: 400px;
}
body.mk .crop-image-wrapper img { max-width: 100%; max-height: 400px; display: block; user-select: none; }
body.mk .crop-selection {
    position: absolute;
    border: 2px solid var(--mk-accent);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.55);
    cursor: move;
    box-sizing: border-box;
}
body.mk .crop-selection::after {
    content: "";
    position: absolute;
    right: -6px; bottom: -6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--mk-accent);
    cursor: nwse-resize;
    border: 2px solid #fff;
}
body.mk .crop-hint {
    text-align: center;
    color: var(--mk-ink-muted);
    font-size: 0.82rem;
    margin: 0;
}
body.mk .crop-modal-footer {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--mk-line);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: var(--mk-bg);
}
body.mk .btn-crop-cancel,
body.mk .btn-crop-apply {
    padding: 0.6rem 1.2rem;
    border-radius: var(--mk-r-pill);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--mk-font);
    font-size: 0.9rem;
    transition: background .2s, transform .15s;
}
body.mk .btn-crop-cancel {
    background: var(--mk-bg-muted);
    border-color: var(--mk-line-strong);
    color: var(--mk-ink-soft);
}
body.mk .btn-crop-cancel:hover { background: var(--mk-bg); }
body.mk .btn-crop-apply {
    background: var(--mk-grad-hero);
    color: #fff;
}
body.mk .btn-crop-apply:hover { transform: translateY(-1px); box-shadow: var(--mk-shadow-md); }

/* ===================================================================
 * CENTER EXPIRED PAGE
 * ================================================================= */
body.mk .center-expired-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--mk-pad-x);
    background: var(--mk-bg);
    position: relative;
    overflow: hidden;
}
body.mk .center-expired-wrapper::before {
    content: "";
    position: absolute;
    top: 10%; left: 50%;
    width: 80vw; max-width: 900px;
    height: 500px;
    background: radial-gradient(closest-side, rgba(245, 179, 1, 0.2), transparent 70%);
    transform: translateX(-50%);
    filter: blur(30px);
    pointer-events: none;
}
body.mk .center-expired-card {
    position: relative;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-xl);
    padding: clamp(2rem, 5vw, 3rem);
    max-width: 540px;
    width: 100%;
    text-align: center;
    box-shadow: var(--mk-shadow-xl);
}
body.mk .center-expired-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse-expired 2s infinite;
}
@keyframes pulse-expired {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
body.mk .center-expired-title {
    font-family: var(--mk-font-display);
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
    margin-bottom: 0.5rem;
    color: var(--mk-ink);
}
body.mk .center-expired-lead {
    color: var(--mk-ink-soft);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
body.mk .center-expired-info {
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
body.mk .center-expired-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}
body.mk .center-expired-info-row + .center-expired-info-row {
    border-top: 1px solid var(--mk-line);
}
body.mk .center-expired-info-label {
    color: var(--mk-ink-muted);
    font-size: 0.9rem;
}
body.mk .center-expired-info-value {
    font-weight: 600;
    color: var(--mk-ink);
}
body.mk .center-expired-message {
    background: rgba(245, 179, 1, 0.12);
    border: 1px solid rgba(245, 179, 1, 0.35);
    border-radius: var(--mk-r-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
    color: var(--mk-ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}
body.mk .center-expired-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
body.mk .center-expired-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--mk-ink-muted);
}
@media (max-width: 520px) {
    body.mk .center-expired-actions { flex-direction: column; }
    body.mk .center-expired-actions .button { width: 100%; }
}

/* ===================================================================
 * VERIFY EMAIL PAGE
 * ================================================================= */
body.mk #countdown {
    font-weight: 700;
    color: var(--mk-primary);
    font-size: 1.1em;
}

/* ===================================================================
 * BLOG — index + article pages
 * ================================================================= */

/* Blog index grid */
.blog-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: "";
    position: absolute;
    top: -20%; left: 50%;
    width: 80vw; max-width: 1200px;
    height: 700px;
    background: radial-gradient(closest-side, rgba(106,75,255,.18), transparent 70%);
    transform: translateX(-50%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
.blog-hero .mk-wrap { position: relative; z-index: 1; text-align: center; }
.blog-hero h1 {
    background: var(--mk-grad-hero);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 0.75rem;
}

.blog-filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
    margin: 2rem 0 0;
}
.blog-filter-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--mk-r-pill);
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    color: var(--mk-ink-soft);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    font-family: var(--mk-font);
}
.blog-filter-btn:hover, .blog-filter-btn.active {
    background: var(--mk-primary);
    color: #fff;
    border-color: var(--mk-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.blog-card {
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mk-shadow-lg);
    border-color: var(--mk-primary);
}
.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--mk-grad-soft);
    position: relative;
}
.blog-card-image img, .blog-card-image svg {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--mk-ink-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.blog-card-category {
    color: var(--mk-primary-700);
    background: var(--mk-primary-50);
    padding: 0.15rem 0.65rem;
    border-radius: var(--mk-r-pill);
    font-weight: 700;
}
html[data-theme="dark"] .blog-card-category { color: var(--mk-primary); }
.blog-card h2, .blog-card h3 {
    font-family: var(--mk-font-display);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.6rem;
    color: var(--mk-ink);
}
.blog-card p {
    color: var(--mk-ink-soft);
    font-size: 0.94rem;
    margin: 0 0 1.25rem;
    line-height: 1.6;
    flex: 1;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
    color: var(--mk-ink-muted);
    border-top: 1px solid var(--mk-line);
    padding-top: 0.9rem;
}
.blog-card-read-more {
    color: var(--mk-primary);
    font-weight: 600;
}

/* Featured card (first article) */
.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--mk-shadow-md);
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .3s, border-color .3s;
}
.blog-featured:hover {
    box-shadow: var(--mk-shadow-lg);
    border-color: var(--mk-primary);
}
.blog-featured .blog-card-image { aspect-ratio: auto; min-height: 100%; }
.blog-featured .blog-card-body { padding: 2.5rem; justify-content: center; }
.blog-featured h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
    margin-bottom: 1rem;
}
.blog-featured p { font-size: 1rem; }
@media (max-width: 820px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .blog-card-image { min-height: 260px; }
}

/* Article page */
.article-hero {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 2rem);
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: "";
    position: absolute;
    top: -20%; right: -10%;
    width: 50vw; max-width: 700px;
    height: 600px;
    background: radial-gradient(closest-side, rgba(106,75,255,.14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
.article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}
.article-breadcrumb {
    font-size: 0.85rem;
    color: var(--mk-ink-muted);
    margin-bottom: 1rem;
}
.article-breadcrumb a { color: var(--mk-ink-soft); }
.article-breadcrumb a:hover { color: var(--mk-primary); }
.article-breadcrumb span[aria-hidden] { margin: 0 0.4rem; color: var(--mk-ink-muted); }

.article-hero h1 {
    font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--mk-ink-muted);
    font-size: 0.92rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--mk-line);
    border-bottom: 1px solid var(--mk-line);
    margin: 1rem 0 1.5rem;
}
.article-meta .category {
    display: inline-flex;
    padding: 0.2rem 0.75rem;
    background: var(--mk-primary-50);
    color: var(--mk-primary-700);
    border-radius: var(--mk-r-pill);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
html[data-theme="dark"] .article-meta .category { color: var(--mk-primary); }
.article-meta .dot { opacity: 0.4; }

.article-cover {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    border-radius: var(--mk-r-xl);
    overflow: hidden;
    box-shadow: var(--mk-shadow-lg);
    aspect-ratio: 16/9;
    position: relative;
}
.article-cover img, .article-cover svg {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--mk-pad-x);
}
@media (max-width: 880px) {
    .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .article-toc-wrap { display: none; }
}

.article-toc-wrap {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.article-toc {
    padding: 1.25rem;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-md);
    font-size: 0.88rem;
}
.article-toc h4 {
    font-family: var(--mk-font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mk-ink-muted);
    margin: 0 0 0.85rem;
}
.article-toc ol {
    list-style: none; padding: 0; margin: 0;
    counter-reset: toc;
}
.article-toc li {
    counter-increment: toc;
    border-left: 2px solid var(--mk-line);
    transition: border-color .2s;
}
.article-toc li.active { border-left-color: var(--mk-primary); }
.article-toc li a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.75rem;
    color: var(--mk-ink-soft);
    font-size: 0.88rem;
    transition: color .2s;
    line-height: 1.4;
}
.article-toc li a:hover, .article-toc li.active a {
    color: var(--mk-primary);
}

.article-body {
    max-width: 760px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--mk-ink-soft);
}
.article-body h2 {
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 90px;
    color: var(--mk-ink);
}
.article-body h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
    margin: 1.75rem 0 0.65rem;
    scroll-margin-top: 90px;
    color: var(--mk-ink);
}
.article-body p { margin: 0 0 1.25em; }
.article-body ul, .article-body ol {
    padding-left: 1.5rem;
    margin: 0 0 1.5em;
}
.article-body ul li, .article-body ol li {
    margin-bottom: 0.6em;
}
.article-body ul li::marker { color: var(--mk-primary); }
.article-body a {
    color: var(--mk-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(106,75,255,.35);
}
.article-body a:hover {
    text-decoration-color: var(--mk-primary);
}
.article-body strong { color: var(--mk-ink); }
.article-body blockquote {
    border-left: 4px solid var(--mk-primary);
    padding: 0.85rem 1.35rem;
    margin: 1.5rem 0;
    background: var(--mk-primary-50);
    border-radius: 0 var(--mk-r-sm) var(--mk-r-sm) 0;
    color: var(--mk-ink);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.65;
}
html[data-theme="dark"] .article-body blockquote { background: rgba(138,114,255,.1); }
.article-body code {
    background: var(--mk-bg-muted);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: "SF Mono", Menlo, Consolas, monospace;
}
.article-body .callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--mk-r-md);
    margin: 1.5rem 0;
    background: var(--mk-accent-50);
    border: 1px solid var(--mk-accent);
    color: var(--mk-ink);
    font-size: 0.98rem;
    line-height: 1.65;
}
.article-body .callout.warn {
    background: rgba(245, 179, 1, .12);
    border-color: var(--mk-gold);
}
.article-body .callout.info {
    background: rgba(58, 161, 255, .12);
    border-color: var(--mk-sky);
}
.article-body .callout-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.article-body .callout strong { display: block; margin-bottom: 0.2rem; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.94rem;
    background: var(--mk-bg-soft);
    border-radius: var(--mk-r-md);
    overflow: hidden;
    border: 1px solid var(--mk-line);
}
.article-body th, .article-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--mk-line);
}
.article-body th {
    background: var(--mk-bg-muted);
    font-family: var(--mk-font-display);
    font-weight: 700;
    color: var(--mk-ink);
}
.article-body tbody tr:hover td { background: var(--mk-primary-50); }

/* Share & tag bar */
.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--mk-line);
    border-bottom: 1px solid var(--mk-line);
    margin: 3rem 0 2rem;
}
.article-share .share-label {
    font-weight: 600;
    color: var(--mk-ink);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
.article-share a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--mk-r-pill);
    background: var(--mk-bg-muted);
    color: var(--mk-ink-soft);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.article-share a:hover {
    background: var(--mk-primary);
    color: #fff;
}

/* Author bio */
.article-author {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--mk-bg-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-r-lg);
    margin: 2rem 0;
    align-items: center;
}
.article-author-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--mk-grad-hero);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mk-font-display);
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.article-author-info strong {
    color: var(--mk-ink);
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--mk-font-display);
}
.article-author-info span {
    color: var(--mk-ink-muted);
    font-size: 0.88rem;
}

/* Related articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mk-line);
}
.related-articles h3 {
    font-family: var(--mk-font-display);
    margin-bottom: 1.5rem;
    color: var(--mk-ink);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Inline CTA inside articles */
.inline-cta {
    display: block;
    padding: 2rem;
    margin: 2rem 0;
    background: var(--mk-grad-hero);
    color: #fff;
    border-radius: var(--mk-r-lg);
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mk-shadow-md);
    transition: transform .25s, box-shadow .25s;
}
.inline-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--mk-shadow-lg);
    color: #fff;
}
.inline-cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%);
    pointer-events: none;
}
.inline-cta strong {
    display: block;
    font-family: var(--mk-font-display);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.inline-cta span { opacity: 0.92; font-size: 0.95rem; }
.inline-cta em {
    display: inline-block;
    margin-top: 0.85rem;
    background: #fff;
    color: var(--mk-primary-700);
    padding: 0.45rem 1.1rem;
    border-radius: var(--mk-r-pill);
    font-style: normal;
    font-weight: 700;
    font-size: 0.88rem;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--mk-grad-hero);
    z-index: 200;
    transition: width .05s linear;
}
