/* =====================================================
   SAATDURUM — STUDY GROUPS & ROOMS STYLES v3 (THEME-SAFE)
   High-Contrast, Responsive Virtual Desks, Realtime Chat,
   Leaderboard, Profile Cards & Group Settings
===================================================== */

:root {
  --grp-bg: var(--bg-deep, #09090c);
  --grp-card: var(--bg-card, #121217);
  --grp-card-inner: var(--bg-card-hv, #181822);
  --grp-border: var(--border, rgba(255, 255, 255, 0.08));
  --grp-border-hv: var(--border-hv, rgba(255, 255, 255, 0.18));
  --grp-accent: var(--accent, #f97316);
  --grp-accent-glow: var(--accent-glow, rgba(249, 115, 22, 0.3));
  --grp-text-p: var(--text-p, #ffffff);
  --grp-text-s: var(--text-s, #94a3b8);
  --grp-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;
}

/* Light & Litewhite Theme Overrides & High Contrast */
body.theme-light,
body.light-theme,
[data-theme="light"],
body.theme-litewhite,
body.litewhite-theme,
[data-theme="litewhite"] {
  --grp-bg: #f8fafc;
  --grp-card: #ffffff;
  --grp-card-inner: #f1f5f9;
  --grp-border: rgba(15, 23, 42, 0.12);
  --grp-border-hv: rgba(15, 23, 42, 0.22);
  --grp-text-p: #0f172a;
  --grp-text-s: #475569;
  --grp-accent: var(--accent, #2563eb);
  --grp-accent-glow: rgba(37, 99, 235, 0.25);
}

/* Pink Theme Overrides & High Contrast */
body.theme-pink,
body.pink-theme,
[data-theme="pink"] {
  --grp-bg: #fff1f2;
  --grp-card: #ffffff;
  --grp-card-inner: #fff5f7;
  --grp-border: rgba(244, 63, 94, 0.2);
  --grp-border-hv: rgba(244, 63, 94, 0.38);
  --grp-text-p: #4c2f35;
  --grp-text-s: #8a636c;
  --grp-accent: var(--accent, #f43f5e);
  --grp-accent-glow: rgba(244, 63, 94, 0.3);
}

/* Aero Theme Overrides */
body.theme-aero,
body.aero-theme,
[data-theme="aero"] {
  --grp-bg: #020914;
  --grp-card: rgba(4, 20, 48, 0.82);
  --grp-card-inner: rgba(0, 168, 255, 0.12);
  --grp-border: rgba(0, 168, 255, 0.22);
  --grp-border-hv: rgba(0, 168, 255, 0.45);
  --grp-text-p: #ffffff;
  --grp-text-s: #93c5fd;
  --grp-accent: #00a8ff;
  --grp-accent-glow: rgba(0, 168, 255, 0.35);
}

/* Purple Theme Overrides */
body.theme-purple,
body.purple-theme,
[data-theme="purple"] {
  --grp-bg: #07030d;
  --grp-card: rgba(139, 92, 246, 0.06);
  --grp-card-inner: rgba(139, 92, 246, 0.12);
  --grp-border: rgba(139, 92, 246, 0.18);
  --grp-border-hv: rgba(139, 92, 246, 0.32);
  --grp-text-p: #ffffff;
  --grp-text-s: rgba(255, 255, 255, 0.65);
  --grp-accent: var(--accent, #8b5cf6);
  --grp-accent-glow: rgba(139, 92, 246, 0.35);
}

/* Mono Theme Overrides */
body.theme-mono,
body.mono-theme,
[data-theme="mono"] {
  --grp-bg: #000000;
  --grp-card: rgba(255, 255, 255, 0.03);
  --grp-card-inner: rgba(255, 255, 255, 0.08);
  --grp-border: rgba(255, 255, 255, 0.15);
  --grp-border-hv: rgba(255, 255, 255, 0.3);
  --grp-text-p: #ffffff;
  --grp-text-s: rgba(255, 255, 255, 0.7);
  --grp-accent: var(--accent, #ffffff);
  --grp-accent-glow: rgba(255, 255, 255, 0.25);
}

.grp-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ═════════════════════════════════════════
   1. HEADER & ACTION BUTTONS
═════════════════════════════════════════ */
.grp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.grp-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0;
  letter-spacing: -0.02em;
}

.grp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grp-btn-primary {
  background: var(--grp-accent);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text, #ffffff);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grp-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px var(--grp-accent-glow);
}

.grp-btn-secondary {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grp-text-p);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grp-btn-secondary:hover {
  background: var(--grp-card-inner);
  border-color: var(--grp-border-hv);
}

.grp-btn-back {
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grp-text-p);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.grp-btn-back:hover {
  background: var(--grp-card);
  border-color: var(--grp-border-hv);
}

.grp-btn-copy-code {
  background: var(--accent-dim, rgba(249, 115, 22, 0.1));
  border: 1px solid var(--accent-dim, rgba(249, 115, 22, 0.25));
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grp-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.grp-btn-copy-code:hover {
  background: var(--accent-dim, rgba(249, 115, 22, 0.2));
  transform: translateY(-1px);
}

.grp-btn-leave {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.grp-btn-leave:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}

.grp-btn-destructive {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
  font-weight: 700 !important;
  transition: all 0.15s ease;
}

.grp-btn-destructive:hover:not(:disabled) {
  background: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.grp-btn-destructive:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .grp-btn-leave .grp-leave-label {
    display: none;
  }
  .grp-btn-leave {
    padding: 6px 8px;
  }
}

/* ═════════════════════════════════════════
   2. GROUPS LIST GRID & CARDS
═════════════════════════════════════════ */
.grp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
}

.grp-card {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.grp-card:hover {
  border-color: var(--grp-border-hv);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.grp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.grp-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0;
  line-height: 1.3;
}

.grp-card-code-badge {
  font-family: var(--grp-font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-dim, rgba(249, 115, 22, 0.12));
  border: 1px solid var(--accent-dim, rgba(249, 115, 22, 0.28));
  color: var(--grp-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.grp-card-desc {
  font-size: 12.5px;
  color: var(--grp-text-s);
  line-height: 1.45;
  margin: 0;
}

.grp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--grp-border);
  padding-top: 10px;
  font-size: 12px;
  color: var(--grp-text-s);
}

.grp-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  color: var(--grp-text-s);
}

.grp-owner-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
  display: inline-flex;
  align-items: center;
}

.grp-me-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-dim, rgba(249, 115, 22, 0.15));
  border: 1px solid var(--accent-dim, rgba(249, 115, 22, 0.35));
  color: var(--grp-accent);
}

/* ═════════════════════════════════════════
   3. ACTIVE ROOM HEADER & TABS
═════════════════════════════════════════ */
.grp-room-header {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grp-room-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.grp-room-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0;
}

.grp-room-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grp-text-s);
  margin-top: 3px;
  flex-wrap: wrap;
}

.grp-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

.grp-meta-dot.dot-online {
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
}

.grp-meta-dot.dot-working {
  background: var(--accent, #f97316);
  box-shadow: 0 0 5px rgba(249, 115, 22, 0.4);
}

.grp-meta-sep {
  opacity: 0.35;
  font-size: 10px;
}

.grp-code-highlight {
  color: var(--grp-accent);
  font-family: var(--grp-font-mono);
}

.grp-room-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  background: var(--bg-glass, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--grp-border, var(--border, rgba(255, 255, 255, 0.09)));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  overflow-x: auto;
  scrollbar-width: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grp-room-tabs::-webkit-scrollbar {
  display: none;
}

.grp-room-tab-btn {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 9px 16px;
  font-family: var(--sans, inherit);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.15px;
  color: var(--grp-text-s, var(--text-s, rgba(255, 255, 255, 0.65)));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.grp-room-tab-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), stroke 0.2s ease;
}

.grp-room-tab-btn:hover:not(.active) {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.08));
  color: var(--grp-text-p, var(--text-p, #ffffff));
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.grp-room-tab-btn:hover:not(.active) svg {
  transform: scale(1.08);
}

.grp-room-tab-btn:active {
  transform: scale(0.96) translateY(0);
}

.grp-room-tab-btn.active {
  background: var(--grp-accent, var(--accent, #0bd6a8));
  color: var(--accent-text, #ffffff);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px var(--grp-accent-glow, var(--accent-glow, rgba(11, 214, 168, 0.38))), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.grp-room-tab-btn.active svg {
  color: var(--accent-text, #ffffff);
  stroke: currentColor;
  transform: scale(1.05);
}

/* ═════════════════════════════════════════
   4. VIRTUAL DESKS (MASALAR) GRID & CARDS
═════════════════════════════════════════ */
.grp-desks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
}

.grp-desk-card {
  position: relative;
  background: var(--grp-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.14), 0 4px 18px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.grp-desk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.grp-desk-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  z-index: 2;
}

.grp-desk-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.grp-desk-card.is-me {
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1.5px var(--tier-glow, var(--grp-accent)), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Ambient Mesh Background Layer */
.grp-desk-mesh-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.grp-desk-card:hover .grp-desk-mesh-bg {
  opacity: 1;
  filter: brightness(1.08);
}

/* Big soft blurred "aurora" orb rising from the bottom edge — reference-style
   ambient glow. Driven purely by the --tier-glow custom property that each
   desk-tier-* class already sets, so it needs no per-tier duplication. */
.grp-desk-glow-orb {
  position: absolute;
  left: 50%;
  bottom: -46%;
  transform: translateX(-50%);
  width: 148%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tier-glow, #64748b) 0%, transparent 68%);
  opacity: 0.34;
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.grp-desk-card.is-studying .grp-desk-glow-orb {
  opacity: 0.58;
  filter: blur(22px);
}

.grp-desk-card.is-idle .grp-desk-glow-orb {
  opacity: 0.24;
}

.grp-desk-card.is-offline .grp-desk-glow-orb,
.grp-desk-card.desk-tier-none .grp-desk-glow-orb {
  opacity: 0.07;
}

.grp-desk-card:hover .grp-desk-glow-orb {
  opacity: 0.62;
}

/* Large, faint tier-themed illustration watermark tucked in the corner —
   reuses the same SVG badge icon already generated for the tier (just
   scaled way up), giving each card a subtle, on-brand background motif. */
.grp-desk-tier-illustration {
  position: absolute;
  right: -18px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  opacity: 0.16;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.15) blur(0.3px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.grp-desk-tier-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.grp-desk-card:hover .grp-desk-tier-illustration {
  opacity: 0.24;
  transform: rotate(-4deg) scale(1.04);
}

.grp-desk-card.is-offline .grp-desk-tier-illustration,
.grp-desk-card.desk-tier-none .grp-desk-tier-illustration {
  opacity: 0.05;
}

.grp-desk-card.is-me .grp-desk-tier-illustration {
  opacity: 0.2;
}

.grp-desk-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grp-desk-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grp-card-inner, rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.grp-desk-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grp-desk-name-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.grp-desk-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.grp-desk-status {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════
   15 TOSS-STYLE GLOWING MESH DESK CARD TIERS (0 - 14+ Hours)
   ═══════════════════════════════════════════════════════ */

/* Tier None: 0 Hours (Hiç çalışmamış - Renksiz / Sade Nötr Kutu) */
.grp-desk-card.desk-tier-none {
  --tier-glow: rgba(148, 163, 184, 0.4);
  --tier-ambient: rgba(148, 163, 184, 0.08);
  border-color: rgba(255, 255, 255, 0.07);
  background: var(--grp-card, #0f172a);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.grp-desk-card.desk-tier-none .grp-desk-mesh-bg {
  opacity: 0.12;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

/* Tier 0h: 0-1h (Filiz & Nane Yeşili / Soft Mint Emerald) */
.grp-desk-card.desk-tier-0h {
  --tier-glow: #10b981;
  --tier-ambient: rgba(16, 185, 129, 0.3);
}
.grp-desk-card.desk-tier-0h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.38) 0%, rgba(5, 150, 105, 0.18) 45%, transparent 70%),
              radial-gradient(circle at 15% 85%, rgba(52, 211, 153, 0.2) 0%, transparent 60%),
              linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.95));
}

/* Tier 1h: 1-2h (Zihinsel Isınma / Turquoise & Cyan Spark) */
.grp-desk-card.desk-tier-1h {
  --tier-glow: #06b6d4;
  --tier-ambient: rgba(6, 182, 212, 0.32);
}
.grp-desk-card.desk-tier-1h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 75% 35%, rgba(6, 182, 212, 0.45) 0%, rgba(14, 165, 233, 0.25) 45%, transparent 70%),
              radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.25) 0%, transparent 55%),
              linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.95));
}

/* Tier 2h: 2-3h (Akış Hali / Ocean Flow & Cobalt) */
.grp-desk-card.desk-tier-2h {
  --tier-glow: #0284c7;
  --tier-ambient: rgba(2, 132, 199, 0.32);
}
.grp-desk-card.desk-tier-2h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 70% 30%, rgba(2, 132, 199, 0.45) 0%, rgba(59, 130, 246, 0.25) 45%, transparent 70%),
              radial-gradient(circle at 20% 75%, rgba(56, 189, 248, 0.2) 0%, transparent 55%),
              linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(15, 23, 42, 0.95));
}

