/* =========================================================
   CZORS HOME — NEXT APPOINTMENT
========================================================= */

.cz-home-next-section {
    width: 100%;
    color: #fff;
}

.cz-home-next-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.cz-home-next-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #ff8a18;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
}

.cz-home-next-title {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.cz-home-next-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid rgba(71, 214, 142, .25);
    border-radius: 999px;
    background: rgba(71, 214, 142, .08);
    color: #70e6a9;
    font-size: 12px;
    font-weight: 800;
}

.cz-home-next-status svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.3;
}

.cz-home-next-card {
    position: relative;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 250px;
    align-items: stretch;
    gap: 24px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 138, 24, .12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #111 0%,
            #090909 55%,
            #0d0b09 100%
        );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

.cz-home-next-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        #ff8a18,
        rgba(255, 138, 24, .08) 48%,
        transparent
    );
    content: "";
}

.cz-home-next-avatar {
    width: 132px;
    height: 132px;
    overflow: hidden;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: #171717;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.cz-home-next-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cz-home-next-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #242424, #111);
    color: #fff;
    font-size: 40px;
    font-weight: 900;
}

.cz-home-next-content {
    min-width: 0;
    align-self: center;
}

.cz-home-next-provider-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cz-home-next-name {
    overflow: hidden;
    margin-bottom: 5px;
    color: #fff;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cz-home-next-service {
    color: #b8b8b8;
    font-size: 15px;
    font-weight: 500;
}

.cz-home-next-confirmed {
    display: inline-flex;
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid rgba(255, 138, 24, .22);
    border-radius: 999px;
    background: rgba(255, 138, 24, .08);
    color: #ff9b3b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.cz-home-next-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.cz-home-next-meta-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 15px;
    background: rgba(255, 255, 255, .035);
}

.cz-home-next-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 138, 24, .12);
    color: #ff8a18;
}

.cz-home-next-meta-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.1;
}

.cz-home-next-meta-item div {
    min-width: 0;
}

.cz-home-next-meta-item span:not(.cz-home-next-meta-icon) {
    display: block;
    margin-bottom: 2px;
    color: #858585;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cz-home-next-meta-item strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cz-home-next-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.cz-home-next-countdown {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 16px;
    border: 1px solid rgba(255, 138, 24, .15);
    border-radius: 17px;
    background: rgba(255, 138, 24, .055);
    text-align: center;
}

.cz-home-next-countdown-label {
    margin-bottom: 6px;
    color: #9d9d9d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cz-home-next-countdown-value {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.cz-home-next-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #ff8a18;
    border-radius: 14px;
    background: #ff8a18;
    color: #090909 !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.cz-home-next-details svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.cz-home-next-details:hover {
    background: #ff9b3b;
    color: #090909 !important;
    box-shadow: 0 10px 25px rgba(255, 138, 24, .2);
    transform: translateY(-2px);
}

.cz-home-next-details:hover svg {
    transform: translateX(3px);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.cz-home-next-empty {
    position: relative;
    padding: 40px 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 138, 24, .1),
            transparent 45%
        ),
        #0b0b0b;
    text-align: center;
}

.cz-home-next-empty p {
    margin: 0 0 18px;
    color: #aaa;
    font-size: 15px;
}

.cz-home-next-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    background: #ff8a18;
    color: #090909 !important;
    font-weight: 900;
    text-decoration: none !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .cz-home-next-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .cz-home-next-avatar {
        width: 112px;
        height: 112px;
    }

    .cz-home-next-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: stretch;
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-left: 0;
    }

    .cz-home-next-countdown {
        min-height: 50px;
    }

    .cz-home-next-details {
        width: 220px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cz-home-next-heading {
        align-items: flex-start;
    }

    .cz-home-next-eyebrow {
        font-size: 10px;
    }

    .cz-home-next-title {
        font-size: 23px;
    }

    .cz-home-next-status {
        padding: 7px 9px;
        font-size: 10px;
    }

    .cz-home-next-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        padding: 15px;
        border-radius: 20px;
    }

    .cz-home-next-avatar {
        width: 78px;
        height: 78px;
        align-self: start;
        border-radius: 15px;
    }

    .cz-home-next-provider-line {
        display: block;
        margin-bottom: 14px;
    }

    .cz-home-next-name {
        margin-bottom: 3px;
        font-size: 18px;
    }

    .cz-home-next-service {
        font-size: 13px;
    }

    .cz-home-next-confirmed {
        margin-top: 8px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .cz-home-next-meta {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .cz-home-next-meta-item {
        display: block;
        padding: 10px 8px;
        text-align: center;
    }

    .cz-home-next-meta-icon {
        width: 29px;
        height: 29px;
        margin: 0 auto 7px;
    }

    .cz-home-next-meta-item strong {
        font-size: 12px;
    }

    .cz-home-next-side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 14px;
    }

    .cz-home-next-countdown {
        min-height: auto;
        padding: 12px;
    }

    .cz-home-next-countdown-value {
        font-size: 15px;
    }

    .cz-home-next-details {
        width: 100%;
        min-height: 46px;
    }

}