/* =========================================================
   KLIKSINI THANK YOU PAGE
   PREMIUM EMERALD DARK THEME
   ========================================================= */

body {
    background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
    font-family: Arial, sans-serif;
}


/* =========================================================
   MAIN THANK YOU CONTAINER
   ========================================================= */

.kv-thankyou {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.kv-card {
    width: 100%;
    max-width: 650px;

    background: #FFFFFF;

    border-radius: 28px;

    padding: 35px;

    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.10);

    text-align: center;

    animation: fadeUp 0.7s ease;
}


/* =========================================================
   SUCCESS CHECKMARK
   ========================================================= */

.checkmark {
    width: 130px;
    height: 130px;

    margin: auto;

    border-radius: 50%;

    background: linear-gradient(135deg, #064E3B, #10B981);

    color: #FFFFFF;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 70px;

    animation: pop 0.5s ease;

    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.25);
}


/* =========================================================
   TITLE & TEXT
   ========================================================= */

.kv-card h1 {
    margin-top: 30px;

    font-size: 42px;

    color: #202124;
}

.kv-card p {
    color: #666;

    font-size: 18px;
}


/* =========================================================
   PREMIUM ORDER DETAILS CARD
   ========================================================= */

.kv-info {
    width: 100%;
    box-sizing: border-box;

    margin-top: 45px;

    background: #FFFFFF;

    border-radius: 22px;

    padding: 25px;

    border: 1px solid #A7F3D0;

    box-shadow: 0 15px 40px rgba(6, 78, 59, 0.08);
}


/* =========================================================
   ORDER DETAILS HEADER
   ========================================================= */

.kv-info-header {
    font-size: 20px;

    font-weight: 700;

    color: #064E3B;

    margin-bottom: 18px;

    padding-bottom: 15px;

    border-bottom: 1px solid #D1FAE5;
}


/* =========================================================
   ORDER ROW
   ========================================================= */

.kv-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 0;

    border-bottom: 1px solid #EEEEEE;
}

.kv-row strong {
    font-size: 15px;

    font-weight: 700;

    color: #202124;
}

.kv-row span {
    font-size: 15px;

    font-weight: 400;

    color: #555;
}


/* =========================================================
   STATUS
   ========================================================= */

.kv-status {
    background: #ECFDF5;

    color: #047857;

    padding: 7px 15px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 700;
}

.kv-info label {
    font-weight: bold;
}


/* =========================================================
   GENERAL BUTTON
   ========================================================= */

.kv-btn {
    margin-top: 25px;

    display: inline-block;

    background: linear-gradient(
        135deg,
        #064E3B,
        #047857,
        #10B981
    );

    color: #FFFFFF;

    padding: 14px 28px;

    border-radius: 50px;

    text-decoration: none;

    transition: 0.3s;

    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.18);
}

.kv-btn:hover {
    transform: translateY(-3px);

    box-shadow: 0 15px 30px rgba(6, 78, 59, 0.30);
}


/* =========================================================
   ORDER ID
   ========================================================= */

.kv-order-id {
    margin: 25px auto;

    padding: 18px;

    border-radius: 18px;

    background: #F0FDF4;

    border: 1px solid #A7F3D0;
}

.kv-order-id strong {
    display: block;

    margin-top: 10px;

    font-size: 34px;

    letter-spacing: 2px;

    color: #047857;
}


/* =========================================================
   COPY ORDER BUTTON
   ========================================================= */

#copyOrder {
    margin-top: 15px;

    background: linear-gradient(
        135deg,
        #064E3B,
        #047857
    );

    color: #FFFFFF;

    border: none;

    padding: 12px 22px;

    border-radius: 50px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;

    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.18);
}

#copyOrder:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(6, 78, 59, 0.30);
}


/* =========================================================
   PREMIUM SUCCESS ICON
   ========================================================= */

