:root {
  --hchat-primary: #16a6a1;
  --hchat-primary-dark: #0e817d;
  --hchat-primary-soft: #dff6f4;
  --hchat-ink: #1e2935;
  --hchat-muted: #74808d;
  --hchat-line: #dce4e8;
  --hchat-surface: #ffffff;
  --hchat-surface-2: #f5f8f9;
  --hchat-bg: #e9eff1;
  --hchat-dark: #182832;
  --hchat-shadow: 0 25px 70px rgba(28, 55, 67, .18);
}

html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--hchat-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(22,166,161,.14), transparent 26%),
    radial-gradient(circle at 85% 82%, rgba(36,113,140,.12), transparent 29%),
    linear-gradient(135deg, #edf3f4 0%, #dce7e9 100%);
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Login */
.basliyoruz { min-height: 100vh; }
.hchat-login-shell.login-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  width: min(1100px, calc(100% - 48px));
  max-width: 1100px;
  min-height: 650px;
  margin: clamp(28px, 6vh, 72px) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: var(--hchat-surface);
  box-shadow: var(--hchat-shadow);
}

.hchat-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 52px 38px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 18%, rgba(104,226,218,.26), transparent 28%),
    radial-gradient(circle at 8% 93%, rgba(24,181,174,.23), transparent 32%),
    linear-gradient(145deg, #142832 0%, #183944 57%, #126e70 125%);
}
.hchat-login-brand::before,
.hchat-login-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
}
.hchat-login-brand::before { width: 330px; height: 330px; right: -165px; bottom: -120px; }
.hchat-login-brand::after { width: 210px; height: 210px; right: -105px; bottom: -60px; }
.hchat-brand-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hchat-brand-mark, .hchat-mobile-brand { display: flex; align-items: center; gap: 9px; }
.hchat-brand-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #22c6bf, #0d9893);
  box-shadow: 0 10px 26px rgba(14,166,160,.35);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.hchat-brand-name { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.8px; }