/* Tier 3h: 3-4h (Derin Odak / Electric Indigo & Deep Work) */
.grp-desk-card.desk-tier-3h {
  --tier-glow: #3b82f6;
  --tier-ambient: rgba(59, 130, 246, 0.35);
}
.grp-desk-card.desk-tier-3h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 70% 35%, rgba(59, 130, 246, 0.45) 0%, rgba(99, 102, 241, 0.28) 45%, transparent 75%),
              radial-gradient(circle at 25% 75%, rgba(147, 197, 253, 0.2) 0%, transparent 55%),
              linear-gradient(135deg, rgba(59, 130, 246, 0.09), rgba(15, 23, 42, 0.95));
}

/* Tier 4h: 4-5h (Kararlılık Gücü / Royal Violet & Indigo) */
.grp-desk-card.desk-tier-4h {
  --tier-glow: #6366f1;
  --tier-ambient: rgba(99, 102, 241, 0.38);
}
.grp-desk-card.desk-tier-4h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 75% 35%, rgba(99, 102, 241, 0.48) 0%, rgba(139, 92, 246, 0.28) 45%, transparent 70%),
              radial-gradient(circle at 20% 80%, rgba(129, 140, 248, 0.22) 0%, transparent 55%),
              linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.95));
}

/* Tier 5h: 5-6h (Ametist Ustalık / Deep Amethyst & Lavender) */
.grp-desk-card.desk-tier-5h {
  --tier-glow: #8b5cf6;
  --tier-ambient: rgba(139, 92, 246, 0.4);
}
.grp-desk-card.desk-tier-5h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.48) 0%, rgba(168, 85, 247, 0.28) 45%, transparent 70%),
              radial-gradient(circle at 20% 80%, rgba(192, 132, 252, 0.25) 0%, transparent 55%),
              linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.95));
}

