/* Header içi kadro giriş */
.cb-header-top-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-height: 34px !important;
}
.cb-header-top-right .header-top-social {
  float: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.cb-ekip-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: -1;
}
.cb-ekip-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #1A2340;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.cb-ekip-header-btn:hover {
  background: #CE1414;
  color: #fff !important;
}
.cb-ekip-header-btn i { font-size: 12px; }
.cb-ekip-header-btn.is-user {
  padding: 3px 10px 3px 3px;
}
.cb-ekip-header-btn.is-user img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cb-ekip-header-out {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #CE1414 !important;
  border: 1px solid rgba(206, 20, 20, 0.3);
  text-decoration: none !important;
  font-size: 11px;
}
.cb-ekip-header-out:hover {
  background: #CE1414;
  color: #fff !important;
}

/* Modal — kompakt */
.cb-ekip-modal.remodal {
  max-width: 320px !important;
  width: calc(100% - 28px) !important;
  padding: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 19, 62, 0.28);
}
.cb-ekip-modal .remodal-close {
  top: 6px !important;
  right: 6px !important;
  color: #fff !important;
  opacity: 0.85;
}
.cb-ekip-modal-head {
  background: #1A2340;
  color: #fff;
  padding: 14px 16px 12px;
  text-align: left;
}
.cb-ekip-modal-icon {
  display: none;
}
.cb-ekip-modal-head h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}
.cb-ekip-modal-head p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.78;
}
.cb-ekip-modal-body {
  padding: 12px 14px 14px;
  background: #fff;
}
.cb-ekip-modal-body label {
  display: block;
  margin-bottom: 8px;
}
.cb-ekip-modal-body label span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cb-ekip-modal-body input {
  width: 100%;
  border: 1px solid rgba(26, 35, 64, 0.16);
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.3;
  outline: none;
  border-radius: 3px;
  box-sizing: border-box;
}
.cb-ekip-modal-body input:focus {
  border-color: rgba(206, 20, 20, 0.5);
}
.cb-ekip-modal-btn {
  width: 100%;
  border: 0;
  background: #CE1414;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
  margin-top: 2px;
  border-radius: 3px;
}
.cb-ekip-modal-btn:hover { filter: brightness(1.05); }
.cb-ekip-modal-error {
  background: #fff1f1;
  color: #CE1414;
  border: 1px solid rgba(206, 20, 20, 0.2);
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.35;
  margin: 0 0 8px;
  border-radius: 3px;
}

/* Profil sayfası */
.cb-ekip-profil {
  background: #fff;
  border: 1px solid rgba(26, 35, 64, 0.1);
  padding: 20px;
}
.cb-ekip-profil-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1A2340;
}
.cb-ekip-profil-photo {
  width: 110px;
  height: 130px;
  overflow: hidden;
  background: #E8ECF4;
  flex: 0 0 110px;
}
.cb-ekip-profil-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-ekip-profil-top h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1A2340;
}
.cb-ekip-profil-top p {
  margin: 0;
  color: #CE1414;
  font-weight: 650;
  font-size: 14px;
}
.cb-ekip-profil .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cb-ekip-profil label {
  display: block;
  margin-bottom: 12px;
}
.cb-ekip-profil label span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.cb-ekip-profil input,
.cb-ekip-profil textarea {
  width: 100%;
  border: 1px solid rgba(26, 35, 64, 0.14);
  padding: 10px 12px;
  font-size: 13px;
}
.cb-ekip-profil textarea { min-height: 70px; resize: vertical; }
.cb-ekip-profil-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cb-ekip-profil-actions button,
.cb-ekip-profil-actions a {
  border: 0;
  background: #CE1414;
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 18px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}
.cb-ekip-profil-actions a.cb-out {
  background: #1A2340;
}
.cb-ekip-alert {
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.cb-ekip-alert.ok { background: #eefaf1; color: #157347; border: 1px solid #b7e4c7; }
.cb-ekip-alert.err { background: #fff1f1; color: #CE1414; border: 1px solid #f5c2c7; }

@media (max-width: 767px) {
  .cb-ekip-header-btn span { display: none; }
  .cb-ekip-profil .form-row { grid-template-columns: 1fr; }
  .cb-ekip-profil-top { flex-direction: column; align-items: flex-start; }
  .cb-header-top-right { justify-content: center !important; flex-wrap: wrap; }
  .cb-ekip-modal.remodal { max-width: 300px !important; }
}

/* Portal hub — giriş sonrası uygulama seçimi */
.cb-portal-hub {
  background: #fff;
  border: 1px solid rgba(26, 35, 64, 0.1);
  margin-bottom: 18px;
  overflow: hidden;
}
.cb-portal-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(120deg, #1A2340 0%, #2a3658 70%, #4a1820 100%);
  color: #fff;
  flex-wrap: wrap;
}
.cb-portal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.15);
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.cb-portal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-portal-hero-text {
  flex: 1 1 auto;
  min-width: 140px;
}
.cb-portal-hero-text h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.cb-portal-hero-text p {
  margin: 0;
  font-size: 13px;
  opacity: .9;
  color: #fff;
}
.cb-portal-hero-text small {
  opacity: .7;
  font-size: 12px;
}
.cb-portal-logout {
  margin-left: auto;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.35);
  white-space: nowrap;
}
.cb-portal-logout:hover {
  background: rgba(255,255,255,.12);
}
.cb-portal-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f6f7fb;
}
.cb-portal-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid rgba(26, 35, 64, 0.1);
  text-decoration: none !important;
  color: #1A2340 !important;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 110px;
}
.cb-portal-app:hover {
  border-color: rgba(206, 20, 20, 0.4);
  box-shadow: 0 8px 20px rgba(13, 19, 62, 0.08);
  transform: translateY(-2px);
}
.cb-portal-app-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.cb-portal-app strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.cb-portal-app em {
  font-style: normal;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}
.cb-portal-edit-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #1A2340;
}

/* Bağımsız giriş overlay (remmodal yok) */
.cb-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(13, 19, 62, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cb-portal-overlay.is-open,
.cb-portal-overlay:not([hidden]) {
  display: flex;
}
.cb-portal-overlay[hidden] {
  display: none !important;
}
.cb-portal-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13, 19, 62, 0.35);
  overflow: hidden;
}
.cb-portal-modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.cb-portal-modal .cb-ekip-modal-form {
  margin: 0;
}
@media (max-width: 991px) {
  .cb-portal-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .cb-portal-apps { grid-template-columns: 1fr; }
  .cb-portal-logout { width: 100%; text-align: center; margin-left: 0; }
}

