@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* ═══ DESIGN TOKENS — QSMART DARK ═══ */
:root {
  --primary: #FF007A;
  --primary-dark: #D6006A;
  --primary-light: rgba(255, 0, 122, 0.12);
  --primary-glow: rgba(255, 0, 122, 0.25);
  --primary-subtle: rgba(255, 0, 122, 0.06);

  --bg-page: #0B0816;
  --bg-card: #161129;
  --bg-card-alt: #1C1635;
  --bg-input: #1C1635;
  --bg-bubble-bot: #161129;
  --bg-bubble-user: linear-gradient(135deg, #FF007A 0%, #D6006A 100%);

  --border-light: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);

  --text-main: #F0ECF9;
  --text-secondary: #8B83A8;
  --text-dim: #5A5478;
  --text-on-primary: #FFFFFF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 4px 20px var(--primary-glow);
  --chat-input-reserved-space: 132px;
}

/* ═══ BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ═══ HEADER ═══ */
.chat-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(11, 8, 22, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
}

.header-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.header-back:active { transform: scale(0.94); }

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}
.header-avatar-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 0, 122, 0.2));
}

.header-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.header-status {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

.header-menu {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.header-menu:active { transform: scale(0.94); }

/* ═══ CHAT BODY ═══ */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(var(--chat-input-reserved-space) + env(safe-area-inset-bottom, 0px));
}

/* ═══ FIRM CARD ═══ */
.firm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.firm-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.firm-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.firm-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.firm-details {
  flex: 1;
  min-width: 0;
}

.firm-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firm-id {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.firm-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.credit-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credit-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* ═══ ACTIONS GRID ═══ */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.grid-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  box-shadow: none;
  font-family: inherit;
  text-align: center;
}

.grid-action.dashboard-hidden {
  display: none !important;
}

.grid-action:active {
  transform: scale(0.97);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
  background: rgba(255,255,255,0.055);
}

.grid-action .material-symbols-outlined {
  font-size: 24px;
  color: var(--text-secondary);
}

.grid-action span:last-child {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Yakında — henüz aktif olmayan özellikler */
.grid-action.yakinda {
  opacity: 0.5;
  position: relative;
}
.grid-action.yakinda::after {
  content: 'Yakında';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 7px;
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.grid-action.yakinda:active {
  transform: none;
  border-color: var(--border-card);
  box-shadow: none;
  background: var(--bg-card);
}

/* ═══ CHAT MESSAGES ═══ */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: calc(var(--chat-input-reserved-space) - 40px);
}

.message {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: slideMsg 0.3s ease both;
}

@keyframes slideMsg {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  overflow: hidden;
}
.message.bot .msg-avatar {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-card);
}
.message.bot .msg-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.message.bot .msg-avatar .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
}
.message.user .msg-avatar {
  background: rgba(255, 0, 122, 0.1);
}
.message.user .msg-avatar .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.message.bot .msg-bubble {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.message.user .msg-bubble {
  background: var(--bg-bubble-user);
  color: var(--text-on-primary);
  border-bottom-right-radius: 6px;
  box-shadow: var(--shadow-glow);
}

.msg-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  text-align: right;
}
.message.user .msg-time {
  text-align: left;
  color: rgba(255,255,255,0.5);
}

/* Bot typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ═══ ANSWER CARDS ═══ */
.answer-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
}

.answer-card .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.answer-card .card-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 30%, #FF5CA8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.answer-card .card-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.answer-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.answer-btn:active { transform: scale(0.96); }

.answer-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.answer-btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ═══ INPUT BAR ═══ */
.chat-input-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 12px 16px;
  background: rgba(11, 8, 22, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-light);
  z-index: 50;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}
.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.input-action {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}
.input-action .material-symbols-outlined {
  font-size: 24px;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  padding: 8px 4px;
}
.chat-input::placeholder {
  color: var(--text-dim);
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.send-btn:active {
  transform: scale(0.9);
  background: var(--primary-dark);
}
.send-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease both; }
.fade-in-d1 { animation: fadeIn 0.4s ease 0.08s both; }
.fade-in-d2 { animation: fadeIn 0.4s ease 0.16s both; }
.fade-in-d3 { animation: fadeIn 0.4s ease 0.24s both; }

/* ═══ SCROLLBAR ═══ */
.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }

/* ═══ LOGIN OVERLAY ═══ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B0816 0%, #161129 50%, #1C1635 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(22, 17, 41, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 32px 36px;
  box-shadow: 0 8px 32px rgba(255, 0, 122, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 0, 122, 0.15);
  text-align: center;
  animation: loginSlideUp 0.5s ease-out;
}

@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255, 0, 122, 0.3));
}

.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.login-field {
  text-align: left;
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Public Sans', sans-serif;
  background: var(--bg-input);
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}

.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.login-field input::placeholder {
  color: var(--text-dim);
}

.login-error {
  font-size: 13px;
  color: #EF4444;
  min-height: 20px;
  margin-bottom: 8px;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF007A 0%, #D6006A 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255, 0, 122, 0.3);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 122, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ═══ ASISTAN CHIPS (quick reply butonları) ═══ */
.asistan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Grid layout: 2 eşit sütun */
.asistan-chips.asistan-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.asistan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 40px;
  max-width: calc(100vw - 80px);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

/* Grid içindeki butonlar dikdörtgen */
.asistan-chips-grid .asistan-chip {
  border-radius: var(--radius-sm, 12px);
  padding: 12px 10px;
  min-height: 52px;
  flex-direction: column;
  line-height: 1.3;
}

.asistan-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.asistan-chip:active {
  transform: scale(0.96);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.asistan-chip.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ═══ CUSTOM DROPDOWN ═══ */
.asistan-select-wrap {
  margin-top: 8px;
}

.asistan-dd {
  position: relative;
  width: 100%;
}

.asistan-dd-trigger {
  width: 100%;
  min-height: 44px;
  padding: 12px 40px 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm, 12px);
  color: var(--text-dim);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  box-sizing: border-box;
}

.asistan-dd-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--primary);
  transition: transform 0.2s;
}

.asistan-dd.open .asistan-dd-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.asistan-dd-trigger.selected {
  color: var(--text-main);
}

.asistan-dd.open .asistan-dd-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.asistan-dd.disabled .asistan-dd-trigger {
  opacity: 0.5;
  cursor: not-allowed;
}

.asistan-dd-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1C1635;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm, 12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}
.asistan-dd-search {
  width: calc(100% - 16px);
  margin: 8px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}
.asistan-dd-search:focus {
  border-color: rgba(255,0,122,0.45);
  box-shadow: 0 0 0 3px rgba(255,0,122,0.08);
}
.asistan-dd-item.muted {
  color: var(--text-secondary);
  cursor: default;
  font-size: 11px;
}

