/* ------------------------------------------------------------
   CORE LAYOUT
------------------------------------------------------------ */

body {
    margin: 0;
    background: white;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */

.kp-header {
    height: 64px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.kp-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.kp-header-logo img {
    height: 32px;
}

.kp-header-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--primary-dark);
}

.kp-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-dark);
}

.kp-header-account-icon {
    font-size: calc(var(--font-lg) * 0.8);
    cursor: pointer;
}

.bi-person-circle {
    color: var(--primary-dark);
}

.kp-header-menu-toggle {
    font-size: var(--font-xl);
    cursor: pointer;
    display: none;
}

/* ------------------------------------------------------------
   LAYOUT WRAPPER
------------------------------------------------------------ */

.kp-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */

.kp-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: white;
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease;
    overflow-y: auto;
}

    .kp-sidebar.collapsed {
        width: 60px;
    }

.kp-sidebar-toggle {
    color: var(--text-light);
    /*    padding: var(--space-3) var(--space-4);*/
    cursor: pointer;
    font-size: var(--font-lg);
}

/* ------------------------------------------------------------
   MENU ITEMS
------------------------------------------------------------ */

.kp-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: white;
    text-decoration: none;
    font-size: var(--font-md);
    transition: 0.2s ease;
    cursor: pointer;
}

    .kp-menu-item:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--accent-yellow);
    }

.kp-menu-icon {
    font-size: var(--font-lg);
    color: inherit;
}

.kp-menu-text {
    white-space: nowrap;
}

.kp-sidebar.collapsed .kp-menu-text {
    display: none;
}

/* ------------------------------------------------------------
   SUBMENU
------------------------------------------------------------ */

.kp-submenu {
    display: none;
    flex-direction: column;
    margin-left: 48px;
}

    .kp-submenu.open {
        display: flex;
    }

    .kp-submenu a {
        padding: var(--space-2) 0;
        color: white;
        font-size: var(--font-sm);
        text-decoration: none;
    }

        .kp-submenu a:hover {
            color: var(--accent-yellow);
        }

/* ------------------------------------------------------------
   CONTENT
------------------------------------------------------------ */
.kp-content {
    flex: 1;
    padding: var(--space-5);
    overflow-y: auto;
    margin-right: auto;
    margin-left: var(--space-5);
}
/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.kp-footer {
    text-align: center;
    padding: var(--space-3);
    font-size: var(--font-xs);
    color: var(--text-medium);
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 900px) {

    .kp-header-menu-toggle {
        display: block;
    }

    .kp-sidebar {
        position: absolute;
        left: -260px;
        top: 64px;
        height: calc(100vh - 64px);
        z-index: 20;
    }

        .kp-sidebar.open {
            left: 0;
        }
}


.kp-menu-external .kp-menu-logo {
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    gap: var(--space-1);
}

.kp-menu-external {
    gap: var(--space-0);
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-xs);
    color: var(--primary-light);
}

.kp-sidebar.collapsed .kp-menu-external .kp-menu-text {
    display: none;
}
/* Hjälp-ikon stil */
.kp-header-help-icon {
    margin-right: 16px;
    font-size: calc(var(--font-lg) * 0.8);
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.kp-header-account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.kp-header-username {
    color: var(--primary);
}

    .bi-question-circle:hover,
    .kp-header-username:hover,
    .bi-person-circle:hover,
    .kp-header-title:hover,
    .bi:hover,
    .kp-sidebar-toggle:hover i {
        color: var(--accent-yellow);
    }

.kp-sidebar-toggle i {
    color: #81b9d9;
}

@media (max-width: 768px) {
    .kp-header-username {
        display: none;
    }
}

.kp-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 0.35rem 0;
    position: relative;
    padding-bottom: 0.35rem;
}

    .kp-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 64px;
        height: 3px;
        border-radius: 999px;
        background: var(--accent-yellow);
    }

.kp-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-medium);
    margin: 0.1rem 0 0.25rem 0;
}

.kp-section-wrapper {
    max-width: 1280px;
    /*   margin: 0 auto;*/
    /*    padding: 30px 20px;*/
}


