:root {
    --bg-main: #06080f;
    --bg-sidebar: rgba(11, 15, 25, 0.85);
    --bg-card: rgba(18, 24, 38, 0.6);
    --bg-card-hover: rgba(28, 36, 56, 0.8);
    --bg-input: rgba(13, 18, 30, 0.8);
    --border-color: rgba(56, 131, 246, 0.15);
    --border-focus: #3883f6;
    --text-primary: #ffffff;
    --text-secondary: #8c9cb6;
    --accent-glow: linear-gradient(135deg, #3883f6 0%, #00d2ff 100%);
    --accent-color: #3883f6;
    --active-item-bg: linear-gradient(90deg, rgba(56, 131, 246, 0.18) 0%, rgba(56, 131, 246, 0.02) 100%);
    --active-item-border: #3883f6;
    --icon-color: #8c9cb6;
    --live-red: #ff334b;
    --star-gold: #ffd700;
    --header-height: 56px;
    --ticker-height: 40px;
    --blur-effect: blur(20px);
  }

  body.light-mode {
    --bg-main: #f0f4f8;
    --bg-sidebar: rgba(255, 255, 255, 0.88);
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(240, 245, 250, 0.95);
    --bg-input: #ffffff;
    --border-color: rgba(37, 99, 235, 0.15);
    --border-focus: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-glow: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --accent-color: #2563eb;
    --active-item-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.01) 100%);
    --active-item-border: #2563eb;
    --icon-color: #64748b;
  }

  * { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
  }

  html, body { 
    padding: 0; 
    margin: 0; 
    height: 100%; 
    width: 100%;
    background-color: var(--bg-main); 
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; 
    overflow: hidden; 
    transition: background-color 0.3s, color 0.3s;
  }
  
  #main-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
  }

  #player-container {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .player-topbar {
    height: var(--header-height);
    min-height: var(--header-height);
    background: var(--bg-sidebar);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: 1px solid var(--border-color);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
  }

  .now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    margin-right: 10px;
  }

  .topbar-channel-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    object-fit: contain;
    flex-shrink: 0;
  }

  .live-badge {
    background: rgba(255, 51, 75, 0.15);
    color: var(--live-red);
    border: 1px solid rgba(255, 51, 75, 0.3);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.8px;
    flex-shrink: 0;
  }

  .live-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--live-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--live-red);
    animation: pulse 1.5s infinite;
  }

  .current-channel-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
  }

  .topbar-right-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .live-clock {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
  }

  .topbar-actions {
    display: flex;
    gap: 8px;
  }

  .player-frame {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #000;
    height: 220px; 
    min-height: 220px;
  }

  #player {
    width: 100% !important;
    height: 100% !important;
  }

  #streamLoadingOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .loading-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 320px;
    width: 100%;
  }
  .spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
  }
  .loading-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
  }
  .loading-percentage {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .jwplayer .jw-display-icon-container {
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      margin: 0 !important;
      float: none !important;
  }

  .jwplayer .jw-display-controls {
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      width: auto !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
  }

  .jwplayer .jw-spinner-block {
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      margin: 0 !important;
      position: absolute !important;
  }

  @media (min-width: 1025px) {
      .player-frame {
          flex: 1;
          height: auto;
          padding: 20px;
          background-color: var(--bg-main);
          justify-content: center;
          align-items: center;
      }
      #player {
          border-radius: 16px;
          overflow: hidden;
          box-shadow: 0 10px 40px rgba(0,0,0,0.4);
      }
      .player-ticker {
          margin: 0 20px 20px 20px !important;
      }
  }

  .player-ticker {
    height: var(--ticker-height);
    min-height: var(--ticker-height);
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }

  .player-ticker:hover {
    border-color: var(--border-focus);
    box-shadow: 0 8px 32px rgba(56, 131, 246, 0.15);
  }

  .player-ticker:hover .ticker-content span {
    animation-play-state: paused;
  }

  .ticker-label {
    background: var(--accent-glow);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 0.8px;
    z-index: 2;
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .ticker-content {
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 10px;
  }

  .ticker-content span {
    display: inline-block;
    padding-left: 100%;
    animation: tickerAnim 30s linear infinite;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .ticker-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted var(--accent-color);
    transition: opacity 0.2s;
  }
  .ticker-content a:hover {
    opacity: 0.8;
  }

  @keyframes tickerAnim {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
  }

  .jw-button-next, .jw-button-prev, .jw-icon-playlist,
  .jw-display-icon-playlist, .jw-related,
  .jw-related-overlay, .jw-plugin-related, .jw-nextup-container,
  .jw-display-icon-next {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #sidebar {
    width: 360px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background-color 0.2s, width 0.3s;
    z-index: 100;
  }

  .sidebar-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .status-info-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .status-info-left svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-color);
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .count-badge {
    background: var(--accent-glow);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 12px rgba(56, 131, 246, 0.25);
    letter-spacing: 0.3px;
  }

  .filter-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
  }

  .search-wrapper {
    display: flex;
    gap: 8px;
    position: relative;
  }

  .search-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .search-input-container svg {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
  }

  .icon-btn {
    min-width: 34px;
    height: 34px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--icon-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
  }
  .icon-btn:hover svg { stroke: var(--text-primary); }

  .icon-btn.active-fav {
    border-color: var(--star-gold);
    background: var(--bg-card-hover);
  }
  .icon-btn.active-fav svg { stroke: var(--star-gold); fill: var(--star-gold); }

  .channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
  }

  .channel-logo-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
  }

  .channel-logo { width: 100%; height: 100%; object-fit: contain; }
  .channel-avatar { font-size: 10px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; }

  .fav-star {
    font-size: 15px;
    color: var(--icon-color);
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.2s;
  }
  .fav-star:hover { transform: scale(1.2); color: var(--star-gold); }
  .fav-star.is-fav { color: var(--star-gold); }

  .channel-details { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  .channel-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
  .channel-group-tag { font-size: 10px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .channel-item:hover { background: var(--bg-card-hover); border-color: var(--border-focus); }
  .channel-item.active {
    background: var(--active-item-bg);
    border-color: var(--active-item-border);
    border-left-width: 3px;
  }
  .channel-item.active .channel-title { color: var(--accent-color); font-weight: 700; }

  .playing-indicator {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 12px;
  }
  .channel-item.active .playing-indicator { display: flex; }
  .playing-bar { flex: 1; background: var(--accent-color); border-radius: 2px; animation: bounce 1.2s infinite ease-in-out alternate; }
  .playing-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
  .playing-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
  .playing-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }

  @keyframes bounce { 0% { height: 20%; } 100% { height: 100%; } }

  .skeleton-item { pointer-events: none; }
  .skeleton-logo { width: 28px; height: 28px; border-radius: 6px; background: var(--bg-card-hover); animation: pulseAnim 1.5s infinite; }
  .skeleton-details { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
  .skeleton-line { height: 8px; border-radius: 4px; background: var(--bg-card-hover); animation: pulseAnim 1.5s infinite; }
  .skeleton-title { width: 70%; }
  .skeleton-group { width: 40%; }
  @keyframes pulseAnim { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

  .empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; text-align: center; padding: 20px; opacity: 0.7;
  }
  .empty-state svg { width: 48px; height: 48px; stroke: var(--icon-color); margin-bottom: 10px; }
  .empty-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
  .empty-desc { font-size: 11.5px; color: var(--text-secondary); }

  @media (max-width: 1024px) {
    #main-wrapper {
      flex-direction: column;
    }
    #player-container {
      width: 100%;
      height: auto;
      flex: none;
    }
    #sidebar {
      width: 100%;
      flex: 1;
      height: 0; 
      border-left: none;
      border-top: 1px solid var(--border-color);
      overflow: hidden;
    }
    .live-clock { display: none; }
    #menuToggleBtn { display: none; }
  }

  @media (max-width: 1024px) and (orientation: landscape) {
    #main-wrapper {
      flex-direction: row !important;
    }
    #player-container {
      width: 50% !important;
      height: 100% !important;
      flex: 1;
    }
    .player-frame {
      height: 100% !important;
      flex: 1;
    }
    #sidebar {
      width: 50% !important;
      height: 100% !important;
      border-top: none;
      border-left: 1px solid var(--border-color);
    }
  }

  .channel-list::-webkit-scrollbar { width: 4px; }
  .channel-list::-webkit-scrollbar-track { background: transparent; }
  .channel-list::-webkit-scrollbar-thumb { background: rgba(56, 131, 246, 0.2); border-radius: 10px; }

  #iptv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .iptv-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  .iptv-modal-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255, 51, 75, 0.12);
    border: 1px solid rgba(255, 51, 75, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--live-red);
  }
  .iptv-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
  }
  .iptv-modal-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .iptv-modal-btn {
    background: var(--accent-glow);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .iptv-modal-btn:hover {
    opacity: 0.9;
  }

  /* ==========================================
     MODAL U MALIM EMBED-ovima (ispod ~460px)
     ==========================================
     Player se ugradjuje u iframe-ove koji su cesto uski (video embed 340x250,
     400x300 i slicno). Fiksni padding od 30px + max-width 420px su tada veci
     od samog iframe-a, pa kartica izbija izvan okvira i poruka se ODREZuje -
     u Firefoxu se to vidi jer nema scrollbara koji bi to otkrio, dok
     Chrome/Edge vise ili manje kompenziraju.

     Ovdje smanjujemo padding, font i ikonu, te dozvoljavamo visoku sadrzaja da
     se skuca (align-items: flex-start) umjesto da se centrirana kartica cuta.
     */
  @media (max-width: 460px) {
    #iptv-modal {
      padding: 12px;
      overflow-y: auto;
      align-items: flex-start;
    }
    .iptv-modal-card {
      padding: 16px 14px;
      border-radius: 12px;
      margin: auto;
    }
    .iptv-modal-icon-wrap {
      width: 44px;
      height: 44px;
      margin-bottom: 12px;
    }
    .iptv-modal-icon-wrap svg {
      width: 24px;
      height: 24px;
    }
    .iptv-modal-title {
      font-size: 16px;
      margin-bottom: 8px;
    }
    .iptv-modal-desc {
      font-size: 12.5px;
      margin-bottom: 16px;
    }
    .iptv-modal-btn {
      padding: 10px;
      font-size: 13px;
    }
  }
  /* VRLO NISKI EMBED-ovi (<= 300px visine): poruka mora ostati citljiva,
     pa skracujemo ikonu i margine jos vise. */
  @media (max-height: 300px) {
    .iptv-modal-card {
      padding: 12px;
    }
    .iptv-modal-icon-wrap {
      display: none;
    }
    .iptv-modal-desc {
      margin-bottom: 12px;
    }
  }
  /* PLITKI BANNER-ovi (<= 200px visine, npr. 320x160 reklama):
     na toj visini NE STANE ni naslov + opis + domena zajedno - poruka bi bila
     odrezana na pola, sto je gore od kratke poruke. Zato ovdje ostavljamo SAMO
     naslov ("Sandbox iframe nije dozvoljen"), koji vec kaze sve bitno, i
     centriramo ga. Citanje je prioritet od potpunog teksta. */
  @media (max-height: 200px) {
    #iptv-modal {
      padding: 8px;
      align-items: center;
    }
    .iptv-modal-card {
      padding: 10px 12px;
      border-radius: 10px;
    }
    .iptv-modal-title {
      font-size: 14px;
      margin-bottom: 0;
    }
    .iptv-modal-desc {
      display: none;
    }
  }

  #globalNotificationModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 2147483647;
      justify-content: center;
      align-items: center;
      padding: 20px;
      box-sizing: border-box;
  }

  .global-notification-box {
      position: relative;
      background: #121826;
      border: 1px solid rgba(56, 131, 246, 0.3);
      border-radius: 24px;
      padding: 36px 28px 28px 28px;
      width: 100%;
      max-width: 440px;
      text-align: center;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 131, 246, 0.2);
      color: #ffffff;
      font-family: 'Plus Jakarta Sans', sans-serif;
      animation: modalPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      overflow: hidden;
  }

  .global-notification-box p a {
      color: #3883f6;
      text-decoration: underline;
      font-weight: 700;
  }
  .global-notification-box p a:hover {
      opacity: 0.8;
  }

  @keyframes modalPopIn {
      0% { transform: scale(0.85) translateY(10px); opacity: 0; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
  }

  .modal-close-x {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #8c9cb6;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
  }
  .modal-close-x:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      transform: rotate(90deg);
  }

  .global-notification-icon-wrap {
      width: 64px;
      height: 64px;
      margin: 0 auto 18px auto;
      border-radius: 50%;
      background: rgba(56, 131, 246, 0.15);
      border: 1px solid rgba(56, 131, 246, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      box-shadow: 0 0 20px rgba(56, 131, 246, 0.2);
      animation: pulseIcon 2s infinite;
  }

  @keyframes pulseIcon {
      0% { box-shadow: 0 0 0 0 rgba(56, 131, 246, 0.4); }
      70% { box-shadow: 0 0 0 12px rgba(56, 131, 246, 0); }
      100% { box-shadow: 0 0 0 0 rgba(56, 131, 246, 0); }
  }

  .global-notification-box h3 {
      color: #ffffff;
      margin: 0 0 10px 0;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.3px;
  }

  .global-notification-box p {
      color: #8c9cb6;
      font-size: 14px;
      line-height: 1.6;
      margin: 0 0 26px 0;
      word-break: break-word;
      font-weight: 500;
  }

  .global-notification-btn {
      background: linear-gradient(135deg, #3883f6 0%, #00d2ff 100%);
      color: #ffffff;
      border: none;
      border-radius: 14px;
      padding: 14px 20px;
      width: 100%;
      font-weight: 700;
      font-size: 14.5px;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(56, 131, 246, 0.3);
      transition: all 0.25s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
  }

  .global-notification-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 25px rgba(56, 131, 246, 0.45);
      opacity: 0.95;
  }

  .global-notification-btn:active {
      transform: translateY(0);
  }

  #inactivityModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 2147483647;
      justify-content: center;
      align-items: center;
      padding: 20px;
      box-sizing: border-box;
  }