/* /css/inside-layout.css
   Replaces inside.css sidebar layout with a clean top nav.
   Add <link rel="stylesheet" href="/css/inside-layout.css" /> to InsideLayout.razor
   and REMOVE the old <link href="/inside.css"> from App.razor (or keep both — new rules win). */

/* ── Reset any old sidebar layout ────────────────────── */
.inside-layout, .sidebar, .topnav, .content { all: unset; }

/* ── Full-page wrapper ───────────────────────────────── */
.il-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #08080f;
    color: #d0d0e8;
}

/* ── Top nav bar ─────────────────────────────────────── */
.il-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    background: #0f0f1a;
    border-bottom: 1px solid #1a1a2e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ── Brand ───────────────────────────────────────────── */
.il-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 32px;
}

.il-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.il-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ff9800;
    letter-spacing: -0.01em;
}

.il-brand-sub {
    font-size: 0.72rem;
    color: #555577;
    font-weight: 500;
    margin-top: 2px;
    align-self: flex-end;
    margin-bottom: 2px;
}

/* ── Primary nav links ───────────────────────────────── */
.il-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.il-link {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #8888aa;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.il-link:hover { color: #d0d0f0; background: rgba(255,255,255,0.05); }
.il-link.active { color: #ff9800; background: rgba(255,152,0,0.1); font-weight: 600; }

/* ── Right-side actions ──────────────────────────────── */
.il-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Token badge */
.il-token-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.2);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ff9800;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.il-token-badge:hover { background: rgba(255,152,0,0.18); }

/* Generic action button */
.il-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #8888aa;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.il-action-btn:hover { color: #d0d0f0; background: rgba(255,255,255,0.06); }

/* Create button — slightly highlighted */
.il-create-btn {
    background: rgba(255,152,0,0.12);
    border-color: rgba(255,152,0,0.25);
    color: #ff9800;
    font-weight: 700;
}
.il-create-btn:hover { background: rgba(255,152,0,0.2); border-color: rgba(255,152,0,0.4); color: #ffb74d; }

/* NSFW button */
.il-nsfw-btn { font-size: 1rem; opacity: 0.35; }
.il-nsfw-btn:hover { opacity: 0.7; }
.il-nsfw-btn.active { opacity: 1; background: rgba(255,68,68,0.12); border-color: rgba(255,68,68,0.3); }

/* Chevron */
.il-chevron { font-size: 0.7rem; transition: transform 0.2s; display: inline-block; }
.il-chevron.open { transform: rotate(180deg); }

/* Avatar button */
.il-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: transparent;
    border: 1px solid #1a1a2e;
    border-radius: 24px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.il-avatar-btn:hover { border-color: #2a2a3a; background: rgba(255,255,255,0.04); }

.il-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #2a2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.il-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #aaaacc;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Dropdowns ───────────────────────────────────────── */
.il-dropdown {
    position: relative;
}

.il-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #13131f;
    border: 1px solid #1f1f30;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 500;
    animation: dd-in 0.15s ease;
}

.il-dropdown-right {
    left: auto;
    right: 0;
    min-width: 220px;
}

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

.il-dropdown-header {
    padding: 12px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.il-dropdown-header strong { font-size: 0.9rem; color: #eee; }
.il-dropdown-header small  { font-size: 0.78rem; color: #ff9800; }

.il-dropdown-divider {
    height: 1px;
    background: #1f1f30;
    margin: 2px 0;
}

.il-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.87rem;
    color: #aaaacc;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.12s, color 0.12s;
}
.il-dropdown-item:hover { background: rgba(255,255,255,0.05); color: #eee; }
.il-dropdown-item span { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.il-logout { color: #ff6666; }
.il-logout:hover { background: rgba(255,68,68,0.1); color: #ff4444; }

/* ── Main content area ───────────────────────────────── */
.il-content {
    flex: 1;
    /* No overflow, no fixed height — pages scroll naturally */
}

/* ── Click-outside backdrop ──────────────────────────── */
.il-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199; /* below nav (200) but above page content */
}

/* ═══════════════════════════════════════════════════════
   CHAT BUTTON — unread badge
   ═══════════════════════════════════════════════════════ */
.il-chat-btn {
    position: relative;
    text-decoration: none;
}

.il-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    animation: badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   TOAST STACK
   ═══════════════════════════════════════════════════════ */
.il-toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: 100%;
}

.il-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.1);
    border-left: 3px solid #a78bfa;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    pointer-events: all;
    cursor: default;

    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.il-toast.dismissing {
    opacity: 0;
    transform: translateX(110%);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0);   }
}

/* Avatar */
.il-toast-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.il-toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.il-toast-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(167,139,250,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
}

/* Body */
.il-toast-body {
    flex: 1;
    min-width: 0;
}

.il-toast-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e2f0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.il-toast-preview {
    font-size: 0.78rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions */
.il-toast-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.il-toast-reply {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a78bfa;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(167,139,250,.12);
    transition: background 0.15s;
    white-space: nowrap;
}

.il-toast-reply:hover {
    background: rgba(167,139,250,.25);
    color: #c4b5fd;
}

.il-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.3);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
}

/* ── Generation complete toast variant ─────────────────── */
.il-toast--gen {
    border-left: 3px solid var(--accent, #f97316);
    background: rgba(20, 20, 35, 0.97);
}

.il-toast-gen-icon {
    font-size: 1.6rem;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.il-toast-close:hover {
    color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════
   USER AVATAR COMPONENT  (.ua-img / .ua-initials)
   ═══════════════════════════════════════════════════════ */
.ua-img {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

.ua-initials {
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: 0.02em;
    user-select: none;
    overflow: hidden;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
}

/* When used as .il-avatar, enforce the nav size */
.il-avatar.ua-wrap {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 11px !important;
    border: 1px solid #2a2a3a;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ══ Generate / Video / Music nav dropdowns ════════════════════════════ */
.il-generate-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #8888aa;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.il-generate-btn:hover { color: #d0d0f0; background: rgba(255,255,255,0.05); }
.il-generate-btn.active { color: #ff9800; background: rgba(255,152,0,0.1); font-weight: 600; }

.il-dropdown-item--primary {
    color: #f0a500;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 2px;
    padding-bottom: 10px;
}

.il-dropdown-item--primary span { color: #f0a500; }

.il-dropdown-item--primary:hover {
    background: rgba(240,165,0,.08);
    color: #ffbb33;
}

/* ══ Ready notification badge ═══════════════════════════════════════════ */
.il-ready-btn   { position: relative; }
.il-ready-badge { background: #6fcf6f !important; color: #08080f !important; }

/* ═══════════════════════════════════════════════════════
   SYSTEM ANNOUNCEMENT MODAL
   Full-screen overlay — only for type="system"
   ═══════════════════════════════════════════════════════ */
.sysann-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    backdrop-filter: blur(6px);
    padding: 20px;
    animation: sysann-in 0.25s ease;
}

@keyframes sysann-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sysann-modal {
    background: #13131f;
    border: 1px solid rgba(255,100,100,0.3);
    border-top: 3px solid #ef4444;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,100,100,0.1);
    animation: sysann-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sysann-pop {
    from { transform: scale(0.88) translateY(16px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.sysann-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    display: block;
    animation: sysann-pulse 1.5s ease-in-out infinite;
}

@keyframes sysann-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

.sysann-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.sysann-message {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    margin: 0 0 20px;
}

.sysann-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #f0a500;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(240,165,0,0.4);
    transition: border-color 0.15s;
}
.sysann-link:hover { border-color: #f0a500; }

.sysann-dismiss {
    display: inline-block;
    padding: 11px 32px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.sysann-dismiss:hover { background: #dc2626; transform: translateY(-1px); }

/* ═══ Shared Utilities ═══ */

:root {
  --lf-gold:          #f0a500;
  --lf-gold-dim:      rgba(240,165,0,.1);
  --lf-gold-border:   rgba(240,165,0,.25);
  --lf-dark-base:     #08080f;
  --lf-dark-surface:  #0f0f1a;
  --lf-dark-card:     #13131a;
  --lf-dark-card2:    #1a1a2e;
  --lf-text:          #e8e8f0;
  --lf-text-muted:    #888;
  --lf-border:        rgba(255,255,255,.07);
  --lf-transition:    .15s ease;
}

@keyframes lf-spin { to { transform: rotate(360deg); } }
.lf-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(240,165,0,.2);
  border-top-color: #f0a500;
  border-radius: 50%;
  animation: lf-spin .8s linear infinite;
}

.lf-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}

.lf-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f0a500, #d48800);
  color: #08080f; font-weight: 700; font-size: .9rem;
  border: none; border-radius: 8px; cursor: pointer;
  transition: opacity .15s, transform .15s;
  text-decoration: none;
}
.lf-btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.lf-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px;
  background: transparent;
  color: #c8c8e0; font-weight: 500; font-size: .88rem;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; cursor: pointer;
  transition: border-color .15s, color .15s;
  text-decoration: none;
}
.lf-btn-ghost:hover { border-color: rgba(255,255,255,.28); color: #f0f0ff; }

.lf-badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: .75rem; font-weight: 700; }
.lf-badge--success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.lf-badge--warning { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.lf-badge--error   { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.lf-badge--info    { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.lf-badge--muted   { background: rgba(255,255,255,.06); color: #888; border: 1px solid rgba(255,255,255,.1); }

/* ═══════════════════════════════════════════════════════
   NOTIFICATION BELL DROPDOWN
═══════════════════════════════════════════════════════ */
.il-notif-btn { position: relative; font-size: 1rem; }

.il-notif-dropdown {
    width: 360px;
    max-height: 460px;
    overflow-y: auto;
    padding: 0;
}

.il-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .9rem;
    color: #e8e8f0;
}

.il-notif-markall {
    background: none;
    border: none;
    color: #ff9800;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}
.il-notif-markall:hover { text-decoration: underline; }

.il-notif-empty {
    padding: 30px 16px;
    text-align: center;
    color: #555;
    font-size: .85rem;
}

.il-notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #d0d0e0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .12s;
}
.il-notif-item:hover { background: rgba(255,255,255,.04); }
.il-notif-item.unread { background: rgba(240,165,0,.05); border-left: 3px solid #ff9800; }

.il-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.il-notif-icon-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.il-notif-title {
    font-size: .82rem;
    font-weight: 600;
    color: #e8e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.il-notif-text {
    font-size: .78rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.il-notif-time {
    font-size: .7rem;
    color: #555;
}

.il-notif-viewall {
    display: block;
    padding: 10px 14px;
    text-align: center;
    color: #ff9800;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,.06);
}
.il-notif-viewall:hover { background: rgba(255,152,0,.06); }

/* ── Restart countdown bar (site-wide) ───────────────────────────── */
.il-restart-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(239,68,68,.18) 0%, rgba(239,68,68,.10) 100%);
    border-bottom: 1px solid rgba(239,68,68,.4);
    color: #fff;
    font-size: .9rem;
    line-height: 1.3;
    animation: il-restart-pulse 2s ease-in-out infinite;
}
.il-restart-icon { font-size: 1.05rem; flex-shrink: 0; }
.il-restart-text { flex: 1; }
.il-restart-text strong { color: #fca5a5; }
.il-restart-msg  { color: #fed7aa; opacity: .9; }
@keyframes il-restart-pulse {
    0%, 100% { background: linear-gradient(90deg, rgba(239,68,68,.18) 0%, rgba(239,68,68,.10) 100%); }
    50%      { background: linear-gradient(90deg, rgba(239,68,68,.26) 0%, rgba(239,68,68,.14) 100%); }
}

/* Subtle referral nudge inside the "generation ready" toast — small, low-key */
.il-toast-nudge {
    margin-top: 4px;
    font-size: .75rem;
    color: #71717a;
}
.il-toast-nudge a {
    color: #86efac;
    text-decoration: none;
    font-weight: 600;
}
.il-toast-nudge a:hover {
    text-decoration: underline;
}

/* ── Restart modal (centered, dismissible to "minimize" → top bar) ── */
.il-restart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: il-restart-fade-in 0.18s ease-out;
}
@keyframes il-restart-fade-in { from { opacity: 0; } to { opacity: 1; } }

.il-restart-modal {
    background: #0d0d10;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 24px;
    text-align: center;
    color: #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(220, 38, 38, 0.1),
                0 0 60px rgba(220, 38, 38, 0.15);
    animation: il-restart-slide-up 0.25s ease-out;
}
@keyframes il-restart-slide-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.il-restart-modal-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: il-restart-pulse 1.5s ease-in-out infinite;
}
@keyframes il-restart-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.il-restart-modal-title {
    font-size: 1.4rem;
    color: #fca5a5;
    margin: 0 0 8px;
    font-weight: 700;
}

.il-restart-modal-countdown {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    margin: 8px 0 14px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.il-restart-modal-msg {
    color: #d4d4d8;
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 0 22px;
}

.il-restart-modal-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}
.il-restart-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.il-restart-modal-foot {
    margin: 14px 0 0;
    font-size: 0.78rem;
    color: #71717a;
    line-height: 1.5;
}