.kp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kp-section-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary-dark);
}

.kp-edit-link {
    color: var(--kp-primary);
    font-weight: 500;
    text-decoration: none;
}

    .kp-edit-link:hover {
        text-decoration: underline;
    }

.kp-section-card {
    background: var(--primary-light);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 2px solid #e5e7eb;
    border-left: 4px solid var(--primary);
}

.kp-section-warning {
    background: var(--warning-light);
    border-left: 4px solid var(--accent-yellow);
}

.kp-section-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.kp-field:last-child {
    border-bottom: none;
}

.kp-field label {
    color: #6b7280;
}

.kp-verified {
    color: #059669;
    font-weight: 600;
}

.kp-notverified {
    color: #dc2626;
    font-weight: 600;
}
/* Wrapper för varje rad */
.kp-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 5.5rem;
}
    /* Label */
    .kp-field label {
        color: #6b7280;
        font-weight: 500;
        min-width: 140px; /* desktop spacing */
    }
    /* Värde */
    .kp-field span {
        color: #111827;
        word-break: break-word; /* viktigt för långa email */
        flex: 1;
    }
/* Mobil: label överst, värde under */
@media (max-width: 640px) {
    .kp-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .kp-field label {
            min-width: 0;
            margin-bottom: 0.15rem;
        }

        .kp-field span {
            width: 100%;
        }
}

.kp-section-icon {
    font-size: 1.25rem;
    margin-right: 0.35rem;
    color: var(--primary);
    vertical-align: -2px;
}

@media (max-width: 991px) {
    .kp-sidebar-toggle {
        display: none !important;
    }
}
/* Container */
.kp-hamburger {
    width: 28px;
    height: 22px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
    /* Strecken */
    .kp-hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--text-light);
        border-radius: 3px;
        transition: all 0.3s ease;
    }


    .kp-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .kp-hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
/* Wrapper för båda boxarna */
.kp-action-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
/* Enskild box */
.kp-action-box {
    flex: 1;
    min-width: 260px;
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Ikon */
.kp-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Text */
.kp-action-text {
    flex: 1;
}
/* Knapp */
.kp-action-box form {
    display: flex;
    align-items: center;
}

.kp-field .text-primary, .kp-action-box .text-primary {
    color: var(--primary);
}

.kp-section-wrapper {
    padding: 20px 0;
}

.kp-ad-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kp-ad-item {
    display: flex;
    background: var(--bg-white);
    border: 2px solid #e3e3e3;
    border-radius: 10px;
    padding: 16px;
    align-items: flex-start;
}

.kp-ad-item-premium {
    display: flex;
    background: var(--warning-light);
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.kp-ad-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.kp-ad-image-wrapper {
    position: relative;
    width: 180px;
    height: 135px;
    flex-shrink: 0;
}

.kp-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.kp-premium-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: gold;
    color: #000;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kp-ad-info {
    flex-grow: 1;
    padding: 0 20px;
    padding-bottom: var(--space-5);
}

.kp-ad-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.kp-ad-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 6px;
}

.kp-meta-item i {
    margin-right: 6px;
}

.kp-ad-price {
    margin: 10px 0;
}

.kp-price {
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--text-light);
}

.kp-price-old {
    margin-left: 10px;
    text-decoration: line-through;
    color: #999;
}

.kp-ad-specs {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.kp-spec-item i {
    margin-right: 4px;
}

.kp-spec-sep {
    margin: 0 10px;
    color: #aaa;
}

.kp-ad-actions {
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 6px var(--shadow-xl);
    padding: var(--space-4);
    background-color: var(--primary-light);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
}

.kp-btn {
    display: block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

    .kp-btn i {
        margin-right: 4px;
    }


.kp-ad-actions .kp-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px var(--shadow-xl);
}
/* Endast warning har annan färg */
.kp-ad-actions .kp-btn-warning {
    background: var(--accent-orange);
    color: var(--text-dark);
}
/* Hover för alla knappar */
.kp-ad-actions .kp-btn:hover {
    background: var(--primary-dark);
    color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px var(--shadow-xl);
}

.kp-btn i {
    color: var(--primary-dark);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px var(--shadow-xl);
}

.kp-btn:hover i {
    color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px var(--shadow-xl);
}

.kp-ad-actions .kp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--shadow-xl);
}

