:root {
  --apple-black: #000000;
  --apple-bg: #090a0c;
  --apple-card: rgba(17, 18, 22, 0.90);
  --apple-card-hover: rgba(25, 26, 32, 0.98);
  --apple-border: rgba(255, 255, 255, 0.08);
  --apple-border-focus: rgba(255, 255, 255, 0.4);
  --apple-blue: #ffffff;
  --apple-blue-hover: #e2e2e6;
  --apple-green: #ffffff;
  --apple-purple: #ffffff;
  --apple-orange: #f59e0b;
  --apple-red: #ff453a;
  --apple-text: #f5f5f7;
  --apple-text-secondary: #949ba4;
  --apple-text-tertiary: #6e6e73;
  --apple-text-sub: #949ba4;
  --apple-accent: #ffffff;
  --apple-success: #ffffff;
  --apple-danger: #ff453a;
  --radius-card: 16px;
  --font-family: 'Outfit', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 6px 28px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.apple-dark {
  background-color: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--font-family);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  position: relative;
  z-index: auto;
}

.app-sidebar {
  width: 248px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-right: 1px solid var(--apple-border);
  padding: 16px 12px 14px;
  z-index: 1000;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-sidebar.collapsed {
  width: 78px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 14px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.sidebar-collapse-btn {
  margin-left: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-text-sub);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.app-sidebar.collapsed .nav-titles,
.app-sidebar.collapsed .nav-label,
.app-sidebar.collapsed .sidebar-conn-btn span:last-child,
.app-sidebar.collapsed #nav-bot-status,
.app-sidebar.collapsed #nav-ping {
  display: none;
}

.app-sidebar.collapsed .sidebar-brand {
  padding: 4px 0 14px;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.app-sidebar.collapsed .sidebar-collapse-btn {
  margin-left: 0;
  display: flex;
}

.app-sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

/* DM Üye Seçici Item Stilleri */
.dm-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dm-member-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.sidebar-nav.segmented-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  gap: 2px;
  max-width: none;
}

.sidebar-link.segment-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: var(--apple-text-secondary);
}

.sidebar-link.segment-btn .nav-ico {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(2.2) contrast(1.2);
  color: #ffffff !important;
}

.sidebar-link.segment-btn:hover {
  color: #fff;
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-link.segment-btn.active {
  background: #1c1d22;
  color: #ffffff;
  border-left: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.apple-logo-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--apple-border);
}

.sidebar-conn-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: flex-start;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.sidebar-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-content {
  flex: 1;
  min-width: 0;
}

.mobile-topbar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--apple-border);
  background: rgba(9, 9, 11, 0.85);
  position: sticky;
  top: 0;
  z-index: 900;
}

.embed-template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Subtle Ambient Glow */
.ambient-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* ??????????????????????????????????????????????????????????????????????
   APPLE NAVBAR (Frosted Glass)
   ?????????????????????????????????????????????????????????????????????? */
.apple-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid var(--apple-border);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-logo-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-titles {
  display: flex;
  flex-direction: column;
}

.apple-brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: #fff;
}

.apple-brand-subtitle {
  font-size: 11px;
  color: var(--apple-text-secondary);
}

/* Segmented Control (macOS / iOS Tabs) */
.segmented-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.segment-btn {
  background: transparent;
  border: none;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  color: var(--apple-text-secondary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-btn:hover {
  color: var(--apple-text);
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--apple-text-secondary);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 8px var(--apple-green);
}

.ping-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--apple-text-secondary);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--apple-text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ??????????????????????????????????????????????????????????????????????
   CONTAINER & SECTIONS
   ?????????????????????????????????????????????????????????????????????? */
.apple-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 28px 60px;
  position: relative;
  z-index: 1;
}

.tab-pane {
  display: none;
  animation: appleFadeIn 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes appleFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.pane-header h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.section-desc {
  font-size: 14px;
  color: var(--apple-text-secondary);
  margin-top: 4px;
}

/* ??????????????????????????????????????????????????????????????????????
   APPLE CARD & GRIDS
   ?????????????????????????????????????????????????????????????????????? */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.grid-2-cols-internal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.apple-card {
  background: var(--apple-card);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.apple-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.card-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-headline h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.tag-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-text-secondary);
}

.tag-badge.active-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ??????????????????????????????????????????????????????????????????????
   FORM INPUTS (Apple Minimalist)
   ?????????????????????????????????????????????????????????????????????? */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-md);
  color: var(--apple-text);
  font-family: var(--font-family);
  font-size: 13.5px;
  outline: none;
  transition: all 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

.field-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.meta-path {
  font-size: 11px;
  color: var(--apple-text-tertiary);
  font-family: var(--font-mono);
}

