/* member-btn (header) */
.member-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px 5px 9px;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.member-btn:hover { border-color: var(--brand); background: var(--soft); }

/* auth pages */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 5vw 80px;
}
.auth-card {
  background: var(--card);
  border: none;
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px -12px rgba(15,23,42,.10), 0 0 0 1px rgba(226,232,240,.7);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.auth-card .auth-input {
  border-radius: 999px;
  padding: 15px 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14.5px;
}
.auth-card .auth-input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(15,23,42,.05);
}
.auth-card .button.wide {
  background: #0f0f10;
  color: #fff;
  border-radius: 999px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  box-shadow: none;
}
.auth-card .button.wide:hover { background: #2b2b2d; transform: none; }
.auth-card .button.wide:active { background: #000; }
.auth-card .auth-forgot a,
.auth-card .auth-switch a { color: #0f0f10; }
.auth-divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.auth-divider-or::before,
.auth-divider-or::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.auth-card .auth-google-btn.button.wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: none;
  text-decoration: none;
}
.auth-card .auth-google-btn.button.wide:hover { background: #f9fafb; transform: none; }
.auth-card.wide { max-width: 520px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 28px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
  outline: none;
}
.auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.auth-divider { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.auth-forgot {
  text-align: right;
  font-size: 12.5px;
  margin-top: -4px;
}
.auth-forgot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-intro {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: -8px 0 4px;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.auth-switch a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-member-since { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* dashboard */
.dashboard-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 5vw 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: var(--font);
}
.dash-action-btn:hover { border-color: var(--brand); background: var(--soft); }
.dash-action-btn.logout:hover { border-color: #e03131; background: #fff5f5; }
.dash-section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.dash-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
  background: var(--bg2);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.dash-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dash-table tr:last-child td { border-bottom: none; }
.order-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.status-new       { background: #eff6ff; color: var(--brand); border-color: #bfdbfe; }
.status-confirmed { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.status-invoiced  { background: #fefce8; color: #a16207; border-color: #fef08a; }
.status-done      { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.status-cancelled { background: #fff1f2; color: #e03131; border-color: #fecaca; }
.dash-empty { color: var(--muted); font-size: 14px; }
.dash-downloads { display: flex; flex-direction: column; gap: 12px; }
.dash-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.dash-dl-info { display: flex; flex-direction: column; gap: 3px; }
.dash-dl-info strong { font-size: 15px; }
.dash-dl-info span { font-size: 13px; color: var(--muted); }
.dash-dl-info small { font-size: 11.5px; color: var(--muted); }
.coming-soon-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ── CUSTOMER PANEL LAYOUT ── */
.cp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
  align-items: start;
}
.cp-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  border-right: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px 0 12px;
  overflow-y: auto;
}
.cp-user-card {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.cp-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.cp-user-info {
  gap: 1px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cp-user-info strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-user-info span   { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-user-info small  { font-size: 11px; color: var(--muted); }

.cp-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 8px; flex: 1; }
.cp-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .12s, color .12s;
  width: 100%;
  text-align: left;
}
.cp-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.cp-nav-item:hover { background: var(--bg2); color: var(--text); }
.cp-nav-item.active { background: var(--soft); color: var(--brand); font-weight: 600; }
.cp-nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}
.cp-sidebar-footer {
  padding: 8px 8px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cp-logout:hover { background: #fff5f5 !important; color: #e03131 !important; }

/* MAIN */
.cp-main { padding: 32px 40px 80px; min-width: 0; }
.cp-section-head { margin-bottom: 24px; }
.cp-page-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cp-page-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* STAT GRID */
.cp-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.cp-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.cp-stat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cp-stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cp-stat-icon svg { width: 20px; height: 20px; }
.cp-stat-icon.blue   { background: #eff6ff; color: var(--brand); }
.cp-stat-icon.green  { background: #f0fdf4; color: #16a34a; }
.cp-stat-icon.purple { background: #faf5ff; color: #7c3aed; }
.cp-stat-num   { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.cp-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* WIDGETS */
.cp-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.cp-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cp-widget-head h2 { font-size: 14px; font-weight: 700; }
.cp-widget-link { font-size: 12px; color: var(--brand); text-decoration: none; font-weight: 600; }
.cp-service-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.cp-service-row:last-child { border-bottom: none; }
.cp-service-icon {
  width: 34px; height: 34px;
  background: #eff6ff;
  color: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cp-service-icon svg { width: 16px; height: 16px; }
.cp-service-icon.green { background: #f0fdf4; color: #16a34a; }
.cp-service-info { flex: 1; min-width: 0; }
.cp-service-info strong { display: block; font-size: 13px; font-weight: 600; }
.cp-service-info span   { font-size: 12px; color: var(--muted); }

/* STATUS BADGES */
.svc-status {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap; flex-shrink: 0;
}
.status-active    { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.status-pending   { background: #fefce8; color: #a16207; border-color: #fef08a; }
.status-suspended { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.status-cancelled { background: #fff1f2; color: #e03131; border-color: #fecaca; }
.status-trial     { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.status-paused    { background: #f8fafc; color: var(--muted); border-color: var(--line); }

/* EMPTY STATE */
.cp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}
.cp-empty-state svg { opacity: .3; }
.cp-empty-state p { font-size: 14px; }

/* SERVER CARDS */
.cp-cards { display: flex; flex-direction: column; gap: 16px; }
.cp-server-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.cp-server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cp-server-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.cp-server-card-head h3 { font-size: 16px; font-weight: 700; }
.cp-server-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.cp-spec { display: flex; flex-direction: column; gap: 2px; }
.cp-spec span   { font-size: 11px; color: var(--muted); }
.cp-spec strong { font-size: 13px; font-weight: 600; }
.cp-server-notes { margin-top: 14px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }

/* SUBSCRIPTION CARDS */
.cp-sub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.cp-sub-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cp-sub-icon {
  width: 40px; height: 40px;
  background: #f0fdf4; color: #16a34a;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cp-sub-icon svg { width: 18px; height: 18px; }
.cp-sub-card-head h3 { font-size: 16px; font-weight: 700; flex: 1; }
.cp-sub-price { font-size: 15px; font-weight: 600; color: var(--text); display: block; }
.cp-sub-price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.cp-sub-dates { display: flex; gap: 24px; }

/* SETTINGS */
.cp-settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.cp-settings-section-title { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.cp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* MOBILE */
@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); flex-direction: column; }
  .cp-nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .cp-nav-item { width: auto; flex: none; font-size: 12px; padding: 7px 10px; }
  .cp-nav-item svg { display: none; }
  .cp-sidebar-footer { flex-direction: row; border-top: none; border-left: 1px solid var(--line); padding: 8px; margin: 0; }
  .cp-user-card {
  padding: 12px 14px; border-bottom: none; padding-bottom: 12px; }
  .cp-main { padding: 20px 16px 60px; }
  .cp-stat-grid { grid-template-columns: 1fr 1fr; }
  .cp-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .auth-title { font-size: 18px; }
  .dash-dl-item { flex-direction: column; align-items: flex-start; }
  .cp-stat-grid { grid-template-columns: 1fr; }
  .cp-server-specs { grid-template-columns: 1fr 1fr; }
}

/* ── Avatar ──────────────────────────────────────────────── */
.cp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;  /* parent zaten 50% + overflow:hidden */
}

/* Avatar seçim grid'i */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}
.avatar-opt {
  cursor: pointer;
  display: block;
  border-radius: 50%;
  border: 3px solid var(--line);
  transition: border-color .15s, transform .12s;
  overflow: hidden;
  aspect-ratio: 1;
}
.avatar-opt input[type=radio] { display: none; }
.avatar-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.avatar-opt:hover { border-color: var(--brand); transform: scale(1.06); }
.avatar-opt.av-selected,
.avatar-opt:has(input[type=radio]:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,78,216,.18);
}

.cp-avatar.has-avatar { background: transparent; }

.cp-member-no {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .04em;
  background: var(--soft, #eff6ff);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ═══ Ticket Table UI ═══════════════════════════════════════════════════════ */
.tk-hero {
  text-align: center;
  padding: 44px 24px 36px;
  border-bottom: 1px solid var(--line);
}
.tk-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.tk-dateline {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 22px;
}
.tk-new-btn {
  display: inline-block;
  padding: 11px 30px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.tk-new-btn:hover { background: var(--text); color: var(--bg); }

/* Form */
.tk-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  border-bottom: 1px solid var(--line);
}
.tk-form-wrap.tk-open { max-height: 700px; }
.tk-form {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tk-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}
.tk-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.tk-input {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.tk-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.tk-textarea { resize: vertical; min-height: 100px; }
.tk-form-footer { display: flex; gap: 10px; align-items: center; }
.tk-cancel-btn {
  background: none; border: none; color: var(--muted);
  font-size: .88rem; cursor: pointer; padding: 8px 4px;
}
.tk-cancel-btn:hover { color: var(--text); }

/* Toolbar */
.tk-table-wrap { }
.tk-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.tk-search-label {
  display: flex;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}
.tk-search-input {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .85rem;
  background: var(--bg);
  color: var(--text);
  width: 200px;
  margin-left: 6px;
}
.tk-search-input:focus { outline: none; border-color: var(--brand); }

/* Table */
.tk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.tk-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tk-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .1s;
}
.tk-row:hover { background: var(--bg2, #f8f9fb); }
.tk-table td { padding: 13px 16px; vertical-align: middle; }
.tk-col-no a { color: var(--brand); text-decoration: none; font-weight: 600; }
.tk-col-no a:hover { text-decoration: underline; }
.tk-col-subject { max-width: 320px; }
.tk-col-last { color: var(--muted); white-space: nowrap; font-size: .84rem; }
.tk-col-date { white-space: nowrap; }
.tk-col-cat { white-space: nowrap; }
.tk-empty { text-align: center; padding: 48px; color: var(--muted); font-size: .9rem; }

/* Durum renkleri */
.tk-s-open        { color: #2563eb; font-weight: 600; }
.tk-s-in_progress { color: #d97706; font-weight: 600; }
.tk-s-resolved    { color: #16a34a; font-weight: 600; }
.tk-s-closed      { color: var(--muted); }

/* Detay görünümü */
.tk-detail { padding: 28px 24px; }
.tk-back {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--brand); text-decoration: none;
  font-size: .85rem; font-weight: 600; margin-bottom: 24px;
}
.tk-back:hover { text-decoration: underline; }
.tk-detail-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.tk-detail-no { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tk-detail-subject { font-size: 1.1rem; font-weight: 700; margin: 0; flex: 1; }
.tk-sbadge { padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.tk-sbadge-open        { background: #eff6ff; color: #2563eb; }
.tk-sbadge-in_progress { background: #fffbeb; color: #d97706; }
.tk-sbadge-resolved    { background: #f0fdf4; color: #16a34a; }
.tk-sbadge-closed      { background: var(--bg2, #f4f4f5); color: var(--muted); }
.tk-detail-meta {
  display: flex; gap: 16px;
  font-size: .82rem; color: var(--muted); margin-bottom: 18px;
}
.tk-detail-msg {
  background: var(--bg2, #f8f9fb);
  border-radius: 10px; padding: 16px 18px;
  font-size: .9rem; line-height: 1.65; margin-bottom: 24px;
}
.tk-replies { display: flex; flex-direction: column; gap: 12px; }
.tk-reply {
  border-left: 3px solid var(--brand);
  background: var(--bg2, #f8f9fb);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}
.tk-reply-meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.tk-reply p { margin: 0; font-size: .9rem; line-height: 1.55; }

.tk-reply-user {
  border-left-color: var(--muted);
  background: var(--bg, #fff);
}
.tk-user-reply-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ═══ Ticket Conversation Thread ════════════════════════════════════════════ */
.tk-conv-wrap {
  display: flex;
  flex-direction: column;
  min-height: 500px;
}
.tk-conv-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tk-conv-title {
  flex: 1;
  min-width: 0;
}
.tk-conv-subject {
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-conv-meta {
  display: flex;
  gap: 14px;
  padding: 8px 24px 0;
  font-size: .78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Thread */
.tk-thread {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Mesaj satırı */
.tk-msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 72%;
}
.tk-msg-right {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.tk-msg-left {
  align-self: flex-start;
}

/* Avatar */
.tk-msg-ava {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tk-msg-ava-user {
  background: var(--soft, #eff6ff);
  color: var(--brand);
}
.tk-msg-ava-dt {
  background: var(--brand);
  color: #fff;
}

/* Kart */
.tk-msg-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tk-msg-right .tk-msg-card { align-items: flex-end; }
.tk-msg-left  .tk-msg-card { align-items: flex-start; }

.tk-msg-text {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.tk-msg-right .tk-msg-text {
  background: var(--soft, #eff6ff);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.tk-msg-card-dt .tk-msg-text {
  background: var(--bg2, #f4f4f5);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.tk-msg-meta {
  font-size: .72rem;
  color: var(--muted);
  padding: 0 4px;
}

/* Cevap kutusu */
.tk-conv-reply {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  background: var(--bg);
  position: sticky;
  bottom: 0;
}
.tk-reply-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg2, #f4f4f5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 10px 16px;
}
.tk-reply-input {
  flex: 1;
  background: none;
  border: none;
  resize: none;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text);
  min-height: 24px;
  max-height: 120px;
  overflow-y: auto;
  padding: 0;
}
.tk-reply-input:focus { outline: none; }
.tk-reply-input::placeholder { color: var(--muted); }
.tk-reply-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .15s;
}
.tk-reply-btn:hover { opacity: .85; }
