/* ============================================
   Cricket Stream - Ultra Clean & Mobile Responsive CSS
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-glass: rgba(18, 18, 26, 0.88);

  --text-primary: #f0f0f5;
  --text-secondary: #9898a8;
  --text-muted: #5a5a6e;

  --accent-orange: #f97316;
  --accent-yellow: #eab308;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --telegram-blue: #229ed9;

  --gradient-primary: linear-gradient(135deg, #f97316, #eab308);
  --gradient-telegram: linear-gradient(135deg, #2aabee, #229ed9);

  --border-subtle: rgba(255, 255, 255, 0.08);

  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-primary: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- Background Orbs ---------- */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
}

.bg-orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-orange), transparent 70%);
  top: -5%;
  right: -5%;
}

.bg-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-yellow), transparent 70%);
  bottom: -10%;
  left: -5%;
}

.bg-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 40%;
  left: 50%;
}

/* ---------- App Layout ---------- */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Viewer Count Badge ---------- */
.viewer-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange);
  transition: all 0.3s ease;
}

.viewer-count svg {
  opacity: 0.8;
  flex-shrink: 0;
}

.viewer-count #viewer-number {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}

.viewer-label {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.viewer-count.updated {
  animation: viewerPulse 0.4s ease;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.header-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--gradient-telegram);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
  transition: all 0.2s ease;
}

.header-tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
}

.header-tg-btn i {
  font-size: 0.85rem;
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem;
}

/* ---------- Live Scorecard Widget ---------- */
.scorecard-widget {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
}

.scorecard-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scorecard-match-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scorecard-badge {
  padding: 0.15rem 0.5rem;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scorecard-match-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorecard-status-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.scorecard-live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

.scorecard-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-green);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorecard-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
  gap: 1rem;
}

.scorecard-team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.scorecard-team:last-child {
  flex-direction: row-reverse;
}

.scorecard-team:last-child .team-info {
  flex-direction: row-reverse;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.team-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.team-score {
  font-size: 1.3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.scorecard-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
}

.scorecard-vs {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  letter-spacing: 0.1em;
}

.scorecard-footer {
  padding: 0.4rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}

.scorecard-venue {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes scoreUpdate {
  0% { opacity: 0.5; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.score-updated {
  animation: scoreUpdate 0.3s ease-out;
}

/* ---------- Channel Selector Tabs ---------- */
.channel-selector-container {
  margin-bottom: 0.85rem;
}

.channel-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.channel-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.channel-tab.active {
  background: var(--gradient-primary);
  color: #000;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* ---------- Player Section ---------- */
.player-section {
  margin-bottom: 1rem;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.iframe-element {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* ---------- Loading Screen ---------- */
.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.player-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.cricket-loader {
  text-align: center;
}

.ball-spin {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.8rem;
  animation: ballSpin 1.5s linear infinite;
}

.ball-spin svg {
  width: 100%;
  height: 100%;
}

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

.loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.loading-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Error State ---------- */
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  z-index: 10;
}

.error-content {
  text-align: center;
  padding: 1.5rem;
}

.error-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.error-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.error-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 20px;
  color: #000;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

/* ---------- Telegram Banner Card ---------- */
.telegram-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(34, 158, 217, 0.15) 0%,
    rgba(42, 171, 238, 0.08) 100%
  );
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.telegram-banner-card:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 158, 217, 0.22) 0%,
    rgba(42, 171, 238, 0.14) 100%
  );
  border-color: rgba(34, 158, 217, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.25);
}

.tg-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tg-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-telegram);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

.tg-banner-text h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
}

.tg-banner-text p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.tg-banner-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-telegram);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.35);
}

.tg-banner-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.telegram-banner-card:hover .tg-banner-btn i {
  transform: translateX(3px);
}

