/* public/css/pages/media-kit.css */

:root {
    /* Media Kit page-specific layout variables */
    --mk-font-display: 'Space Grotesk', system-ui, sans-serif;
    --owner-bar-height-desktop: 50px;
    --owner-bar-height-mobile: 100px;
}

body.mk-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    min-height: 100vh;
    /* Smooth transition for when JS adds padding */
    transition: padding-top 0.3s ease; 
}

/* --- OWNER LAYOUT LOGIC (Hellobar Overlap Fix) --- */
/* 
   We use !important to override the inline style set by hellobar.js on the body tag.
   We combine the owner bar height with the dynamic header offset from hellobars.
*/
body.mk-body.is-owner {
    padding-top: calc(var(--owner-bar-height-desktop) + var(--header-offset, 0px)) !important;
}

/* 
   GAP FIX: Banner respects the global header offset (Hellobar).
   If Owner Bar is present, push banner down by owner bar height + hellobar offset.
*/
.mk-background-layer {
    position: absolute;
    top: var(--header-offset, 0px); /* Dynamic Top */
    left: 0;
    width: 100%;
    height: 340px; 
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--color-primary);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    transition: top 0.3s ease;
}

/* Pushes banner down when owner bar is present so it doesn't get covered */
body.mk-body.is-owner .mk-background-layer {
    top: calc(var(--header-offset, 0px) + var(--owner-bar-height-desktop)) !important;
}

@media (max-width: 900px) {
    body.mk-body.is-owner {
        padding-top: calc(var(--owner-bar-height-mobile) + var(--header-offset, 0px)) !important;
    }
    body.mk-body.is-owner .mk-background-layer {
        top: calc(var(--header-offset, 0px) + var(--owner-bar-height-mobile)) !important;
    }
}

/* --- Layout --- */
.mk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 20px 40px; 
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* --- Sidebar --- */
.mk-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    overflow: visible; 
}

.mk-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 32px; /* Increased padding for breathing room */
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Identity Card */
.mk-identity-card {
    text-align: center;
    position: relative;
    padding-top: 32px; 
    overflow: visible;
}

.mk-avatar {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    background-color: var(--color-white);
    margin-top: -92px; /* Adjusted for new padding */
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.mk-name {
    font-family: var(--mk-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--color-gray-900);
    line-height: 1.2;
}

/* Handle Display */
.mk-handle-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 100%;
}
.mk-handle-box:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
}
.mk-handle-text {
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-handle-icon {
    color: var(--color-brand-red);
    font-size: 1rem;
    flex-shrink: 0;
}

.mk-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-info-light);
    color: var(--color-info-dark);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.mk-bio-short {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-500);
    margin-bottom: 24px;
    text-align: center;
}

.mk-inline-toggle {
    color: var(--color-gray-400);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    background: none; 
    border: none; 
    padding: 0; 
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}
.mk-inline-toggle:hover { color: var(--color-primary); text-decoration: none; }

.mk-hidden-content { display: none; }

/* Buttons */
.mk-btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.05rem; /* Slightly larger text */
    line-height: 1.3;
}
.mk-btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.mk-btn-primary:hover {
    transform: translateY(-1px);
    background: var(--color-primary-dark);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

/* NEW: Action Button for Campaign Start */
.mk-btn-action {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.mk-btn-action:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

/* --- Fixed "Powered By" Badge --- */
.mk-powered-by-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-gray-400);
    z-index: 90;
    background: rgba(255,255,255,0.8);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.05);
    transition: opacity 0.3s;
    text-decoration: none; /* Added to remove link underline */
}
.mk-powered-by-fixed:hover {
    opacity: 1;
    background: white;
    color: var(--color-gray-500); /* Slightly darker text on hover */
}
.mk-powered-logo { height: 16px; opacity: 0.7; }

/* Mobile Adjustment for Powered By */
@media (max-width: 900px) {
    .mk-powered-by-fixed {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        margin-top: 40px;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
}

/* --- Right Column --- */
.mk-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Hero Video */
.mk-hero-video {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-lg);
    background: var(--color-black);
}
.mk-hero-iframe { width: 100%; height: 100%; border: none; }

