/*
 * Mekan sayfası rezervasyon sihirbazı (inc/rez_sihirbaz.php).
 *
 * imr-min.css'e KONMADI: o dosya render-blocking ve her sayfada iniyor,
 * bu kurallar yalnız mekan detayının sağ kolonunda gerekli.
 *
 * Renkler yalnız kurumsal palet: beyaz zemin, marka moru ve lilası.
 * İlk sürümde zeminde mor/amber ışık lekeleri ve turuncu indirim
 * rozetleri vardı; sitenin geri kalanıyla ilgisiz duruyordu.
 */

.imr-rsz {
    --rsz-mor: #402766;
    --rsz-mor-2: #5b3a8f;
    --rsz-mor-koyu: #2a1747;
    --rsz-metin: #231733;
    --rsz-soluk: #6b6280;
    --rsz-pasif: #b3abc2;
    --rsz-cam: rgba(250, 248, 253, .85);
    --rsz-cam-guclu: rgba(255, 255, 255, .95);
    --rsz-cam-kenar: rgba(64, 39, 102, .08);
    --rsz-cizgi: rgba(64, 39, 102, .10);
    /* İndirim rozetleri de marka lilasında; turuncu kurumsal paletle çakışıyordu. */
    --rsz-indirim: #5b3a8f;
    --rsz-indirim-zemin: rgba(124, 88, 196, .13);
    --rsz-yesil: #0f7a4a;
    --rsz-hata: #b42318;
    --rsz-odak: 0 0 0 3px rgba(124, 88, 196, .45);
    --rsz-egri: cubic-bezier(.22, .8, .24, 1);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    padding: 20px 18px 18px;
    color: var(--rsz-metin);
    font-family: inherit;
    /* Kurumsal zemin: eski panel gibi beyaz, yalnız üstte çok hafif marka moru. */
    background:
        radial-gradient(90% 55% at 50% 0%, rgba(64, 39, 102, .07) 0, transparent 70%),
        linear-gradient(180deg, #fdfcff 0, #ffffff 60%);
    border: 1px solid rgba(64, 39, 102, .08);
    box-shadow:
        0 12px 40px rgba(64, 39, 102, .10),
        0 2px 8px rgba(15, 23, 42, .04);
}

.imr-rsz *,
.imr-rsz *::before,
.imr-rsz *::after {
    box-sizing: border-box;
}

.imr-rsz button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.imr-rsz button:focus-visible,
.imr-rsz input:focus-visible,
.imr-rsz textarea:focus-visible,
.imr-rsz select:focus-visible,
.imr-rsz a:focus-visible {
    outline: none;
    box-shadow: var(--rsz-odak);
}

/* ------------------------------------------------------------ başlık */

.imr-rsz-bas {
    padding: 0 4px 14px;
}

.imr-rsz-baslik-sira {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.imr-rsz-baslik {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.2;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-indirim {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--rsz-mor);
    background: linear-gradient(135deg, #f4eefc 0, #ebe2fa 100%);
    border: 1px solid rgba(124, 88, 196, .22);
    box-shadow: 0 4px 12px -6px rgba(64, 39, 102, .35);
}

.imr-rsz-indirim svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-alt {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--rsz-soluk);
}

/* ------------------------------------------------------ adım şeridi */

.imr-rsz-adimlar {
    display: flex;
    gap: 3px;
    height: 48px;
    margin: 0 0 12px;
    padding: 4px;
    list-style: none;
    border-radius: 16px;
    background: var(--rsz-cam);
    border: 1px solid var(--rsz-cam-kenar);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 18px -10px rgba(42, 23, 71, .25);
}

.imr-rsz-adimlar li {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    transition: flex-grow .38s var(--rsz-egri);
}

.imr-rsz-adimlar li[data-durum="aktif"] {
    flex-grow: 2.6;
}

.imr-rsz-adim {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 100%;
    padding: 0 10px 0 16px;
    border: 0;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--rsz-pasif);
    background: rgba(64, 39, 102, .05);
    /* Ok ucu: iyimasa'daki şerit gibi her parça bir sonrakini gösteriyor. */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    cursor: default;
    transition: background .3s ease, color .3s ease;
}

.imr-rsz-adimlar li:first-child .imr-rsz-adim {
    padding-left: 10px;
    border-radius: 12px 0 0 12px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.imr-rsz-adimlar li:last-child .imr-rsz-adim {
    border-radius: 0 12px 12px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}

.imr-rsz-adim svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-adim-ad {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    opacity: 0;
    transition: max-width .38s var(--rsz-egri), opacity .2s ease;
}

li[data-durum="aktif"] .imr-rsz-adim {
    color: #fff;
    background: linear-gradient(135deg, var(--rsz-mor) 0, var(--rsz-mor-2) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
}

li[data-durum="aktif"] .imr-rsz-adim-ad {
    max-width: 120px;
    opacity: 1;
}

li[data-durum="bitti"] .imr-rsz-adim {
    color: var(--rsz-mor);
    background: rgba(124, 88, 196, .16);
    cursor: pointer;
}

li[data-durum="bitti"] .imr-rsz-adim:hover {
    background: rgba(124, 88, 196, .26);
}

/* Tamamlanan adımın köşesinde küçük onay işareti; renk tek başına anlatmasın. */
li[data-durum="bitti"] .imr-rsz-adim::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rsz-yesil);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

li:last-child[data-durum="bitti"] .imr-rsz-adim::after {
    right: 8px;
}

/* ------------------------------------------------------ seçim şeridi */

.imr-rsz-secim {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    margin: 0 0 12px;
}

.imr-rsz-secim:empty {
    display: none;
}

.imr-rsz-cip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px 0 9px;
    border-radius: 999px;
    border: 1px solid var(--rsz-cam-kenar);
    background: var(--rsz-cam-guclu);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
    color: var(--rsz-mor-koyu);
    cursor: pointer;
    box-shadow: 0 2px 8px -4px rgba(42, 23, 71, .25);
    transition: background .2s ease, transform .2s ease;
    animation: imrRszBelir .32s var(--rsz-egri) both;
}

.imr-rsz-cip:hover {
    background: #fff;
}

.imr-rsz-cip:active {
    transform: scale(.97);
}

.imr-rsz-cip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--rsz-mor-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------- gövde */

.imr-rsz-govde {
    position: relative;
    padding: 14px 12px 12px;
    border-radius: 20px;
    background: var(--rsz-cam);
    border: 1px solid var(--rsz-cam-kenar);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 10px 30px -18px rgba(42, 23, 71, .35);
}

.imr-rsz-sahne {
    animation: imrRszGir .34s var(--rsz-egri) both;
}

.imr-rsz-sahne[data-yon="geri"] {
    animation-name: imrRszGeri;
}

@keyframes imrRszGir {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes imrRszGeri {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}

@keyframes imrRszBelir {
    from { opacity: 0; transform: translateY(4px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.imr-rsz-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    margin: 0 0 10px;
}

.imr-rsz-ust-baslik {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--rsz-mor-koyu);
    letter-spacing: -.2px;
}

.imr-rsz-ust-baslik small {
    display: block;
    margin-top: 1px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rsz-soluk);
    letter-spacing: 0;
}

.imr-rsz-geri {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 36px;
    padding: 0 10px 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--rsz-mor-2);
    cursor: pointer;
}

.imr-rsz-geri:hover {
    background: rgba(124, 88, 196, .1);
}

.imr-rsz-geri svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-ipucu {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rsz-soluk);
}