.asistan-dd.open .asistan-dd-list {
  display: block;
  animation: ddSlideIn 0.15s ease;
}

@keyframes ddSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.asistan-dd-list::-webkit-scrollbar { width: 3px; }
.asistan-dd-list::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }

.asistan-dd-item {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.asistan-dd-item:hover {
  background: rgba(255, 0, 122, 0.15);
  color: #fff;
}

.asistan-dd-item:active {
  background: var(--primary);
  color: #fff;
}

/* ═══ MULTISELECT CHECKBOXES ═══ */
.asistan-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.asistan-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.asistan-checkbox-item:hover,
.asistan-checkbox-item.checked {
  border-color: var(--primary);
  background: var(--primary-light);
}

.asistan-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.asistan-checkbox-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* ═══ TIMERANGE ═══ */
.asistan-timerange {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.asistan-time-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asistan-time-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.asistan-time-input {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  color-scheme: dark;
}

.asistan-time-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.asistan-time-sep {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 18px;
}

/* ═══ SUMMARY LIST ═══ */
.summary-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.summary-item:last-child { border-bottom: none; }

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.summary-derived {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.summary-derived strong {
  color: var(--primary);
}

/* ═══ STEPPER (+/-) ═══ */
.asistan-stepper-wrap {
  margin-top: 8px;
}

.asistan-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.asistan-stepper-btn {
  width: 48px;
  height: 48px;
  background: var(--bg-card-alt);
  border: none;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asistan-stepper-btn:hover {
  background: var(--primary-light);
}

.asistan-stepper-btn:active {
  background: var(--primary);
  color: #fff;
}

.asistan-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.asistan-stepper-value {
  min-width: 80px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  padding: 0 8px;
}

/* ═══ CONTROL WRAP ═══ */
.asistan-control-wrap {
  padding: 0 0 0 36px;
  margin-top: 4px;
  margin-bottom: 10px;
  scroll-margin-bottom: calc(var(--chat-input-reserved-space) + 16px);
}

/* ═══ COMPACT FIRM CARD ═══ */
.firm-card.compact {
  padding: 8px 16px;
  margin: 0 0 8px;
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: none;
  transition: all 0.3s ease;
}
.firm-card.compact::before {
  display: none;
}
.firm-card.compact .firm-top {
  gap: 10px;
}
.firm-card.compact .firm-logo {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-radius: 8px;
}
.firm-card.compact .firm-name {
  font-size: 13px;
}
.firm-card.compact .firm-id,
.firm-card.compact .credit-label {
  display: none;
}
.firm-card.compact .credit-value {
  font-size: 14px;
}

/* ═══ CONVERSATION CODE BADGE ═══ */
.conv-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.25);
  margin-left: 10px;
  box-shadow: 0 0 6px rgba(0,212,255,0.15);
  font-family: 'JetBrains Mono', monospace;
  animation: badgeFadeIn 0.4s ease both;
}
.conv-badge.completed {
  color: var(--success);
  border-color: rgba(16,185,129,0.25);
  box-shadow: 0 0 6px rgba(16,185,129,0.15);
}
@keyframes badgeFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══ MENÜ DROPDOWN ═══ */
.menu-dropdown {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 220px;
  background: rgba(22, 17, 41, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid var(--border-card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 200;
  padding: 6px;
  animation: menuSlideDown 0.2s ease both;
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.menu-dropdown-item:hover {
  background: rgba(255,255,255,0.08);
}
.menu-dropdown-item:active {
  transform: scale(0.97);
}
.menu-dropdown-item .material-symbols-outlined {
  font-size: 20px;
  color: var(--text-secondary);
}
.menu-dropdown-item.danger {
  color: var(--danger);
}
.menu-dropdown-item.danger .material-symbols-outlined {
  color: var(--danger);
}
.menu-divider {
  height: 1px;
  background: var(--border-card);
  margin: 4px 8px;
}

/* ═══ GEÇMİŞ PANELİ ═══ */
.history-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: rgba(11, 8, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-card);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.history-panel.open {
  right: 0;
}
.history-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.history-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.history-header h3 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-header h3 .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary);
}
.history-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.history-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-main);
}
.history-close .material-symbols-outlined {
  font-size: 18px;
}
.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.history-list::-webkit-scrollbar { width: 3px; }
.history-list::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }
.history-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 20px;
  font-size: 13px;
}
.history-item {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.2s;
}
.history-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(-3px);
}
.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.history-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #00d4ff;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.history-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.history-status.completed {
  background: rgba(16,185,129,0.15);
  color: var(--success);
}
.history-status.cancelled {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
}
.history-status.in_progress {
  background: rgba(245,158,11,0.15);
  color: var(--warning);
}
.history-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.history-intent {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.history-date {
  font-size: 10px;
  color: var(--text-dim);
}
.history-preview {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.history-actions {
  display: flex;
  gap: 6px;
}
.history-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.history-action-btn:hover {
  background: rgba(0,212,255,0.15);
  color: #00d4ff;
  border-color: rgba(0,212,255,0.2);
}
.history-action-btn .material-symbols-outlined {
  font-size: 14px;
}

/* ═══ REPLAY MODAL ═══ */
.replay-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: replayFadeIn 0.25s ease both;
}
@keyframes replayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.replay-modal-content {
  background: linear-gradient(145deg, #161129, #1C1635);
  border-radius: 20px;
  width: 100%;
  max-width: 430px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-card);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,0,122,0.08);
  animation: replaySlide 0.3s ease both;
}
@keyframes replaySlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.replay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}
.replay-header h4 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #00d4ff;
}
.replay-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.replay-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-main);
}
.replay-close .material-symbols-outlined { font-size: 16px; }
.replay-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replay-messages::-webkit-scrollbar { width: 3px; }
.replay-messages::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }
.replay-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.replay-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.replay-msg.bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}
.replay-msg-time {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 3px;
  text-align: right;
}
.replay-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.replay-copy-btn,
.replay-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.replay-copy-btn {
  background: rgba(0,212,255,0.12);
  color: #00d4ff;
  border: 1px solid rgba(0,212,255,0.2);
}
.replay-copy-btn:hover {
  background: rgba(0,212,255,0.2);
}
.replay-copy-btn .material-symbols-outlined { font-size: 16px; }
.replay-close-btn {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.replay-close-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-main);
}