.kv-success-icon {
    width: 120px;
    height: 120px;

    margin: 0 auto 25px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.kv-success-icon svg {
    position: absolute;

    width: 120px;
    height: 120px;

    transform: rotate(-90deg);
}

.kv-circle {
    fill: none;

    stroke: #10B981;

    stroke-width: 6;

    stroke-linecap: round;

    stroke-dasharray: 340;

    stroke-dashoffset: 340;

    animation: drawCircle 0.8s ease forwards;

    filter: drop-shadow(
        0 0 12px rgba(16, 185, 129, 0.35)
    );
}

.kv-success-icon span {
    font-size: 60px;

    color: #10B981;

    font-weight: bold;

    opacity: 0;

    transform: scale(0.4);

    animation: showTick 0.3s ease forwards;

    animation-delay: 0.8s;
}


/* =========================================================
   CONFETTI
   ========================================================= */

.kv-confetti {
    position: fixed;

    top: -20px;

    width: 10px;

    height: 16px;

    border-radius: 2px;

    pointer-events: none;

    z-index: 9999;

    animation: kvFall linear forwards;
}


/* =========================================================
   ESTIMATED DELIVERY CARD
   ========================================================= */

.kv-delivery-card {
    margin: 28px 0;

    background: #FFFFFF;

    border-radius: 22px;

    padding: 24px;

    text-align: center;

    border: 1px solid #A7F3D0;

    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.08);
}


/* =========================================================
   DELIVERY HEADER
   ========================================================= */

.kv-delivery-header {
    font-size: 20px;

    font-weight: 700;

    color: #333;

    margin-bottom: 8px;
}

.kv-delivery-days {
    font-size: 18px;

    color: #666;
}

.kv-delivery-days strong {
    color: #047857 !important;

    font-size: 22px;

    font-weight: 700;
}

.kv-delivery-desc {
    margin-top: 12px;

    color: #777;

    line-height: 1.6;

    margin-bottom: 22px;
}


/* =========================================================
   COURIER LIST
   ========================================================= */

.kv-courier-list {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.kv-courier-box {
    width: 100px;

    height: 100px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #FFFFFF;

    border-radius: 18px;

    border: 1px solid #E5E7EB;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);

    transition: 0.3s;
}

.kv-courier-box:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 35px rgba(6, 78, 59, 0.16);

    border-color: #A7F3D0;
}

.kv-courier-box img {
    width: 55px;

    height: 55px;

    object-fit: contain;

    margin: 0;
}

.kv-courier-box span {
    display: block;

    font-size: 14px;

    font-weight: 700;

    color: #444;
}


/* =========================================================
   EXCLUSIVE OFFER
   ========================================================= */

.kv-offer {
    margin-top: 40px;

    border: none;

    border-radius: 0;

    padding: 20px 0;

    text-align: center;

    box-shadow: none;

    background: transparent;
}


/* =========================================================
   OFFER TITLE
   ========================================================= */

.kv-offer-title {
    position: relative;

    display: inline-block;

    font-size: 30px;

    font-weight: 800;

    color: #047857;

    overflow: hidden;
}

.kv-offer-title::after {
    content: "";

    position: absolute;

    top: 0;

    left: -180%;

    width: 60%;

    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.9),
        transparent
    );

    transform: skewX(-25deg);

    animation: kvShimmer 3.5s infinite;
}


/* =========================================================
   OFFER TEXT
   ========================================================= */

.kv-offer-text {
    font-size: 18px;

    color: #555;

    line-height: 1.6;
}

.kv-offer-text strong {
    color: #047857;
}


/* =========================================================
   OFFER BADGE
   ========================================================= */

.kv-offer-badge {
    display: inline-block;

    margin-top: 18px;

    background: linear-gradient(
        135deg,
        #064E3B,
        #047857,
        #10B981
    );

    color: #FFFFFF;

    padding: 8px 20px;

    border-radius: 999px;

    font-weight: 600;

    animation: kvBadgeWiggle 4s ease-in-out infinite;

    transform-origin: center;

    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.20);
}


/* =========================================================
   OFFER TIMER
   ========================================================= */

.kv-offer-timer {
    margin-top: 25px;

    background: #FFFFFF;

    border-radius: 18px;

    padding: 20px;

    border: 1px solid #A7F3D0;

    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.06);
}

