/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ═══════════════════════════════════════
   STICKY HEADER
═══════════════════════════════════════ */

.site-header[b-h52f1j9wuj] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    background: linear-gradient(90deg, rgba(23, 37, 84, 0.97) 0%, rgba(30, 64, 175, 0.92) 50%, rgba(23, 37, 84, 0.97) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(201, 162, 39, 0.15);
}

.site-header-inner[b-h52f1j9wuj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Left slot */
.header-left[b-h52f1j9wuj] {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

/* Right slot */
.header-actions[b-h52f1j9wuj] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

/* Logo */
.site-logo[b-h52f1j9wuj] {
    align-items: center;
    gap: 0.45rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #c9a227;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s, text-shadow 0.2s;
    
}

.site-logo:hover[b-h52f1j9wuj] {
    color: #d9b85a;
    
}

.logo-star[b-h52f1j9wuj] {
    font-size: 0.9rem;
    color: #7aa2e0;
    animation: pulse-star-b-h52f1j9wuj 3s ease-in-out infinite;
}

@keyframes pulse-star-b-h52f1j9wuj {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Back button */
.back-btn[b-h52f1j9wuj] {
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    direction: rtl;
}

.back-btn:hover[b-h52f1j9wuj] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 162, 39, 0.4);
    color: #c9a227;
    transform: translateX(-2px);
}

/* Telegram button */
.tg-btn[b-h52f1j9wuj] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.1));
    border: 1px solid rgba(0, 136, 204, 0.45);
    color: #7aa2e0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tg-btn:hover[b-h52f1j9wuj] {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.4), rgba(0, 136, 204, 0.25));
    border-color: rgba(0, 136, 204, 0.8);
    color: #fff;
    
    transform: translateY(-1px);
}

.tg-label[b-h52f1j9wuj] {
    font-size: 0.78rem;
}

/* Login / Logout button */
.login-btn[b-h52f1j9wuj] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.08));
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: #c9a227;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background-clip: padding-box;
}

.login-btn:hover[b-h52f1j9wuj] {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.18));
    border-color: rgba(201, 162, 39, 0.75);
    color: #d9b85a;
    
    transform: translateY(-1px);
}

.logout-btn[b-h52f1j9wuj] {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.35);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
}

.logout-btn:hover[b-h52f1j9wuj] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(239, 68, 68, 0.15));
    border-color: rgba(239, 68, 68, 0.65);
    color: #fecaca;
    
}

/* ═══════════════════════════════════════
   MOBILE STICKY FOOTER
═══════════════════════════════════════ */

.site-footer[b-h52f1j9wuj] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(17, 30, 70, 0.98) 0%, rgba(23, 37, 84, 0.99) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(201, 162, 39, 0.1);
    padding-bottom: env(safe-area-inset-bottom); /* iOS notch safety */
}

.footer-nav[b-h52f1j9wuj] {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}

.footer-nav-item[b-h52f1j9wuj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 0.55rem 0.25rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.footer-nav-item span[b-h52f1j9wuj] {
    line-height: 1;
}

.footer-nav-item:hover[b-h52f1j9wuj] {
    color: rgba(255, 255, 255, 0.85);
}

/* Active state */
.footer-nav-item.active[b-h52f1j9wuj] {
    color: #c9a227;
    background: transparent;
    border: none;
}

.footer-nav-item.active svg[b-h52f1j9wuj] {
    
}

.footer-nav-item.active[b-h52f1j9wuj]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #c9a227;
    border-radius: 0 0 4px 4px;
}

/* ═══════════════════════════════════════
   BLAZOR ERROR UI
═══════════════════════════════════════ */

#blazor-error-ui[b-h52f1j9wuj] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-h52f1j9wuj] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-pft9t41qdg],
.components-reconnect-repeated-attempt-visible[b-pft9t41qdg],
.components-reconnect-failed-visible[b-pft9t41qdg],
.components-pause-visible[b-pft9t41qdg],
.components-resume-failed-visible[b-pft9t41qdg],
.components-rejoining-animation[b-pft9t41qdg] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-retrying[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-failed[b-pft9t41qdg],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-pft9t41qdg] {
    display: block;
}


#components-reconnect-modal[b-pft9t41qdg] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-pft9t41qdg 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-pft9t41qdg 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-pft9t41qdg 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-pft9t41qdg]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-pft9t41qdg 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-pft9t41qdg {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-pft9t41qdg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-pft9t41qdg {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-pft9t41qdg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-pft9t41qdg] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-pft9t41qdg] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-pft9t41qdg] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-pft9t41qdg] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-pft9t41qdg] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-pft9t41qdg] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-pft9t41qdg 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-pft9t41qdg] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-pft9t41qdg {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ── Page root ───────────────────────────────────── */
html[b-1x70svz8gu], body[b-1x70svz8gu] {
    overflow: hidden;
    height: 100%;
    margin: 0;
}