/* Tier 6h: 6-7h (Neon Siber Güç / Cyber Fuchsia & 3D Grid) */
.grp-desk-card.desk-tier-6h {
  --tier-glow: #a855f7;
  --tier-ambient: rgba(168, 85, 247, 0.42);
}
.grp-desk-card.desk-tier-6h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 65% 35%, rgba(168, 85, 247, 0.48) 0%, rgba(236, 72, 153, 0.3) 45%, transparent 75%),
              radial-gradient(circle at 25% 75%, rgba(216, 180, 254, 0.25) 0%, transparent 55%),
              linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(15, 23, 42, 0.95));
}

/* Tier 7h: 7-8h (Yakut Tutku / Ruby Rose & Hot Pink) */
.grp-desk-card.desk-tier-7h {
  --tier-glow: #ec4899;
  --tier-ambient: rgba(236, 72, 153, 0.42);
}
.grp-desk-card.desk-tier-7h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 70% 35%, rgba(236, 72, 153, 0.5) 0%, rgba(244, 63, 94, 0.3) 45%, transparent 70%),
              radial-gradient(circle at 20% 75%, rgba(251, 113, 133, 0.25) 0%, transparent 55%),
              linear-gradient(135deg, rgba(236, 72, 153, 0.11), rgba(15, 23, 42, 0.95));
}

/* Tier 8h: 8-9h (Ateşli Ritim / Crimson & Coral Flame) */
.grp-desk-card.desk-tier-8h {
  --tier-glow: #f43f5e;
  --tier-ambient: rgba(244, 63, 94, 0.45);
}
.grp-desk-card.desk-tier-8h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 75% 45%, rgba(244, 63, 94, 0.5) 0%, rgba(234, 88, 12, 0.3) 45%, transparent 75%),
              radial-gradient(circle at 20% 30%, rgba(251, 113, 133, 0.25) 0%, transparent 60%),
              linear-gradient(135deg, rgba(244, 63, 94, 0.11), rgba(15, 23, 42, 0.95));
}

/* Tier 9h: 9-10h (Magma Gücü / Molten Orange & Magma Core) */
.grp-desk-card.desk-tier-9h {
  --tier-glow: #ea580c;
  --tier-ambient: rgba(234, 88, 12, 0.45);
}
.grp-desk-card.desk-tier-9h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 75% 50%, rgba(234, 88, 12, 0.5) 0%, rgba(249, 115, 22, 0.3) 45%, transparent 75%),
              radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.25) 0%, transparent 60%),
              linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(15, 23, 42, 0.95));
}

/* Tier 10h: 10-11h (Güneş Patlaması / Solar Flare & Amber) */
.grp-desk-card.desk-tier-10h {
  --tier-glow: #f59e0b;
  --tier-ambient: rgba(245, 158, 11, 0.48);
}
.grp-desk-card.desk-tier-10h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.52) 0%, rgba(251, 191, 36, 0.3) 40%, transparent 75%),
              radial-gradient(circle at 80% 20%, rgba(254, 240, 138, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.95));
}

/* Tier 11h: 11-12h (Altın Taç / Imperial Gold Starburst) */
.grp-desk-card.desk-tier-11h {
  --tier-glow: #fbbf24;
  --tier-ambient: rgba(251, 191, 36, 0.5);
}
.grp-desk-card.desk-tier-11h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 50% 40%, rgba(251, 191, 36, 0.54) 0%, rgba(245, 158, 11, 0.32) 40%, transparent 75%),
              radial-gradient(circle at 85% 15%, rgba(254, 240, 138, 0.4) 0%, transparent 50%),
              linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(15, 23, 42, 0.95));
}

/* Tier 12h: 12-13h (Elmas Prizma / Dual Cyan-Rose Diamond) */
.grp-desk-card.desk-tier-12h {
  --tier-glow: #00f0ff;
  --tier-ambient: rgba(0, 240, 255, 0.5);
}
.grp-desk-card.desk-tier-12h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 70% 35%, rgba(0, 240, 255, 0.52) 0%, rgba(236, 72, 153, 0.3) 45%, transparent 75%),
              radial-gradient(circle at 25% 75%, rgba(165, 243, 252, 0.3) 0%, transparent 55%),
              linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(15, 23, 42, 0.95));
}

/* Tier 13h: 13-14h (Süpernova Girdabı / Cosmic Supernova Shockwave) */
.grp-desk-card.desk-tier-13h {
  --tier-glow: #8b5cf6;
  --tier-ambient: rgba(139, 92, 246, 0.54);
}
.grp-desk-card.desk-tier-13h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 60% 35%, rgba(139, 92, 246, 0.54) 0%, rgba(6, 182, 212, 0.36) 45%, transparent 75%),
              radial-gradient(circle at 25% 75%, rgba(192, 132, 252, 0.3) 0%, transparent 55%),
              linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0.95));
}

/* Tier 14h: 14+h (Efsanevi Sonsuzluk / Multi-Spectrum Celestial Aurora) */
.grp-desk-card.desk-tier-14h {
  --tier-glow: #f59e0b;
  --tier-ambient: rgba(245, 158, 11, 0.6);
}
.grp-desk-card.desk-tier-14h .grp-desk-mesh-bg {
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.54) 0%, rgba(236, 72, 153, 0.36) 35%, transparent 75%),
              radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.4) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(56, 189, 248, 0.35) 0%, transparent 60%),
              radial-gradient(circle at 75% 85%, rgba(16, 185, 129, 0.3) 0%, transparent 55%),
              linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.95));
}

