
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Changa:wght@600;700;800&display=swap');

#dominoBoard.dz {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  max-width: 96vw;
  max-height: 96vh;
  overflow: hidden;
  border-radius: 22px;
  z-index: 99998;
  direction: rtl;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  
  padding: 3px;
  background: linear-gradient(145deg, #f9e08a 0%, #c9971f 22%, #7a5a12 45%, #c9971f 70%, #ffe9a3 100%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(201, 151, 31, 0.35);
  animation: dzPop 0.32s cubic-bezier(0.18, 0.9, 0.3, 1.2);
}

@keyframes dzPop {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.dz-inner {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  max-height: calc(96vh - 6px);
  overflow-y: auto;
  
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 89, 138, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(20, 30, 55, 0.6), transparent 55%),
    linear-gradient(160deg, #16233f 0%, #0d1526 55%, #060a14 100%);
}

.dz-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 4px);
}

.dz-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.dz-particles i {
  position: absolute;
  bottom: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 163, 0.9), rgba(201, 151, 31, 0));
  animation: dzFloat linear infinite;
  opacity: 0;
}
@keyframes dzFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(-620px) scale(1.1); opacity: 0; }
}

.dz-inner > *:not(.dz-particles) { position: relative; z-index: 1; }

.dz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, #7a3f08 0%, #b45309 40%, #d97706 60%, #92400e 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 210, 130, 0.25);
}
.dz-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff5e6;
  font-family: 'Changa', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dz-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background: radial-gradient(circle at 35% 30%, #ff8a6b, #d63b2f 70%, #a52318);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -3px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}
.dz-close:hover { transform: scale(1.08); }
.dz-close:active {
  transform: scale(0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.dz-players {
  display: flex;
  gap: 12px;
  padding: 14px 10px 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.dz-player {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.dz-player.turn {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.06));
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: dzTurnPulse 1.6s ease-in-out infinite;
}
@keyframes dzTurnPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
  50% { box-shadow: 0 0 26px rgba(251, 191, 36, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.dz-ava {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #ffe9a3, #c9971f, #7a5a12, #c9971f, #ffe9a3);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.dz-ava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d1526;
  display: block;
}

.dz-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 11px;
  background: linear-gradient(145deg, #fbbf24, #d97706);
  color: #3a1d00;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d1526;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.dz-pname {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.dz-pname b {
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.dz-pname span {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dz-arena {
  position: relative;
  margin: 8px 12px;
  border-radius: 16px;
  padding: 14px 12px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34, 78, 58, 0.55), transparent 70%),
    linear-gradient(160deg, #123024 0%, #0b2019 60%, #07130f 100%);
  box-shadow:
    inset 0 3px 16px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(34, 120, 90, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.dz-arena::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}
.dz-empty {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto;
}

.dz-tile {
  display: inline-flex;
  box-sizing: border-box;
  background:
    linear-gradient(160deg, #ffffff 0%, #f4efe3 45%, #e7ddc7 100%);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  
  box-shadow:
    0 5px 9px rgba(0, 0, 0, 0.45),
    0 2px 3px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(140, 120, 85, 0.35),
    inset 0 0 0 1px rgba(180, 160, 120, 0.5);
}
.dz-tile::before {
  
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.dz-tile .dz-div {
  background: linear-gradient(90deg, #b8a583, #8a7a5a);
  flex-shrink: 0;
  border-radius: 2px;
}
.dz-pip {
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.dz-hand-tile.playable .dz-tile {
  box-shadow:
    0 6px 14px rgba(251, 191, 36, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 2px rgba(251, 191, 36, 0.9);
}
.dz-hand-tile.disabled { opacity: 0.5; filter: grayscale(0.4); }

.dz-drop { animation: dzDrop 0.3s cubic-bezier(0.22, 0.85, 0.3, 1.1); }
@keyframes dzDrop {
  0% { transform: translateY(-18px) scale(1.15); opacity: 0; filter: brightness(1.4); }
  60% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1); }
}

.dz-status {
  text-align: center;
  padding: 8px 12px 4px;
  color: #fff;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}
.dz-status .muted { color: #93a3bd; font-size: 12px; font-weight: 600; }
.dz-status .win { color: #fbbf24; font-weight: 800; font-size: 16px; }

.dz-hand {
  padding: 6px 12px 16px;
}
.dz-hand-label {
  color: #93a3bd;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.dz-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 84px;
  padding-top: 6px;
}
.dz-hand-tile {
  position: relative;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.2), filter 0.18s;
  transform-origin: bottom center;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.45));
}
.dz-hand-tile.playable { cursor: pointer; }
.dz-hand-tile.playable:hover {
  transform: translateY(-12px) scale(1.14) !important;
  z-index: 20 !important;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.55));
}

.dz-tile.dz-off {
  background: linear-gradient(160deg, #7c8698 0%, #5b6472 45%, #444c58 100%) !important;
  box-shadow:
    0 5px 9px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25) !important;
}
.dz-tile.dz-off::before { opacity: 0.4; }
.dz-tile.dz-off .dz-div { background: linear-gradient(90deg, #3a414c, #2a2f38) !important; }

.dz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}
.dz-btn {
  padding: 11px 24px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}
.dz-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dz-btn:active { transform: translateY(1px) scale(0.97); }
.dz-btn.draw { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.dz-btn.pass { background: linear-gradient(145deg, #64748b, #475569); }

.dz-hand-tile.selected {
  transform: translateY(-14px) scale(1.16) !important;
  z-index: 30 !important;
  filter: drop-shadow(0 10px 12px rgba(251, 191, 36, 0.7));
}
.dz-hand-tile.selected .dz-tile {
  box-shadow:
    0 6px 16px rgba(251, 191, 36, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 2px rgba(251, 191, 36, 1) !important;
}

.dz-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px;
  position: relative;
  opacity: 0.9;
  animation: dzGhostPulse 1.1s ease-in-out infinite;
}
.dz-ghost .dz-tile {
  opacity: 0.55;
  filter: saturate(0.7);
  outline: 2px dashed rgba(251, 191, 36, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.85), 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}
.dz-ghost::after {
  
  content: '＋';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(251, 191, 36, 1), 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.dz-ghost:hover { opacity: 1; transform: scale(1.06); }
.dz-ghost:hover .dz-tile { opacity: 0.8; box-shadow: 0 0 24px rgba(251, 191, 36, 1), 0 4px 10px rgba(0, 0, 0, 0.5) !important; }
@keyframes dzGhostPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.gz-menu-btn {
  align-items: center;
  gap: 12px;
  margin: 4px 4px !important;
  padding: 1px 14px !important;
  width: 98%;
  cursor: pointer;
  border: 1px solid rgba(201, 151, 31, 0.5) !important;
  background: linear-gradient(135deg, #1a1f3a 0%, #232a4d 50%, #14182e 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(201, 151, 31, 0.18) !important;
  transition: transform 0.14s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.gz-menu-btn::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -60%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 163, 0.14), transparent);
  transform: skewX(-20deg);
  animation: gzShine 3.4s ease-in-out infinite;
}
@keyframes gzShine {
  0%, 100% { right: -60%; }
  50% { right: 120%; }
}
.gz-menu-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 26px rgba(201, 151, 31, 0.32) !important; }
.gz-menu-btn:active { transform: scale(0.98); }
.gz-menu-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(145deg, #f9e08a, #c9971f 55%, #8a6412);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}
.gz-menu-tx { flex: 1; display: flex; flex-direction: column; text-align: right; line-height: 1.35; }
.gz-menu-tx { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.35; }
.gz-menu-tx b { color: #ffe9a3; font-size: 16px; font-weight: 800; font-family: 'Cairo', sans-serif; }
.gz-menu-tx small { color: #9aa6c4; font-size: 11px; font-weight: 600; }

.gz-menu-arrow { color: #c9971f; font-size: 20px; font-weight: bold; flex-shrink: 0; width: 42px; text-align: center; }

.gz-menu-ic.gz-ic-purple {
  background: linear-gradient(145deg, #c084fc, #7c3aed 55%, #4f46e5);
  color: #fff;
}

.gz-menu-btn.gz-extra { border-color: rgba(168, 85, 247, 0.4) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(124, 58, 237, 0.2) !important; }
.gz-menu-btn.gz-extra:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 26px rgba(124, 58, 237, 0.35) !important; }
.gz-menu-btn.gz-extra .gz-menu-tx b { color: #e9d5ff; }
.gz-menu-btn.gz-extra .gz-menu-arrow { color: #a855f7; }

.gz-view {
  width: 100%; height: 100%;
  overflow-y: auto;
  direction: rtl;
  position: relative;
  font-family: 'Cairo', sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 151, 31, 0.18), transparent 55%),
    linear-gradient(180deg, #10152b 0%, #171d3a 45%, #0b0f22 100%);
}
.gz-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gz-particles i {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 163, 0.9), rgba(201, 151, 31, 0));
  animation: dzFloat linear infinite; opacity: 0;
}
.gz-view > *:not(.gz-particles) { position: relative; z-index: 1; }

.gz-header {
  padding: 16px 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.gz-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd6e6; padding: 7px 15px; border-radius: 20px; cursor: pointer;
  font-size: 12px; font-weight: 700; transition: background 0.15s;
}
.gz-back:hover { background: rgba(255, 255, 255, 0.16); }
.gz-title {
  color: #ffe9a3; font-weight: 800; font-size: 17px;
  font-family: 'Changa', 'Cairo', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 2px 6px rgba(201, 151, 31, 0.4);
}
.gz-trophy { font-size: 20px; filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6)); }

.gz-tabs { display: flex; justify-content: center; gap: 10px; padding: 0 16px 16px; }
.gz-tab {
  padding: 9px 22px; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #9aa6c4; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.gz-tab.active {
  color: #201400;
  background: linear-gradient(145deg, #ffe9a3, #c9971f);
  border-color: rgba(255, 233, 163, 0.8);
  box-shadow: 0 4px 12px rgba(201, 151, 31, 0.45);
}

.gz-body { padding: 0 12px 20px; }
.gz-list { padding: 4px 2px; }
.gz-loading, .gz-empty { text-align: center; padding: 40px 16px; color: #7f8bab; font-size: 14px; font-weight: 600; }

.gz-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  padding: 20px 6px 22px; margin-bottom: 14px;
}
.gz-pod {
  flex: 1; max-width: 120px;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 10px 10px;
  padding: 10px 6px 0;
  position: relative;
}
.gz-pod-medal { font-size: 22px; margin-bottom: 4px; }
.gz-pod-ava {
  width: 54px; height: 54px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, #ffe9a3, #c9971f, #7a5a12, #c9971f, #ffe9a3);
}
.gz-pod-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #14182e; display: block; }
.gz-pod-name { color: #fff; font-size: 12px; font-weight: 700; margin-top: 6px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-pod-wins { color: #4ade80; font-size: 11px; font-weight: 700; margin: 3px 0 8px; }
.gz-pod-base {
  width: 100%; text-align: center; font-weight: 900; font-size: 20px; color: #201400;
  border-radius: 8px 8px 0 0; padding: 6px 0;
}
.gz-pod-gold { transform: translateY(-14px); z-index: 3; }
.gz-pod-gold .gz-pod-base { background: linear-gradient(180deg, #ffe9a3, #c9971f); box-shadow: 0 0 22px rgba(201, 151, 31, 0.6); }
.gz-pod-gold .gz-pod-ava { width: 64px; height: 64px; }
.gz-pod-silver .gz-pod-base { background: linear-gradient(180deg, #e8edf5, #aab4c6); }
.gz-pod-bronze .gz-pod-base { background: linear-gradient(180deg, #f0c088, #c07a32); }

.gz-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: background 0.15s;
}
.gz-row:hover { background: rgba(255, 255, 255, 0.09); }
.gz-rank { min-width: 26px; text-align: center; font-size: 14px; font-weight: 800; color: #c9971f; }
.gz-row-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(201,151,31,0.4); }
.gz-row-name { flex: 1; color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-row-played { color: #7f8bab; font-size: 11px; }
.gz-row-wins { background: rgba(74, 222, 128, 0.15); color: #4ade80; padding: 4px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; }

.gz-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 151, 31, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(201, 151, 31, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gz-setting-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gz-setting-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.4; text-align: right; }
.gz-setting-tx b { color: #ffe9a3; font-size: 14px; font-weight: 800; }
.gz-setting-tx small { color: #9aa6c4; font-size: 11px; font-weight: 600; }

.gz-switch {
  position: relative;
  width: 54px; height: 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: linear-gradient(145deg, #384063, #262c48);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.28s;
  outline: none;
}
.gz-switch .gz-knob {
  position: absolute;
  top: 3px; right: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d7dbe6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1.3), background 0.28s;
}

.gz-switch.on {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 16px rgba(239, 68, 68, 0.55);
}
.gz-switch.on .gz-knob {
  transform: translateX(-24px);
  background: radial-gradient(circle at 35% 30%, #fff, #ffe1e1);
}

.gz-cards {
  padding: 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gz-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f3a 0%, #232a4d 55%, #14182e 100%);
  border: 1px solid rgba(201, 151, 31, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.14s, box-shadow 0.2s, filter 0.2s;
}
.gz-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -60%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 163, 0.1), transparent);
  transform: skewX(-20deg);
  animation: gzShine 3.8s ease-in-out infinite;
}
.gz-card:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 22px rgba(201, 151, 31, 0.25); }
.gz-card:active { transform: scale(0.98); }
.gz-card-ic {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}
.gz-card-tx { flex: 1; display: flex; flex-direction: column; text-align: right; }
.gz-card-tx b { color: #eef2ff; font-size: 15px; font-weight: 800; font-family: 'Cairo', sans-serif; }
.gz-card-arrow { color: #c9971f; font-size: 20px; font-weight: bold; flex-shrink: 0; }

.dzmo-ov {
  position: fixed; inset: 0; z-index: 100050;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
  direction: rtl; font-family: 'Cairo', sans-serif;
  animation: dzmoFade 0.2s ease;
}
@keyframes dzmoFade { from { opacity: 0; } to { opacity: 1; } }
.dzmo-box {
  width: 90%; max-width: 340px;
  border-radius: 20px;
  padding: 18px 16px 14px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201, 151, 31, 0.2), transparent 55%),
    linear-gradient(180deg, #171d3a 0%, #10152b 100%);
  border: 1px solid rgba(201, 151, 31, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 151, 31, 0.2);
  animation: dzmoPop 0.3s cubic-bezier(0.18, 0.9, 0.3, 1.2);
}
@keyframes dzmoPop {
  0% { transform: scale(0.85) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.dzmo-item {
  animation: dzmoItemIn 0.32s ease both;
}
.dzmo-item:nth-child(1) { animation-delay: 0.03s; }
.dzmo-item:nth-child(2) { animation-delay: 0.07s; }
.dzmo-item:nth-child(3) { animation-delay: 0.11s; }
.dzmo-item:nth-child(4) { animation-delay: 0.15s; }
.dzmo-item:nth-child(5) { animation-delay: 0.19s; }
@keyframes dzmoItemIn {
  0% { transform: translateX(16px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.dzmo-title { color: #ffe9a3; font-size: 17px; font-weight: 800; text-align: center; font-family: 'Changa','Cairo',sans-serif; }
.dzmo-sub { color: #9aa6c4; font-size: 12px; text-align: center; margin: 3px 0 14px; }
.dzmo-list { display: flex; flex-direction: column; gap: 9px; }
.dzmo-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #1e2547, #161b35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.dzmo-item:hover { transform: translateY(-2px); border-color: rgba(201, 151, 31, 0.55); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(201, 151, 31, 0.22); }
.dzmo-item:active { transform: scale(0.98); }
.dzmo-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}
.dzmo-tx { flex: 1; display: flex; flex-direction: column; text-align: right; line-height: 1.4; }
.dzmo-tx b { color: #eef2ff; font-size: 14px; font-weight: 700; }
.dzmo-tx small { color: #8a95b5; font-size: 11px; }
.dzmo-arrow { color: #c9971f; font-size: 18px; font-weight: bold; flex-shrink: 0; }
.dzmo-cancel {
  margin-top: 12px; text-align: center; cursor: pointer;
  color: #cfd6e6; font-weight: 700; font-size: 13px;
  padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.dzmo-cancel:hover { background: rgba(255,255,255,0.12); }

.dz-vo { margin: 3px 0; }
.dz-vo-card {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 13px; cursor: pointer;
  max-width: 210px;
  background: linear-gradient(135deg, #2a3057, #1a1f3a);
  border: 1px solid rgba(201, 151, 31, 0.45);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.12s, box-shadow 0.15s;
}
.dz-vo-card:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,0,0,0.4), 0 0 14px rgba(201,151,31,0.3); }
.dz-vo-card:active { transform: scale(0.97); }
.dz-vo-ic { font-size: 22px; flex-shrink: 0; }
.dz-vo-lb { color: #ffe9a3; font-size: 12.5px; font-weight: 700; flex: 1; }
.dz-vo-hint { color: #9aa6c4; font-size: 10.5px; white-space: nowrap; }
.dz-vo-expired {
  display: inline-block; padding: 8px 14px; border-radius: 12px;
  color: #94a3b8; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.15);
}

.dz-vo-card.dz-vo-loading { opacity: 0.7; pointer-events: none; }
.dz-vo-card.dz-vo-loading .dz-vo-ic { animation: dzSpin 0.9s linear infinite; }
@keyframes dzSpin { to { transform: rotate(360deg); } }

.dz-vo-viewer {
  position: fixed; inset: 0; z-index: 100060;
  background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.22s ease;
  -webkit-user-select: none; user-select: none;
}
.dz-vo-viewer-inner {
  position: relative; max-width: 92%; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1.15), opacity 0.24s ease;
}
.dz-vo-viewer-inner.dz-vo-in { transform: scale(1); opacity: 1; }
.dz-vo-viewer-inner.dz-vo-out { transform: scale(0.95); opacity: 0; }
.dz-vo-media {
  max-width: 100%; max-height: 82vh; display: block; margin: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  pointer-events: auto;
}
img.dz-vo-media, canvas.dz-vo-media { pointer-events: none; } 
.dz-vo-watermark {
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); pointer-events: none;
  font-family: 'Cairo', sans-serif;
}
.dz-vo-close {
  position: absolute; top: -6px; left: -6px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: bold; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff8a6b, #d63b2f 70%, #a52318);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 3px rgba(255,255,255,0.4);
  z-index: 2;
}
.dz-vo-timer {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  min-width: 40px; padding: 6px 10px; border-radius: 20px;
  color: #201400; font-weight: 800; font-size: 13px; text-align: center;
  background: linear-gradient(145deg, #fbbf24, #d97706);
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

#call .call-controls .callbtn {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
#call .call-controls .callbtn:active { transform: scale(0.92); }
#call .call-controls .callbtn:hover { filter: brightness(1.1); }

#call .call-controls .callicon { font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }

#call .callcam.btn-info { background-color: #16a34a !important; border-color: #16a34a !important; }

#call .fa-microphone-slash.btn-info { background-color: #dc2626 !important; border-color: #dc2626 !important; }

#call.call-video-active { width: 380px !important; }
@media (max-width: 480px) {
  #call.call-video-active { width: 94vw !important; left: 3vw !important; }
}