/* ---------------------------------------------------------- takvim */

.imr-rsz-ay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 6px;
}

.imr-rsz-ay-ad {
    font-size: 17px;
    font-weight: 800;
    color: var(--rsz-mor-koyu);
    letter-spacing: -.2px;
}

.imr-rsz-ok {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--rsz-mor);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.imr-rsz-ok:hover:not(:disabled) {
    background: var(--rsz-cam-guclu);
    border-color: var(--rsz-cam-kenar);
}

.imr-rsz-ok:disabled {
    color: var(--rsz-pasif);
    opacity: .5;
    cursor: default;
}

.imr-rsz-ok svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-hafta,
.imr-rsz-gunler {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.imr-rsz-hafta span {
    padding: 4px 0 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--rsz-soluk);
}

.imr-rsz-gun {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 50px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: var(--rsz-metin);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.imr-rsz-gun.is-acik {
    background: var(--rsz-cam-guclu);
    border-color: var(--rsz-cam-kenar);
    box-shadow: 0 1px 0 #fff inset, 0 4px 12px -8px rgba(42, 23, 71, .4);
}

.imr-rsz-gun.is-acik:hover {
    background: #fff;
    border-color: rgba(124, 88, 196, .35);
    transform: translateY(-1px);
}

.imr-rsz-gun.is-acik:active {
    transform: scale(.96);
}

/* Kapalı gün: üstü çizili + soluk; renk tek başına yetmesin. */
.imr-rsz-gun.is-kapali,
.imr-rsz-gun.is-gecmis {
    color: var(--rsz-pasif);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    cursor: not-allowed;
}

.imr-rsz-gun.is-kapali {
    background: rgba(244, 63, 94, .05);
}

.imr-rsz-gun.is-disarida {
    color: rgba(107, 98, 128, .38);
    cursor: default;
}

.imr-rsz-gun.is-bugun .imr-rsz-gun-no::after {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    margin: 3px auto 0;
    border-radius: 50%;
    background: var(--rsz-mor-2);
}

.imr-rsz-gun.is-bugun:has(.imr-rsz-oran) .imr-rsz-gun-no::after {
    display: none;
}

.imr-rsz-gun[aria-pressed="true"] {
    color: #fff;
    background: linear-gradient(145deg, var(--rsz-mor) 0, var(--rsz-mor-2) 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px -10px rgba(64, 39, 102, .75), 0 1px 0 rgba(255, 255, 255, .25) inset;
}

.imr-rsz-gun[aria-pressed="true"] .imr-rsz-gun-no::after {
    background: #fff;
}

.imr-rsz-oran {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1px;
    color: var(--rsz-indirim);
    background: var(--rsz-indirim-zemin);
    text-decoration: none;
}

.imr-rsz-gun[aria-pressed="true"] .imr-rsz-oran {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.imr-rsz-lejant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 12px 2px 0;
    padding-top: 10px;
    border-top: 1px solid var(--rsz-cizgi);
    font-size: 12.5px;
    color: var(--rsz-soluk);
}

.imr-rsz-lejant span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imr-rsz-lejant i {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid rgba(64, 39, 102, .25);
}

.imr-rsz-lejant i.kapali {
    background: rgba(244, 63, 94, .1);
    border-color: rgba(244, 63, 94, .3);
}

.imr-rsz-lejant p {
    flex-basis: 100%;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

/* ----------------------------------------------------------- saatler */

.imr-rsz-sekmeler {
    display: flex;
    gap: 4px;
    margin: 0 0 10px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(64, 39, 102, .06);
}

.imr-rsz-sekme {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rsz-soluk);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.imr-rsz-sekme:hover {
    color: var(--rsz-mor);
}

.imr-rsz-sekme[aria-selected="true"] {
    color: var(--rsz-mor-koyu);
    background: #fff;
    box-shadow: 0 4px 12px -6px rgba(42, 23, 71, .35);
}

.imr-rsz-sekme svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-sekme-sayi {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--rsz-mor-2);
    background: rgba(124, 88, 196, .14);
}

/*
 * Liste yüksekliği sınırlı: panel yapışkan, uzarsa alt satırlara
 * ulaşılamıyor (bkz. inc/rez_saat_modal.php). Taşma olursa altta solma
 * ve "N saat daha" düğmesi birlikte çıkıyor; tek başına kaydırma
 * çubuğu fark edilmiyordu.
 */
.imr-rsz-saat-liste {
    /* Konumlu olmalı: saatlerin offsetTop'u bu kaba göre ölçülüyor. */
    position: relative;
    max-height: 292px;
    margin: 0 -6px;
    padding: 3px 6px 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 39, 102, .25) transparent;
}

.imr-rsz-saat-liste[data-tasiyor] {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
}

.imr-rsz-devami {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 36px;
    margin-top: 4px;
    border: 1px dashed rgba(124, 88, 196, .35);
    border-radius: 12px;
    background: rgba(255, 255, 255, .6);
    font-size: 13px;
    font-weight: 700;
    color: var(--rsz-mor-2);
    cursor: pointer;
}

.imr-rsz-devami[hidden] {
    display: none;
}

.imr-rsz-devami:hover {
    background: #fff;
}

.imr-rsz-devami svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: imrRszZipla 1.6s ease-in-out infinite;
}