/* Active Studying Ambient Border & Glow */
.grp-desk-card.is-studying {
  border-color: var(--tier-glow, #22c55e);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.25), 0 0 24px var(--tier-ambient, rgba(34, 197, 94, 0.25));
  animation: deskCardStudyPulse 3.5s infinite ease-in-out;
}

.grp-desk-card.is-studying .grp-desk-mesh-bg {
  opacity: 1;
}

.grp-desk-card.is-studying .grp-desk-subject-name {
  color: var(--tier-glow, var(--grp-accent));
}

.grp-desk-card.is-idle {
  border-color: rgba(234, 179, 8, 0.35);
}

.grp-desk-card.is-idle .grp-desk-mesh-bg {
  opacity: 0.65;
}

.grp-desk-card.is-offline {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.82;
}

.grp-desk-card.is-offline .grp-desk-mesh-bg {
  opacity: 0.45;
  filter: grayscale(0.2);
}

@keyframes deskCardStudyPulse {
  0%, 100% {
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.25), 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 16px var(--tier-ambient, rgba(34, 197, 94, 0.2));
  }
  50% {
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 28px var(--tier-ambient, rgba(34, 197, 94, 0.38));
  }
}

.grp-desk-status.is-studying {
  color: #22c55e;
}

.grp-desk-status.is-idle {
  color: #eab308;
}

.grp-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.grp-presence-dot.dot-green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: presencePulse 2s ease-in-out infinite;
}

.grp-presence-dot.dot-yellow {
  background: #eab308;
  box-shadow: 0 0 8px #eab308;
}

.grp-presence-dot.dot-gray {
  background: #64748b;
  box-shadow: none;
}

@keyframes presencePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.grp-desk-time-box {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.06);
}

.grp-desk-subject-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--grp-accent);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grp-desk-timer-val {
  font-family: var(--grp-font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--grp-text-p);
  letter-spacing: 0.5px;
}

.grp-desk-idle-text {
  font-size: 12px;
  color: var(--grp-text-s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═════════════════════════════════════════
   5. LEADERBOARD (SIRALAMA)
═════════════════════════════════════════ */
.grp-leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.grp-lb-period-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grp-lb-pill {
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  color: var(--grp-text-s);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.grp-lb-pill:hover {
  background: var(--grp-card);
  color: var(--grp-text-p);
}

.grp-lb-pill.active {
  background: var(--grp-accent);
  color: var(--accent-text, #ffffff);
  border-color: var(--grp-accent);
  box-shadow: 0 2px 10px var(--grp-accent-glow);
}

.grp-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.grp-leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--grp-text-s);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grp-rank-item {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.grp-rank-item:hover {
  border-color: var(--grp-border-hv);
  transform: translateX(2px);
}

.grp-rank-item.is-me {
  border-color: var(--grp-accent);
  background: linear-gradient(90deg, var(--accent-dim, rgba(249, 115, 22, 0.06)), var(--grp-card));
}

.grp-rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.grp-rank-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--grp-text-p);
  flex-shrink: 0;
}

.grp-rank-pos.gold { background: #eab308; color: #000; border-color: #ca8a04; }
.grp-rank-pos.silver { background: #94a3b8; color: #000; border-color: #64748b; }
.grp-rank-pos.bronze { background: #d97706; color: #fff; border-color: #b45309; }

.grp-rank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.grp-rank-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grp-text-p);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grp-rank-handle {
  font-size: 11px;
  color: var(--grp-text-s);
  font-family: var(--grp-font-mono);
}

.grp-rank-time {
  font-family: var(--grp-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--grp-text-s);
  flex-shrink: 0;
}

.grp-rank-time.has-time {
  color: var(--grp-accent);
  font-weight: 800;
}

/* ═════════════════════════════════════════
   6. REALTIME CHAT (SOHBET) — MOVED TO chat.css
   Full Instagram-style engine in assets/css/chat.css
═════════════════════════════════════════ */

/* ═════════════════════════════════════════
   7. GATE CARD & EMPTY STATES
═════════════════════════════════════════ */
.online-gate-card {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.online-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim, rgba(249, 115, 22, 0.1));
  color: var(--grp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.online-gate-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0;
}

.online-gate-desc {
  font-size: 13px;
  color: var(--grp-text-s);
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.online-gate-btn {
  background: var(--grp-accent);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-text, #ffffff);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
}

.online-gate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px var(--grp-accent-glow);
}

.online-empty-state {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.online-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  color: var(--grp-text-s);
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0;
}

.online-empty-desc {
  font-size: 13px;
  color: var(--grp-text-s);
  max-width: 300px;
  margin: 0;
  line-height: 1.5;
}

/* ═════════════════════════════════════════
   8. PUBLIC GROUP DISCOVERY ("GRUPLARI KEŞFET")
═════════════════════════════════════════ */
.grp-discovery-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--grp-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.grp-disc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.grp-disc-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grp-disc-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--grp-text-p);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.grp-disc-subtitle {
  font-size: 12px;
  color: var(--grp-text-s);
  margin: 0;
}

.grp-disc-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.grp-disc-filter-pill {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  color: var(--grp-text-s);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.grp-disc-filter-pill:hover {
  background: var(--grp-card-inner);
  border-color: var(--grp-border-hv);
  color: var(--grp-text-p);
}

.grp-disc-filter-pill.active {
  background: var(--grp-accent);
  border-color: var(--grp-accent);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--grp-accent-glow);
}

.grp-disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
}

.grp-disc-card {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.grp-disc-card:hover {
  border-color: var(--grp-border-hv);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.grp-disc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.grp-disc-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--grp-text-p);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.grp-disc-card-desc {
  font-size: 12px;
  color: var(--grp-text-s);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grp-disc-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.grp-locked-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.grp-disc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--grp-border);
  margin-top: 2px;
}

.grp-disc-join-btn {
  background: var(--grp-accent);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.grp-disc-join-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px var(--grp-accent-glow);
}

/* ═════════════════════════════════════════
   9. NOTIFICATION BELL, BADGE & POPUP
═════════════════════════════════════════ */
.notif-badge-pill {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #ef4444;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-deep, #09090c);
  animation: notifPulse 2s infinite ease-in-out;
  z-index: 10;
  line-height: 1;
}

.notif-badge-pill.inline-pill {
  position: static !important;
  animation: none !important;
  margin-left: 6px;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
}

.notif-unread-count-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent, #f97316);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}

.notif-header-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═════════════════════════════════════════════════════════════
   AKTİF ÇALIŞMA CANLI BİLDİRİM KARTI (BİLDİRİMLER MODALI)
   ═════════════════════════════════════════════════════════════ */
.notif-active-work-container {
  width: 100%;
  box-sizing: border-box;
}

.notif-active-work-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%), var(--bg-card, #13131a);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 12px rgba(34, 197, 94, 0.08);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.notif-active-work-card:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(249, 115, 22, 0.1) 100%), var(--bg-card-hv, #181822);
  border-color: rgba(34, 197, 94, 0.55);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(34, 197, 94, 0.18);
}

.notif-active-work-card:active {
  transform: translateY(0) scale(0.99);
}

.notif-active-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-active-work-live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notif-live-dot {
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: notifLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes notifLivePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #22c55e;
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
    box-shadow: 0 0 3px #22c55e;
  }
}

.notif-live-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-p, #ffffff);
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.notif-active-work-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.notif-active-work-subject {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  min-width: 0;
}

.notif-active-work-subj-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-p, #ffffff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-active-work-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  flex-wrap: wrap;
}