.kp-ad-actions .kp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.4); /* gul highlight */
}




@media (max-width: 768px) {
    .kp-ad-item {
        flex-direction: column;
    }

    .kp-ad-image-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 12px;
    }

    .kp-ad-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .kp-btn {
        flex: 1 1 calc(50% - 10px);
    }
}
/* ------------------------------------------------------------
   VEHICLE VIEW PAGE
------------------------------------------------------------ */

.kp-adview-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1060px) {
    .kp-adview-layout {
        grid-template-columns: 1fr;
    }
}

.kp-adview-layout * {
    max-width: 100%;
    box-sizing: border-box;
}


.kp-adview-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.kp-adview-subtitle {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}

.kp-gallery {
    margin-bottom: 25px;
}

.kp-gallery-main {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

    .kp-gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kp-gallery-thumbs {
    flex-wrap: wrap;
    justify-content: flex-start;
}

    .kp-gallery-thumbs img {
        width: 90px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .kp-gallery-thumbs img:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }

.kp-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .kp-gallery-thumbs {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

        .kp-gallery-thumbs img {
            width: calc(50% - 10px);
            height: 70px;
        }
}

@media (max-width: 1060px) {
    .kp-specs-grid {
        grid-template-columns: 1fr;
    }
}

.kp-specs-col h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kp-specs-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kp-specs-col li {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}

.kp-equipment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* margin-bottom: 30px;*/
    padding: var(--space-5);
}

    .kp-equipment h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
        color: var(--primary);
    }

    .kp-equipment h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
        color: var(--primary);
    }

    .kp-equipment ul {
        list-style: circle;
        padding: 0;
        margin: 0;
    }

    .kp-equipment li {
        font-size: 14px;
        color: var(--text-medium);
        margin-bottom: 4px;
    }

.kp-equipment-category h4 {
    padding: 0px;
}

@media (max-width: 1060px) {
    .kp-equipment {
        grid-template-columns: 1fr;
    }
}


.kp-description h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.kp-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.kp-adview-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kp-side-box {
    background: var(--primary-light);
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

    .kp-side-box h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
    }



.kp-side-box-premium {
    background: var(--warning-light);
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.2s ease;
    box-shadow: var(--shadow-m);
    padding: var(--space-6);
}

.kp-premium-status {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.kp-premium-active {
    background: var(--warning-light);
    color: var(--accent-orange);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent-orange);
    transition: box-shadow 0.2s ease;
    padding: 5px;
    margin: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: var(--font-xs);
}

.kp-price-main {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.kp-price-sub {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}

.kp-seller {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.kp-privacy-note {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

.kp-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .kp-meta-list li {
        font-size: 14px;
        color: #444;
        margin-bottom: 4px;
    }
/* Separator */
.kp-side-sep {
    border: none;
    border-top: 1px solid #e3e3e3;
    margin: 12px 0;
}
/* Premium-info layout */
.kp-premium-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-premium-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.kp-premium-label {
    color: #555;
    font-weight: 500;
}

.kp-premium-value {
    color: #222;
    font-weight: 600;
}

.kp-side-sep {
    border: none;
    border-top: 1px solid #e3e3e3;
    margin: 12px 0;
}

.kp-premium-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-premium-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.kp-premium-label {
    color: #555;
    font-weight: 500;
}

.kp-premium-value {
    color: #222;
    font-weight: 600;
}

.kp-btn-cta-premium {
    background: var(--accent-orange);
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.20s ease, box-shadow 0.25s ease;
}

    .kp-btn-cta-premium:hover {
        background: var(--primary-dark);
        color: var(--accent-yellow);
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    }

    .kp-btn-cta-premium:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

.kp-package-link {
    text-decoration: none;
}

.kp-package-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.25s ease;
}

    .kp-package-card i {
        font-size: 1.4rem;
        color: #005fcc;
    }

    .kp-package-card:hover {
        border-color: #cbd3da;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        transform: translateY(-3px);
    }
/* DRAFT IMAGE MODULE */
/* TOP IMAGE AREA */
.top-image-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--kp-spacing-lg);
    margin-bottom: var(--kp-spacing-xl);
}

