/* ============================================
   B2B Profil — İYS İzinlerim Sayfası
   ============================================ */

.b2b-profil-iys {
    max-width: 680px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Başlık ---- */
.b2b-iys-header { margin-bottom: 24px; }
.b2b-iys-header h3 { font-size: 1.4rem; margin: 0 0 6px; }
.b2b-iys-header-desc { color: #666; font-size: 14px; margin: 0; }

/* ---- İYS Bilgi Kartı ---- */
.b2b-iys-bilgi-kart {
    background: linear-gradient(135deg, #1d3557 0%, #2d4a7a 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.b2b-iys-bilgi-baslik {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.b2b-iys-bilgi-baslik strong {
    font-size: 1rem;
    color: #fff;
}

.b2b-iys-bilgi-icon { font-size: 1.4rem; }

.b2b-iys-bilgi-kart > p {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Avantajlar — checkbox'ları gizle */
.b2b-iys-avantajlar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.b2b-iys-avantaj {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,.9) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* WooCommerce checkbox override */
.b2b-iys-avantaj input[type="checkbox"],
.b2b-iys-avantajlar input[type="checkbox"] {
    display: none !important;
}

.b2b-iys-avantaj span:first-child {
    flex-shrink: 0;
    font-size: 13px;
}

/* ---- İletişim Bilgileri ---- */
.b2b-iys-iletisim-kart {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.b2b-iys-iletisim-kart > strong {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    color: #333;
}

.b2b-iys-iletisim-satirlar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-iys-iletisim-satir {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.b2b-iys-iletisim-label {
    color: #666;
    min-width: 80px;
    font-size: 13px;
}

.b2b-iys-iletisim-deger {
    font-weight: 600;
    color: #333;
}

/* ---- Uyarı ---- */
.b2b-iys-uyari {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #e65100;
}

/* ---- Güncelle Butonu ---- */
.b2b-iys-guncelle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.b2b-iys-guncelle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #1d3557;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    text-decoration: none !important;
}

.b2b-iys-guncelle-btn:hover { background: #e63946; color: #fff !important; }
.b2b-iys-guncelle-btn:disabled { opacity: .6; cursor: not-allowed; background: #1d3557; }

.b2b-iys-guncelle-aciklama {
    font-size: 12px;
    color: #888;
}

/* ---- İzin Kartları ---- */
.b2b-iys-kartlar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.b2b-iys-kart {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.b2b-kart-onay {
    border-color: #c8e6c9;
    background: linear-gradient(180deg, #f9fff9 0%, #fff 100%);
}

.b2b-kart-ret {
    border-color: #ffcdd2;
    background: linear-gradient(180deg, #fff9f9 0%, #fff 100%);
}

.b2b-kart-belirsiz { border-color: #eee; }

.b2b-iys-kart-ust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.b2b-iys-kart-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.b2b-iys-kart-baslik strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}

.b2b-iys-kart-baslik small {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.b2b-iys-kart-durum {
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.b2b-iys-onay { color: #2e7d32; }
.b2b-iys-ret  { color: #c62828; }
.b2b-iys-yok  { color: #aaa; font-weight: 400; }

.b2b-iys-kart-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #888;
    flex: 1;
}

.b2b-iys-kart-meta span { line-height: 1.4; }

.b2b-iys-sure-uyari {
    color: #e65100 !important;
    font-weight: 600;
}

/* ---- Değiştir Butonu ---- */
.b2b-iys-degistir-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    transition: all .2s;
    width: 100%;
    text-align: center;
}

.b2b-btn-kapat {
    border-color: #f44336;
    color: #f44336;
    background: #fff;
}

.b2b-btn-kapat:hover:not(:disabled) {
    background: #f44336;
    color: #fff;
}

.b2b-btn-ac {
    border-color: #4caf50;
    color: #4caf50;
    background: #fff;
}

.b2b-btn-ac:hover:not(:disabled) {
    background: #4caf50;
    color: #fff;
}

.b2b-iys-degistir-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ---- OTP Modal ---- */
.b2b-otp-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.55);
    z-index: 9998;
}

.b2b-otp-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.b2b-otp-modal h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #1d3557;
}

.b2b-otp-modal > p {
    color: #555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

#b2b-otp-adim-1,
#b2b-otp-adim-2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-otp-input {
    width: 100%;
    padding: 16px;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 12px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color .2s;
    color: #1d3557;
}

.b2b-otp-input:focus {
    outline: none;
    border-color: #1d3557;
}

/* ---- Mesajlar ---- */
#b2b-otp-mesaj,
#b2b-iys-mesaj {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.b2b-mesaj-basari {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.b2b-mesaj-hata {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* ---- Linkler ---- */
.b2b-btn-link {
    background: none;
    border: none;
    color: #e63946;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 0;
    text-align: center;
    display: block;
}

/* ---- KVKK ---- */
.b2b-iys-kvkk {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    color: #888;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
}

.b2b-iys-kvkk a {
    color: #1d3557;
    font-weight: 600;
    text-decoration: none;
}

.b2b-iys-kvkk a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .b2b-iys-kartlar { grid-template-columns: 1fr; }
    .b2b-iys-avantajlar { grid-template-columns: 1fr; }
    .b2b-otp-modal { padding: 24px; }
}