/* Video Poster (click-to-play — replaces auto-loading iframe) */
.mk-video-poster {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #111;
    overflow: hidden;
}
.mk-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.mk-video-poster:hover .mk-poster-img {
    transform: scale(1.03);
}
.mk-video-poster .mk-play-icon {
    position: absolute;
    inset: unset; /* override the grid thumbnail's inset:0 rule — must come BEFORE top/left */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}
.mk-video-poster:hover .mk-play-icon {
    background: rgba(79, 70, 229, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}
.mk-video-poster .mk-play-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px; /* optical centering for the play triangle */
}

/* Fallback when ALL YouTube thumbnail tiers 404 (common with Shorts) */
.mk-video-poster.mk-thumb-fallback {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}
.mk-video-poster.mk-thumb-fallback .mk-play-icon {
    width: 80px;
    height: 80px;
    background: rgba(79, 70, 229, 0.85);
}
.mk-video-poster.mk-thumb-fallback .mk-play-icon svg {
    width: 38px;
    height: 38px;
}

/*
   VIDEO EDIT OVERLAY
*/
.mk-video-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.mk-hero-video:hover .mk-video-edit-overlay {
    opacity: 1;
}

.mk-video-edit-btn-center {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mk-hero-video:hover .mk-video-edit-btn-center {
    transform: translateY(0);
}

.mk-video-edit-btn-center:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05) translateY(0);
}

@media (hover: none) {
    .mk-video-edit-overlay {
        opacity: 1;
        background: transparent;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 12px;
        backdrop-filter: none;
        pointer-events: none; 
    }
    
    .mk-video-edit-btn-center {
        pointer-events: auto; 
        padding: 8px 12px;
        font-size: 0.8rem;
        transform: none;
        background: rgba(79, 70, 229, 0.9);
        border: 1px solid rgba(255,255,255,0.2);
    }
}

/* Header Actions */
.mk-header-actions {
    display: flex; justify-content: flex-end; margin-bottom: 0;
}
.mk-btn-share {
    background: rgba(255, 255, 255, 0.9); 
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    padding: 8px 16px; 
    font-weight: 600; 
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; 
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.mk-btn-share:hover {
    background: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Label above platform-wide stats to distinguish from creator stats */
.mk-proof-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-400);
    text-align: center;
    margin: 8px 0 8px;
}

/* Stats Grid */
.mk-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mk-stats-grid--proof {
    grid-template-columns: repeat(3, 1fr);
}
.mk-stat-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}
.mk-stat-value {
    display: block;
    font-family: var(--mk-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
}
.mk-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    margin-top: 6px;
}

/* Campaign/Rates Card */
.mk-rates-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: 40px; /* Increased internal padding */
    box-shadow: var(--shadow-lg);
}
.mk-section-title {
    font-family: var(--mk-font-display);
    font-size: 1.5rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-900);
}

.mk-section-subtitle {
    color: var(--color-gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Layout Fix: Robust Grid for Shoutout Types --- */
.mk-campaign-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default desktop */
    gap: 24px; /* Increased gap */
    margin-bottom: 40px; /* Increased bottom spacing to prevent overlap */
    margin-top: 30px;
}

.mk-feature-box {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    padding: 24px 20px; /* More vertical padding */
    text-align: center;
    height: 100%; /* Respects grid stretch */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mk-feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mk-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: inline-block;
    flex-shrink: 0;
}
.mk-feature-icon.icon-comment { color: var(--color-status-completed); } /* Violet */
.mk-feature-icon.icon-desc { color: var(--color-info); }    /* Blue */
.mk-feature-icon.icon-post { color: var(--color-success); }    /* Emerald */

.mk-feature-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-gray-800);
    margin-bottom: 8px;
    line-height: 1.3;
}

.mk-feature-desc {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    line-height: 1.4;
}

/* Shoutout Example Box - CLEAN DESIGN */
.mk-shoutout-example {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: var(--color-gray-600);
    position: relative;
    box-shadow: none;
    font-style: italic;
    text-align: center;
}