.kv-offer-timer small {
    display: block;

    color: #777;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

#offerTimer {
    font-size: 42px;

    font-weight: 700;

    color: #047857;
}


/* =========================================================
   OFFER PRODUCTS
   ========================================================= */

.kv-offer-products {
    display: flex;

    gap: 16px;

    margin-top: 30px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.kv-product-card {
    flex: 1;

    background: #FFFFFF;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.08);

    transition: 0.3s;

    position: relative;

    border: 1px solid #ECFDF5;
}

.kv-product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 18px 35px rgba(6, 78, 59, 0.14);
}


/* =========================================================
   PRODUCT BADGE
   ========================================================= */

.kv-badge {
    position: absolute;

    top: 12px;

    left: 12px;

    background: linear-gradient(
        135deg,
        #064E3B,
        #10B981
    );

    color: #FFFFFF;

    padding: 6px 12px;

    font-size: 11px;

    border-radius: 30px;

    font-weight: 700;

    box-shadow: 0 5px 15px rgba(6, 78, 59, 0.20);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.kv-product-card img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.kv-product-card h3 {
    margin: 15px 0 8px;

    text-align: center;

    font-size: 18px;

    color: #222;
}


/* =========================================================
   PRODUCT PRICE
   ========================================================= */

.kv-price {
    text-align: center;
}

.kv-price del {
    color: #999;

    display: block;

    margin-bottom: 5px;
}

.kv-price strong {
    color: #047857;

    font-size: 26px;
}


/* =========================================================
   PRODUCT BUTTON
   ========================================================= */

.kv-product-btn {
    display: block;

    margin: 18px;

    padding: 13px;

    border-radius: 50px;

    text-align: center;

    text-decoration: none;

    color: #FFFFFF;

    background: linear-gradient(
        135deg,
        #064E3B,
        #047857,
        #10B981
    );

    font-weight: 700;

    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.16);

    transition: 0.3s;
}

.kv-product-btn:hover {
    opacity: 0.92;

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(6, 78, 59, 0.25);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pop {
    0% {
        transform: scale(0.3);

        opacity: 0;
    }

    100% {
        transform: scale(1);

        opacity: 1;
    }
}


@keyframes fadeUp {
    0% {
        transform: translateY(50px);

        opacity: 0;
    }

    100% {
        transform: translateY(0);

        opacity: 1;
    }
}


@keyframes kvFall {
    0% {
        transform: translateY(-20px) rotate(0deg);

        opacity: 1;
    }

    100% {
        transform: translateY(120vh) rotate(720deg);

        opacity: 0;
    }
}


@keyframes kvShimmer {
    0% {
        left: -180%;
    }

    35% {
        left: 180%;
    }

    100% {
        left: 180%;
    }
}


@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}


@keyframes showTick {
    0% {
        opacity: 0;

        transform: scale(0.3);
    }

    70% {
        opacity: 1;

        transform: scale(1.2);
    }

    100% {
        opacity: 1;

        transform: scale(1);
    }
}


@keyframes kvBadgeWiggle {
    0% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(-2deg);
    }

    4% {
        transform: rotate(2deg);
    }

    6% {
        transform: rotate(-1deg);
    }

    8% {
        transform: rotate(1deg);
    }

    10% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .kv-card {
        padding: 30px 20px;
    }

    .kv-card h1 {
        font-size: 32px;
    }

    .checkmark {
        width: 90px;

        height: 90px;

        font-size: 50px;
    }

    .kv-info div {
        flex-direction: column;

        gap: 5px;

        align-items: flex-start;
    }

    .kv-offer-products {
        display: flex;

        flex-direction: row;

        gap: 10px;
    }

    .kv-product-card {
        width: calc(50% - 5px);

        flex: none;
    }

    .kv-product-card h3 {
        font-size: 15px;
    }

    .kv-price strong {
        font-size: 22px;
    }

    .kv-product-btn {
        font-size: 13px;

        padding: 11px;

        margin: 12px;
    }
}