.home-root[b-1x70svz8gu] {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Backgrounds ─────────────────────────────────── */
.home-bg-overlay[b-1x70svz8gu],
.home-bg-glow[b-1x70svz8gu] {
    display: none;
}

.home-banner[b-1x70svz8gu] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.home-banner--desktop[b-1x70svz8gu] { display: none; }
.home-banner--mobile[b-1x70svz8gu]  { display: block; }

@media (min-width: 640px) {
    .home-banner--desktop[b-1x70svz8gu] { display: block; }
    .home-banner--mobile[b-1x70svz8gu]  { display: none; }
}

/* ── Orbit stage ─────────────────────────────────── */
/*
   The stage is a fixed-size square centred on screen.
   Cards are positioned absolute from its centre using
   inline CSS custom properties --i and --total.
   Each card moves itself along the circle with its own
   animation — no rotating parent, nothing to show up
   as a rectangle.
*/
.orbit-stage[b-1x70svz8gu] {
    position: relative;
    z-index: 10;
    /* radius-based square: 2R × 2R */
    --R: 36vmin;
    width:  calc(2 * var(--R));
    height: calc(2 * var(--R));
}

@media (min-width: 640px) {
    .orbit-stage[b-1x70svz8gu] {
        --R: 220px;
    }
}

/* ── Orbit cards ─────────────────────────────────── */
.orbit-card[b-1x70svz8gu] {
    /* Size */
    --cw: 18vmin;
    --ch: 22vmin;

    position: absolute;
    /* Anchor at circle centre */
    top:  50%;
    left: 50%;
    width:  var(--cw);
    height: var(--ch);
    margin-top:  calc(-0.5 * var(--ch));
    margin-left: calc(-0.5 * var(--cw));

    /* Style */
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: box-shadow 0.3s, border-color 0.3s;

    /*
      Each card runs the same keyframe but starts at a
      different point on the circle via animation-delay.
      Delay = -(i/total) * duration   →  pre-positions
      the card at angle = i/total * 360°
    */
    --duration: 45s;
    --offset: calc(var(--i) / var(--total) * var(--duration) * -1);
    animation: orbit-move-b-1x70svz8gu var(--duration) linear infinite var(--offset);
}

@media (min-width: 640px) {
    .orbit-card[b-1x70svz8gu] {
        --cw: 140px;
        --ch: 175px;
    }
}

/* Hovering anywhere on the stage pauses ALL cards */
.orbit-stage:hover .orbit-card[b-1x70svz8gu] {
    animation-play-state: paused;
}

/* The specific card being hovered gets the gold highlight */
.orbit-card:hover[b-1x70svz8gu] {
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.45), 0 8px 32px rgba(0, 0, 0, 0.6);
    border-color: rgba(251, 191, 36, 0.55);
    z-index: 20;
}

/*
  The keyframe moves the card around a circle of radius R.
  translateX(R) rotates around origin, then we rotate
  the whole thing — but notice: we only translate, we
  never rotate the card itself, so images stay upright.

  Technique: rotate the offset vector, keep card upright.
    X = R * sin(θ)
    Y = -R * cos(θ)   (negative so 0° = top)

  CSS can't do trig inline, so we animate the angle as
  a @property and use sin/cos — supported in all modern
  browsers via CSS Houdini / native trig (Chrome 111+,
  Firefox 108+, Safari 15.4+).
*/

@property --orbit-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes orbit-move-b-1x70svz8gu {
    from { --orbit-angle: 0deg;   }
    to   { --orbit-angle: 360deg; }
}

.orbit-card[b-1x70svz8gu] {
    /*
      Apply the circular translation using native CSS sin/cos.
      The card itself doesn't rotate — only its position moves.
    */
    translate:
        calc(var(--R) * sin(var(--orbit-angle)))
        calc(var(--R) * -1 * cos(var(--orbit-angle)));
}

/* ── Card internals ──────────────────────────────── */
.orbit-card-img[b-1x70svz8gu] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.orbit-card:hover .orbit-card-img[b-1x70svz8gu] {
    transform: scale(1.06);
}

.orbit-card-footer[b-1x70svz8gu] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.45rem 0.4rem 0.5rem;
    background: linear-gradient(to top, rgba(10,14,39,0.92) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.orbit-card-name[b-1x70svz8gu] {
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(0.5rem, 1.4vw, 0.7rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.orbit-card-badge[b-1x70svz8gu] {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.orbit-badge--active[b-1x70svz8gu] {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.orbit-badge--soon[b-1x70svz8gu] {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