.top-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-black);
    border: 1px solid #ddd;
    cursor: pointer;
}

    .top-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.top-image-info {
    padding: var(--space-4);
    border-radius: 12px;
    background: var(--primary-light);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.top-image-title {
    font-weight: 600;
}

.top-image-status {
    font-size: 15px;
    color: #444;
}

.top-delete {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: rgba(0,0,0,0.6);
    color: var(--text-white);
    border: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

    .top-delete:hover {
        opacity: 0.85;
    }
/* =============================== */
/* PREMIUM TOP IMAGE INFO BOX      */
/* =============================== */

.kp-top-image-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    animation: kpFadeInBox 0.35s ease-out forwards;
}
/* Header med ikon + titel */
.kp-top-image-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.kp-top-image-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.kp-top-image-title {
    font-weight: 600;
    font-size: var(--font-sm);
    margin: 0;
    color: var(--text-dark);
}
/* Status-text */
.kp-top-image-status {
    font-size: var(--font-xss);
    color: var(--text-light);
    line-height: var(--lh-normal);
}
/* Fade-in animation */
@keyframes kpFadeInBox {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* PREMIUM BANNER */
.premium-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--warning-light);
    border: 1px solid #f0d48a;
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--kp-spacing-xl);
}

.premium-icon {
    color: #e0a100;
    font-size: 20px;
}

.premium-text {
    font-weight: 600;
    color: #a67c00;
}

.premium-cta {
    margin-left: auto;
    background: #e0a100;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.premium-cta-draft {
    margin-left: auto;
    background: #e0a100;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

    .premium-cta-draft:hover {
        background: var(--success);
    }
/* IMAGE GRID */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--kp-spacing-md);
}

.image-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ddd;
    position: relative;
}

    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.placeholder {
    background: repeating-linear-gradient( 45deg, #eee, #eee 10px, #ddd 10px, #ddd 20px );
}

.kp-grid-placeholder {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

a:hover .kp-grid-placeholder {
    transform: scale(1.03);
    transition: 0.15s ease;
    box-shadow: var(--shadow-lg);
}


.upgrade-btn,
.premium-cta {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-black);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .upgrade-btn:hover,
    .premium-cta:hover {
        background: var(--accent-orange);
    }

.max-images-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
    color: var(--text-dark);
}

    .max-images-box i {
        font-size: 24px;
        color: var(--warning);
    }
/* ============================================================
   UPLOAD AREA – NY PREMIUM VERSION
   ============================================================ */

.image-upload-area {
    margin-bottom: var(--space-6);
}
/* Själva klickbara boxen */
.upload-box {
    display: block;
    border: 3px solid var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: .25s;
    box-shadow: var(--shadow-xl);
}

    .upload-box:hover {
        background: var(--success);
        border-color: var(--accent-orange);
        box-shadow: var(--shadow-md);
    }
/* Dölj input */
.upload-input {
    display: none;
}
/* Innehåll i boxen */
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.upload-icon {
    font-size: 40px;
    color: var(--primary);
}

.upload-text {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.upload-icon:hover {
    font-size: 60px;
    color: var(--text-white);
}

.upload-text:hover {
    font-size: var(--font-lg);
    font-weight: 800;
    color: var(--text-white);
}
/* Info-text under boxen */
/* =============================== */
/* GRÅ TOKENS (NYA)                */
/* =============================== */
:root {
    --gray-50: #f7f7f8;
    --gray-100: #ededf0;
    --gray-200: #dcdce0;
}
/* =============================== */
/* GRID LAYOUT                     */
/* =============================== */
.upload-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .upload-info-grid {
        grid-template-columns: 1fr;
    }
}
/* =============================== */
/* BOXAR                           */
/* =============================== */
.upload-info-box,
.upload-tips-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    font-size: var(--font-xss);
    color: var(--text-light);
    line-height: var(--lh-normal);
    opacity: 0;
    animation: fadeInBox 0.4s ease-out forwards;
}