@keyframes imrRszZipla {
    0%, 100% { transform: none; }
    50% { transform: translateY(2px); }
}

.imr-rsz-saatler {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.imr-rsz-saat,
.imr-rsz-kisi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 6px 2px;
    border: 1px solid var(--rsz-cam-kenar);
    border-radius: 14px;
    background: var(--rsz-cam-guclu);
    color: var(--rsz-metin);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    box-shadow: 0 1px 0 #fff inset, 0 4px 12px -8px rgba(42, 23, 71, .4);
    transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    animation: imrRszBelir .3s var(--rsz-egri) both;
}

.imr-rsz-saat:hover,
.imr-rsz-kisi:hover {
    background: #fff;
    border-color: rgba(124, 88, 196, .35);
    transform: translateY(-1px);
}

.imr-rsz-saat:active,
.imr-rsz-kisi:active {
    transform: scale(.96);
}

.imr-rsz-saat[aria-pressed="true"],
.imr-rsz-kisi[aria-pressed="true"] {
    color: #fff;
    background: linear-gradient(145deg, var(--rsz-mor) 0, var(--rsz-mor-2) 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px -10px rgba(64, 39, 102, .75);
}

.imr-rsz-saat[aria-pressed="true"] .imr-rsz-oran {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

/* ------------------------------------------------------------- kişi */

.imr-rsz-kisiler {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.imr-rsz-kisi {
    min-height: 58px;
    font-size: 19px;
    font-weight: 800;
}

.imr-rsz-kisi small {
    font-size: 11px;
    font-weight: 600;
    opacity: .7;
}

.imr-rsz-kalabalik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 10px 10px 14px;
    border-radius: 16px;
    background: var(--rsz-cam-guclu);
    border: 1px solid var(--rsz-cam-kenar);
}

.imr-rsz-kalabalik-ad {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-kalabalik-ad small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rsz-soluk);
}

.imr-rsz-sayac {
    display: flex;
    align-items: center;
    gap: 4px;
}

.imr-rsz-sayac button:not(.imr-rsz-ana) {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(64, 39, 102, .15);
    border-radius: 12px;
    background: #fff;
    color: var(--rsz-mor);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.imr-rsz-sayac button:not(.imr-rsz-ana):disabled {
    opacity: .4;
    cursor: default;
}

.imr-rsz-sayac output {
    min-width: 34px;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--rsz-mor-koyu);
}

/* ------------------------------------------------------------ form */

/*
 * Kampanya kuponu. Koçan ile gövde arasındaki delikler panelin cam
 * zemin rengiyle boyanıyor (--rsz-delik); zemin değişirse o da değişmeli.
 */
.imr-rsz-kupon {
    --rsz-delik: #faf8fd;
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    margin: 0 0 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(64, 39, 102, .14);
    box-shadow: 0 10px 24px -16px rgba(64, 39, 102, .45);
    overflow: hidden;
}

.imr-rsz-kupon::before,
.imr-rsz-kupon::after {
    content: "";
    position: absolute;
    left: 61px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rsz-delik);
    border: 1px solid rgba(64, 39, 102, .14);
    z-index: 1;
}