.mk-example-label {
    position: static;
    display: block;
    background: none;
    color: var(--color-gray-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    box-shadow: none;
    padding: 0;
    text-align: center;
}

.mk-example-text {
    line-height: 1.7;
}

.mk-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.mk-rate-row:last-child { border-bottom: none; }
.mk-rate-name { font-weight: 600; font-size: 1.1rem; }
.mk-rate-sub { font-size: 0.85rem; color: var(--color-gray-500); font-weight: 400; margin-top: 4px; }
.mk-rate-price { font-family: var(--mk-font-display); font-weight: 700; font-size: 1.3rem; color: var(--color-gray-900); }
.mk-save-badge { background: #dcfce7; color: #166534; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }

/* Recent Videos Grid */
.mk-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.mk-video-thumb {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: block;
}
.mk-video-thumb:hover { transform: translateY(-3px); }
.mk-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-play-icon {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; opacity: 0.8;
}

/* Tags - REVERTED TO FLEX to allow flowing +3 button */
.mk-tags {
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 20px;
}
.mk-tag {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-500);
    line-height: 1.3;
}
.mk-tag-toggle-btn {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 6px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.mk-tag-toggle-btn:hover { color: var(--color-primary); }

/* --- OWNER BAR (Hellobar) - REVISED (Buttons Left) --- */
.mk-owner-bar {
    position: fixed; 
    top: var(--header-offset, 0px); 
    left: 0; 
    right: 0;
    background: var(--color-gray-800); 
    color: white;
    padding: 8px 20px; 
    z-index: 1000;
    display: flex; 
    align-items: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: var(--owner-bar-height-desktop);
    height: auto; 
    box-sizing: border-box;
    flex-wrap: wrap; 
    gap: 16px;
    /* LEFT ALIGNMENT for everything as requested */
    justify-content: flex-start;
}

/* Group action buttons and text closely on the left */
.mk-owner-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mk-commission-highlight {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px; /* Slimmer padding inside pill */
    border-radius: 6px;
    font-weight: 700;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem; /* Smaller text */
}

.mk-commission-details {
    opacity: 0.9; 
    font-size: 0.85rem; 
    color: var(--color-gray-300);
    line-height: 1.3;
}

.mk-action-btn {
    background: white; 
    color: var(--color-gray-800);
    padding: 6px 14px; /* Standard button size */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    white-space: nowrap;
}
.mk-action-btn:hover { 
    background: var(--color-gray-100); 
    color: var(--color-gray-900); 
    transform: translateY(-1px);
}

/* Dashboard Button (Now secondary, pushed to right) */
.mk-action-btn.btn-dashboard {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: auto; /* Push to far right */
}
.mk-action-btn.btn-dashboard:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Owner Bar State Variants */
.mk-commission-highlight--pending {
    background-color: #fef9c3;
    color: #b45309;
    border-color: #fcd34d;
}

.mk-commission-details--small {
    font-size: 0.9rem;
    color: var(--color-gray-300);
}

.mk-action-btn--setup {
    background: #fbbf24;
    color: #78350f;
}
.mk-action-btn--setup:hover {
    background: #f59e0b;
}

.mk-action-btn--activate {
    background-color: var(--color-success-dark);
    color: white;
    border: 1px solid var(--color-success-dark);
}
.mk-action-btn--activate:hover {
    background-color: var(--color-success);
}

/* Earnings Dashboard Link (inside owner bar) */
.mk-earnings-link {
    color: var(--color-primary-light);
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
}
.mk-earnings-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* External Link Icon */
.mk-external-link-icon {
    font-size: 0.7em;
    color: var(--color-gray-400);
}

/* Audience Insights */
.mk-insights-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.mk-insights-list {
    font-size: 0.95rem;
    line-height: 2.0;
    color: var(--color-gray-600);
}

.mk-insights-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--color-gray-200);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.mk-insights-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mk-insights-value {
    color: var(--color-gray-900);
}

/* Budget Section Heading */
.mk-budgets-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-700);
    margin-bottom: 16px;
    margin-top: 32px;
}

/* Edit Modal Overrides */
.mk-share-card--edit {
    max-width: 500px;
    text-align: left;
}

.mk-share-title--edit {
    margin-top: 0;
}

.mk-label-hint {
    font-weight: 400;
    color: var(--color-gray-400);
    font-size: 0.9em;
    margin-left: 4px;
}