@keyframes fadeInBox {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =============================== */
/* LISTOR MED IKONER               */
/* =============================== */
.upload-info-box li,
.upload-tips-box li {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

    .upload-info-box li i,
    .upload-tips-box li i {
        color: var(--primary);
        font-size: 1rem;
    }
/* =============================== */
/* HEADER + TOOLTIP                */
/* =============================== */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.info-tooltip {
    cursor: pointer;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
}
    /* Tooltip bubble */
    .info-tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        top: 120%;
        right: 0;
        background: #111;
        color: white;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: var(--font-xs);
        max-width: 300px;
        white-space: normal;
        line-height: 1.4;
        box-shadow: var(--shadow-md);
        opacity: 1;
        transform: translateY(0);
        transition: 0.2s ease-out;
        font-weight: 600;
    }


    .info-tooltip::after {
        opacity: 0;
        transform: translateY(4px);
        pointer-events: none;
    }
/* ========================= */
/* PREMIUM UPLOAD OVERLAY    */
/* ========================= */

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.upload-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: var(--font-sm);
}

    .upload-loader i {
        font-size: 28px;
        animation: spin 1.2s linear infinite;
    }
/* Premium spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-item.fade-in {
    animation: fadeInScale 0.35s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1200px) {
    .top-image-area {
        display: block;
    }
}

@media (min-width: 900px) {
    .top-image-area {
        display: flex;
    }
}

.free-info {
    margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
    .top-image-area {
        grid-template-columns: 1fr !important;
    }

    .premium-banner {
        display: block;
        gap: var(--space-5);
    }

    .premium-cta, .kp-top-image-box {
        margin-top: var(--space-5);
    }

    .top-image-info {
        display: none;
    }

    .upload-info {
        font-size: var(--font-xs);
    }
}

.top-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: var(--bg-black);
}
/* ========================= */
/* IMAGE MODAL (PREMIUM)     */
/* ========================= */

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.25s ease-out forwards;
}

.image-modal-open {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: block;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.25s ease-out forwards;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes modalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.85);
    color: #111;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: background 0.2s ease;
}

    .modal-close:hover {
        background: rgba(255,255,255,1);
    }

.image-modal-open {
    display: flex;
}
/* ========================= */
/* END IMAGE MODAL (PREMIUM)     */
/* ========================= */

.image-item[draggable="true"] {
    cursor: grab;
}

.image-item.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.image-save-warning {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8e5;
    border: 3px solid var(--danger);
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
    padding: var(--space-4);
    margin: var(--space-4);
    box-shadow: var(--shadow-lg);
}

    .image-save-warning .warning-text {
        color: var(--danger);
        font-size: 14px;
        font-weight: 500;
    }

.save-images-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background-color: var(--success-light);
    box-shadow: var(--shadow-lg);
}
/* ===========================================
   BASE WATERMARK LAYER
=========================================== */
/*<div class="wm wm-free" data-line1="GRATIS" data-line2="ANNONS" >
... preview ...
</div >
<div class="wm wm-premium" data-line1="PREMIUM" data-line2="ANNONS" >
... preview ...
</div >
<div class="wm wm-free-draft" data-line1="GRATIS" data-line2="UTKAST" >
... preview ...
</div >
<div class="wm wm-premium-draft" data-line1="PREMIUM" data-line2="UTKAST" >
... preview ...
</div >
<div class="wm wm-free-pub" data-line1="PUBLICERAD" data-line2="GRATIS" >
... preview ...
</div >
<div class="wm wm-premium-pub" data-line1="PUBLICERAD" data-line2="PREMIUM" >
... preview ...
</div >
*/
.wm {
    position: relative;
}

    .wm::after {
        content: attr(data-line1) "\A" attr(data-line2);
        white-space: pre;
        position: absolute;
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-25deg);
        font-size: 6rem;
        font-weight: 900;
        letter-spacing: 0.3rem;
        text-align: center;
        opacity: 0.12;
        pointer-events: none;
        user-select: none;
        z-index: 50;
    }
