/* brand2: csu.uz-style background, footer, cookie notice. Public pages only (body.cc); dashboard/staff (body.lg-page) untouched. */

/* ---------- 3. BACKGROUND ---------- */
[data-bs-theme=dark] body.cc { background-color: #040d14; }
[data-bs-theme=dark] body.cc::before {
    background:
        radial-gradient(60vmax 60vmax at -6% 38%, rgba(20,184,166,.30), transparent 62%),
        radial-gradient(52vmax 52vmax at 106% 62%, rgba(190,45,150,.24), transparent 62%),
        radial-gradient(40vmax 40vmax at 100% 0%, rgba(110,50,170,.14), transparent 65%),
        linear-gradient(180deg, #05101a 0%, #061620 55%, #07131c 100%);
}
[data-bs-theme=light] body.cc { background-color: #e9f3f4; }
[data-bs-theme=light] body.cc::before {
    background:
        radial-gradient(60vmax 60vmax at -6% 38%, rgba(45,212,191,.34), transparent 62%),
        radial-gradient(52vmax 52vmax at 106% 62%, rgba(232,121,249,.26), transparent 62%),
        linear-gradient(180deg, #eef6f8 0%, #e6f1f3 100%);
}
body.cc::after { display: none; }
body.cc .hero .orb-1 { background: #14b8a6; }
body.cc .hero .orb-2 { background: #c026d3; }
body.cc .hero .orb-3 { background: #0f766e; }
[data-bs-theme=dark] body.cc .hero .orb { opacity: .32; }

/* ---------- 2. FOOTER ---------- */
[data-bs-theme=dark] body.cc .cc-footer.cu-footer {
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%),
                linear-gradient(135deg, rgba(8,32,40,.92) 0%, rgba(7,20,32,.92) 55%, rgba(38,14,40,.9) 100%);
    border-color: rgba(255,255,255,.12);
}
[data-bs-theme=light] body.cc .cc-footer.cu-footer {
    background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,0) 45%),
                linear-gradient(135deg, rgba(214,240,238,.9), rgba(234,244,248,.9) 55%, rgba(246,226,248,.85));
}
.cu-footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
@media (min-width: 768px)  { .cu-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px)  { .cu-footer-grid { grid-template-columns: 1.1fr 1fr 1.2fr 1.3fr; gap: 2rem; } }
.cu-flogo { height: 40px; width: auto; display: block; }
.cu-fcopy { font-size: .85rem; color: var(--lg-muted); max-width: 240px; }
body.cc .cu-footer .cu-flabel { font-size: .8rem; color: var(--lg-muted); margin-bottom: .2rem; }
body.cc .cu-footer .cu-fval { display: block; font-size: 1rem; font-weight: 600; color: var(--lg-text); text-decoration: none; line-height: 1.35; }
body.cc .cu-footer a.cu-fval:hover { color: var(--cc-accent); }
.cu-social { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .35rem; }
body.cc .cu-footer .cu-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
    color: var(--lg-text); background: var(--lg-fill-2); border: 1px solid var(--lg-border); text-decoration: none; transition: .2s;
}
body.cc .cu-footer .cu-social a:hover { background: var(--cc-accent); color: #fff; border-color: transparent; transform: translateY(-2px); }
.cu-fmap { position: relative; height: 190px; border-radius: 22px; overflow: hidden; border: 1px solid var(--lg-border); box-shadow: var(--lg-sh); background: var(--lg-fill); }
.cu-fmap iframe { width: 100%; height: 100%; border: 0; display: block; }
body.cc .cu-footer .cu-fmap-open {
    position: absolute; left: 10px; bottom: 10px; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(8,20,32,.78); color: #fff; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.cc .cu-footer .cu-fmap-open:hover { color: #fff; background: rgba(8,20,32,.92); }

/* ---------- 1. COOKIE NOTICE ---------- */
.cu-cookie {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 1045;
    width: min(620px, calc(100% - 24px)); transform: translate(-50%, 140%); opacity: 0;
    display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem .65rem 1rem; border-radius: 999px;
    background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%), var(--lg-fill-2);
    -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--lg-border); box-shadow: var(--lg-sh); color: var(--lg-text); font-size: .88rem;
    transition: transform .5s cubic-bezier(.22,.9,.3,1), opacity .4s;
}
[data-bs-theme=dark] .cu-cookie { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%), rgba(10,24,34,.72); }
.cu-cookie[hidden] { display: none; }
.cu-cookie.show { transform: translate(-50%, 0); opacity: 1; }
.cu-cookie.hide { transform: translate(-50%, 140%); opacity: 0; }
.cu-cookie-ic { font-size: 1.2rem; color: var(--cc-accent); flex: none; }
.cu-cookie-txt { flex: 1; min-width: 0; line-height: 1.3; }
.cu-cookie-ok { flex: none; border: 0; border-radius: 999px; padding: .5rem 1.05rem; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: linear-gradient(90deg, #14b8a6, #3b82f6); }
.cu-cookie-ok:hover { filter: brightness(1.08); }
.cu-cookie-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--lg-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cu-cookie-x:hover { background: var(--lg-fill-2); color: var(--lg-text); }
@media (max-width: 768px) {
    /* sit above the floating tab bar, compact so it never covers page buttons */
    .cu-cookie { bottom: calc(var(--lg-tab-h, 66px) + 24px + env(safe-area-inset-bottom, 0px)); border-radius: 22px; padding: .6rem .6rem .6rem .8rem; font-size: .8rem; gap: .5rem; }
    .cu-cookie-ic { display: none; }
    .cu-cookie-ok { padding: .45rem .85rem; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .cu-cookie { transition: opacity .2s; } }
