* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden {
  display: none !important;
}

.bonus-empty-wrap {
  margin: 1rem 0.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.25);
}

.bonus-grid-empty {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fecaca;
  margin-bottom: 0.5rem;
}

.bonus-empty-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.45;
}

.bonus-empty-reasons li {
  padding: 0.35rem 0;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.bonus-empty-reasons li:first-child {
  border-top: none;
  padding-top: 0;
}

.bonus-empty-reasons strong {
  color: #fee2e2;
  font-weight: 600;
}

.bonus-loading {
  text-align: center;
  padding: 1.25rem;
  color: var(--green-bright);
  font-weight: 600;
  font-size: 0.9rem;
}

:root {
  --bg: #050805;
  --bg-card: #0c120c;
  --green: #22c55e;
  --green-bright: #4ade80;
  --green-dim: #15803d;
  --red: #ef4444;
  --red-dim: #7f1d1d;
  --text: #e8f5e9;
  --muted: #6b7280;
  --border: rgba(34, 197, 94, 0.2);
  /* Promo görsel: 819×1024 */
  --bonus-card-w: 164px;
  --bonus-img-ratio: 819 / 1024;
}

body.member-body {
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(34, 197, 94, 0.12), transparent),
    var(--bg);
  color: var(--text);
}

/* iframe / gömülü panel */
body.member-embed {
  min-height: auto;
  background: var(--bg);
}

body.member-embed .member-header {
  padding: 0.5rem 0.65rem;
}

body.member-embed .member-brand h1 {
  font-size: 0.95rem;
}

body.member-embed .btn-header {
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
}

body.member-embed .request-status-bar {
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
}

body.member-embed .member-main {
  max-width: 100%;
  padding: 0.5rem 0.4rem 1rem;
}

body.member-embed .bonus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

body.member-embed .bonus-card-media {
  aspect-ratio: var(--bonus-img-ratio);
  min-height: 0;
  max-height: none;
}

body.member-embed .btn-talep {
  padding: 0.45rem 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

body.member-embed .bonus-card:hover {
  transform: translateY(-2px);
}

.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 5, 0.9);
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(12px);
}

.member-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-sohobet-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 12px var(--green);
}

.member-brand h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member-welcome {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.member-welcome-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.member-welcome-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.member-section-nav {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  padding: 0 0.25rem;
}

.member-section-btn {
  flex: 1;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(12, 18, 12, 0.85);
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.member-section-btn:hover {
  color: #e5e7eb;
  border-color: rgba(34, 197, 94, 0.4);
}

.member-section-btn.active {
  color: #ecfdf5;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.12));
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

.member-section-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.member-games-lead {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.member-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}

.member-game-card.bonus-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(12, 18, 12, 0.92);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  min-height: 100%;
}

.member-game-card.bonus-card:hover:not(.is-closed) {
  border-color: rgba(74, 222, 128, 0.45);
}

.member-game-card.bonus-card.is-closed {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.member-game-card-media.bonus-card-media {
  aspect-ratio: var(--bonus-img-ratio, 819 / 1024);
}

.member-game-card-img.bonus-card-img {
  object-fit: contain;
}

.member-game-desc {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
  margin: 0.2rem 0.35rem 0.45rem;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-game-window-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.62);
  z-index: 2;
  padding: 0.5rem;
  pointer-events: none;
}

.member-game-window-label {
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-game-countdown {
  color: #fef2f2;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .member-games-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

@media (min-width: 640px) {
  .member-games-grid {
    --bonus-card-w: 168px;
    grid-template-columns: repeat(4, var(--bonus-card-w));
    gap: 0.65rem;
    max-width: calc(4 * var(--bonus-card-w) + 3 * 0.65rem);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .member-games-grid {
    --bonus-card-w: 172px;
    grid-template-columns: repeat(5, var(--bonus-card-w));
    gap: 0.7rem;
    max-width: calc(5 * var(--bonus-card-w) + 4 * 0.7rem);
  }
}

@media (min-width: 1200px) {
  .member-games-grid {
    --bonus-card-w: 176px;
    grid-template-columns: repeat(6, var(--bonus-card-w));
    gap: 0.75rem;
    max-width: calc(6 * var(--bonus-card-w) + 5 * 0.75rem);
  }
}

.login-modal-logo {
  margin: 0 auto 0.85rem;
}

.member-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-user-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}

.btn-header-ghost:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green-bright);
}

.btn-header-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-header-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-header-danger.is-disabled,
.btn-header-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-header-danger.is-disabled:hover,
.btn-header-danger:disabled:hover {
  background: transparent;
}

.cancel-pending-card {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.cancel-pending-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
}

.cancel-pending-title {
  display: block;
  font-size: 1rem;
  color: #fef2f2;
  margin-bottom: 0.35rem;
}

.cancel-pending-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #d1d5db;
}

.member-username {
  font-size: 0.85rem;
  color: var(--green-bright);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.member-input {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  width: 140px;
}

.btn-member-sm {
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #052e16;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Durum çubuğu */
.request-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.3s, color 0.3s;
}

.request-status-bar.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-bright);
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
}