/* ??????????????????????????????????????????????????????????????????????
   APPLE FILE DROPZONE (PC'DEN DOSYA ATMA)
   ?????????????????????????????????????????????????????????????????????? */
.apple-dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.apple-dropzone:hover,
.apple-dropzone.dragover {
  border-color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.05);
}

.upload-icon {
  color: var(--apple-blue);
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-text);
}

.dropzone-hint {
  font-size: 11px;
  color: var(--apple-text-tertiary);
  margin-top: 2px;
}

.dropzone-file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-blue);
}

.file-size {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--apple-text-secondary);
}

.btn-remove-file {
  background: rgba(255, 69, 58, 0.15);
  border: none;
  color: var(--apple-red);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ??????????????????????????????????????????????????????????????????????
   TOGGLES & PILLS (Apple Switches)
   ?????????????????????????????????????????????????????????????????????? */
.apple-toggle-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-row strong {
  font-size: 13px;
  font-weight: 600;
}

.toggle-row .subtext {
  font-size: 11.5px;
  color: var(--apple-text-secondary);
  margin-top: 2px;
}

/* iOS Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
  background-color: #ffffff;
}

input:checked + .slider:before {
  background-color: #090a0c;
  transform: translateX(18px);
}

.countdown-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--apple-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-group {
  display: flex;
  gap: 8px;
}

.pill-chip {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pill);
  color: var(--apple-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pill-chip.active {
  background: #ffffff;
  color: #090a0c;
  border-color: #ffffff;
  font-weight: 600;
}

/* ??????????????????????????????????????????????????????????????????????
   BUTTONS
   ?????????????????????????????????????????????????????????????????????? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-primary:hover {
  background: #282931;
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.01);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--apple-border);
  color: var(--apple-text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: #ffffff;
  color: #090a0c;
  font-weight: 700;
}

.btn-success:hover {
  background: #e2e2e6;
}

.btn-warning {
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
}

.btn-warning:hover {
  background: #282931;
}

.btn-full {
  width: 100%;
  padding: 13px;
  font-size: 14px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 11.5px;
}

.btn-text {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

/* ??????????????????????????????????????????????????????????????????????
   DISCORD EMBED PREVIEW (Apple Card)
   ?????????????????????????????????????????????????????????????????????? */
.preview-card {
  display: flex;
  flex-direction: column;
}

.preview-badge {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
}

.discord-embed-mock,
.discord-embed,
.discord-preview-box .discord-embed {
  background: #0f0f13;
  border-left: 4px solid #ffffff;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  color: #dbdee1;
  min-height: 120px;
}

.discord-preview-box {
  background: #090a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.discord-channel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 8px;
}

.hash-icon { color: #80848e; }

.embed-author,
.mock-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #dbdee1;
}

.embed-title,
h4.embed-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.embed-desc {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed-code {
  margin-top: 6px;
  padding: 8px 10px;
  background: #1e1f22;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f2f3f5;
  overflow-x: auto;
}

.mock-avatar-img,
.preview-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #5865f2;
}

.preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  margin-left: auto;
}

.mock-banner-img,
#prev-studio-image,
#preview-image,
#cfg-preview-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.mock-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #949ba4;
}

.discord-mock-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mock-btn.success {
  background: #248046;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.embed-existing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.embed-existing-item {
  text-align: left;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--apple-text);
  cursor: pointer;
}

.embed-existing-item:hover,
.embed-existing-item.active {
  border-color: rgba(0, 168, 255, 0.45);
  background: rgba(0, 168, 255, 0.08);
}

.embed-template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.embed-tpl-chip {
  border: 1px solid var(--apple-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--apple-text);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.embed-tpl-chip.active {
  border-color: var(--apple-purple);
  background: rgba(0, 168, 255, 0.16);
}

.channel-picker {
  position: relative;
}

.channel-picker select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.channel-picker-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow-y: auto;
  background: #18181b;
  border: 1px solid var(--apple-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 40;
  padding: 6px;
}

.channel-picker-dropdown.open {
  display: block;
}

.channel-picker-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--apple-text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.channel-picker-item:hover,
.channel-picker-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.channel-picker-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--apple-text-secondary);
}

.compact-menu {
  position: relative;
}

.compact-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.compact-menu summary::-webkit-details-marker { display: none; }

.compact-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #18181b;
  border: 1px solid var(--apple-border);
  border-radius: 12px;
  padding: 10px 12px;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.compact-menu-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--apple-text-secondary);
  padding: 6px 0;
}

.compact-menu-row strong {
  color: var(--apple-text);
}

.mock-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #dbdee1;
}

.mock-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--apple-blue);
}

