:root {
    --qy-bg-start: #0f172a;
    --qy-bg-end: #312e81;
    --qy-card-bg: rgba(255, 255, 255, 0.12);
    --qy-card-border: rgba(255, 255, 255, 0.22);
    --qy-text-main: #ffffff;
    --qy-text-soft: rgba(255, 255, 255, 0.78);
    --qy-accent: #facc15;
    --qy-logo-bg: rgba(15, 23, 42, 0.72);
    --qy-logo-border: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 30%),
        linear-gradient(135deg, var(--qy-bg-start), var(--qy-bg-end));
    color: var(--qy-text-main);
}

.app-header {
    border-bottom: 1px solid var(--qy-card-border);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
}

.qy-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--qy-text-main);
    text-decoration: none;
}

.qy-brand:hover {
    color: var(--qy-text-main);
}

.qy-brand-logo {
    display: block;
    width: min(220px, 52vw);
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.24));
}

.qy-brand-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 56px;
    padding: 0.45rem 0.75rem;
    border-radius: 18px;
    background: var(--qy-logo-bg);
    border: 1px solid var(--qy-logo-border);
}

.qy-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.qy-brand-name {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.qy-brand-subtitle {
    color: var(--qy-text-soft);
    font-size: 0.86rem;
}

.qy-brand-compact .qy-brand-logo {
    width: min(154px, 44vw);
    max-height: 48px;
}

.qy-brand-compact .qy-brand-logo-box {
    min-width: 74px;
    min-height: 46px;
    border-radius: 15px;
    padding: 0.34rem 0.55rem;
}

.qy-brand-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.qy-brand-page .qy-brand {
    padding: 0.45rem 0.65rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.qy-brand-fallback {
    display: none;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.qy-brand-on-light {
    color: #1f2937;
}

.qy-brand-on-light:hover {
    color: #1f2937;
}

.qy-brand-on-light .qy-brand-subtitle {
    color: rgba(31, 41, 55, 0.72);
}

.qy-brand-on-light .qy-brand-logo-box {
    background: rgba(17, 24, 39, 0.88);
}

.app-title {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.app-subtitle {
    color: var(--qy-text-soft);
}

.app-badge {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(250, 204, 21, 0.45);
    color: var(--qy-accent);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.glass-card {
    border-radius: 1.5rem;
    border: 1px solid var(--qy-card-border);
    background: var(--qy-card-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    font-size: 0.88rem;
    font-weight: 700;
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
}

.text-soft {
    color: var(--qy-text-soft);
}

.app-footer {
    color: var(--qy-text-soft);
}

@media (max-width: 575px) {
    .qy-brand {
        gap: 0.55rem;
    }

    .qy-brand-logo {
        width: min(170px, 58vw);
        max-height: 54px;
    }

    .qy-brand-compact .qy-brand-logo {
        width: min(132px, 48vw);
        max-height: 42px;
    }

    .qy-brand-page {
        width: min(100% - 1rem, 1180px);
        margin-top: 0.5rem;
    }

    .qy-brand-text {
        display: none;
    }

    .app-badge {
        font-size: 0.72rem;
        padding: 0.38rem 0.65rem;
    }
}