.imr-rsz-kupon::before {
    top: -8px;
}

.imr-rsz-kupon::after {
    bottom: -8px;
}

.imr-rsz-kupon-kocan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 4px;
    color: #fff;
    background: linear-gradient(160deg, var(--rsz-mor-2) 0, var(--rsz-mor) 60%, var(--rsz-mor-koyu) 100%);
    overflow: hidden;
}

/* Koçanın üstünden geçen yavaş parıltı: kupona "canlı" his. */
.imr-rsz-kupon-kocan::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg);
    animation: imrRszParilti 3.8s ease-in-out infinite;
}

@keyframes imrRszParilti {
    0%, 55% { left: -70%; }
    100% { left: 140%; }
}

.imr-rsz-kupon-kocan b {
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.5px;
    text-shadow: 0 1px 2px rgba(20, 10, 36, .35);
}

.imr-rsz-kupon-kocan small {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    opacity: .92;
}

.imr-rsz-kupon-kocan svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-kupon-govde {
    min-width: 0;
    padding: 10px 12px 10px 16px;
    border-left: 2px dashed rgba(64, 39, 102, .18);
}

.imr-rsz-kupon-baslik {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-kupon-alt {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--rsz-soluk);
}

.imr-rsz-kupon-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.imr-rsz-kupon-liste li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rsz-mor);
    background: rgba(124, 88, 196, .10);
}

.imr-rsz-kupon-liste svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--rsz-yesil);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-alan {
    margin: 0 0 9px;
}