.mock-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mock-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-field-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-name {
  font-size: 11px;
  color: #949ba4;
  font-weight: 600;
  display: block;
}

.field-val {
  font-size: 12px;
  color: #f2f3f5;
  font-family: var(--font-mono);
}

.mock-banner {
  height: 90px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.4), rgba(0, 168, 255, 0.3));
  border-radius: 6px;
}

.mock-buttons {
  display: flex;
  gap: 8px;
}

.mock-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.mock-btn.primary {
  background: #5865f2;
  color: #fff;
}

.mock-btn.secondary {
  background: #4e5058;
  color: #fff;
}

/* ??????????????????????????????????????????????????????????????????????
   TAB 2: ANALYTICS & CHARTS
   ?????????????????????????????????????????????????????????????????????? */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--apple-card);
  backdrop-filter: blur(25px);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-sub {
  font-size: 12px;
  color: var(--apple-text-secondary);
  font-weight: 500;
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-green { color: var(--apple-green); }
.text-purple { color: var(--apple-purple); }
.text-blue { color: var(--apple-blue); }

.metric-trend {
  font-size: 11px;
  color: var(--apple-text-tertiary);
  margin-top: 4px;
}

.metric-trend.positive { color: var(--apple-green); }

.chart-wrapper {
  position: relative;
  height: 260px;
  width: 100%;
}

.doughnut-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-tag {
  font-size: 11px;
  color: var(--apple-text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ??????????????????????????????????????????????????????????????????????
   TAB 3: DESTEK LOGLARI (iMessage / Apple Chat Split View)
   ?????????????????????????????????????????????????????????????????????? */
.apple-split-view {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 600px;
  background: var(--apple-card);
  backdrop-filter: blur(30px);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Sol Bilet Listesi */
.ticket-sidebar {
  border-right: 1px solid var(--apple-border);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
}

.search-box {
  padding: 14px;
  border-bottom: 1px solid var(--apple-border);
}

.search-box input {
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-pill);
}

.ticket-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.ticket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 4px;
}

.ticket-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ticket-item.active {
  background: var(--apple-blue);
  color: #fff;
}

.ticket-item.active .ticket-time,
.ticket-item.active .ticket-preview {
  color: rgba(255, 255, 255, 0.8);
}

.ticket-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.ticket-meta {
  flex: 1;
  min-width: 0;
}

.ticket-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-time {
  font-size: 10.5px;
  color: var(--apple-text-secondary);
}

.ticket-preview {
  font-size: 11.5px;
  color: var(--apple-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sa? Chat G?r?n?m? (iMessage Style) */
.ticket-chat-pane {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.35);
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--apple-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.chat-header p {
  font-size: 11px;
  color: var(--apple-text-secondary);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty-state {
  margin: auto;
  text-align: center;
  color: var(--apple-text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* iMessage Bubbles */
.chat-bubble {
  max-width: 65%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-bubble.staff {
  align-self: flex-end;
  background: var(--apple-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-author {
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 2px;
  opacity: 0.8;
}

.bubble-time {
  font-size: 9.5px;
  opacity: 0.65;
  margin-top: 4px;
  text-align: right;
}

/* ??????????????????????????????????????????????????????????????????????
   TAB 4: SHOPIER ENTEGRASYONU
   ?????????????????????????????????????????????????????????????????????? */
.code-copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-border);
  margin: 14px 0 20px;
}

.code-copy-box code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--apple-blue);
  word-break: break-all;
}

.step-guide {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 16px;
}

.step-guide h4 {
  font-size: 13px;
  margin-bottom: 10px;
}

.step-guide ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--apple-text-secondary);
}

.orders-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.apple-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--apple-border);
  color: var(--apple-text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.apple-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.apple-divider {
  border: none;
  border-top: 1px solid var(--apple-border);
  margin: 20px 0;
}

.quick-shop-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ??????????????????????????????????????????????????????????????????????
   APPLE TOAST NOTIFICATION
   ?????????????????????????????????????????????????????????????????????? */
.apple-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 22px;
  background: rgba(30, 30, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.apple-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.apple-toast.error {
  border-color: rgba(255, 69, 58, 0.4);
  color: #ff453a;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-2-cols {
    grid-template-columns: 1fr;
  }
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .apple-split-view {
    grid-template-columns: 1fr;
    height: auto;
  }
  .ticket-sidebar {
    height: 250px;
  }
  .ticket-chat-pane {
    height: 400px;
  }
}

/* ??????????????????????????????????????????????????????????????????????
   ACTIVITY FEED PANELS (APPLE STYLE)
   ?????????????????????????????????????????????????????????????????????? */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-card);
  transition: all 0.2s ease;
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.feed-rank {
  font-size: 15px;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
  color: var(--apple-text-sub);
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--apple-border);
  flex-shrink: 0;
}

.feed-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.feed-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feed-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--apple-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

a.feed-name:hover {
  color: var(--apple-blue);
  text-decoration: underline;
}

.feed-sub {
  font-size: 11.5px;
  color: var(--apple-text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-score {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--apple-text);
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-border);
}

.feed-empty {
  text-align: center;
  padding: 24px;
  color: var(--apple-text-sub);
  font-size: 12.5px;
}

.badge-green {
  color: #ffffff;
  font-weight: 600;
}

.badge-red {
  color: #ff453a;
  font-weight: 600;
}

.badge-orange {
  color: #ff9f0a;
  font-weight: 600;
}

/* ??????????????????????????????????????????????????????????????????????
   CUSTOMERS GRID (M??TER? KARTLARI)
   ?????????????????????????????????????????????????????????????????????? */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.customer-card {
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.customer-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.customer-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.customer-info {
  flex: 1;
  min-width: 0;
}

.customer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--apple-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-id {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--apple-text-sub);
}

.customer-badge-icon {
  font-size: 20px;
  opacity: 0.9;
}

.customer-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--apple-text);
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--apple-border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.cstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cstat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--apple-text);
}