.notif-active-work-clock {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notif-clock-icon {
  font-size: 16px;
  line-height: 1;
}

.notif-active-work-time {
  font-family: var(--grp-font-mono, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent, #f97316);
  line-height: 1;
}

.notif-active-work-countdown {
  font-size: 12px;
  color: var(--text-s, #94a3b8);
  background: var(--bg-mid, #1a1a24);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--grp-font-mono, monospace);
  font-variant-numeric: tabular-nums;
}

.notif-active-work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-active-work-status-text {
  font-size: 12px;
  color: var(--text-s, #94a3b8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.notif-active-work-action-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent, #f97316);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.notif-active-work-card:hover .notif-active-work-action-hint {
  transform: translateX(2px);
}

.notif-section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 4px 0;
}

.notif-section-divider::before,
.notif-section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.notif-section-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-m, #64748b);
}

.notif-item {
  background: var(--bg-card, #13131a);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.notif-item:hover {
  background: var(--bg-card-hv, #181822);
  border-color: var(--border-hv, rgba(255, 255, 255, 0.16));
  transform: translateY(-1px);
}

.notif-item.is-unread {
  border-left: 3.5px solid var(--accent, #f97316);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, var(--bg-card, #13131a) 100%);
}

.notif-item-clickable {
  cursor: pointer;
}

.notif-count-pill {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent, #f97316);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-mid, #1a1a24);
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.notif-icon-box svg,
.notif-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.notif-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-p, #ffffff);
  margin: 0;
  line-height: 1.3;
}

.notif-text {
  font-size: 12.5px;
  color: var(--text-s, #94a3b8);
  margin: 0;
  line-height: 1.4;
}

.notif-time {
  font-size: 11px;
  color: var(--text-m, #64748b);
  font-family: var(--grp-font-mono, monospace);
  white-space: nowrap;
}

.notif-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.notif-action-btn {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent, #f97316);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.notif-action-btn:hover {
  background: var(--accent, #f97316);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.notif-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-m, #64748b);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.notif-delete-btn:hover {
  opacity: 1;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.notif-empty-card {
  text-align: center;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.notif-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--accent, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.notif-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-p, #ffffff);
}

.notif-empty-desc {
  font-size: 12.5px;
  color: var(--text-s, #94a3b8);
  max-width: 320px;
  margin: 0;
  line-height: 1.45;
}

.notif-test-btn {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.2));
  color: var(--text-s, #94a3b8);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.notif-test-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--accent, #f97316);
  color: var(--accent, #f97316);
}

.online-notif-tab-btn {
  position: relative;
}

/* ═════════════════════════════════════════
   10. POKE BUTTON & POKE TOAST
═════════════════════════════════════════ */
.grp-poke-btn {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.grp-poke-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 3px 10px var(--grp-accent-glow);
}

.grp-poke-btn:active {
  transform: scale(0.97);
}

.grp-poke-btn:disabled,
.grp-poke-btn.is-cooling {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: var(--text-s, #94a3b8) !important;
  pointer-events: auto;
}

.grp-poke-btn.is-studying-disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
  pointer-events: auto;
}

.grp-poke-btn-lg {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 10px;
  width: 100%;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.grp-desk-quick-poke-btn {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent, #f97316);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: auto;
}

.grp-desk-quick-poke-btn:hover {
  background: var(--accent, #f97316);
  color: #ffffff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.grp-desk-quick-poke-btn:active {
  transform: translateY(0) scale(0.96);
}

.grp-desk-quick-poke-btn:disabled,
.grp-desk-quick-poke-btn.is-cooling {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: var(--text-s, #94a3b8) !important;
}

/* Web Push Permission Banner */
.notif-perm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 14px 0 14px;
}

.notif-perm-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-perm-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.notif-perm-banner-text strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-p);
}

.notif-perm-banner-text span {
  font-size: 11px;
  color: var(--text-s);
  line-height: 1.3;
}

.notif-perm-allow-btn {
  font-size: 11.5px !important;
  padding: 5px 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-perm-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notif-perm-pill.perm-granted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.notif-perm-pill.perm-denied {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.notif-perm-pill.perm-default {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  border: 1px solid rgba(249, 115, 22, 0.3);
  cursor: pointer;
}

/* ═════════════════════════════════════════
   11. WEEKLY ATTENDANCE LOG ("YOKLAMA DEFTERİ")
═════════════════════════════════════════ */
.grp-att-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.grp-att-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 14px;
  padding: 12px 16px;
}

.grp-att-week-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grp-att-week-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--grp-text-p);
}

.grp-att-target-badge {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.grp-att-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grp-att-nav-btn {
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  color: var(--grp-text-p);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.grp-att-nav-btn:hover {
  background: var(--grp-card);
  border-color: var(--grp-border-hv);
}

.grp-att-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.grp-att-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: center;
  min-width: 680px;
}

.grp-att-table th {
  background: var(--grp-card-inner);
  color: var(--grp-text-s);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--grp-border);
  border-right: 1px solid var(--grp-border);
}

.grp-att-table th:last-child {
  border-right: none;
}

.grp-att-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--grp-border);
  border-right: 1px solid var(--grp-border);
  color: var(--grp-text-p);
  font-family: var(--grp-font-mono);
  vertical-align: middle;
}

.grp-att-table td:last-child {
  border-right: none;
}

.grp-att-table tr:last-child td {
  border-bottom: none;
}

.grp-att-member-col {
  text-align: left !important;
  min-width: 160px;
  font-family: inherit !important;
}

.grp-att-member-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grp-att-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Vibrant Glowing Green Cell for Met Target */
.att-cell-success {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #22c55e !important;
  font-weight: 800 !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(34, 197, 94, 0.2);
}

.att-cell-partial {
  color: #f59e0b !important;
  font-weight: 700 !important;
  opacity: 0.9;
}

.att-cell-empty {
  color: var(--text-m);
  opacity: 0.4;
}

.att-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.att-status-pill.success {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.att-status-pill.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Mobile Attendance Card Grid */
.grp-att-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.grp-att-mobile-card {
  background: var(--grp-card);
  border: 1px solid var(--grp-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.grp-att-mobile-card:hover {
  border-color: var(--grp-border-hv);
}

.grp-att-mobile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grp-att-mobile-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.grp-att-mobile-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.grp-att-mobile-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
}

.grp-att-mobile-day-cell {
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  border-radius: 8px;
  padding: 6px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.grp-att-mobile-day-cell .day-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-s);
}

.grp-att-mobile-day-cell .day-val {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--grp-font-mono);
  color: var(--text-m);
  white-space: nowrap;
}

.grp-att-mobile-day-cell.success {
  background: rgba(34, 197, 94, 0.16) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #22c55e !important;
  box-shadow: inset 0 0 6px rgba(34, 197, 94, 0.2);
}

.grp-att-mobile-day-cell.success .day-val {
  color: #22c55e !important;
}

.grp-att-mobile-day-cell.partial {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.grp-att-mobile-day-cell.partial .day-val {
  color: #f59e0b !important;
}

@media (max-width: 768px) {
  .grp-att-table-wrap {
    display: none !important;
  }
  .grp-att-mobile-cards {
    display: flex !important;
  }
}

/* ═════════════════════════════════════════
   12. DYNAMIC LIVE STUDY RINGS & PROGRESSION TIERS
   (Only shown when actively working, evolutive by duration)
═════════════════════════════════════════ */

/* Idle / Stopped Avatar Container (Clean, No Ring) */
.grp-avatar-box.not-working {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.grp-avatar-box.not-working .grp-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grp-card-inner);
  border: 1px solid var(--grp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Active Working Ring Box */
.grp-avatar-ring-box.is-working {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  will-change: transform, filter;
  transform: translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.grp-avatar-ring-box.is-working:hover {
  transform: scale(1.05) translateZ(0);
}

/* Fixed Progress SVG Ring (Starts at 12 o'clock / -90deg, strictly stationary) */
.grp-avatar-svg-ring {
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  pointer-events: none;
  overflow: visible;
  display: block;
}

.grp-avatar-svg-ring circle {
  fill: none;
  stroke-linecap: round;
}

.grp-avatar-svg-ring circle.ring-circle-full,
.grp-avatar-svg-ring circle.ring-progress {
  transition: stroke 0.4s ease, filter 0.3s ease;
}

.grp-avatar-ring-box.is-working .grp-avatar-inner {
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s ease;
}

/* Glassmorphic Colored SVG Tier Badge */
.grp-tier-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
  padding: 2px;
  will-change: transform;
  transition: transform 0.2s ease;
}

.grp-tier-badge .grp-svg-tier-icon {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.grp-avatar-ring-box[style*="width:72px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width: 72px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width:80px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width: 80px"] .grp-tier-badge {
  width: 26px;
  height: 26px;
  bottom: -4px;
  right: -4px;
  padding: 3.5px;
}

.grp-avatar-ring-box[style*="width:32px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width: 32px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width:34px"] .grp-tier-badge,
.grp-avatar-ring-box[style*="width: 34px"] .grp-tier-badge {
  width: 15px;
  height: 15px;
  bottom: -2px;
  right: -2px;
  padding: 1.5px;
}

/* ═══════════════════════════════════════════════════════
   15-TIER STUDY RING SYSTEM (0 - 14+ Hours & GPU Effects)
   ═══════════════════════════════════════════════════════ */

/* SEVİYE 1: Filiz Başlangıç (0 - 1 Saat) — 🌱 Filiz & Nane */
.ring-tier-0h .ring-circle-full,
.ring-tier-0h .ring-progress,
.ring-tier-fresh .ring-circle-full,
.ring-tier-fresh .ring-progress {
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.75));
}
.ring-tier-0h .grp-tier-badge,
.ring-tier-fresh .grp-tier-badge {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(16, 185, 129, 0.4);
  animation: tierBadgeBreathe 2.4s infinite ease-in-out;
}

/* SEVİYE 2: Zihinsel Isınma (1 - 2 Saat) — ⚡ Camgöbeği & Turkuaz */
.ring-tier-1h .ring-circle-full,
.ring-tier-1h .ring-progress,
.ring-tier-focus .ring-circle-full,
.ring-tier-focus .ring-progress {
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.85));
}
.ring-tier-1h .grp-tier-badge,
.ring-tier-focus .grp-tier-badge {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(6, 182, 212, 0.45);
  animation: tierBadgePulse 1.8s infinite ease-in-out;
}

/* SEVİYE 3: Akış Hali (2 - 3 Saat) — 🌊 Okyanus & Kobalt */
.ring-tier-2h .ring-circle-full,
.ring-tier-2h .ring-progress {
  filter: drop-shadow(0 0 7px rgba(2, 132, 199, 0.85));
}
.ring-tier-2h::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: auraPulse 2.2s infinite alternate ease-in-out;
}
.ring-tier-2h .grp-tier-badge {
  border-color: rgba(2, 132, 199, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(2, 132, 199, 0.45);
  animation: tierBadgePulse 1.7s infinite ease-in-out;
}

/* SEVİYE 4: Derin Odak (3 - 4 Saat) — 🎯 Derin Çivit */
.ring-tier-3h .ring-circle-full,
.ring-tier-3h .ring-progress {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.9));
}
.ring-tier-3h::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  z-index: -1;
  animation: auraPulse 2s infinite alternate ease-in-out;
}
.ring-tier-3h .grp-tier-badge {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(59, 130, 246, 0.5);
  animation: tierBadgeBounce 1.5s infinite ease-in-out;
}

/* SEVİYE 5: Kararlılık Gücü (4 - 5 Saat) — 🛡️ Kraliyet Moru */
.ring-tier-4h .ring-circle-full,
.ring-tier-4h .ring-progress {
  filter: drop-shadow(0 0 9px rgba(99, 102, 241, 0.95));
}
.ring-tier-4h::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 75%);
  z-index: -1;
  animation: diamondPulse 1.9s infinite alternate ease-in-out;
}
.ring-tier-4h .grp-tier-badge {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(99, 102, 241, 0.6);
  animation: tierBadgeBounce 1.4s infinite ease-in-out;
}

/* SEVİYE 6: Ametist Ustalık (5 - 6 Saat) — 🔮 Ametist */
.ring-tier-5h .ring-circle-full,
.ring-tier-5h .ring-progress {
  filter: drop-shadow(0 0 9px rgba(139, 92, 246, 0.95));
}
.ring-tier-5h::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(168, 85, 247, 0.18) 50%, transparent 75%);
  z-index: -1;
  animation: diamondPulse 1.8s infinite alternate ease-in-out;
}
.ring-tier-5h .grp-tier-badge {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(139, 92, 246, 0.6);
  animation: tierDiamondShimmer 1.8s infinite ease-in-out;
}