/* ═══ TOAST ═══ */
.asistan-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(22, 17, 41, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid rgba(0,212,255,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.asistan-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ═══ INLINE TEXT INPUT (text type steps) ═══ */
.asistan-text-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  scroll-margin-bottom: calc(var(--chat-input-reserved-space) + 16px);
}
.asistan-inline-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm, 12px);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.asistan-inline-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow, rgba(255,0,122,0.15));
}
.asistan-inline-input::placeholder {
  color: var(--text-dim);
}
.asistan-inline-input:disabled {
  opacity: 0.5;
}

/* ═══ CODE INSPECT CARD ═══ */
.ci-card {
  width: 100%;
  min-width: 240px;
}

.ci-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-card);
}

.ci-section {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 0 6px;
  margin-top: 4px;
  border-top: 1px solid var(--border-card);
}

.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 12px;
}

.ci-row:last-child {
  border-bottom: none;
}

.ci-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.ci-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-all;
}

/* ═══ ÖDÜL KARTLARI ═══ */
.bot-message {
  max-width: 92%;
  animation: slideMsg 0.3s ease both;
}

.reward-cards-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reward-cards-count {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.reward-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reward-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.reward-card::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.reward-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.reward-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.reward-card-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
.reward-card-info {
  flex: 1;
  min-width: 0;
}
.reward-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reward-card-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1px;
}
.reward-card-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.reward-card-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.reward-card-pct {
  color: var(--primary);
  font-weight: 700;
  margin-left: auto;
}
.reward-card-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.reward-card-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #FF5CA8);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.reward-card-link {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.8;
}
.reward-card-empty {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.reward-cards-more {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 6px 0 0;
}

/* Admin-parite ödül kartları (asistan, DOM-only renderer) */
.rw-reward-list-wrap { max-width: 100%; }
.rw-asistan-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.rw-card-asistan {
  background: rgba(20, 18, 35, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  padding: 12px 14px 10px;
  cursor: pointer;
  min-height: 0;
}
.rw-card-asistan:active { transform: scale(0.99); border-color: rgba(255, 0, 122, 0.35); }
.rw-card-head { margin-bottom: 2px; }
.rw-card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.rw-id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 6px;
}
.rw-st-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.rw-st-badge.act { background: rgba(255, 0, 122, 0.2); color: #ff5ca8; }
.rw-st-badge.pas { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.rw-card-title {
  margin: 0;
  font-size: 0.92rem;
  color: #e2e8f0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rw-card-sub { margin: 3px 0 0; font-size: 0.72rem; color: #7c3aed; }
.rw-card-mid {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.rw-gauge-wrap { flex-shrink: 0; position: relative; width: 88px; height: 88px; }
.rw-gauge-svg-holder { position: relative; width: 88px; height: 88px; }
.rw-gauge-svg {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
  display: block;
}
.rw-gauge-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.rw-gauge-num { font-size: 1rem; font-weight: 800; color: #e2e8f0; line-height: 1.1; }
.rw-gauge-lbl { font-size: 0.45rem; color: #7c3aed; }
.rw-card-stats-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rw-stat-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.06);
  gap: 6px;
}
.rw-stat-line.rw-stat-date { background: rgba(255, 0, 122, 0.08); }
.rw-stat-k { font-size: 0.6rem; color: #7c3aed; flex-shrink: 0; }
.rw-stat-line.rw-stat-date .rw-stat-k { color: #ff5ca8; }
.rw-stat-v {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}
.rw-days-row {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 0, 122, 0.05);
  border: 1px solid rgba(255, 0, 122, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rw-days-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.rw-day-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
}
.rw-day-dot.on { background: #ff007a; color: #fff; }
.rw-day-dot.off { background: rgba(139, 92, 246, 0.1); color: #7c3aed; opacity: 0.4; }
.rw-days-time { font-size: 0.55rem; color: #ff5ca8; font-weight: 600; text-align: right; }
.rw-low-stock {
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.6rem;
  color: #fca5a5;
  font-weight: 600;
}
.rw-card-foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}
.rw-foot-hint { font-size: 10px; color: rgba(196, 181, 253, 0.7); }
.rw-panel-cta {
  margin-top: 14px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #FF007A;
  background: #1d1932;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rw-panel-cta:active { opacity: 0.9; }

/* Ödül kartı — asistan içi kod detayı (admin yönlendirmesi yok) */
.rw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(5, 3, 12, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
@media (min-width: 520px) {
  .rw-modal-backdrop { align-items: center; }
}
.rw-modal-panel {
  width: 100%;
  max-width: 420px;
  max-height: min(86vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #1a1530 0%, #120e22 100%);
  border: 1px solid rgba(255, 0, 122, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.rw-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.rw-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rw-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
}
.rw-modal-body {
  padding: 12px 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rw-modal-meta {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.rw-modal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  margin-bottom: 14px;
}
.rw-modal-k { color: #94a3b8; }
.rw-modal-v { color: #e2e8f0; font-weight: 600; }
.rw-modal-section { margin-top: 4px; }
.rw-modal-subh {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
}
.rw-modal-codes { min-height: 48px; }
.rw-modal-loading,
.rw-modal-empty { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.rw-modal-err { margin: 0; font-size: 0.8rem; color: #fca5a5; }

/* ═══ DNA SİHİRBAZI — INLINE CHAT KARTI ═══ */
/* Sohbet sütununa gömülü kart — popup/modal/overlay yok */
.rw-chat-wizard-root {
  width: 100%;
  margin: 10px 0 18px;
  box-sizing: border-box;
  animation: slideMsg 0.35s ease both;
}

/* Ana panel */
.rw-modal-panel--wizard {
  max-width: 100% !important;
  max-height: none !important;
  width: 100%;
  position: relative;
  overflow: visible !important;
  color-scheme: dark;
  background: linear-gradient(168deg, rgba(28, 22, 53, 0.98) 0%, rgba(22, 17, 41, 0.96) 100%) !important;
  border: 1px solid rgba(255, 0, 122, 0.18) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  margin: 0 !important;
}
.rw-modal-panel--wizard.rw-modal-panel--inline {
  margin: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Neon glow efekti — sağ üst köşe */
.rw-modal-panel--wizard::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 0, 122, 0.18) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
/* Sol alt ikinci glow */
.rw-modal-panel--wizard::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Başlık çubuğu */
.rw-modal-panel--wizard .rw-modal-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 0, 122, 0.12);
  padding: 14px 16px;
  background: rgba(255, 0, 122, 0.03);
}
.rw-modal-panel--wizard .rw-modal-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Kapat (×) butonu */
.rw-modal-panel--wizard .rw-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 0, 122, 0.06);
  border: 1px solid rgba(255, 0, 122, 0.15);
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.rw-modal-panel--wizard .rw-modal-close:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 0, 122, 0.12);
}
.rw-modal-panel--wizard .rw-modal-close:active {
  transform: scale(0.92);
}

/* Doğrulama hata mesajı */
.rw-wizard-form-error {
  display: none;
  position: relative;
  z-index: 1;
  margin: 0 16px 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 600;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

/* Form gövdesi */
.rw-wizard-body {
  position: relative;
  z-index: 1;
  padding: 14px 16px 20px !important;
  overflow: visible !important;
  max-height: none !important;
}

/* Tek alan satırı */
.rw-wizard-field {
  margin-bottom: 16px;
}
.rw-wizard-field:last-child {
  margin-bottom: 0;
}

.rw-legal-warning {
  display: block;
  margin: 0;
}
.rw-legal-warning summary {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  align-items: center;
  cursor: help;
  list-style: none;
  font-weight: 400;
}
.rw-legal-warning summary::-webkit-details-marker {
  display: none;
}
.rw-legal-warning summary strong {
  color: #fef08a;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.rw-legal-warning summary span {
  color: #f8c4df;
  font-size: 0.74rem;
  font-weight: 450;
  text-align: left;
}
.rw-legal-warning div {
  display: none !important;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(250,204,21,0.18);
}
.rw-legal-warning:hover div,
.rw-legal-warning:focus-within div {
  display: block !important;
}
.rw-legal-warning p {
  margin: 0 0 8px;
  color: #fde68a;
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.48;
}
.rw-legal-warning p:last-child {
  margin-bottom: 0;
}

/* Etiketler */
.rw-wizard-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f9a8d4;
  letter-spacing: 0.03em;
  text-transform: none;
}

.rw-label-hint {
  margin-left: 4px;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(249, 168, 212, 0.72);
  letter-spacing: 0;
}

.rw-label-info-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.1);
  color: #f9a8d4;
  cursor: pointer;
  padding: 0;
}
.rw-label-info-btn .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}
.rw-label-info-pop {
  margin: -4px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 10px;
  background: rgba(16, 8, 30, 0.88);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.45;
}
.rw-label-info-pop strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

/* Tüm input alanları */
.rw-wizard-input,
.rw-wizard-body .asistan-inline-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 0, 122, 0.15);
  background: rgba(11, 8, 22, 0.6);
  color: var(--text-main);
  font-family: 'Public Sans', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.rw-wizard-input:focus,
.rw-wizard-body .asistan-inline-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(11, 8, 22, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.12);
}
.rw-wizard-input::placeholder,
.rw-wizard-body .asistan-inline-input::placeholder {
  color: var(--text-dim);
}
/* Kilitli (readonly) sistem alanları */
.rw-wizard-input:disabled,
.rw-wizard-body .asistan-inline-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.06);
  color: var(--text-secondary);
}

/* Select (dropdown) özel */
.rw-modal-panel--wizard select.rw-wizard-input,
.rw-modal-panel--wizard select.asistan-inline-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23FF007A' d='M3.5 5.25L7 8.75l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}
.rw-modal-panel--wizard option {
  background-color: #161129;
  color: var(--text-main);
  padding: 8px;
}

/* İki sütunlu satır (tarih, saat vb.) */
.rw-wizard-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  align-items: start;
}
@media (max-width: 380px) {
  .rw-wizard-row2 { grid-template-columns: 1fr; }
}
.rw-wizard-col .rw-wizard-field { margin-bottom: 0; }
.rw-wizard-col { overflow: visible; min-width: 0; }
.rw-wizard-dd.open { z-index: 1000; }

/* Repeater içindeki grouped accordion dropdown — ekran ortası overlay */
.rw-wizard-repeater .rw-wizard-dd.open .asistan-dd-list {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 92vw;
  max-width: 420px;
  max-height: 70vh;
  right: auto !important;
  z-index: 9999;
  border-radius: 16px;
  background: rgba(16, 8, 30, 0.98) !important;
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(236,72,153,0.2);
  padding: 12px 0 !important;
}

/* Accordion item metin kesme kaldır */
.rw-wizard-dd .asistan-dd-list [data-ast-item] span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Dropdown açıkken arka plan karartması */
.rw-wizard-repeater .rw-wizard-dd.open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* Multiselect — checkbox grid (Geçerli Günler) */
.rw-wizard-multiselect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.rw-wizard-ms-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(11, 8, 22, 0.5);
  border: 1px solid rgba(255, 0, 122, 0.1);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.rw-wizard-ms-item:hover {
  border-color: rgba(255, 0, 122, 0.35);
  background: rgba(255, 0, 122, 0.06);
}
.rw-wizard-ms-item:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 0, 122, 0.1);
}
.rw-wizard-ms-item input[type=checkbox] {
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* Alt aksiyon alanı */
.rw-wizard-actions {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
  margin-top: 8px;
}
.rw-wizard-submit {
  min-width: 200px;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 18px rgba(255, 0, 122, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rw-wizard-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 0, 122, 0.4);
}
.rw-wizard-submit:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(255, 0, 122, 0.25);
}

/* Grid modal — ödül tipi seçim butonları */
.rw-chat-wizard-root .asistan-chips-grid {
  gap: 8px !important;
}
.rw-chat-wizard-root .asistan-chips-grid .asistan-chip {
  background: rgba(11, 8, 22, 0.6);
  border: 1px solid rgba(255, 0, 122, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  min-height: 56px;
  line-height: 1.35;
  transition: all 0.2s;
}
.rw-chat-wizard-root .asistan-chips-grid .asistan-chip:hover {
  border-color: var(--primary);
  background: rgba(255, 0, 122, 0.08);
  color: #fff;
}
.rw-chat-wizard-root .asistan-chips-grid .asistan-chip:active {
  background: var(--primary);
  color: #fff;
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(255, 0, 122, 0.3);
}

/* Backdrop gerekmiyor (inline) ama eski uyumluluk için bırakıyoruz */
.rw-modal-backdrop--wizard {
  display: none !important;
}

.rw-code-scroll {
  max-height: 42vh;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(0, 0, 0, 0.2);
}
.rw-code-line {
  display: grid;
  grid-template-columns: minmax(92px, 1.1fr) minmax(100px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  transition: background 0.15s;
}
.rw-code-4col {
  grid-template-columns: minmax(80px, 1fr) minmax(70px, 0.8fr) minmax(70px, 1fr) auto;
}
.rw-code-reward-name {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rw-code-line:last-child { border-bottom: none; }
.rw-code-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(18, 12, 35, 0.96);
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Durum bazlı satır arka planları */
.rw-code-line--active  { background: transparent; }
.rw-code-line--used    { background: rgba(239, 68, 68, 0.07); border-bottom-color: rgba(239, 68, 68, 0.1); }
.rw-code-line--used .rw-code-txt { color: rgba(203, 213, 225, 0.45); text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.4); }
.rw-code-line--assigned { background: rgba(245, 158, 11, 0.06); }
.rw-code-line--expired  { background: rgba(100, 116, 139, 0.08); }
.rw-code-line--expired .rw-code-txt { color: rgba(148, 163, 184, 0.5); }

.rw-code-txt {
  font-family: ui-monospace, Consolas, monospace;
  color: #e2e8f0;
  word-break: break-all;
}
.rw-code-prize {
  min-width: 0;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* Durum badge'leri */
.rw-code-st {
  flex-shrink: 0;
  justify-self: end;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
}
.rw-code-st--active   { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.25); }
.rw-code-st--used     { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.22); }
.rw-code-st--assigned { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.22); }
.rw-code-st--expired  { background: rgba(100, 116, 139, 0.12); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.2); }
.rw-code-st--other    { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.2); }