.cstat-lbl {
  font-size: 10px;
  color: var(--apple-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.customer-invited-by {
  font-size: 11.5px;
  color: var(--apple-text-sub);
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.customer-invited-by strong {
  color: var(--apple-blue);
  font-weight: 600;
}

/* ??????????????????????????????????????????????????????????????????????
   CONFIG TAB SPECIAL STYLES
   ?????????????????????????????????????????????????????????????????????? */
.apple-info-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--radius-card);
  padding: 12px 16px;
}

.banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.banner-text {
  font-size: 13px;
  color: var(--apple-text);
  line-height: 1.4;
}

.code-badge {
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--apple-blue);
}

/* ??????????????????????????????????????????????????????????????????????
   MEMBERS TAB & SERVER OVERVIEW STYLES
   ?????????????????????????????????????????????????????????????????????? */
.server-overview-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ov-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--apple-card-bg);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ov-icon {
  font-size: 24px;
}

.ov-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ov-label {
  font-size: 11px;
  color: var(--apple-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ov-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--apple-text);
}

.members-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.members-table-container {
  overflow-x: auto;
  max-height: 650px;
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.apple-table th {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--apple-text-sub);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--apple-border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.apple-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.apple-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-cell-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--apple-border);
  flex-shrink: 0;
}

.member-cell-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-cell-name {
  font-weight: 600;
  color: var(--apple-text);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-cell-sub {
  font-size: 11px;
  color: var(--apple-text-sub);
  font-family: var(--font-mono, monospace);
}

.roles-cell-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}

/* ??????????????????????????????????????????????????????????????????????
   APPLE MODAL DIALOG & SHEET
   ?????????????????????????????????????????????????????????????????????? */
.apple-modal-overlay,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.apple-modal-dialog,
.modal-container {
  background: #111827;
  border: 1px solid rgba(0, 168, 255, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 168, 255, 0.25);
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--apple-border);
}

.modal-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.modal-user-profile h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.m-modal-id {
  font-size: 11.5px;
  color: var(--apple-text-sub);
  font-family: var(--font-mono, monospace);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--apple-text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.minfo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.minfo-lbl {
  font-size: 11px;
  color: var(--apple-text-sub);
  text-transform: uppercase;
}

.minfo-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--apple-text);
}

.modal-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--apple-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-title-row h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.member-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.member-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 500;
}

.role-remove-btn {
  background: none;
  border: none;
  color: #ff453a;
  cursor: pointer;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.add-role-row, .add-warn-row {
  display: flex;
  gap: 10px;
}

.add-role-row select, .add-warn-row input {
  flex: 1;
}

.warn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.warn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 69, 58, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
}

.warn-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warn-reason {
  font-weight: 600;
  color: #fff;
}

.warn-date {
  font-size: 11px;
  color: var(--apple-text-sub);
}

.mod-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mod-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-sub);
}

.mod-action-buttons {
  display: flex;
  gap: 10px;
}

/* ??????????????????????????????????????????????????????????????????????
   PREMIUM OPENING SPLASH ANIMATION (APPLE STYLE)
   ?????????????????????????????????????????????????????????????????????? */
.apple-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #08080a;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-splash.splash-fade-out {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(12px);
  pointer-events: none;
}

