.ib-tetik {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-foto-rozet-zemin);
    color: var(--ep-foto-rozet-yazi);
    font-size: .85rem;
    cursor: pointer;
}

    .ib-tetik:focus-visible,
    .ib-baglanti:focus-visible {
        outline: 2px solid var(--ep-primary);
        outline-offset: 2px;
    }

.ib-baglanti {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ep-muted);
    font-size: .8rem;
    text-decoration: underline;
    cursor: pointer;
}

    .ib-baglanti:hover {
        color: var(--ep-red-tx);
    }

.ib-modal .modal-content {
    background: var(--ep-surface);
    color: var(--ep-text);
    border: 1px solid var(--ep-border);
    border-radius: 16px;
}

.ib-modal .modal-header,
.ib-modal .modal-footer {
    border-color: var(--ep-border);
}

.ib-modal .modal-header {
    gap: .75rem;
}

.ib-modal .modal-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ep-text);
}

    .ib-modal .modal-title i {
        color: var(--ep-red);
    }

.ib-kapat {
    margin-left: auto;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ep-border);
    border-radius: 10px;
    background: var(--ep-surface-2);
    color: var(--ep-text-2);
    cursor: pointer;
}

.ib-bal {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ib-etiket {
    display: block;
    margin: .25rem 0 .5rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ep-text);
}

.ib-istege {
    font-weight: 500;
    color: var(--ep-muted);
}

.ib-nedenler {
    display: grid;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ib-secim {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .6rem .75rem;
    border: 1px solid var(--ep-border-2);
    border-radius: 10px;
    background: var(--ep-surface);
    color: var(--ep-text);
    font-size: .9rem;
    line-height: 1.3;
    cursor: pointer;
}

.ib-secim input,
.ib-gorsel input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ib-tik {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--ep-border-2);
    border-radius: 50%;
    background: var(--ep-surface);
    color: transparent;
    font-size: .7rem;
}

.ib-secim input:checked + .ib-tik,
.ib-gorsel input:checked ~ .ib-tik {
    border-color: var(--ep-primary);
    background: var(--ep-primary);
    color: var(--ep-primary-uzeri);
}

.ib-secim:has(input:checked) {
    border-color: var(--ep-primary);
    background: var(--ep-primary-50);
}

.ib-secim:has(input:focus-visible),
.ib-gorsel:has(input:focus-visible) {
    outline: 2px solid var(--ep-primary);
    outline-offset: 2px;
}

.ib-gorsel-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: .5rem;
    margin-bottom: 1rem;
}

.ib-gorsel {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    border: 2px solid var(--ep-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

    .ib-gorsel img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ib-gorsel .ib-tik {
        position: absolute;
        top: 4px;
        right: 4px;
    }

    .ib-gorsel:has(input:checked) {
        border-color: var(--ep-primary);
    }

.ib-modal textarea {
    display: block;
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid var(--ep-border-2);
    border-radius: 10px;
    background: var(--ep-input-bg);
    color: var(--ep-text);
    font-size: .9rem;
    resize: vertical;
}

    .ib-modal textarea:focus {
        border-color: var(--ep-primary);
        outline: none;
        box-shadow: none;
    }

    .ib-modal textarea::placeholder {
        color: var(--ep-muted);
    }

.ib-turnstile {
    margin-top: .75rem;
}

.ib-bilgi {
    margin: .75rem 0 0;
    font-size: .78rem;
    color: var(--ep-muted);
}

.ib-hata {
    margin-top: .75rem;
    padding: .55rem .75rem;
    border: 1px solid var(--ep-red-bd);
    border-radius: 10px;
    background: var(--ep-red-bg);
    color: var(--ep-red-tx);
    font-size: .85rem;
}

.ib-tamam {
    padding: 1.5rem 1rem;
    text-align: center;
}

    .ib-tamam i {
        font-size: 2.2rem;
        color: var(--ep-green);
    }

    .ib-tamam p {
        margin: .75rem 0 0;
        color: var(--ep-text);
        font-weight: 600;
    }

.ib-dugme {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border: 1px solid var(--ep-border-2);
    border-radius: 10px;
    background: var(--ep-surface);
    color: var(--ep-text);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.ib-dugme-ana {
    border-color: var(--ep-primary);
    background: var(--ep-primary);
    color: var(--ep-primary-uzeri);
}

    .ib-dugme-ana:disabled {
        border-color: var(--ep-border);
        background: var(--ep-surface-3);
        color: var(--ep-muted);
        cursor: not-allowed;
    }

.ib-kayit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ib-kayit-foto {
    flex: 0 0 112px;
}

    .ib-kayit-foto img {
        display: block;
        width: 112px;
        height: 112px;
        object-fit: cover;
        border-radius: 12px;
        background: var(--ep-surface-2);
    }

.ib-kayit-govde {
    flex: 1 1 auto;
    min-width: 0;
}

.ib-kayit-hedef {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .9rem;
    overflow-wrap: anywhere;
}

.ib-kayit-not {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--ep-text-2);
}

.ib-kayit-islemler {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

@media (max-width: 576px) {
    .ib-modal .modal-dialog {
        display: flex;
        align-items: flex-end;
        min-height: 100%;
        max-width: none;
        margin: 0;
    }

    .ib-modal .modal-content {
        max-height: 92dvh;
        border-bottom: 0;
        border-radius: 22px 22px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

        .ib-modal .modal-content::before {
            content: "";
            display: block;
            width: 40px;
            height: 4px;
            margin: 8px auto 0;
            border-radius: 2px;
            background: var(--ep-border-2);
        }

    .ib-modal .modal-body {
        overflow-y: auto;
    }

    .ib-dugme {
        padding: .35rem .75rem;
        font-size: .8rem;
    }

    .ib-kayit {
        flex-direction: column;
    }

    .ib-kayit-foto,
    .ib-kayit-foto img {
        width: 100%;
        flex-basis: auto;
    }

    .ib-kayit-foto img {
        height: 180px;
    }

    .ib-kayit-islemler {
        justify-content: stretch;
    }

        .ib-kayit-islemler > * {
            flex: 1 1 auto;
        }

        .ib-kayit-islemler .ep-btn {
            width: 100%;
            justify-content: center;
        }
}