.mk-form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Share Modal */
.mk-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    padding: 16px; 
}
.mk-modal-overlay.is-visible { display: flex; }
.mk-share-card {
    background: white; width: 100%; max-width: 400px; border-radius: 24px;
    padding: 30px; position: relative; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
    box-sizing: border-box;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mk-modal-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-gray-400);
}
.mk-modal-avatar { width: 80px; height: 80px; border-radius: 50%; margin: -60px auto 16px; border: 4px solid var(--color-white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: block; object-fit: cover; background: var(--color-white); }
.mk-share-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

.mk-copy-row {
    display: flex; align-items: center; background: var(--color-gray-50); border: 1px solid var(--color-gray-200);
    border-radius: 12px; padding: 4px; margin-bottom: 24px;
}
.mk-share-url {
    flex: 1; border: none; background: transparent; padding: 10px; font-size: 0.9rem; color: var(--color-gray-700); outline: none; text-overflow: ellipsis;
}
.mk-copy-btn {
    background: white; border: 1px solid var(--color-gray-200); border-radius: 8px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--color-gray-500); transition: all 0.2s;
}
.mk-copy-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

.mk-qr-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}
.mk-qr-code { width: 100%; height: 100%; display: block; }
.mk-qr-avatar {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: var(--color-white);
}

/* Edit Modal Inputs */
.mk-input-group {
    margin-bottom: 16px;
}
.mk-label {
    display: block; font-weight: 600; margin-bottom: 8px; color: var(--color-gray-600); font-size: 0.9rem;
}
.mk-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--color-gray-300); border-radius: 8px; font-size: 0.95rem;
    box-sizing: border-box; transition: all 0.2s;
}
.mk-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.mk-input.is-valid { border-color: var(--color-success); }
.mk-input.is-invalid { border-color: var(--color-danger); }