.splash-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.35) 0%, rgba(0, 240, 255, 0.16) 40%, transparent 70%);
  filter: blur(80px);
  animation: splashGlowPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes splashGlowPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.splash-logo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(0, 168, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.5), inset 0 0 20px rgba(0, 168, 255, 0.3);
  animation: ringPulse 2.4s ease-in-out infinite;
}

.splash-ring-outer {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  animation: ringSpin 12s linear infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; border-color: rgba(0, 168, 255, 0.5); }
  50% { transform: scale(1.05); opacity: 1; border-color: rgba(0, 240, 255, 0.8); box-shadow: 0 0 45px rgba(0, 240, 255, 0.6); }
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splash-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 168, 255, 0.7);
  animation: logoZoomIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoZoomIn {
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0; filter: brightness(1.8) drop-shadow(0 0 40px #00a8ff); }
  70% { transform: scale(1.06) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; filter: brightness(1); }
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: contentFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes contentFadeUp {
  0% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.splash-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.splash-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  letter-spacing: 0.3px;
  margin: 0;
}

.splash-loader-bar {
  width: 170px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 10px;
}

.splash-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00a8ff, #00f0ff);
  box-shadow: 0 0 12px #00f0ff;
  border-radius: var(--radius-pill);
  transition: width 0.35s ease-out;
}

.splash-status {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--apple-text-tertiary);
  margin-top: 2px;
}

/* ??????????????????????????????????????????????????????????????????????
   ?YELER SEKMES? ? Server Overview Bar
   ?????????????????????????????????????????????????????????????????????? */
.server-overview-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.ov-item {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.ov-item:hover { border-color: rgba(255,255,255,0.15); }
.ov-icon { font-size: 22px; }
.ov-info { display: flex; flex-direction: column; gap: 2px; }
.ov-label { font-size: 11px; color: var(--apple-text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.ov-val { font-size: 15px; font-weight: 700; color: var(--apple-text); }
.ov-val.text-purple { color: var(--apple-purple); }

/* Members Toolbar */
.members-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Members Table */
.members-table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 580px;
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 780px;
}

.apple-table thead tr {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(18, 18, 22, 0.98);
  backdrop-filter: blur(12px);
}

.apple-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--apple-text-secondary);
  border-bottom: 1px solid var(--apple-border);
  white-space: nowrap;
}

.apple-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  color: var(--apple-text);
}

.apple-table tbody tr {
  transition: background 0.15s ease;
}

.apple-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.apple-table tbody tr:last-child td {
  border-bottom: none;
}

.loading-state {
  text-align: center;
  color: var(--apple-text-secondary);
  padding: 40px 20px !important;
  font-size: 14px;
}

/* Member cell */
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.member-cell-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.member-cell-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-cell-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--apple-text);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.member-cell-sub {
  font-size: 11px;
  color: var(--apple-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Role badges in table */
.roles-cell-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 220px;
}

.role-badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--apple-text);
  background: rgba(255,255,255,0.05);
  white-space: nowrap;
}

.btn-sm {
  padding: 5px 12px !important;
  font-size: 12px !important;
}

.badge-green { color: var(--apple-green); font-weight: 600; }
.text-red { color: var(--apple-red) !important; }

/* ??????????????????????????????????????????????????????????????????????
   APPLE MODAL OVERLAY (Member Management Sheet)
   ?????????????????????????????????????????????????????????????????????? */
.apple-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.apple-modal-dialog {
  background: rgba(20, 20, 26, 0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: modalDialogIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalDialogIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--apple-border);
  flex-shrink: 0;
}

.modal-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--apple-border);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--apple-text);
  margin: 0;
}

.m-modal-id {
  font-size: 11.5px;
  color: var(--apple-text-secondary);
  font-family: var(--font-mono);
}

.modal-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--apple-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--apple-text-secondary);
  font-size: 14px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(255,69,58,0.15);
  border-color: rgba(255,69,58,0.4);
  color: var(--apple-red);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.minfo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.minfo-lbl {
  font-size: 10.5px;
  color: var(--apple-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.minfo-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text);
  word-break: break-word;
}

.modal-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.section-title-row h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--apple-text);
  margin: 0;
}

.member-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
  margin-bottom: 10px;
}

.member-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--apple-text);
  background: rgba(255,255,255,0.05);
}

.role-remove-btn {
  background: none;
  border: none;
  color: rgba(255,69,58,0.7);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.role-remove-btn:hover { color: var(--apple-red); }

.add-role-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.add-role-row select { flex: 1; min-width: 0; }

.warn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 180px;
  overflow-y: auto;
}

.warn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,69,58,0.07);
  border: 1px solid rgba(255,69,58,0.15);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.warn-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.warn-reason {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text);
  word-break: break-word;
}