.imr-rsz-alan label {
    display: block;
    margin: 0 0 5px 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-alan label span {
    font-weight: 500;
    color: var(--rsz-soluk);
}

.imr-rsz-alan input,
.imr-rsz-alan textarea,
.imr-rsz-alan select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid rgba(64, 39, 102, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .85);
    color: var(--rsz-metin);
    font-size: 16px;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(42, 23, 71, .05) inset;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.imr-rsz-alan select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3a8f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.imr-rsz-alan textarea {
    min-height: 44px;
    resize: vertical;
}

.imr-rsz-alan input:hover,
.imr-rsz-alan textarea:hover,
.imr-rsz-alan select:hover {
    border-color: rgba(64, 39, 102, .28);
}

.imr-rsz-alan input:focus,
.imr-rsz-alan textarea:focus,
.imr-rsz-alan select:focus {
    outline: none;
    background: #fff;
    border-color: var(--rsz-mor-2);
    box-shadow: var(--rsz-odak);
}

.imr-rsz-alan input[aria-invalid="true"] {
    border-color: var(--rsz-hata);
}

.imr-rsz-alan .ipucu {
    display: block;
    margin: 5px 2px 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--rsz-soluk);
}

.imr-rsz-hata {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 2px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rsz-hata);
}

.imr-rsz-hata::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--rsz-hata);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.imr-rsz-bal {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.imr-rsz-uyari {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4eefc;
    border: 1px solid rgba(124, 88, 196, .22);
    font-size: 13px;
    line-height: 1.45;
    color: var(--rsz-mor);
}

.imr-rsz-uyari.is-hata {
    background: rgba(254, 228, 226, .85);
    border-color: rgba(180, 35, 24, .25);
    color: var(--rsz-hata);
}

.imr-rsz-uyari a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* --------------------------------------------------------- düğmeler */

.imr-rsz-ana {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--rsz-mor) 0, var(--rsz-mor-2) 100%);
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(64, 39, 102, .85), 0 1px 0 rgba(255, 255, 255, .25) inset;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

/* Işık süpürmesi: düğmenin üstünden geçen ince parıltı, yalnız üzerine gelince. */
.imr-rsz-ana::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    transition: left .6s ease;
    pointer-events: none;
}

.imr-rsz-ana:hover:not(:disabled)::after {
    left: 120%;
}

.imr-rsz-ana:hover:not(:disabled) {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 32px -14px rgba(64, 39, 102, .9), 0 1px 0 rgba(255, 255, 255, .25) inset;
}

.imr-rsz-ana:active:not(:disabled) {
    transform: scale(.985);
}

.imr-rsz-ana:disabled {
    opacity: .55;
    cursor: default;
}

.imr-rsz-ana svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.imr-rsz-metin {
    display: block;
    margin: 10px auto 0;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--rsz-mor-2);
    cursor: pointer;
    border-radius: 10px;
}

.imr-rsz-metin:hover:not(:disabled) {
    background: rgba(124, 88, 196, .1);
}

.imr-rsz-metin:disabled {
    color: var(--rsz-soluk);
    cursor: default;
}

.imr-rsz-halka {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.4px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: imrRszDon .8s linear infinite;
}

.imr-rsz-yukleniyor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 140px;
    font-size: 13.5px;
    color: var(--rsz-soluk);
}

.imr-rsz-yukleniyor .imr-rsz-halka {
    border-color: rgba(64, 39, 102, .15);
    border-top-color: var(--rsz-mor-2);
}

@keyframes imrRszDon {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------- onay kodu */

.imr-rsz-kod input {
    height: 60px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 12px;
    padding-left: 24px;
    font-variant-numeric: tabular-nums;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-kod input::placeholder {
    color: rgba(64, 39, 102, .25);
}

/* ------------------------------------------------------------- özet */

.imr-rsz-ozet {
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--rsz-cam-guclu);
    border: 1px solid var(--rsz-cam-kenar);
}

.imr-rsz-ozet dl {
    margin: 0;
}

.imr-rsz-ozet div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 13.5px;
}

.imr-rsz-ozet div + div {
    border-top: 1px dashed var(--rsz-cizgi);
}

.imr-rsz-ozet dt {
    font-weight: 600;
    color: var(--rsz-soluk);
}

.imr-rsz-ozet dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-basarili {
    padding: 6px 4px 2px;
    text-align: center;
}

.imr-rsz-tik {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #12a067, #0b7a4d);
    box-shadow: 0 14px 30px -12px rgba(11, 122, 77, .7), 0 0 0 8px rgba(18, 160, 103, .12);
    animation: imrRszPatla .5s var(--rsz-egri) both;
}

.imr-rsz-tik svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: imrRszCiz .45s .25s ease forwards;
}

@keyframes imrRszPatla {
    from { opacity: 0; transform: scale(.6); }
    to { opacity: 1; transform: none; }
}

@keyframes imrRszCiz {
    to { stroke-dashoffset: 0; }
}