.mk-feedback { font-size: 0.85rem; margin-top: 6px; min-height: 20px; display: flex; align-items: center; gap: 6px; }
.mk-feedback.loading { color: var(--color-gray-500); }
.mk-feedback.success { color: var(--color-success); font-weight: 600; }
.mk-feedback.error { color: var(--color-danger); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
    .mk-container { grid-template-columns: 1fr; gap: 20px; padding: 120px 20px 20px; }
    .mk-sidebar { position: relative; top: 0; max-height: none; }
    .mk-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-stats-grid--proof { grid-template-columns: repeat(3, 1fr); }
    .mk-stats-grid--proof .mk-stat-item { padding: 16px 8px; }
    .mk-stats-grid--proof .mk-stat-value { font-size: 1.25rem; }
    .mk-stats-grid--proof .mk-stat-label { font-size: 0.65rem; }

    .mk-background-layer { 
        height: 220px; 
    }
    
    .mk-owner-bar {
        height: auto;
        padding: 8px 12px;
        flex-direction: row; /* Keep row on mobile for grouping */
        justify-content: space-between;
        align-items: center;
    }
    
    .mk-owner-actions-wrapper {
        flex-direction: column; /* Stack details and button on very small screens if needed */
        align-items: flex-start;
        gap: 6px;
        flex: 1;
    }

    .mk-commission-highlight {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .mk-action-btn.btn-dashboard {
        margin-left: 0;
        padding: 6px;
    }
}

/* Tablet Breakpoint for Grid Logic */
@media (max-width: 768px) {
    .mk-campaign-features {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .mk-stats-grid { gap: 12px; }
    /* Mobile: Stack them */
    .mk-campaign-features { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    
    .mk-feature-box { 
        display: flex; 
        align-items: center; 
        text-align: left; 
        padding: 16px; 
        gap: 12px;
        flex-direction: row; /* Sideways icon on mobile for space saving */
    }
    .mk-feature-icon { 
        margin-bottom: 0; 
        font-size: 1.5rem; 
        min-width: 40px; 
        text-align: center; 
    }
    .mk-feature-title { margin-bottom: 2px; font-size: 0.95rem; }
    
    .mk-rate-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .mk-rate-price { font-size: 1.4rem; margin-top: 4px; }
    
    .mk-owner-actions-wrapper {
        width: 100%;
    }
    
    .mk-action-btn.btn-dashboard {
        display: none; /* Hide dashboard link on tiny screens to save space for primary action */
    }
}

/* --- HORIZONTAL PRICING CARDS (3-column, anchored middle) --- */
.mk-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.mk-pricing-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mk-pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Featured card — the visual anchor (Growth tier) */
.mk-pricing-card--featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    padding-top: 40px;
    z-index: 1;
}

.mk-pricing-card--featured:hover {
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

/* Badges */
.mk-pricing-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.mk-pricing-badge--featured {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Tier name */
.mk-pricing-name {
    font-family: var(--mk-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0 0 16px 0;
}

/* Price — the visual hero of each card */
.mk-pricing-price {
    font-family: var(--mk-font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.mk-pricing-card--featured .mk-pricing-price {
    color: var(--color-primary);
}

/* Shoutout estimate */
.mk-pricing-shoutouts {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.mk-pricing-card:not(.mk-pricing-card--featured) .mk-pricing-shoutouts {
    color: var(--color-gray-500);
}

/* Description */
.mk-pricing-desc {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    line-height: 1.5;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

/* CTA Buttons — outline by default, filled for featured */
.mk-pricing-cta {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    border: 2px solid var(--color-gray-300);
    background: var(--color-white);
    color: var(--color-gray-700);
    cursor: pointer;
}

.mk-pricing-cta:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

/* Featured CTA — filled indigo */
.mk-pricing-cta--featured {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.mk-pricing-cta--featured:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

/* Footer: Custom budget link + trust signals */
.mk-pricing-footer {
    margin-top: 28px;
    text-align: center;
}

.mk-pricing-custom {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.mk-pricing-custom:hover {
    background: rgba(79, 70, 229, 0.06);
    text-decoration: none;
}

.mk-pricing-custom i {
    margin-right: 6px;
}

/* Trust Footer in Rates Card */
.mk-trust-footer {
    margin-top: 16px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mk-trust-item i {
    margin-right: 6px;
}

/* FAQ Accordion */
.mk-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mk-faq-item {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.mk-faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.mk-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-gray-50);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    transition: background 0.2s;
}

.mk-faq-question:hover {
    background: var(--color-gray-100);
}

.mk-faq-question i {
    color: var(--color-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

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

.mk-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.mk-faq-item.active .mk-faq-answer {
    max-height: 500px;
}

.mk-faq-answer p {
    margin: 0 0 12px 0;
    padding: 0 20px;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.mk-faq-answer p:first-child {
    padding-top: 16px;
}

.mk-faq-answer p:last-child {
    padding-bottom: 16px;
    margin-bottom: 0;
}

.mk-faq-answer strong {
    color: var(--color-gray-900);
    font-weight: 600;
}

/* Responsive — Pricing Cards */
@media (max-width: 900px) {
    .mk-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* On mobile, reorder so featured card appears first */
    .mk-pricing-card--featured {
        order: -1;
    }
}

@media (max-width: 640px) {
    .mk-campaign-features {
        grid-template-columns: 1fr;
    }

    .mk-trust-footer {
        flex-direction: column;
        gap: 8px;
    }

    .mk-pricing-custom {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ── Breadcrumb Nav ────────────────────────────────────────────────────── */
.mk-breadcrumb {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 0 24px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
}
.mk-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}
.mk-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.mk-breadcrumb__sep { margin: 0 6px; opacity: 0.5; color: rgba(255, 255, 255, 0.6); }
.mk-breadcrumb__current { color: #fff; font-weight: 600; }

body.mk-body.is-owner .mk-breadcrumb {
    margin-top: 4px;
}

/* ── Creator Subtitle ─────────────────────────────────────────────────── */
.mk-creator-subtitle {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin: -2px 0 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── Secondary Sidebar Link ───────────────────────────────────────────── */
.mk-btn-secondary-link {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 8px;
    padding: 6px 0;
    transition: color 0.15s ease;
}
.mk-btn-secondary-link:hover { color: var(--color-primary-dark); }
.mk-btn-secondary-link i { margin-left: 4px; font-size: 0.7rem; }

/* ── Social Proof Bar ─────────────────────────────────────────────────── */
.mk-social-proof {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 24px;
    background: var(--color-gray-50, #f8fafc);
    border: 1px solid var(--color-gray-200, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-gray-600, #6b7280);
}
.mk-social-proof__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.mk-social-proof__item i {
    color: var(--color-primary, #4f46e5);
    font-size: 1rem;
    margin-bottom: 2px;
    opacity: 1;
}
.mk-social-proof__item strong {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-gray-900, #111827);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

@media (max-width: 700px) {
    .mk-social-proof {
        gap: 16px;
        padding: 16px;
    }
    .mk-social-proof__item strong {
        font-size: 1.125rem;
    }
}

/* ── How It Works ─────────────────────────────────────────────────────── */
.mk-how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 24px;
}
.mk-how-step {
    text-align: center;
    padding: 16px 12px;
    background: var(--color-gray-50);
    border-radius: 10px;
    border: 1px solid var(--color-gray-200);
}
.mk-how-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.mk-how-step__title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}
.mk-how-step__desc {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .mk-how-it-works { grid-template-columns: 1fr; gap: 10px; }
    .mk-how-step {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 12px 16px;
    }
    .mk-how-step__number { margin-bottom: 0; flex-shrink: 0; }
}

/* ── Discover More — Internal SEO Silo Links ──────────────────────────── */
.mk-discover-more {
    max-width: 1200px;
    margin: 32px auto 16px;
    padding: 0 24px;
}
.mk-discover-more__heading {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 16px;
}
.mk-discover-more__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.mk-silo-card {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.mk-silo-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}
.mk-silo-card__icon {
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.mk-silo-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}
.mk-silo-card__desc {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    line-height: 1.4;
}

/* ── Discover More — contextual copy ── */
.mk-discover-more__context {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-gray-600, #6b7280);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 20px;
    text-align: center;
}
.mk-discover-more__context a {
    color: var(--color-primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}
.mk-discover-more__context a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .mk-discover-more { padding: 0 16px; }
    .mk-discover-more__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .mk-discover-more__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BRAND INTRO — Above-the-fold CTA for brand visitors
   ══════════════════════════════════════════════════════════════════════════ */
.mk-brand-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-gray-50, #f8fafc);
    border-left: 3px solid var(--color-primary, #4f46e5);
    border-radius: 8px;
    margin-bottom: 20px;
}
.mk-brand-intro__text {
    flex: 1;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-gray-700, #374151);
    line-height: 1.5;
    margin: 0;
}
.mk-brand-intro__text a {
    color: var(--color-primary, #4f46e5);
    text-decoration: none;
    font-weight: 500;
}
.mk-brand-intro__text a:hover {
    text-decoration: underline;
}
.mk-brand-intro__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary, #4f46e5);
    color: #fff;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 150ms ease;
}
.mk-brand-intro__cta:hover {
    background: var(--color-primary-dark, #4338ca);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ── Mid-page CTA ── */
.mk-midpage-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    border-radius: 12px;
    margin: 24px 0;
}
.mk-midpage-cta__text {
    font-size: var(--font-size-base, 1rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.mk-midpage-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: var(--color-primary, #4f46e5);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 150ms ease;
}
.mk-midpage-cta__btn:hover {
    background: #f0f0ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ── Sticky Mobile CTA Bar ── */
.mk-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    transform: translateY(100%);
    transition: transform 200ms ease;
    pointer-events: none;
}
.mk-sticky-cta--visible {
    transform: translateY(0);
    pointer-events: auto;
}
.mk-sticky-cta__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-primary, #4f46e5);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.mk-sticky-cta__link:hover {
    background: var(--color-primary-dark, #4338ca);
    color: #fff;
}
.mk-sticky-cta__text {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 500;
    opacity: 0.9;
}
.mk-sticky-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
}
/* Hide sticky bar on desktop — only show on mobile/tablet */
@media (min-width: 768px) {
    .mk-sticky-cta { display: none; }
}

/* ── Responsive: Brand Intro & Mid-page CTA ── */
@media (max-width: 767px) {
    .mk-brand-intro {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        gap: 12px;
    }
    .mk-brand-intro__cta {
        justify-content: center;
        padding: 12px 16px;
    }
    .mk-midpage-cta {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    .mk-midpage-cta__btn {
        width: 100%;
        justify-content: center;
    }
    /* Add bottom padding for sticky CTA bar */
    .mk-discover-more {
        padding-bottom: 60px;
    }
}