/* Ödüllerim — sekme ve aksiyon butonları */
.rw-distribution-modal {
  max-width: 440px;
  background: #151127;
  border-color: rgba(255, 0, 122, 0.28);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.5);
}
.rw-distribution-modal .rw-modal-head {
  align-items: flex-start;
  padding: 15px 16px 13px;
}
.rw-distribution-modal .rw-modal-title {
  display: grid;
  gap: 4px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.rw-distribution-modal .rw-modal-title-main {
  display: block;
  color: #f8fafc;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.25;
}
.rw-distribution-modal .rw-modal-title-sub {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #c7bddc;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rw-distribution-modal .rw-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 1.05rem;
}
.rw-distribution-modal .rw-modal-section {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.rw-distribution-modal .rw-modal-subh {
  margin-bottom: 7px;
  color: #d8b4fe;
  font-size: 0.66rem;
  font-weight: 650;
}
.rw-distribution-modal .rw-modal-row {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.rw-distribution-modal .rw-modal-row:last-child { border-bottom: 0; }
.rw-distribution-modal .rw-modal-k {
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 500;
}
.rw-distribution-modal .rw-modal-v {
  color: #e5e7eb;
  font-size: 0.72rem;
  font-weight: 550;
}
.rw-distribution-modal .rw-modal-codes {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(5, 3, 12, 0.24);
}
.rw-distribution-modal .rw-code-line {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.72rem;
}
.rw-distribution-modal .rw-code-line--head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #151127;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.rw-distribution-modal .rw-code-line--head .rw-code-txt,
.rw-distribution-modal .rw-code-line--head .rw-code-st {
  background: transparent;
  border: 0;
  color: #a78bfa;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
}
.rw-distribution-modal .rw-code-txt {
  color: #dbe4f0;
  font-size: 0.72rem;
  font-weight: 500;
}
.rw-distribution-modal .rw-code-st {
  align-self: center;
  justify-self: end;
  font-size: 0.58rem;
  font-weight: 650;
  padding: 3px 7px;
}

.rw-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.rw-search-wrap {
  margin-top: 8px;
}
.rw-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: var(--text-main);
  padding: 0 12px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
}
.rw-search-input:focus {
  border-color: rgba(255,0,122,0.38);
  background: rgba(255,255,255,0.065);
}
.rw-search-input::placeholder {
  color: rgba(255,255,255,0.38);
}
.rw-tab-btn {
  border: 1px solid rgba(255, 0, 122, 0.28);
  background: rgba(255, 0, 122, 0.06);
  color: #fbcfe8;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.rw-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
}
.rw-card-asistan {
  background: rgba(20, 14, 33, 0.95);
  border-color: rgba(255, 0, 122, 0.2);
}
.rw-id-badge {
  background: rgba(255, 0, 122, 0.12);
  color: #ffd0e7;
}
.rw-st-badge.pas { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.rw-st-badge.act { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.rw-st-badge.arc { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.rw-card-sub, .rw-stat-k, .rw-gauge-lbl { color: #f9a8d4; }
.rw-stat-line { background: rgba(255, 0, 122, 0.08); }
.rw-days-row { border-color: rgba(255, 0, 122, 0.18); background: rgba(255, 0, 122, 0.05); }
.rw-day-dot.off { background: rgba(255, 0, 122, 0.1); color: #f9a8d4; opacity: 0.55; }
.rw-card-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.rw-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 25, 0.85);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.rw-action-toggle { border-color: rgba(59, 130, 246, 0.35); color: #bfdbfe; }
.rw-action-delete { border-color: rgba(239, 68, 68, 0.35); color: #fecaca; }

/* ═══ ÖDÜL OLUŞTURMA SONRASI — ÖDÜLLERİM GEÇİŞ BUTONU ═══ */
.rw-goto-btn-wrap {
  width: 100%;
  padding: 4px 0 8px;
  animation: slideMsg 0.35s ease both;
}
.rw-goto-rewards-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 122, 0.45);
  background: linear-gradient(135deg, rgba(255, 0, 122, 0.18) 0%, rgba(124, 58, 237, 0.12) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Plus Jakarta Sans', 'Public Sans', sans-serif;
  box-shadow: 0 4px 20px rgba(255, 0, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.rw-goto-rewards-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 0, 122, 0.28) 0%, rgba(124, 58, 237, 0.2) 100%);
  border-color: rgba(255, 0, 122, 0.7);
  box-shadow: 0 6px 28px rgba(255, 0, 122, 0.22);
  transform: translateY(-1px);
}
.rw-goto-rewards-btn:active:not(:disabled) {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 10px rgba(255, 0, 122, 0.15);
}
.rw-goto-rewards-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.rw-goto-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.rw-goto-label {
  flex: 1;
  text-align: left;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.rw-goto-arrow {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 0, 122, 0.9);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.rw-goto-rewards-btn:hover:not(:disabled) .rw-goto-arrow {
  transform: translateX(3px);
}

.asistan-wizard-card {
  background: rgba(23, 16, 39, 0.95);
  border: 1px solid rgba(255, 0, 122, 0.22);
  border-radius: 12px;
  padding: 12px;
}

.asistan-wizard-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.asistan-wizard-row {
  margin-bottom: 10px;
}

.asistan-wizard-label {
  display: block;
  font-size: 12px;
  color: #c9bfdc;
  margin-bottom: 5px;
}

.asistan-wizard-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 0, 122, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.asistan-wizard-textarea {
  resize: vertical;
}

.asistan-wizard-row.readonly .asistan-wizard-input {
  opacity: 0.7;
}

.asistan-wizard-multiselect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.asistan-wizard-error {
  min-height: 18px;
  color: #ff7f7f;
  font-size: 12px;
  margin: 4px 0;
}

/* ═══ CAMPAIGN LIST ═══ */
#campaignSection { padding: 4px 0 8px; }
.camp-list-title { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; padding: 0 2px; }
.camp-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); margin-bottom: 5px; }
.camp-icon { font-size: 1rem; flex-shrink: 0; }
.camp-name { flex: 1; font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camp-status { font-size: 0.65rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.camp-status--active { background: rgba(34,197,94,0.15); color: #4ade80; }
.camp-status--other  { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.camp-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,0,122,0.25); transform: translateX(2px); transition: all 0.15s ease; }
.camp-arrow { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; margin-left: 2px; }
.camp-item-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.camp-meta { flex: 1; min-width: 0; }
.camp-serial { font-size: 0.62rem; font-weight: 700; color: var(--primary); background: rgba(255,0,122,0.1); border-radius: 4px; padding: 1px 5px; white-space: nowrap; flex-shrink: 0; }
.camp-stats { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.camp-pct { color: #94a3b8; }

/* Çekilişlerim kartları */
.campaign-list-head {
  padding: 0 0 0 36px;
  margin: 2px 0 8px;
}
.campaign-list-head > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.campaign-list-head strong {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
}
.campaign-list-head span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.campaign-card-wrap {
  padding: 0 0 0 36px;
  margin: 0 0 10px;
}
.campaign-card {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,24,52,0.98), rgba(20,16,36,0.98));
  color: var(--text-main);
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.campaign-card:active {
  transform: scale(0.99);
  border-color: rgba(255,0,122,0.35);
}
.campaign-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.campaign-title-block { min-width: 0; }
.campaign-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.campaign-serial {
  color: var(--primary);
  background: rgba(255,0,122,0.12);
  border: 1px solid rgba(255,0,122,0.18);
  border-radius: 6px;
  padding: 2px 6px;
  letter-spacing: 0;
}
.campaign-title {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.campaign-status-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.campaign-status-pill.is-active {
  color: #4ade80;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.24);
}
.campaign-status-pill.is-closed {
  color: #fbbf24;
  background: rgba(245,158,11,0.13);
  border: 1px solid rgba(245,158,11,0.22);
}
.campaign-status-pill.is-muted {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.campaign-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.campaign-metrics div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  padding: 8px 6px;
}
.campaign-metrics strong {
  display: block;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1;
  text-align: center;
}
.campaign-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.campaign-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.campaign-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff5ca8);
}
.campaign-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.campaign-card-foot strong { color: var(--primary); }
.campaign-back-btn {
  display: block;
  width: calc(100% - 36px);
  margin: 10px 0 6px 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.campaign-filter-row {
  display: flex;
  gap: 6px;
  padding: 0 0 0 36px;
  margin: 0 0 10px;
}
.campaign-filter-chip {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--text-secondary);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.campaign-filter-chip.is-selected {
  color: var(--primary);
  border-color: rgba(255,0,122,0.35);
  background: rgba(255,0,122,0.12);
}
.asistan-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 12px 12px;
  padding: 10px 12px;
  width: calc(100% - 24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.report-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px 36px;
  padding: 10px 12px;
  width: calc(100% - 54px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.report-catalog-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.report-catalog-head-text strong {
  color: var(--text-main);
  font-size: 14px;
}
.report-catalog-head-text span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.report-catalog-back {
  border: 1px solid rgba(255,0,122,0.28);
  border-radius: 8px;
  background: rgba(255,0,122,0.1);
  color: var(--primary);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.report-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 8px 36px;
  width: calc(100% - 54px);
}
.report-search-wrap {
  margin: 0 0 8px 36px;
  width: calc(100% - 54px);
}
.report-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: var(--text-main);
  outline: none;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
}
.report-search-input:focus {
  border-color: rgba(255,0,122,0.5);
  box-shadow: 0 0 0 3px rgba(255,0,122,0.08);
}
.report-search-input::placeholder {
  color: var(--text-secondary);
}
.report-search-empty {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 10px;
  color: var(--text-secondary);
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 500;
}
.report-step-card,
.report-campaign-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 64px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: var(--text-main);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}
.report-step-card:active,
.report-campaign-card:active {
  transform: scale(0.99);
}
.report-step-card strong,
.report-campaign-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.report-campaign-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.report-step-card span,
.report-campaign-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.report-step-card em,
.report-campaign-card em {
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.report-campaign-card.is-selected {
  border-color: rgba(255,0,122,0.32);
  background: rgba(255,255,255,0.06);
}
.report-campaign-card.is-paused {
  border-color: rgba(59,130,246,0.28);
}
.report-campaign-card.is-closed {
  opacity: 0.72;
  border-color: rgba(148,163,184,0.18);
}
.report-detail-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 8px 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(22,15,36,0.96);
  padding: 14px;
}
.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.report-title-stack {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.report-title-stack strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}
.report-title-stack em {
  color: var(--text-secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.report-id-chip {
  justify-self: start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}
.report-status-pill {
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.report-status-pill.is-paused {
  background: rgba(59,130,246,0.16);
  color: #93c5fd;
}
.report-status-pill.is-closed {
  background: rgba(148,163,184,0.14);
  color: #cbd5e1;
}
.report-status-pill.is-archived {
  background: rgba(248,113,113,0.16);
  color: #fca5a5;
}
.report-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 10px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.report-action-row button {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  background: rgba(255,255,255,0.055);
  color: var(--text-main);
  padding: 6px 5px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.report-action-row button[data-r-action="codes"] {
  color: #67e8f9;
  border-color: rgba(103,232,249,0.24);
  background: rgba(103,232,249,0.08);
}
.report-action-row button[data-r-action="pause"] {
  color: #93c5fd;
  border-color: rgba(59,130,246,0.28);
  background: rgba(59,130,246,0.08);
}
.report-action-row button[data-r-action="delete"] {
  color: #fca5a5;
  border-color: rgba(248,113,113,0.28);
  background: rgba(248,113,113,0.08);
}
.report-main-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 8px 0 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.report-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(124,58,237,0.75) 0 78%, rgba(255,255,255,0.08) 0);
}
.report-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #151020;
  border: 1px solid rgba(255,255,255,0.08);
}
.report-ring strong,
.report-ring span {
  position: relative;
  z-index: 1;
}
.report-ring strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}
.report-ring span {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}
.report-info-lines {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.report-info-lines div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 23px;
  border-radius: 7px;
  background: rgba(255,255,255,0.055);
  overflow: hidden;
}
.report-info-lines span {
  color: var(--text-secondary);
  padding-left: 8px;
  font-size: 10px;
  font-weight: 600;
}
.report-info-lines strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
  text-align: right;
  padding-right: 8px;
  font-size: 11px;
  font-weight: 650;
}
.report-constraint-panel {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  padding: 9px;
  margin: 6px 0;
}
.report-mark {
  border-radius: 999px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 700;
}
.report-mark.is-on {
  background: rgba(255,0,122,0.9);
  color: #fff;
}
.report-mark.is-off {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
}
.report-constraint-panel strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  text-align: right;
  font-size: 10px;
  font-weight: 650;
}
.report-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.report-day-row span {
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
}
.report-day-row span.is-on {
  background: rgba(255,0,122,0.9);
  color: #fff;
}
.report-day-row span.is-off {
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.35);
}
.report-extra-line {
  min-height: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 8px;
}
.report-extra-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.report-metric-grid div {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  background: rgba(0,0,0,0.14);
  padding: 10px;
}
.report-metric-grid strong {
  display: block;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}
.report-metric-grid span {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}
.report-progress {
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.report-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, var(--primary));
}
.report-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}
.report-foot strong {
  color: #22c55e;
}
.campaign-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.campaign-actions button {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
  color: var(--text-main);
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.campaign-actions button[data-action="codes"] {
  color: #67e8f9;
  border-color: rgba(103,232,249,0.22);
  background: rgba(103,232,249,0.08);
}
.campaign-actions button[data-action="active"] {
  color: #4ade80;
  border-color: rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.10);
}
.campaign-actions button[data-action="inactive"] {
  color: #fbbf24;
  border-color: rgba(245,158,11,0.24);
  background: rgba(245,158,11,0.10);
}
.campaign-actions button[data-action="stop"] {
  color: #fb7185;
  border-color: rgba(251,113,133,0.24);
  background: rgba(251,113,133,0.10);
}
.campaign-code-list {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 8px;
  max-height: 180px;
  overflow: auto;
}
.campaign-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.campaign-code-row code {
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.campaign-code-row span {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
}
.campaign-code-row span.is-active {
  color: #4ade80;
  background: rgba(34,197,94,0.12);
}
.campaign-code-row span.is-used {
  color: #fda4af;
  background: rgba(244,63,94,0.12);
}
.campaign-code-loading,
.campaign-code-empty,
.campaign-code-more {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 0;
}
.raffle-codes-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 3, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.raffle-codes-modal {
  width: min(420px, 100%);
  max-height: min(76vh, 620px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: #171126;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}
.raffle-codes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.raffle-codes-head strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
}
.raffle-codes-head span {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.raffle-codes-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.raffle-codes-body {
  overflow: auto;
  padding: 8px 16px 14px;
}
.raffle-codes-body .campaign-code-row:last-child {
  border-bottom: none;
}

.q-code-inspect-panel,
.q-code-inspect-result {
  width: min(430px, calc(100% - 24px));
  margin: 10px auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(23,17,38,0.96);
  box-shadow: 0 18px 50px rgba(0,0,0,0.34);
  overflow: hidden;
}
.q-code-inspect-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.q-code-inspect-head .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
}
.q-code-inspect-head strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
}
.q-code-inspect-head small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.q-code-inspect-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px 16px;
}
.q-code-inspect-input {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  padding: 0 13px;
  font: 800 13px "JetBrains Mono", monospace;
  text-transform: uppercase;
  outline: none;
}
.q-code-inspect-input:focus {
  border-color: rgba(255,0,122,0.65);
  box-shadow: 0 0 0 3px rgba(255,0,122,0.12);
}
.q-code-inspect-btn {
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.q-code-inspect-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.q-code-inspect-list {
  padding: 4px 16px 16px;
}
.q-code-inspect-section {
  margin-top: 12px;
  color: #00f0ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.q-code-inspect-row {
  display: grid;
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.q-code-inspect-row span:first-child {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.q-code-inspect-row span:last-child {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}
.q-code-inspect-empty {
  padding: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

/* Damga detay popup: tek scroll alani, cift scrollbar yok */
.rw-stamp-modal-panel {
  max-height: min(82vh, 620px);
}
.rw-stamp-modal-panel .rw-stamp-modal-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rw-stamp-modal-panel .rw-modal-codes {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rw-stamp-modal-panel .rw-code-scroll {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM TAB BAR — Asistan Navigation
   ═══════════════════════════════════════════════════════════════ */

/* Input bar hidden by default — toggled via JS */
.chat-input-bar.hidden { display: none !important; }

/* Back button hidden in header */
.header-back.hidden { display: none !important; }

/* In-page back button (shown inside flows) */
.flow-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  margin: 8px 12px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,0,122,0.2);
  background: rgba(255,0,122,0.08);
  color: #FF007A;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.flow-back-btn:hover {
  background: rgba(255,0,122,0.18);
  border-color: rgba(255,0,122,0.4);
}
.flow-back-btn .material-symbols-outlined {
  font-size: 18px;
}

/* Bottom Tab Bar */
#bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  padding: 0 12px 8px;
  box-sizing: border-box;
  pointer-events: none;
}

.tab-bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: rgba(11,8,22,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139,131,168,0.15);
  border-radius: 22px;
  padding: 6px 4px 8px;
  pointer-events: all;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}

.tab-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #5A5478;
  transition: color 0.2s;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.tab-item:hover { color: #8B83A8; }
.tab-item.active { color: #F0ECF9; }

.tab-item .material-symbols-outlined {
  font-size: 24px;
  transition: transform 0.2s;
}
.tab-item.active .material-symbols-outlined {
  transform: scale(1.1);
  font-variation-settings: 'FILL' 1;
}

.tab-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Home tab — raised circle */
.tab-item.tab-home {
  margin-top: -22px;
  position: relative;
}
.tab-home-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF007A, #9C27B0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,0,122,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tab-item.tab-home:hover .tab-home-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255,0,122,0.3);
}
.tab-item.tab-home .material-symbols-outlined {
  color: #fff;
  font-size: 26px;
}
.tab-item.tab-home .tab-label {
  color: #F0ECF9;
  margin-top: 4px;
}

/* Asistana Sor FAB — shows input bar */
.ask-fab {
  position: fixed;
  bottom: 90px;
  right: calc(50% - 200px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF007A, #9C27B0);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,0,122,0.2);
  z-index: 99;
  transition: transform 0.2s;
}
.ask-fab:hover { transform: scale(1.1); }
.ask-fab .material-symbols-outlined { font-size: 22px; }
.ask-fab.hidden { display: none !important; }

/* Adjust chat-body padding for bottom bar */
.chat-body { padding-bottom: 90px !important; }

/* Tab content sections */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══ STOCK CARD — appendCampaignCard layout düzeltmesi ═══ */
.report-campaign-card { box-sizing: border-box; }
/* ID + status pill satırı */
.stock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.stock-card-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
/* Stok sayıları satırı */
.stock-card-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}
.stock-card-stock > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ═══ STOCK ROW ACTIONS — buton satırı taşmayı önle ═══ */

.stock-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-width: 100%;
  box-sizing: border-box;
}
.stock-row-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: var(--text-main, #F0ECF9);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.stock-row-actions button:hover { background: rgba(255,255,255,0.1); }
.stock-row-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.stock-row-actions button .material-symbols-outlined { font-size: 15px; }
.stock-row-actions button[data-r-action="pause"] {
  color: #93c5fd; border-color: rgba(59,130,246,0.28); background: rgba(59,130,246,0.08);
}
.stock-row-actions button[data-r-action="info"] {
  color: #4ade80; border-color: rgba(34,197,94,0.24); background: rgba(34,197,94,0.07);
}
.stock-row-actions button[data-r-action="export"] {
  color: #67e8f9; border-color: rgba(103,232,249,0.22); background: rgba(103,232,249,0.06);
}



/* ═══ STOCK LINE — Compact stok satırı + Kart butonu ═══ */
.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22,17,41,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 10px 10px 13px;
  margin-bottom: 6px;
  font-family: inherit;
  color: inherit;
}
.sl-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.sl-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary, #FF007A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sl-nums {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.sl-id {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}
.sl-meta {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}
/* Kart butonu — sağ kenarda küçük */
.sl-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 1px;
  padding: 6px 8px;
  background: rgba(255,0,122,0.12);
  border: 1px solid rgba(255,0,122,0.25);
  border-radius: 8px;
  color: var(--primary, #FF007A);
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}
.sl-card-btn .material-symbols-outlined {
  font-size: 14px;
}
.sl-card-btn:hover {
  background: rgba(255,0,122,0.22);
}
.sl-card-btn:active {
  transform: scale(0.94);
}

/* Grid modal secimleri - akordeon satir */
.asistan-choice-accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.asistan-choice-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(255, 0, 122, 0.14);
  border-radius: 8px;
  background: rgba(11, 8, 22, 0.62);
  color: var(--text-main);
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.asistan-choice-row:hover,
.asistan-choice-row:focus-visible {
  background: rgba(255, 0, 122, 0.11);
  border-color: rgba(255, 0, 122, 0.58);
  outline: none;
}
.asistan-choice-row:active {
  transform: scale(0.99);
}

/* Asistan icinde firma <-> Super Admin mesajlari */
.q-support-page { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.q-support-new {
  width: 100%; min-height: 44px; margin: 10px 0 12px; border: 1px solid rgba(255,0,122,.34);
  border-radius: 10px; background: rgba(255,0,122,.13); color: #fff; font: inherit;
  font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.q-support-new .material-symbols-outlined { font-size: 18px; }
.q-support-list { display: grid; gap: 8px; width: 100%; min-width: 0; }
.q-support-thread {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; display: grid;
  grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; text-align: left;
  padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  background: rgba(255,255,255,.045); color: #fff; cursor: pointer;
}
.q-support-thread.is-unread { border-color: rgba(255,0,122,.4); background: rgba(255,0,122,.07); }
.q-support-thread-main { min-width: 0; display: grid; gap: 4px; }
.q-support-thread-main strong, .q-support-thread-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-support-thread-main strong { font-size: .82rem; }
.q-support-thread-main small, .q-support-thread-meta small { color: var(--text-secondary); font-size: .68rem; }
.q-support-thread-meta { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.q-support-thread-meta b { color: var(--primary); font-size: .66rem; }
.q-support-empty { padding: 18px 12px; border: 1px dashed rgba(255,255,255,.14); border-radius: 10px; color: var(--text-secondary); font-size: .76rem; text-align: center; }
.q-support-inline-back { border: 0; background: transparent; color: var(--primary); padding: 0 0 10px; font: inherit; font-size: .72rem; cursor: pointer; }
.q-support-thread-view h3 { margin: 0 0 12px; color: #fff; font-size: .9rem; }
.q-support-chat { display: grid; gap: 8px; max-height: 48vh; overflow-y: auto; padding-right: 2px; }
.q-support-bubble { max-width: 88%; padding: 10px 11px; border-radius: 11px; font-size: .76rem; line-height: 1.45; }
.q-support-bubble.is-firm { justify-self: end; background: rgba(255,0,122,.16); border: 1px solid rgba(255,0,122,.25); }
.q-support-bubble.is-admin { justify-self: start; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.22); }
.q-support-bubble strong { display: block; margin-bottom: 4px; font-size: .67rem; color: #fff; }
.q-support-bubble small { display: block; margin-top: 5px; color: var(--text-secondary); font-size: .6rem; }
.q-support-reply, .q-support-form { display: grid; gap: 10px; margin-top: 12px; }
.q-support-form label { display: grid; gap: 5px; color: var(--text-secondary); font-size: .7rem; font-weight: 700; }
.q-support-reply textarea, .q-support-form input, .q-support-form select, .q-support-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px; background: rgba(255,255,255,.05); color: #fff; padding: 10px; font: inherit; font-size: .78rem;
}
.q-support-form select option { background: #171126; color: #fff; }
.q-support-reply button, .q-support-form-actions button {
  min-height: 40px; border: 1px solid rgba(255,0,122,.3); border-radius: 9px;
  background: rgba(255,0,122,.15); color: #fff; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer;
}
.q-support-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asistan-choice-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.asistan-choice-title {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.asistan-choice-icon {
  font-size: 19px;
  color: var(--accent);
  transition: transform 0.16s ease;
}
.asistan-choice-desc {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  padding-right: 26px;
  transition: max-height 0.18s ease, opacity 0.16s ease, margin-top 0.16s ease;
}
.asistan-choice-row:hover .asistan-choice-desc,
.asistan-choice-row:focus-visible .asistan-choice-desc {
  max-height: 72px;
  opacity: 1;
  margin-top: 6px;
}
.asistan-choice-row:hover .asistan-choice-icon,
.asistan-choice-row:focus-visible .asistan-choice-icon {
  transform: translateX(2px);
}



/* === Global utility: hidden class === */
.hidden { display: none !important; }

/* === Global Home Button (sub-page icin) === */
.global-home-btn {
  display: none;
  position: fixed;
  bottom: calc(var(--tab-bar-h, 66px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 8px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,0,122,.35);
  background: rgba(11,8,22,.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255,0,122,.18);
}
.global-home-btn:not(.hidden) { display: block; }