/* SEVİYE 7: Neon Siber Güç (6 - 7 Saat) — ⚔️ Siber Fuşya */
.ring-tier-6h .ring-circle-full,
.ring-tier-6h .ring-progress {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 1));
}
.ring-tier-6h::before {
  content: '';
  position: absolute;
  inset: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 75%);
  z-index: -1;
  animation: diamondPulse 1.7s infinite alternate ease-in-out;
}
.ring-tier-6h .grp-tier-badge {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(168, 85, 247, 0.7);
  animation: tierDiamondShimmer 1.7s infinite ease-in-out;
}

/* SEVİYE 8: Yakut Tutku (7 - 8 Saat) — 🔴 Yakut & Gül */
.ring-tier-7h .ring-circle-full,
.ring-tier-7h .ring-progress {
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 1));
}
.ring-tier-7h::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ec4899, #f43f5e, #a855f7, #ec4899);
  z-index: -1;
  filter: blur(4px);
  opacity: 0.75;
  animation: legendarySpin 5s linear infinite;
}
.ring-tier-7h .grp-tier-badge {
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(236, 72, 153, 0.7);
  animation: tierDiamondShimmer 1.6s infinite ease-in-out;
}

/* SEVİYE 9: Ateşli Ritim (8 - 9 Saat) — 🔥 Kızıl Ateş */
.ring-tier-8h .ring-circle-full,
.ring-tier-8h .ring-progress {
  filter: drop-shadow(0 0 11px rgba(244, 63, 94, 1));
}
.ring-tier-8h::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f43f5e, #ea580c, #fb7185, #f43f5e);
  z-index: -1;
  filter: blur(4.5px);
  opacity: 0.8;
  animation: legendarySpin 4s linear infinite;
}
.ring-tier-8h .grp-tier-badge {
  border-color: rgba(244, 63, 94, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(244, 63, 94, 0.75);
  animation: tierBadgeBounce 1.3s infinite ease-in-out;
}

/* SEVİYE 10: Magma Gücü (9 - 10 Saat) — 🌋 Magma */
.ring-tier-9h .ring-circle-full,
.ring-tier-9h .ring-progress {
  filter: drop-shadow(0 0 11px rgba(234, 88, 12, 1));
}
.ring-tier-9h::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.45) 0%, rgba(249, 115, 22, 0.25) 50%, transparent 75%);
  z-index: -1;
  animation: diamondPulse 1.5s infinite alternate ease-in-out;
}
.ring-tier-9h .grp-tier-badge {
  border-color: rgba(234, 88, 12, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 13px rgba(234, 88, 12, 0.75);
  animation: tierDiamondShimmer 1.5s infinite ease-in-out;
}

/* SEVİYE 11: Güneş Patlaması (10 - 11 Saat) — ☀️ Güneş & Kehribar */
.ring-tier-10h .ring-circle-full,
.ring-tier-10h .ring-progress {
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 1));
}
.ring-tier-10h::before {
  content: '';
  position: absolute;
  inset: -5.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f59e0b, #fbbf24, #ea580c, #f59e0b);
  z-index: -1;
  filter: blur(5px);
  opacity: 0.85;
  animation: legendarySpin 3.5s linear infinite;
}
.ring-tier-10h .grp-tier-badge {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 158, 11, 0.8);
  animation: tierCrownFloat 1.8s infinite ease-in-out;
}