/* Alla Publicerade (Blå ton) */
.wm-pub::after {
    color: rgba(33, 150, 243, 1.18); /* blå */
}
/* Alla Utkast (Blå ton) */
.wm-daft::after {
    color: rgba(0, 0, 0, 0.08); /* grå */
}
/* Gratis (Blå ton) */
.wm-free::after {
    color: rgba(33, 150, 243, 0.18); /* blå */
}

/* Premium (Guld ton) */
.wm-premium::after {
    color: rgba(212, 160, 23, 0.18); /* guld */
}

/* Gratis-Utkast (Röd ton) */
.wm-free-draft::after {
    color: rgba(220, 0, 0, 0.50); /* röd */
}

/* Premium-Utkast (Gult ton) */
.wm-premium-draft::after {
    color: rgba(255, 193, 7, 3.50); /* gul */
}

/* Publicerad Gratis (Blå ton) */
.wm-free-pub::after {
    color: rgba(33, 150, 243, 0.18); /* blå */
}

/* Publicerad Premium (Guld ton) */
.wm-premium-pub::after {
    color: rgba(212, 160, 23, 0.18); /* guld */
}

@media (max-width: 900px) {
    .wm::after {
        font-size: 3.5rem;
        letter-spacing: 0.15rem;
    }
}
/* ================================
   404 PAGE LAYOUT
================================ */
.kp-404-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

/* Hero image wrapper */
.kp-404-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

    /* Hero image */
    .kp-404-hero img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

/* Text overlay */
.kp-404-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
    font-family: "Segoe UI", sans-serif;
}

/* 404 number */
.kp-404-code {
    display: block;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Message */
.kp-404-message {
    display: block;
    font-size: var(--font-lg);
    font-weight: 600;
    margin-top: var(--space-5);
}

/* Subtitle under image */
.kp-404-subtitle {
    margin-top: 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kp-404-code {
        font-size: 4rem;
    }

    .kp-404-message {
        font-size: 1.4rem;
    }
}
/* ================================
   SITEMAP GRID
================================ */
.kp-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ================================
   BOX
================================ */
.kp-sitemap-box {
    background: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 12px;
    color: var(--text-white);
    box-shadow: var(--shadow-xxl);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .kp-sitemap-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }

/* ================================
   HEADER
================================ */
.kp-sitemap-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}
    .kp-sitemap-header i {
        font-size: 1.6rem;
        flex-shrink: 0;
    }
.kp-sitemap-header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--text-white);
    text-decoration: none;
}
    .kp-sitemap-header-text:hover {
        color: var(--kp-primary-light, var(--accent-yellow));
    }
.kp-sitemap-header-desc {
    font-size: var(--font-xs);
    font-weight: 400;
    text-align: left;
    line-height: 1.45;
    color: var(--text-white);
    opacity: 0.7;
  margin-top: .45rem;
}
.kp-smp-icon-bi {
    color: var(--text-white);
}
.kp-smp-icon {
    font-size: var(--font-xs);
    color: var(--text-white);
}
/* ================================
   LINKS
================================ */
.kp-sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .kp-sitemap-links li {
        margin: 0;
    }

    .kp-sitemap-links a {
        color: var(--text-white);
        text-decoration: none;
        font-size: var(--font-md);
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: var(--space-1) var(--space-2);
        transition: color .2s ease, padding-left .2s ease;
    }

        .kp-sitemap-links a i {
            color: var(--text-white);
            transition: color .2s ease;
        }

        .kp-sitemap-links a:hover {
            color: var(--kp-primary-light, var(--accent-yellow));
            padding-left: 1.3rem;
            border-left: 3px solid var(--accent-yellow);
        }

            .kp-sitemap-links a:hover i {
                color: var(--kp-primary-light, var(--accent-yellow));
            }