/* ---------- Browser Notice ---------- */
.browser-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: #93c5fd;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ---------- Mobile Optimization Media Queries ---------- */
@media (max-width: 600px) {
  .header-content {
    padding: 0.5rem 0.75rem;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .header-tg-btn span {
    display: none;
  }

  .header-tg-btn {
    padding: 0.35rem 0.5rem;
    border-radius: 50%;
  }

  .viewer-count .viewer-label {
    display: none;
  }

  .main-content {
    padding: 0.6rem 0.75rem;
  }

  /* Scorecard mobile tweaks */
  .scorecard-body {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .team-name {
    font-size: 0.85rem;
  }

  .team-score {
    font-size: 1.05rem;
  }

  .team-flag {
    width: 22px;
    height: 22px;
  }

  .scorecard-match-name {
    max-width: 140px;
    font-size: 0.7rem;
  }

  .scorecard-status {
    max-width: 110px;
    font-size: 0.65rem;
  }

  .telegram-banner-card {
    padding: 0.75rem;
  }

  .tg-banner-text h3 {
    font-size: 0.85rem;
  }

  .tg-banner-text p {
    font-size: 0.7rem;
  }

  .tg-banner-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .scorecard-body {
    flex-direction: column;
    gap: 0.5rem;
  }

  .scorecard-team {
    width: 100%;
  }

  .scorecard-team:last-child {
    flex-direction: row;
  }

  .scorecard-team:last-child .team-info {
    flex-direction: row;
  }

  .scorecard-divider {
    width: auto;
  }

  .viewer-count {
    display: none;
  }
}

/* ========== ENHANCED MOBILE RESPONSIVE ========== */

/* Make player taller and edge-to-edge on mobile */
@media (max-width: 768px) {
  .main-content {
    padding: 0.5rem;
  }

  .player-wrapper {
    border-radius: 8px;
    aspect-ratio: 16 / 10;
  }

  .channel-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .channel-name {
    display: none;
  }

  .scorecard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
  }

  .telegram-banner-card {
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
    padding: 0.75rem;
  }

  .tg-banner-left {
    flex-direction: column;
    gap: 0.5rem;
  }

  .browser-notice {
    font-size: 0.72rem;
    padding: 0.5rem 0.7rem;
  }

  .footer p {
    font-size: 0.65rem;
  }
}

/* Extra small phones — make player even bigger */
@media (max-width: 480px) {
  .player-wrapper {
    aspect-ratio: 16 / 11;
    border-radius: 6px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-subtitle {
    font-size: 0.5rem;
  }

  .live-badge {
    font-size: 0.58rem;
    padding: 0.2rem 0.5rem;
  }

  .header-content {
    padding: 0.4rem 0.6rem;
  }
}

/* Landscape mode on mobile — fullscreen-ish player */
@media (max-height: 500px) and (orientation: landscape) {
  .header {
    padding: 0;
  }

  .header-content {
    padding: 0.25rem 0.5rem;
  }

  .logo-subtitle,
  .viewer-count,
  .channel-name {
    display: none;
  }

  .main-content {
    padding: 0.25rem;
  }

  .player-wrapper {
    aspect-ratio: unset;
    height: calc(100vh - 80px);
    border-radius: 4px;
  }

  .channel-selector-container {
    margin-bottom: 0.3rem;
  }

  .channel-tab {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .scorecard-widget,
  .telegram-banner-card,
  .browser-notice,
  .footer {
    display: none;
  }
}

/* ========== TELEGRAM POPUP ========== */
.tg-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: popupFadeIn 0.4s ease;
}

.tg-popup-overlay.hidden {
  display: none;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.tg-popup {
  position: relative;
  background: linear-gradient(165deg, #1a1a2e 0%, #12121a 50%, #0d1525 100%);
  border: 1px solid rgba(34, 158, 217, 0.3);
  border-radius: 24px;
  padding: 2.5rem 2rem 1.8rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(34, 158, 217, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: popupSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes popupSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tg-popup-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tg-popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background: var(--gradient-telegram);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow:
    0 8px 30px rgba(34, 158, 217, 0.45),
    0 0 0 6px rgba(34, 158, 217, 0.1);
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.tg-popup-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tg-popup-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.tg-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tg-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tg-popup-join {
  background: var(--gradient-telegram);
  color: #fff;
  box-shadow: 0 6px 25px rgba(34, 158, 217, 0.4);
}

.tg-popup-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(34, 158, 217, 0.55);
}

.tg-popup-join i {
  font-size: 1.15rem;
}

.tg-popup-dismiss {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tg-popup-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.tg-popup-dismiss i {
  font-size: 0.9rem;
  color: var(--accent-green);
}

.tg-popup-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Popup mobile tweaks */
@media (max-width: 480px) {
  .tg-popup {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
  }

  .tg-popup-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .tg-popup-title {
    font-size: 1.3rem;
  }

  .tg-popup-desc {
    font-size: 0.8rem;
  }

  .tg-popup-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
    border-radius: 12px;
  }
}