.request-status-bar.status-inactive {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-active .status-dot {
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-inactive .status-dot {
  background: var(--red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.member-main {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.65rem 0.75rem 1.5rem;
}

/* Mobil: 3 sütun — görsel oranı korunur */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: start;
  justify-content: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet+ / Web: sabit kart genişliği, promo görsel boyutu */
@media (min-width: 640px) {
  .member-main {
    padding: 1rem 1rem 2rem;
  }

  .bonus-grid {
    --bonus-card-w: 168px;
    grid-template-columns: repeat(4, var(--bonus-card-w));
    gap: 0.65rem;
    max-width: calc(4 * var(--bonus-card-w) + 3 * 0.65rem);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .bonus-grid {
    --bonus-card-w: 172px;
    grid-template-columns: repeat(5, var(--bonus-card-w));
    gap: 0.7rem;
    max-width: calc(5 * var(--bonus-card-w) + 4 * 0.7rem);
  }
}

@media (min-width: 1200px) {
  .bonus-grid {
    --bonus-card-w: 176px;
    grid-template-columns: repeat(6, var(--bonus-card-w));
    gap: 0.75rem;
    max-width: calc(6 * var(--bonus-card-w) + 5 * 0.75rem);
  }
}

.bonus-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0a120a;
  border: 1px solid rgba(34, 197, 94, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s, border-color 0.2s;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.bonus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.bonus-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 3;
}

.bonus-card:hover .bonus-card-shine {
  transform: translateX(120%);
}

.bonus-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.bonus-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bonus-img-ratio);
  overflow: hidden;
  background: #030508;
  flex-shrink: 0;
}

.bonus-card-title {
  padding: 0.35rem 0.4rem 0.15rem;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #d1fae5;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .bonus-card-title {
    font-size: 0.62rem;
  }
}

.bonus-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.bonus-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0a120a, #14532d);
}

.bonus-card-pct {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-bright);
}

.btn-talep {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.35rem;
  border: none;
  border-radius: 0;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #052e16;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

@media (min-width: 640px) {
  .btn-talep {
    padding: 0.6rem 0.5rem;
    font-size: 0.72rem;
  }
}

.bonus-card.has-active-lock .btn-talep {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Geniş ekranda embed modu da aynı grid */
@media (min-width: 640px) {
  body.member-embed .bonus-grid {
    --bonus-card-w: 168px;
    grid-template-columns: repeat(4, var(--bonus-card-w));
    gap: 0.65rem;
    max-width: calc(4 * var(--bonus-card-w) + 3 * 0.65rem);
    margin-left: auto;
    margin-right: auto;
  }

  body.member-embed .bonus-card-media {
    aspect-ratio: var(--bonus-img-ratio);
    max-height: none;
  }
}

@media (min-width: 900px) {
  body.member-embed .bonus-grid {
    --bonus-card-w: 172px;
    grid-template-columns: repeat(5, var(--bonus-card-w));
    max-width: calc(5 * var(--bonus-card-w) + 4 * 0.7rem);
  }
}

.btn-talep:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #4ade80, #22c55e);
}

/* Talep onayı */
.modal-confirm-panel {
  max-width: 420px;
}

.confirm-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.confirm-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.confirm-cat-icon { font-size: 1.5rem; }

.confirm-cat-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.08em;
}