/* SEVİYE 12: Altın Taç (11 - 12 Saat) — 👑 İmparatorluk Altını */
.ring-tier-11h .ring-circle-full,
.ring-tier-11h .ring-progress {
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 1));
}
.ring-tier-11h::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(245, 158, 11, 0.25) 50%, transparent 75%);
  z-index: -1;
  animation: godPulse 1.4s infinite alternate ease-in-out;
}
.ring-tier-11h .grp-tier-badge {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.85);
  animation: tierGalaxyTwinkle 1.4s infinite ease-in-out;
}

/* SEVİYE 13: Elmas Prizma (12 - 13 Saat) — 💎 Elmas Prizma */
.ring-tier-12h .ring-circle-full,
.ring-tier-12h .ring-progress {
  filter: drop-shadow(0 0 13px rgba(0, 240, 255, 1));
}
.ring-tier-12h::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00f0ff, #ec4899, #38bdf8, #00f0ff);
  z-index: -1;
  filter: blur(5.5px);
  opacity: 0.9;
  animation: godRotate 3.2s linear infinite, godPulse 1.3s infinite alternate ease-in-out;
}
.ring-tier-12h .grp-tier-badge {
  border-color: rgba(0, 240, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.85);
  animation: tierDiamondShimmer 1.4s infinite ease-in-out;
}

/* SEVİYE 14: Süpernova Girdabı (13 - 14 Saat) — 💥 Süpernova */
.ring-tier-13h .ring-circle-full,
.ring-tier-13h .ring-progress {
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 1));
}
.ring-tier-13h::before {
  content: '';
  position: absolute;
  inset: -6.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8b5cf6, #06b6d4, #c084fc, #8b5cf6);
  z-index: -1;
  filter: blur(6px);
  opacity: 0.92;
  animation: godRotate 2.8s linear infinite, godPulse 1.2s infinite alternate ease-in-out;
}
.ring-tier-13h .grp-tier-badge {
  border-color: rgba(139, 92, 246, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.9);
  animation: tierGalaxyTwinkle 1.3s infinite ease-in-out;
}

/* SEVİYE 15: Efsanevi Sonsuzluk (14+ Saat) — 🪐 Kozmik Sonsuzluk */
.ring-tier-14h .ring-circle-full,
.ring-tier-14h .ring-progress {
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 1));
}
.ring-tier-14h::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f59e0b, #ec4899, #8b5cf6, #38bdf8, #10b981, #f59e0b);
  z-index: -1;
  filter: blur(6.5px);
  opacity: 0.96;
  animation: godRotate 2.4s linear infinite, godPulse 1.1s infinite alternate ease-in-out;
}
.ring-tier-14h .grp-tier-badge {
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 158, 11, 0.95);
  animation: tierGalaxyTwinkle 1.2s infinite ease-in-out;
}

/* Paused / Idle Mode Performance */
.grp-avatar-ring-box.is-paused,
.grp-avatar-ring-box.is-paused .grp-avatar-svg-ring,
.grp-avatar-ring-box.is-paused::before,
.grp-avatar-ring-box.is-paused::after,
body.timer-paused .grp-avatar-ring-box .grp-avatar-svg-ring,
body.timer-paused .grp-avatar-ring-box::before,
body.timer-paused .grp-avatar-ring-box::after {
  animation-play-state: paused !important;
}

/* Keyframe Animations */
@keyframes ringProgressGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7)); }
  50% { filter: drop-shadow(0 0 14px rgba(0, 240, 255, 1)); }
}

@keyframes tierBadgeBreathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes tierBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

@keyframes tierBadgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.14); }
}

@keyframes diamondPulse {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes tierDiamondShimmer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18) rotate(6deg); }
}

@keyframes legendarySpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tierCrownFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-2.5px) rotate(3deg); }
}

@keyframes godRotate {
  0% { transform: rotate(0deg) scale(0.98); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(0.98); }
}

@keyframes godPulse {
  0% { opacity: 0.8; filter: blur(5px); }
  100% { opacity: 1; filter: blur(8px); }
}

@keyframes tierGalaxyTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.22) rotate(15deg); }
}

/* ═════════════════════════════════════════
   13. DESKS DYNAMIC LEADERBOARD BADGES
═════════════════════════════════════════ */
.grp-desk-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 6px;
  line-height: 1.2;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 4px;
}

.grp-desk-rank-pill.rank-1 {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.3));
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.grp-desk-rank-pill.rank-2 {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.grp-desk-rank-pill.rank-3 {
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #f59e0b;
}

.grp-desk-card.is-rank-1 {
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.08);
}

/* ═════════════════════════════════════════
   14. RESPONSIVE MEDIA QUERIES
═════════════════════════════════════════ */
@media (max-width: 768px) {
  .grp-room-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .grp-room-title {
    font-size: 15.5px;
  }
  .grp-room-tab-btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .grp-desks-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .grp-att-table {
    font-size: 11.5px;
  }
  .grp-att-table th, .grp-att-table td {
    padding: 8px 6px;
  }
}

