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

html, body {
    height: 100%;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
}

.uc-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3.5rem 4rem;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.uc-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gear-wrapper {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 100px;
    flex-shrink: 0;
}

.gear {
    fill: #e94560;
    position: absolute;
}

.gear-lg {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation: spin-cw 6s linear infinite;
}

.gear-sm {
    width: 50px;
    height: 50px;
    top: 35px;
    left: 62px;
    animation: spin-ccw 4s linear infinite;
}

@keyframes spin-cw {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.uc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.uc-subtitle-farsi {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
    font-family: 'Segoe UI', Tahoma, 'B Nazanin', 'Vazir', sans-serif;
    letter-spacing: 0.02em;
}

.uc-tagline {
    font-size: 1.05rem;
    color: #e94560;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-family: 'Segoe UI', Tahoma, 'B Nazanin', 'Vazir', sans-serif;
}

.uc-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.uc-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.uc-farsi {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #e94560;
    letter-spacing: 0.03em;
    font-family: 'Segoe UI', Tahoma, 'B Nazanin', 'Vazir', sans-serif;
}

.uc-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.uc-instagram:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
}

.insta-icon {
    width: 0.85rem;
    height: 0.85rem;
    fill: #fff;
    flex-shrink: 0;
}

/* Blazor loading spinner */
.loading-progress {
    position: absolute;
    display: block;
    width: 6rem;
    height: 6rem;
    inset: 40vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #e94560;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    inset: calc(40vh + 2.5rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: #b32121;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.3);
    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 {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