.confirm-message {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d1d5db;
  margin-bottom: 1.25rem;
  text-align: center;
}

.confirm-message strong { color: #fff; font-weight: 700; }
.confirm-message .text-accent { color: #60a5fa; }

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  color: #e5e7eb;
  font-weight: 600;
  cursor: pointer;
}

.btn-back:hover { background: #252525; }

.slide-chevrons {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-bright);
  font-size: 1rem;
  font-weight: 800;
  pointer-events: none;
  opacity: 0.7;
}

.slide-thumb span {
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-processing-panel {
  text-align: center;
  padding: 2.5rem 2rem;
}

.processing-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-processing-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.modal-processing-panel p {
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-history-panel {
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.btn-close-x {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.history-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.history-item {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.history-item-top strong { font-size: 0.9rem; }

.history-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-item.status-pending .history-status { color: #fbbf24; }
.history-item.status-success .history-status { color: var(--green-bright); }
.history-item.status-rejected .history-status { color: #f87171; }

.history-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.history-empty {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

.history-empty.hidden { display: none; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
  animation: fade-in 0.12s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  background: linear-gradient(160deg, #0f1a0f, #050805);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: modal-up 0.18s ease-out;
}

@keyframes modal-up {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.modal-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.category-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-cat {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-cat:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green-bright);
  transform: scale(1.03);
}

.btn-cancel {
  width: 100%;
  padding: 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cancel:hover { color: var(--text); }

/* Slide confirm */
.slide-confirm-wrap { margin-bottom: 1rem; }

.slide-track {
  position: relative;
  height: 52px;
  background: #0a120a;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.slide-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.2s;
}

.slide-track.confirmed .slide-hint { opacity: 0; }

.slide-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  cursor: grab;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45);
  z-index: 2;
  touch-action: none;
}

.slide-thumb:active { cursor: grabbing; }

.slide-track.confirmed {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green-bright);
}

.slide-track.confirmed .slide-thumb {
  left: calc(100% - 48px) !important;
  cursor: default;
}

/* Result modal */
.modal-result.success .result-icon {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green-bright);
}

.modal-result.error .result-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.modal-result h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal-result p {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn-member-primary {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #052e16;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-member-primary:hover { filter: brightness(1.08); }

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.btn-cancel-wide,
.btn-danger-wide {
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

.btn-cancel-wide {
  background: #1a1a1a;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger-wide {
  background: linear-gradient(135deg, #991b1b, #ef4444);
  color: #fff;
}

/* Misafir: arka plan hafif soluk (tıklama engeli yok — modal zaten üstte) */
body.member-guest .member-main {
  opacity: 0.55;
}

#modal-login {
  z-index: 200;
}

/* Giriş yapılmışsa popup asla tıklamayı engellemesin (JS yüklenmese bile) */
body.member-logged-in #modal-login {
  display: none !important;
  pointer-events: none !important;
}

#modal-login:not(.hidden) {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.modal-login-panel {
  max-width: 340px;
  width: calc(100% - 2rem);
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(165deg, #111a11 0%, #080c08 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.55);
}

.login-panel-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

.login-field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-field-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f9fafb;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field-input::placeholder {
  color: #6b7280;
}

.login-field-input:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.login-field-input.login-field-error-state {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.login-field-error {
  font-size: 0.78rem;
  color: #fca5a5;
  margin: 0 0 0.65rem;
}

.login-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
  color: #052e16;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
}

.login-submit-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.login-submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-form {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.member-input-lg {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.btn-lg {
  width: 100%;
  padding: 0.85rem;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.member-profile-bar {
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(12, 18, 12, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 8px;
}

/* Sekmeler — segmented */
.bonus-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 1rem;
  padding: 3px;
  background: rgba(12, 18, 12, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bonus-tabs::-webkit-scrollbar {
  display: none;
}

.bonus-tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.bonus-tab:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.bonus-tab.active {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.btn-logout-header {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-logout-header:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.no-bonus-alert {
  margin: 1rem 0;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 12px;
  line-height: 1.5;
}

.bonus-grid-empty {
  text-align: center;
  color: #fca5a5;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  min-height: 80px;
}

.bonus-grid-empty:not(.hidden) {
  display: block;
}

.bonus-results.hidden,
body.tab-eligible-pending #bonus-results {
  display: none !important;
}

.bonus-loading {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

.bonus-card.is-tab-hidden {
  display: none !important;
}

.eligible-fetch-panel {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 1rem;
}

.eligible-fetch-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn-fetch-eligible {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #34d399, #16a34a);
  color: #052e16;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: filter 0.15s;
}

.btn-fetch-eligible:hover {
  filter: brightness(1.08);
}

.bonus-card.not-eligible .btn-talep,
.btn-talep-muted {
  opacity: 0.55;
  cursor: pointer;
}

.bonus-card-hint {
  font-size: 0.62rem;
  line-height: 1.35;
  color: #fca5a5;
  margin: 0.2rem 0.35rem 0.35rem;
  min-height: 2.5em;
}

.bonus-card-preview {
  font-size: 0.65rem;
  line-height: 1.35;
  color: #86efac;
  margin: 0.2rem 0.35rem 0.35rem;
  min-height: 2.5em;
}

.result-reasons {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.45;
}

.result-reasons li {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-reasons li:first-child {
  border-top: none;
  padding-top: 0;
}

.modal-result #result-text {
  max-height: 45vh;
  overflow-y: auto;
}

/* —— Üye profil kontrolü (sadece HR / No Bonus) —— */
.member-profile-mode .profile-check-main {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.profile-check-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.profile-check-loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.profile-check-card {
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #0f1a0f, #080c08);
}

.profile-check-card.profile-no-bonus {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(165deg, #1a0a0a, #120606);
}

.profile-check-card.profile-high-risk {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(165deg, #1a1208, #100a04);
}

.profile-check-card.profile-normal {
  border-color: rgba(34, 197, 94, 0.45);
}

.profile-check-card.profile-unknown {
  border-color: rgba(107, 114, 128, 0.4);
}

.profile-check-login {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.profile-check-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.profile-no-bonus .profile-check-title {
  color: #fca5a5;
}

.profile-high-risk .profile-check-title {
  color: #fdba74;
}

.profile-normal .profile-check-title {
  color: var(--green-bright);
}

.profile-check-sub {
  font-size: 0.88rem;
  color: #a8b8a8;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.profile-check-meta {
  display: grid;
  gap: 0.65rem;
  font-size: 0.82rem;
}

.profile-check-meta dt {
  color: var(--muted);
  font-weight: 500;
}

.profile-check-meta dd {
  font-weight: 600;
  color: var(--text);
}

.profile-check-warn {
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 0.8rem;
}

.profile-check-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* i butonu */
.bonus-card-media {
  position: relative;
}

.btn-info {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  font-style: italic;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.btn-info:hover {
  background: rgba(37, 99, 235, 0.85);
  border-color: #60a5fa;
}

/* Kurallar modal */
.modal-rules-panel {
  max-width: 420px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.rules-modal-title {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.rules-modal-sub {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.rules-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.rules-list li {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.rules-list li::before {
  content: "• ";
  color: #60a5fa;
  font-weight: bold;
}

.btn-wide {
  width: 100%;
}

.modal-close-tr {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* Casino / Spor seçim */
.modal-category-panel {
  max-width: 480px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  padding-top: 2.5rem;
}

.modal-cat-eyebrow {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.modal-cat-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.category-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.category-pick-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.category-pick-icon {
  font-size: 2.5rem;
}

.category-pick-label {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Görsel onay */
.modal-confirm-image-panel {
  max-width: 380px;
  text-align: center;
  background: linear-gradient(180deg, #0a0f0a, #050805);
  position: relative;
  padding-top: 2.5rem;
}

.confirm-image-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.confirm-bonus-image-wrap {
  max-width: 200px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 819 / 1024;
}

.confirm-bonus-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #030508;
}

.confirm-bonus-image.hidden {
  display: none;
}

.confirm-summary {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
}

.confirm-summary.hidden {
  display: none;
}

.confirm-summary .result-reasons {
  margin-top: 0.35rem;
}

.confirm-image-question {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-confirm-wide {
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #052e16;
}