@media (max-width: 520px) {
  .grp-desks-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .grp-desk-card {
    padding: 10px 8px;
    border-radius: 12px;
    gap: 8px;
    min-width: 0;
  }
  .grp-desk-top-row {
    gap: 6px;
    min-width: 0;
  }
  .grp-desk-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 15px;
  }
  .grp-desk-name-wrap {
    min-width: 0;
  }
  .grp-desk-name {
    font-size: 12px;
    font-weight: 700;
  }
  .grp-desk-status {
    font-size: 10.5px;
    gap: 4px;
  }
  .grp-presence-dot {
    width: 6px;
    height: 6px;
  }
  .grp-desk-time-box {
    padding: 6px 6px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  .grp-desk-subject-name {
    font-size: 10.5px;
    margin-bottom: 2px;
  }
  .grp-desk-timer-val {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow: visible;
  }
  .grp-desk-idle-text {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
  }
}

@media (max-width: 340px) {
  .grp-desks-grid {
    grid-template-columns: 1fr;
  }
  .grp-desk-timer-val {
    font-size: 15px;
  }
}

/* ═════════════════════════════════════════
   15. ÖĞRENCİ PROFİL KARTI — GLASSMORPHISM & INSTAGRAM STİLİ (2026)
   ═════════════════════════════════════════ */

.sd-student-card-backdrop {
  z-index: 100050;
}

.sd-student-card-dialog {
  max-width: 360px !important;
  width: 92% !important;
  background: rgba(16, 18, 27, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

body.light-theme .sd-student-card-dialog,
body.theme-light .sd-student-card-dialog,
[data-theme="light"] .sd-student-card-dialog,
body.litewhite-theme .sd-student-card-dialog,
body.theme-litewhite .sd-student-card-dialog,
[data-theme="litewhite"] .sd-student-card-dialog {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.pink-theme .sd-student-card-dialog,
body.theme-pink .sd-student-card-dialog,
[data-theme="pink"] .sd-student-card-dialog {
  background: rgba(255, 245, 247, 0.94) !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
  box-shadow: 0 24px 70px rgba(244, 63, 94, 0.22) !important;
}

body.aero-theme .sd-student-card-dialog,
body.theme-aero .sd-student-card-dialog,
[data-theme="aero"] .sd-student-card-dialog {
  background: rgba(4, 20, 48, 0.9) !important;
  border-color: rgba(0, 168, 255, 0.4) !important;
  box-shadow: 0 24px 70px rgba(0, 10, 30, 0.8) !important;
}

.sd-student-card-body {
  padding: 0 !important;
}

/* ── KART ANA GÖVDE ── */
.sd-ig-card {
  position: relative;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-sizing: border-box;
}

/* Ambient Üst Işık Yansıması */
.sd-ig-card-ambient {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse at top, var(--accent-glow, rgba(59, 130, 246, 0.32)), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 1. ÜST BAŞLIK & KAPATMA ── */
.sd-ig-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sd-ig-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sd-ig-card-badge-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim, rgba(148, 163, 184, 0.12));
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sd-ig-card-username-top {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-s);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-ig-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-s);
  transition: all 0.2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
}

.sd-ig-close-btn:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.12));
  color: var(--text-p);
  transform: scale(1.08);
  border-color: var(--border-focus, rgba(255, 255, 255, 0.3));
}

/* ── 2. INSTAGRAM PROFİL ÜST SATIRI (AVATAR + 3'LÜ İSTATİSTİK) ── */
.sd-ig-main-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar & Instagram Story Ring */
.sd-ig-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-ig-avatar-wrap.is-studying {
  padding: 3px;
  background: conic-gradient(from 180deg, #22c55e, #10b981, #06b6d4, #3b82f6, #22c55e);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
  animation: sdIgRingSpin 6s linear infinite;
}

.sd-ig-avatar-wrap.is-online:not(.is-studying) {
  padding: 2.5px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

.sd-ig-avatar-wrap.is-offline {
  padding: 2px;
  background: var(--border);
}

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

.sd-ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-mid);
  border: 2px solid var(--bg-deep, #08080a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-ig-avatar-wrap.is-studying .sd-ig-avatar-inner {
  animation: sdIgRingSpinRev 6s linear infinite;
}

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

.sd-ig-avatar-inner img,
.sd-ig-avatar-inner svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3 Sütunlu İstatistik Şeridi */
.sd-ig-stats-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sd-ig-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 2px 4px;
  position: relative;
}

.sd-ig-stat-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border);
}

.sd-ig-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--text-p);
  line-height: 1.15;
  white-space: nowrap;
}

.sd-ig-stat-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-s);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── 3. KULLANICI KİMLİK, ROZET & ETİKETLER ── */
.sd-ig-identity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sd-ig-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sd-ig-display-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-p);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* Rol Rozetleri */
.sd-ig-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 6px;
  line-height: 1.3;
}

.sd-ig-role-badge.owner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.25));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sd-ig-role-badge.mod {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.sd-ig-role-badge.me {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Etiketler (Hedef Sınav + Canlı Durum) */
.sd-ig-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sd-ig-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  line-height: 1.2;
}

.sd-ig-tag.is-exam {
  background: var(--accent-dim, rgba(148, 163, 184, 0.12));
  color: var(--accent);
  border: 1px solid var(--border);
}

.sd-ig-tag.is-status {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-s);
}

.sd-ig-tag.is-status.studying {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
  font-weight: 800;
}

.sd-ig-tag.is-status.break {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.35);
}

.sd-ig-tag.is-status.online {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.25);
}

.sd-ig-tag.is-status.offline {
  color: var(--text-m);
}

.sd-ig-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.sd-ig-tag.is-status.studying .sd-ig-status-dot {
  box-shadow: 0 0 6px #22c55e;
  animation: sdIgStatusPulse 1.8s infinite;
}

@keyframes sdIgStatusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Biyografi */
.sd-ig-bio {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-p);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  word-break: break-word;
  font-style: italic;
  margin-top: 2px;
}

/* ── 4. INSTAGRAM TARZI AKSİYON BUTONLARI ── */
.sd-ig-actions-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.sd-ig-btn {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
  padding: 6px 10px;
  white-space: nowrap;
}

.sd-ig-btn:active {
  transform: scale(0.97);
}

.sd-ig-btn.primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 12px var(--accent-glow, rgba(59, 130, 246, 0.3));
}

.sd-ig-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sd-ig-btn.secondary {
  background: var(--bg-card);
  color: var(--text-p);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sd-ig-btn.secondary:hover {
  background: var(--bg-card-hv, rgba(255, 255, 255, 0.1));
  border-color: var(--border-focus, rgba(255, 255, 255, 0.25));
  transform: translateY(-1px);
}

.sd-ig-btn.icon-only {
  flex: 0 0 36px;
  padding: 0;
}

.sd-ig-btn.poke {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
}

.sd-ig-btn.poke:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.sd-ig-btn.poke:disabled,
.sd-ig-btn.poke.is-cooling {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-s) !important;
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.sd-ig-btn.poke.is-studying-disabled {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
  opacity: 0.85;
  cursor: not-allowed;
  transform: none !important;
}

