/* Çerez onayı: açık ve koyu sayfalarda okunur bağımsız kart */
.cc { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; padding: 18px 20px; border-radius: 16px;
  background: #fff; color: #101828; box-shadow: 0 18px 50px rgba(16,24,40,.28); border: 1px solid #E4E7EC; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.cc[hidden] { display: none; } .cc h2 { margin: 0 0 6px; font-size: 17px; } .cc p { margin: 0 0 10px; color: #475467; }
.cc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.cc-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #E4E7EC; border-radius: 12px; cursor: pointer; }
.cc-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: #155EEF; } .cc-row small { display: block; color: #667085; margin-top: 2px; }
.cc-always { font-size: 12px; color: #05603A; background: #ECFDF3; padding: 1px 8px; border-radius: 99px; margin-left: 4px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; } .cc-btn { flex: 1 1 140px; min-height: 42px; border-radius: 10px; border: 1px solid #155EEF; background: #fff;
  color: #155EEF; font: 600 14px system-ui, sans-serif; cursor: pointer; } .cc-btn:hover { background: #EEF4FF; }
.cc-link { display: inline-block; margin-top: 10px; color: #155EEF; font-size: 13px; }
@media (max-width: 560px) { .cc { left: 8px; right: 8px; bottom: 8px; padding: 14px; } }
/* Hareketsizlik uyarısı: uygulama içi pencere, geri sayım */
.idle { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: rgba(16,24,40,.45); backdrop-filter: blur(3px); }
.idle[hidden] { display: none; } .idle-card { width: min(420px, calc(100vw - 32px)); padding: 26px 24px 20px; border-radius: 18px; background: #fff; color: #101828;
  text-align: center; box-shadow: 0 24px 60px rgba(16,24,40,.35); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.idle-ring { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; border: 5px solid #FDB022; color: #B54708;
  font: 800 26px system-ui, sans-serif; } .idle-card h2 { margin: 0 0 6px; font-size: 19px; } .idle-card p { margin: 0 0 16px; color: #475467; }
.idle-actions { display: flex; gap: 8px; } .idle-actions .cc-btn { display: grid; place-items: center; text-decoration: none; } .idle-stay { background: #155EEF !important; color: #fff !important; }
/* Şifre göster/gizle */
.pw-wrap { position: relative; display: block; } .pw-wrap input { width: 100%; padding-right: 46px !important; box-sizing: border-box; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; padding: 0 !important; display: grid; place-items: center;
  border: 0 !important; border-radius: 8px; background: transparent !important; color: #667085 !important; cursor: pointer; box-shadow: none !important; }
.pw-eye:hover { background: rgba(16,24,40,.06) !important; color: #101828 !important; } .pw-eye:focus-visible { outline: 2px solid #155EEF; outline-offset: 1px; }
/* Uygulama içi uyarılar: bildirim kutuları, onay penceresi, alan hataları (ui.js) */
.cmg-toasts { position: fixed; top: 16px; right: 16px; z-index: 1300; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.cmg-toast { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px 10px 12px 14px; border-radius: 14px;
  background: #fff; color: #101828; border: 1px solid #E4E7EC; border-left: 4px solid #155EEF; box-shadow: 0 14px 40px rgba(16,24,40,.18); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: cmgIn .18s ease-out; }
@keyframes cmgIn { from { opacity: 0; transform: translateY(-8px); } } .cmg-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: .18s; }
.cmg-toast-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #155EEF; }
.cmg-toast.is-success { border-left-color: #12B76A; } .cmg-toast.is-success .cmg-toast-icon { background: #12B76A; }
.cmg-toast.is-error { border-left-color: #F04438; } .cmg-toast.is-error .cmg-toast-icon { background: #F04438; }
.cmg-toast.is-warning { border-left-color: #F79009; } .cmg-toast.is-warning .cmg-toast-icon { background: #F79009; }
.cmg-toast-text { padding-top: 1px; overflow-wrap: anywhere; } .cmg-toast-x { width: 26px; height: 26px; padding: 0 !important; border: 0 !important; border-radius: 8px;
  background: transparent !important; color: #667085 !important; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none !important; } .cmg-toast-x:hover { background: #F2F4F7 !important; }
ul.messages.is-toasted { display: none; }
.cmg-modal { position: fixed; inset: 0; z-index: 1350; display: grid; place-items: center; background: rgba(16,24,40,.5); backdrop-filter: blur(2px); animation: cmgFade .15s; }
@keyframes cmgFade { from { opacity: 0; } } .cmg-modal-box { width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: 18px; background: #fff; color: #101828;
  box-shadow: 0 24px 60px rgba(16,24,40,.35); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.cmg-modal-box h2 { margin: 0 0 6px; font-size: 18px; } .cmg-modal-box p { margin: 0 0 18px; color: #475467; }
.cmg-modal-actions { display: flex; justify-content: flex-end; gap: 8px; } .cmg-btn { min-height: 40px; padding: 0 16px !important; border-radius: 10px; border: 1px solid #155EEF !important;
  background: #155EEF !important; color: #fff !important; font: 600 14px system-ui, sans-serif; cursor: pointer; } .cmg-btn-danger { background: #D92D20 !important; border-color: #D92D20 !important; }
.cmg-btn-ghost { background: #fff !important; color: #344054 !important; border-color: #D0D5DD !important; } .cmg-btn:focus-visible { outline: 3px solid #84ADFF; outline-offset: 2px; }
.cmg-field-error { margin: 6px 0 0; color: #B42318; font-size: 13.5px; font-weight: 500; } [aria-invalid="true"] { border-color: #F04438 !important; box-shadow: 0 0 0 3px rgba(240,68,56,.12) !important; }
@media (max-width: 560px) { .cmg-toasts { top: 8px; right: 8px; left: 8px; width: auto; } }