.hchat-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}
.hchat-network-badge i { width: 7px; height: 7px; border-radius: 50%; background: #60e3a1; box-shadow: 0 0 0 5px rgba(96,227,161,.12); }
.hchat-brand-copy { position: relative; z-index: 1; margin: auto 0 26px; }
.hchat-kicker { color: #6fe1dc; font-size: 11px; font-weight: 700; letter-spacing: 2.1px; }
.hchat-brand-copy h1 { margin: 18px 0; color: #fff; font-size: clamp(34px, 4.2vw, 52px); font-weight: 300; line-height: 1.15; letter-spacing: -2px; }
.hchat-brand-copy h1 strong { color: #67ded8; font-weight: 700; }
.hchat-brand-copy p { max-width: 470px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.hchat-feature-list { position: relative; z-index: 1; display: grid; gap: 12px; margin-bottom: 28px; }
.hchat-feature { display: flex; align-items: center; gap: 13px; }
.hchat-feature > span {
  display: inline-flex;
  flex: 0 0 39px;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  color: #67ded8;
  background: rgba(255,255,255,.08);
  font-size: 15px;
}
.hchat-feature b, .hchat-feature small { display: block; }
.hchat-feature b { color: rgba(255,255,255,.95); font-size: 12px; font-weight: 600; }
.hchat-feature small { margin-top: 2px; color: rgba(255,255,255,.53); font-size: 10px; }
.hchat-server-state { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.55); font-size: 10px; }
.hchat-live-dot, .hchat-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #35d590; box-shadow: 0 0 0 5px rgba(53,213,144,.12); }

.hchat-login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 44px clamp(38px, 5vw, 66px); background: #fff; }
.hchat-mobile-brand { display: none; }
.hchat-login-form-panel .login-title { padding: 0; background: transparent; border: 0; text-align: left; }
.hchat-login-form-panel .login-title .hchat-login-eyebrow { display: block; margin-bottom: 10px; color: var(--hchat-primary); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.hchat-login-form-panel .login-title strong { display: block; color: var(--hchat-ink); font-size: 31px; font-weight: 700; letter-spacing: -1px; }
.hchat-login-form-panel .login-title small { display: block; margin-top: 8px; color: var(--hchat-muted); font-size: 12px; line-height: 1.7; }
.hchat-login-form-panel .login-content { padding: 0; }
.hchat-login-form-panel .lc-text1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 2px !important;
  padding: 8px 11px;
  border: 1px solid #dcebe8;
  border-radius: 999px;
  color: #4f6b67;
  background: #f3fbf9;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}
.hchat-field-group { margin-top: 20px !important; }
.hchat-field-group label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #3f4b56; font-size: 11px; font-weight: 600; }
.hchat-field-group label em { color: #9aa4ac; font-size: 9px; font-style: normal; font-weight: 400; }
.hchat-input-wrap { position: relative; }
.hchat-field-icon { position: absolute; z-index: 2; top: 50%; left: 17px; transform: translateY(-50%); color: #99a6ae; font-size: 14px; }
.hchat-login-form-panel .login-input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px !important;
  border: 1px solid var(--hchat-line) !important;
  border-radius: 13px;
  color: var(--hchat-ink);
  background: #f8fafb !important;
  box-shadow: none;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 54px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.hchat-login-form-panel .login-input::placeholder { color: #a7b0b7 !important; font-weight: 400; }
.hchat-login-form-panel .login-input:focus { border-color: var(--hchat-primary) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(22,166,161,.1); }
.hchat-password-toggle { position: absolute; z-index: 2; top: 50%; right: 13px; width: 32px; height: 32px; transform: translateY(-50%); border: 0; border-radius: 9px; color: #91a0a8; background: transparent; cursor: pointer; }
.hchat-password-toggle:hover { color: var(--hchat-primary); background: var(--hchat-primary-soft); }
.hchat-form-options { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--hchat-muted); font-size: 10px; }
.hchat-remember { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.hchat-remember input { position: absolute; opacity: 0; pointer-events: none; }
.hchat-remember span { position: relative; width: 17px; height: 17px; border: 1px solid var(--hchat-line); border-radius: 5px; background: #fff; }
.hchat-remember input:checked + span { border-color: var(--hchat-primary); background: var(--hchat-primary); }
.hchat-remember input:checked + span::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; }
.hchat-secure-note { display: inline-flex; align-items: center; gap: 6px; color: #7c948e; }
.hchat-actions { margin-top: 23px !important; }
.hchat-login-form-panel .login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 21px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #18b0aa, #0d8d89);
  box-shadow: 0 13px 24px rgba(14,143,139,.23);
  font-size: 13px;
  font-weight: 600;
  line-height: 56px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.hchat-login-form-panel .login-button:hover { background: linear-gradient(135deg, #18b0aa, #0d8d89); transform: translateY(-2px); box-shadow: 0 16px 28px rgba(14,143,139,.3); filter: brightness(1.03); }
.hchat-login-form-panel .login-button.is-loading { pointer-events: none; opacity: .78; }
.hchat-login-form-panel .login-button.is-loading i { animation: hchat-spin .8s linear infinite; }
.hchat-login-form-panel .login-eski {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--hchat-line);
  border-radius: 13px;
  color: #64717c;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s ease;
}
.hchat-login-form-panel .login-eski:hover { border-color: #b9d9d6; color: var(--hchat-primary-dark); background: #f4fbfa; }
.hchat-login-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 19px; border-top: 1px solid #edf1f3; color: #a1aab1; font-size: 8px; line-height: 1.6; }
.hchat-login-footer b { flex: 0 0 auto; color: #87949d; font-weight: 600; }
@keyframes hchat-spin { to { transform: rotate(360deg); } }

/* Professional chat theme */
#chat, .sohbetkismi { background: var(--hchat-bg); }
.chat-ust { border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, #172b35, #193c46); box-shadow: 0 4px 18px rgba(25,52,63,.16); }
.chat-ust > .row { height: 58px; }
.s-genel-bar .text-1 { font-size: 17px; font-weight: 600; }
.s-genel-bar .text-2, .menu-one ul li.menu-nickname { color: #63d8d2; }
.menu-one ul li a { height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); }
.menu-one ul li a:hover { color: #fff; background: rgba(22,166,161,.75); }
.main-content { background: var(--hchat-surface); }
.m-topic { border-bottom: 1px solid #e7edef; color: #687680; background: #f8fafb; }
.chat-content { border-color: #dce5e8; background-color: #fbfcfc !important; background-image: radial-gradient(#d9e6e7 0.7px, transparent 0.7px) !important; background-size: 18px 18px !important; }
.chat-panelimiz { padding: 10px 14px; }
.chat-editor { border-color: #dce5e8; background: #fff; }
.ce-top { border-color: #e4eaed; background: #f8fafb; }
.ce-top .ce-left .cel-col { border-color: #e4eaed; }
.bold-text:hover, .underline-text:hover, .italic-text:hover, .colour-picker:hover { background: var(--hchat-primary-soft); }
.ce-bot { padding: 8px; background: #fff; }
.inputdiv { padding: 0 7px; }
.inputyolla, #btn-input { height: 40px !important; padding: 0 42px 0 15px !important; border: 1px solid #dce5e8 !important; border-radius: 12px !important; color: var(--hchat-ink); background: #f7f9fa !important; box-shadow: none !important; }
.inputyolla:focus, #btn-input:focus { border-color: var(--hchat-primary) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(22,166,161,.1) !important; outline: none; }
.send-button { min-width: 92px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #18aaa5, #0e8985); font-weight: 600; }
.send-button:hover { background: linear-gradient(135deg, #22bdb7, #0e8985); }
.user-search input { border-color: #dce5e8; color: var(--hchat-ink); background-color: #f8fafb; }
.user-lists { background: #fff; }
#chatListUser .list-group-item { border-color: #eef2f3; }
#chatListUser .list-group-item:hover { background: #edf8f7; }
.channel-lister { border-left: 1px solid #dce5e8; background: #edf2f4; }
.channel-list { padding: 13px 11px; }
.channel-list li { margin-bottom: 6px; border: 1px solid transparent; border-radius: 10px; box-shadow: none; color: #687680; background: rgba(255,255,255,.8); }
.channel-list li:hover { border-color: #cfe5e3; color: var(--hchat-primary-dark); background: #fff; }
.channel-list li.current { color: #fff !important; background: linear-gradient(135deg, #19aaa5, #118a87); box-shadow: 0 7px 18px rgba(17,138,135,.17); }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: #edf2f3; }
*::-webkit-scrollbar-thumb { border-radius: 999px; background: #bdcace; }
*::-webkit-scrollbar-thumb:hover { background: #95a9ae; }
.jconfirm .jconfirm-box { border-radius: 18px !important; box-shadow: 0 20px 60px rgba(20,45,57,.23) !important; }
.jconfirm .jconfirm-box .jconfirm-title-c { color: var(--hchat-ink); }

@media (max-width: 991px) {
  body { background: #eef3f4; }
  .hchat-login-shell.login-bar {
    display: block;
    width: min(100% - 24px, 470px);
    min-height: 0;
    margin: 18px auto;
    border-radius: 23px;
  }
  .hchat-login-brand { display: none; }
  .hchat-login-form-panel { min-height: calc(100vh - 36px); padding: 30px 23px; }
  .hchat-mobile-brand { display: flex; margin-bottom: 35px; }
  .hchat-mobile-brand .hchat-brand-name { color: var(--hchat-ink); }
  .hchat-mobile-brand small { margin-left: auto; color: var(--hchat-muted); font-size: 9px; font-weight: 600; letter-spacing: 1px; }
  .hchat-login-form-panel .login-title strong { font-size: 27px; }
  .hchat-login-footer { flex-direction: column; gap: 5px; }
  .mob-top-menu > .row { color: #fff; background: linear-gradient(90deg, #17323b, #135f61); }
  .radio-but, .radio-but:hover, .radio-but.active { background: transparent; }
  .chat-editor { border-top-color: #dce5e8; background: #fff; }
  .ce-bot { height: 40px; padding: 4px; }
  .inputyolla, #btn-input { height: 32px !important; border-radius: 9px !important; }
  .send-button { min-width: 70px; border-radius: 9px; }
  .mchannel-list li { border-color: #dce5e8 !important; color: #41505a !important; background: #fff; }
  .mchannel-list li.current { color: #fff !important; background: var(--hchat-primary); }
}

@media (max-width: 420px) {
  .hchat-login-shell.login-bar { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .hchat-login-form-panel { min-height: 100vh; padding: 25px 20px; }
  .hchat-form-options { align-items: flex-start; gap: 10px; }
  .hchat-secure-note { display: none; }
}

/* Eski tema kurallarına karşı kesin giriş ekranı önceliği */
.hchat-login-shell .hchat-login-form-panel .login-content .lc-text1 {
  display: inline-flex;
  color: #4f6b67;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}
.hchat-login-shell .hchat-login-form-panel .login-content .lc-col .login-input {
  height: 54px !important;
}
.hchat-login-shell .hchat-login-form-panel .login-content .lc-col .login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 21px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #18b0aa, #0d8d89);
  box-shadow: 0 13px 24px rgba(14,143,139,.23);
  font-size: 13px;
  font-weight: 600;
  line-height: 56px;
}
.hchat-login-shell .hchat-login-form-panel .login-content .lc-col .login-button:hover {
  background: linear-gradient(135deg, #20bbb5, #0c8581);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(14,143,139,.3);
}