.imr-rsz-basarili h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--rsz-mor-koyu);
}

.imr-rsz-basarili > p {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--rsz-soluk);
}

/* ---------------------------------------------------------- iskelet */

.imr-rsz-iskelet {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.imr-rsz-isk-ay {
    grid-column: 1 / -1;
    height: 40px;
    margin: 0 auto 30px;
    width: 45%;
    border-radius: 10px;
}

.imr-rsz-isk-gun {
    height: 50px;
    border-radius: 16px;
}

.imr-rsz-isk-ay,
.imr-rsz-isk-gun {
    background: linear-gradient(90deg, rgba(64, 39, 102, .05) 0, rgba(64, 39, 102, .1) 50%, rgba(64, 39, 102, .05) 100%);
    background-size: 200% 100%;
    animation: imrRszIsilti 1.4s ease infinite;
}

@keyframes imrRszIsilti {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* Görsel olarak gizli ama ekran okuyucuya okunan metin. */
.imr-rsz-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------------------- dar sütunlar */

@media (max-width: 1199px) {
    .imr-rsz {
        padding: 16px 12px 12px;
    }

    .imr-rsz-baslik {
        font-size: 19px;
        white-space: nowrap;
    }

    .imr-rsz-indirim {
        padding: 4px 8px 4px 7px;
        font-size: 12px;
    }

    .imr-rsz-govde {
        padding: 12px 8px 10px;
    }

    .imr-rsz-gun {
        height: 46px;
        border-radius: 14px;
        font-size: 14.5px;
    }

    .imr-rsz-oran {
        font-size: 9px;
        padding: 1px 4px;
    }

    /* Dar sütunda da 4'lü: sütun sayısı sabit kalsın, yalnız yazı küçülsün. */
    .imr-rsz-saatler {
        gap: 5px;
    }

    .imr-rsz-saat {
        font-size: 13.5px;
        border-radius: 12px;
    }

    .imr-rsz-sekme {
        gap: 4px;
        font-size: 12.5px;
    }

    .imr-rsz-sekme svg {
        display: none;
    }

    li[data-durum="aktif"] .imr-rsz-adim-ad {
        max-width: 84px;
    }
}

/* ------------------------------------------- /rezervasyon sekmesi */

/*
 * Sekmede ana sütun geniş (masaüstünde ~750px); takvim o genişlikte
 * yayılınca günler dağınık duruyordu. Panel yan kolondaki boyuna yakın
 * tutulup ortalanıyor.
 */
.imr-rsz-sayfa {
    max-width: 520px;
    margin: 12px auto 28px;
}

/* ------------------------------------------------------------ mobil */

@media (max-width: 767px) {
    .imr-rsz-sayfa {
        max-width: none;
        margin: 8px 0 24px;
    }

    .imr-rsz {
        border-radius: 22px;
        padding: 16px 12px 12px;
    }

    .imr-rsz-baslik {
        font-size: 20px;
    }

    .imr-rsz-govde {
        padding: 12px 8px 10px;
        border-radius: 18px;
    }

    .imr-rsz-hafta,
    .imr-rsz-gunler {
        gap: 3px;
    }

    .imr-rsz-gun {
        height: 48px;
        border-radius: 14px;
        font-size: 15px;
    }

    .imr-rsz-oran {
        font-size: 9px;
        padding: 1px 4px;
    }

    /* Kalabalık grup satırı dar telefonda (320-360px) sığmıyordu: sayaç alta iniyor. */
    .imr-rsz-kalabalik {
        flex-wrap: wrap;
    }

    .imr-rsz-kalabalik .imr-rsz-sayac {
        margin-left: auto;
    }

    /* Mobilde saat listesi sayfayla birlikte kayıyor; iç içe kaydırma parmakla zor. */
    .imr-rsz-saat-liste {
        max-height: none;
        overflow: visible;
    }

    li[data-durum="aktif"] .imr-rsz-adim-ad {
        max-width: 72px;
    }

    .imr-rsz-adim {
        gap: 5px;
        font-size: 13px;
    }
}

/* Cam efekti desteklenmiyorsa yüzeyler biraz daha opak: metin okunaklı kalsın. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .imr-rsz {
        --rsz-cam: rgba(255, 255, 255, .86);
        --rsz-cam-guclu: rgba(255, 255, 255, .95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .imr-rsz *,
    .imr-rsz *::before,
    .imr-rsz *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .imr-rsz-tik svg {
        stroke-dashoffset: 0;
    }
}