.warn-date {
  font-size: 11px;
  color: var(--apple-text-secondary);
  font-family: var(--font-mono);
}

.add-warn-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.add-warn-row input { flex: 1; min-width: 0; }

.mod-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mod-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mod-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mod-action-buttons .btn { flex: 1; min-width: 140px; justify-content: center; }

.feed-empty {
  text-align: center;
  color: var(--apple-text-secondary);
  font-size: 13px;
  padding: 14px 10px;
}

/* apple-text-sub alias */
.apple-text-sub { color: var(--apple-text-secondary) !important; }

/* Connection Status Dot */
.conn-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
  display: inline-block;
  animation: pulse-dot-anim 2s infinite ease-in-out;
}
.conn-dot-indicator.offline {
  background: var(--apple-red);
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.6);
}
.conn-dot-indicator.warning {
  background: var(--apple-orange);
  box-shadow: 0 0 8px rgba(255, 159, 10, 0.6);
}

/* Pack & Mod Library Grid */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.pack-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pack-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pack-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pack-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--apple-text);
  line-height: 1.3;
}
.pack-card-meta {
  font-size: 12px;
  color: var(--apple-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.pack-card-channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--apple-blue);
  font-weight: 500;
}
.pack-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--apple-border);
}
.pack-like-badge {
  font-size: 12px;
  color: var(--apple-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Horizontal Scrolling Segmented Tabs on Tablet/Mobile */
.segmented-control {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.segmented-control::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1100px) {
  .nav-container { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-right { justify-content: flex-end; }
  .mobile-topbar { display: flex; }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .app-sidebar.open { transform: translateX(0); }
}

@media (max-width: 900px) {
  .server-overview-bar { grid-template-columns: repeat(2, 1fr); }
  .modal-info-grid { grid-template-columns: 1fr; }
  .grid-2-cols { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .server-overview-bar { grid-template-columns: 1fr; }
  .members-toolbar { flex-direction: column; align-items: stretch; }
  .apple-modal-dialog { max-height: 95vh; border-radius: var(--radius-lg); }
  .packs-grid { grid-template-columns: 1fr; }
}


/* == BA?LANTI DURUM NOKTASI (Connection Dot Indicator) =============== */
.conn-dot-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-text-sub);
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.conn-dot-indicator.online {
  background: var(--apple-green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
  animation: dot-pulse 2s infinite;
}
.conn-dot-indicator.offline {
  background: var(--apple-red);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.2);
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.0); }
}

.members-toolbar .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  padding: 0;
  border: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   1. SOLO BÜYÜYEN "C" LOGO SPLASH EKRANI
   ══════════════════════════════════════════════════════════════════════ */
.apple-splash.solo-logo-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #060608;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-splash.solo-logo-splash.splash-fade-out {
  opacity: 0;
  transform: scale(1.18);
  filter: blur(16px);
  pointer-events: none;
}

.solo-c-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-ring-neon {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 168, 255, 0.6);
  box-shadow: 0 0 50px rgba(0, 120, 220, 0.7), inset 0 0 30px rgba(0, 168, 255, 0.4);
  animation: splashRingExpand 2s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

.solo-c-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.95)) drop-shadow(0 0 70px rgba(0, 100, 200, 0.8));
  animation: soloCScaleExpand 2.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes soloCScaleExpand {
  0% {
    transform: scale(0.65);
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.2));
  }
  30% {
    opacity: 1;
    transform: scale(1.0);
    filter: drop-shadow(0 0 40px rgba(0, 168, 255, 0.95)) drop-shadow(0 0 80px rgba(0, 100, 200, 0.8));
  }
  75% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 70px rgba(0, 200, 255, 1)) drop-shadow(0 0 120px rgba(0, 120, 220, 0.95));
  }
  100% {
    transform: scale(1.7);
    filter: drop-shadow(0 0 90px rgba(0, 200, 255, 1)) drop-shadow(0 0 150px rgba(0, 168, 255, 1));
  }
}

@keyframes splashRingExpand {
  0% { transform: scale(0.92); opacity: 0.4; }
  100% { transform: scale(1.28); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   2. SAYDAM ARKA PLAN "C" LOGO WATERMARK (MENÜLERİ KAPATMAZ)
   ══════════════════════════════════════════════════════════════════════ */
.site-background-logo {
  position: fixed;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  width: 650px;
  max-width: 80vw;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  user-select: none;
  animation: bgWatermarkFloat 16s ease-in-out infinite alternate;
}

.site-background-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 90px rgba(0, 168, 255, 0.5)) grayscale(15%);
}

@keyframes bgWatermarkFloat {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.98); }
  50% { transform: translate(-50%, -52%) rotate(2deg) scale(1.02); }
  100% { transform: translate(-50%, -48%) rotate(-2deg) scale(1.0); }
}

/* ══════════════════════════════════════════════════════════════════════
   3. MENÜ SPOTLIGHT FOCUS (%50 TEMİZ KARARTMA & MENÜ İSMİ BÜYÜMESİ/PARLAMASI)
   ══════════════════════════════════════════════════════════════════════ */
.menu-spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Tam %50 karartma (asla bulanıklık/blur yok) */
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.menu-spotlight-active .menu-spotlight-backdrop {
  opacity: 1;
}

/* Sidebar ve menüler karartma perdesinin üstünde kalsın */
.app-sidebar {
  position: relative;
  z-index: 9999;
}

.sidebar-nav {
  position: relative;
  z-index: 10000;
}

.sidebar-link {
  position: relative;
  transition: all 0.2s ease !important;
}

/* Bir menüye hover yapıldığında diğer menülerin hafif solması (%50 kararma hissi) */
body.menu-spotlight-active .sidebar-link {
  opacity: 0.35;
  filter: grayscale(30%);
}

/* Mouse ile üzerine gelinen MENÜNÜN İSMİ BÜYÜSÜN VE PARLASIN: */
body.menu-spotlight-active .sidebar-link:hover,
.sidebar-link:hover {
  opacity: 1 !important;
  filter: none !important;
  z-index: 10005 !important;
  background: linear-gradient(135deg, rgba(0, 100, 200, 0.4), rgba(56, 189, 248, 0.25)) !important;
  border-color: rgba(0, 168, 255, 0.85) !important;
  box-shadow: 0 0 24px rgba(0, 120, 220, 0.65), inset 0 0 12px rgba(0, 168, 255, 0.2) !important;
}

.sidebar-link .nav-label {
  display: inline-block;
  transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
  transform-origin: left center;
}

.sidebar-link .nav-ico {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Menü isminin büyümesi ve neon parlaması */
.sidebar-link:hover .nav-label {
  color: #ffffff !important;
  font-weight: 800 !important;
  transform: scale(1.15) !important; /* İsmi büyüt */
  text-shadow: 0 0 12px #ffffff, 0 0 22px #38bdf8, 0 0 35px #00a8ff !important; /* İsmi parlat (mavi neon) */
  letter-spacing: 0.5px !important;
}

.sidebar-link:hover .nav-ico {
  transform: scale(1.22) rotate(4deg) !important;
  filter: drop-shadow(0 0 10px #00a8ff) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   4. EFEKTLİ, ANİMASYONLU & GRADYAN PARLAMALI YAZILAR
   ══════════════════════════════════════════════════════════════════════ */
h1, h2, .apple-brand-title, .pane-header h2 {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 30%, #38bdf8 65%, #00a8ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 16px rgba(0, 168, 255, 0.35)) !important;
}

.pane-header h2 {
  display: inline-block;
  animation: neonHeadingPulse 6s ease-in-out infinite alternate;
}

@keyframes neonHeadingPulse {
  0% { filter: drop-shadow(0 0 10px rgba(0, 120, 220, 0.3)); }
  50% { filter: drop-shadow(0 0 24px rgba(0, 168, 255, 0.7)) drop-shadow(0 0 45px rgba(56, 189, 248, 0.35)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 100, 200, 0.35)); }
}

/* ══════════════════════════════════════════════════════════════════════
   5. BANLI KULLANICILAR, DM VE AUDIT LOG KARTLARI
   ══════════════════════════════════════════════════════════════════════ */
/* Ban list container */
.bans-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ban-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ban-card:hover {
  border-color: rgba(255, 69, 58, 0.45);
  box-shadow: 0 0 20px rgba(255, 69, 58, 0.12);
  transform: translateX(3px);
}

.ban-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 69, 58, 0.4);
  flex-shrink: 0;
}

.ban-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ban-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  word-break: break-all;
}

.ban-reason {
  font-size: 12.5px;
  color: var(--apple-text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ban-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Audit Log List Item */
.audit-log-item {
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid var(--apple-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.audit-log-item:hover {
  background: rgba(39, 39, 42, 0.7);
  border-color: rgba(0, 168, 255, 0.35);
  transform: translateX(4px);
}

.audit-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audit-badge.mod {
  background: rgba(255, 69, 58, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.audit-badge.dm {
  background: rgba(0, 240, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.audit-badge.partner {
  background: rgba(0, 120, 220, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(0, 168, 255, 0.4);
}

.audit-badge.embed {
  background: rgba(48, 209, 88, 0.15);
  color: #4ade80;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.fx-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.fx-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 78%);
  animation: fxGridDrift 28s linear infinite;
}

.fx-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.55;
  animation: fxOrbFloat 16s ease-in-out infinite;
}

.fx-orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
}

.fx-orb-2 {
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 70%);
  animation-delay: -5s;
}

.fx-orb-3 {
  width: 280px;
  height: 280px;
  left: 38%;
  bottom: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 70%);
  animation-delay: -9s;
}

/* TÜM İKONLAR BEYAZ (Discord Dark Stil) */
.nav-ico, 
.icon-btn svg, 
.sidebar-brand svg, 
.apple-logo-badge svg,
button svg,
.action-btn svg,
.btn svg,
.badge-icon,
.card-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.sidebar-link .nav-ico {
  filter: grayscale(100%) brightness(2.2) contrast(1.2) !important;
}

@keyframes fxOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@keyframes fxGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}

.sidebar-link {
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-link:hover {
  transform: translateX(4px);
}

.btn, .segment-btn, .pill-chip {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover, .pill-chip:hover {
  transform: translateY(-1px);
}

.packs-grid > *,
.ticket-list > * {
  animation: appleFadeIn 0.35s ease both;
}

/* ==============================================================================
   COMPONENTS STUDIO STYLES
   ============================================================================== */

/* Panel kart seçici ýzgarasý */
.comp-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.comp-panel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--apple-text-sub);
  text-align: center;
}

.comp-panel-card:hover {
  background: rgba(138,43,226,0.12);
  border-color: rgba(138,43,226,0.4);
  color: var(--apple-text);
  transform: translateY(-2px);
}

.comp-panel-card.active {
  background: rgba(138,43,226,0.22);
  border-color: rgba(138,43,226,0.7);
  color: var(--apple-text);
  box-shadow: 0 0 16px rgba(138,43,226,0.3);
}

.cpanel-ico { font-size: 26px; line-height: 1; }
.cpanel-name { font-size: 13px; font-weight: 700; }
.cpanel-desc { font-size: 10.5px; color: var(--apple-text-sub); }

/* Preview field rows */
.comp-preview-fields { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.comp-pf-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(255,255,255,0.04); border-radius: 8px; font-size: 12.5px; }
.comp-pf-k { color: var(--apple-text-sub); min-width: 70px; font-weight: 600; }
.comp-pf-v { color: var(--apple-text); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }

/* Test Mesajlarý Buton Izgarasý */
.test-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.test-msg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--apple-text);
}

.test-msg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.test-ico { font-size: 28px; line-height: 1; }
.test-label { font-size: 14px; font-weight: 700; }
.test-sub { font-size: 11px; color: var(--apple-text-sub); text-align: center; }

.test-welcome { border-color: rgba(0,168,255,0.35); background: rgba(0,168,255,0.06); }
.test-welcome:hover { border-color: rgba(0,168,255,0.7); background: rgba(0,168,255,0.14); box-shadow: 0 6px 20px rgba(0,168,255,0.18); }

.test-ban { border-color: rgba(255,59,48,0.35); background: rgba(255,59,48,0.05); }
.test-ban:hover { border-color: rgba(255,59,48,0.7); background: rgba(255,59,48,0.12); box-shadow: 0 6px 20px rgba(255,59,48,0.18); }

.test-kick { border-color: rgba(255,149,0,0.35); background: rgba(255,149,0,0.05); }
.test-kick:hover { border-color: rgba(255,149,0,0.7); background: rgba(255,149,0,0.12); box-shadow: 0 6px 20px rgba(255,149,0,0.18); }

.test-mute { border-color: rgba(48,209,88,0.35); background: rgba(48,209,88,0.05); }
.test-mute:hover { border-color: rgba(48,209,88,0.7); background: rgba(48,209,88,0.12); box-shadow: 0 6px 20px rgba(48,209,88,0.18); }

.test-ticket { border-color: rgba(138,43,226,0.35); background: rgba(138,43,226,0.05); }
.test-ticket:hover { border-color: rgba(138,43,226,0.7); background: rgba(138,43,226,0.12); box-shadow: 0 6px 20px rgba(138,43,226,0.18); }

.test-partner { border-color: rgba(250,204,21,0.35); background: rgba(250,204,21,0.05); }
.test-partner:hover { border-color: rgba(250,204,21,0.7); background: rgba(250,204,21,0.12); box-shadow: 0 6px 20px rgba(250,204,21,0.18); }

.tag-badge.tag-blue { background: rgba(0,168,255,0.15); color: #38bdf8; border-color: rgba(0,168,255,0.3); }
.tag-badge.tag-green { background: rgba(48,209,88,0.15); color: #30d158; border-color: rgba(48,209,88,0.3); }
