/* =========================================================
   Al-Jadeed-Trust — Home (exact layout)
   Navbar → Welcome → Paragraph → 4-image auto scroll → Buttons → Footer
   ========================================================= */
:root {
    --bg: #07111F;
    --bg-soft: #0C1829;
    --ink: #F4F7FB;
    --muted: #93A4B8;
    --cyan: #06B6D4;
    --gold: #FACC15;
    --line: rgba(148, 163, 184, 0.18);
    --nav-h: 74px;
    --font: 'Manrope', system-ui, sans-serif;
    --display: 'Cormorant Garamond', Georgia, serif;
    --ui: 'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-home {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(6,182,212,.18), transparent 45%),
        radial-gradient(ellipse at 100% 40%, rgba(250,204,21,.08), transparent 35%),
        linear-gradient(180deg, #07111F 0%, #0A1526 50%, #07111F 100%);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .4;
    animation: floatOrb 14s ease-in-out infinite;
}
.o1 { width: 280px; height: 280px; background: #06B6D4; top: 10%; left: -80px; }
.o2 { width: 220px; height: 220px; background: #FACC15; bottom: 20%; right: -60px; animation-delay: -5s; }
.o3 { width: 160px; height: 160px; background: #10B981; top: 55%; left: 40%; opacity: .22; animation-delay: -9s; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(20px,-18px); }
}

/* ========== NAVBAR ========== */
.topnav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-h);
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.topnav.is-solid {
    background: rgba(7, 17, 31, 0.9);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.topnav-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
}
.brand-logo-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, rgba(6,182,212,.28), rgba(7,17,31,.95));
    box-shadow:
        0 0 0 1px rgba(6,182,212,.45),
        0 0 0 3px rgba(250,204,21,.18),
        0 0 22px rgba(6,182,212,.35);
    overflow: hidden;
    animation: logoGlow 3s ease-in-out infinite;
}
.brand-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(250,204,21,.35);
    pointer-events: none;
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
@keyframes logoGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(6,182,212,.4),
            0 0 0 3px rgba(250,204,21,.15),
            0 0 16px rgba(6,182,212,.28);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(6,182,212,.7),
            0 0 0 3px rgba(250,204,21,.3),
            0 0 28px rgba(6,182,212,.5);
    }
}
.topnav-name {
    font-family: var(--ui);
    font-weight: 800;
    font-size: clamp(.95rem, 2.5vw, 1.15rem);
    letter-spacing: .04em;
    color: #fff;
}
.topnav-name span {
    margin-left: .35rem;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(6,182,212,.45);
}

.topnav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(6,182,212,.35);
    background: linear-gradient(145deg, rgba(6,182,212,.12), rgba(255,255,255,.03));
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.topnav-toggle:hover {
    box-shadow: 0 0 22px rgba(6,182,212,.35);
    border-color: var(--cyan);
}
.topnav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
}
.topnav.is-open .topnav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav.is-open .topnav-toggle span:nth-child(2) { opacity: 0; }
.topnav.is-open .topnav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 998;
}
.nav-drawer {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    right: 1rem;
    z-index: 999;
    width: min(280px, calc(100vw - 2rem));
}
.nav-drawer-panel {
    border-radius: 20px;
    border: 1px solid rgba(6,182,212,.3);
    background: rgba(10, 20, 36, 0.96);
    backdrop-filter: blur(18px);
    padding: 1rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    animation: drawerIn .35s ease;
}
@keyframes drawerIn {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.nav-drawer-label {
    margin: 0 0 .65rem;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--ui);
}
.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    margin-bottom: .45rem;
    font-family: var(--ui);
    font-weight: 700;
    font-size: .92rem;
    background: linear-gradient(120deg, rgba(6,182,212,.18), rgba(6,182,212,.05));
    border: 1px solid rgba(6,182,212,.28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nav-drawer-link.gold {
    background: linear-gradient(120deg, rgba(250,204,21,.2), rgba(250,204,21,.05));
    border-color: rgba(250,204,21,.35);
}
.nav-drawer-link:hover {
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(6,182,212,.2);
}
.nav-drawer-link.gold:hover { box-shadow: 0 0 20px rgba(250,204,21,.2); }
.nav-drawer-link i { color: var(--cyan); }
.nav-drawer-link.gold i { color: var(--gold); }

/* ========== MAIN ========== */
.home-main {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem;
}

.welcome-block {
    text-align: center;
    margin-bottom: 2.25rem;
}
.welcome-label {
    margin: 0 0 .75rem;
    font-family: var(--ui);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .32em;
    color: var(--cyan);
}
.welcome-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 11vw, 5.6rem);
    line-height: .95;
    letter-spacing: .01em;
}
.welcome-title span { display: block; }
.welcome-title .accent {
    background: linear-gradient(100deg, #67E8F9, #06B6D4 40%, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.welcome-copy {
    margin: 1.25rem auto 0;
    max-width: 38rem;
    color: var(--muted);
    font-size: clamp(.98rem, 2.2vw, 1.08rem);
    line-height: 1.75;
    font-weight: 500;
}

/* ========== GALLERY ========== */
.gallery-block { margin-bottom: 2.25rem; }
.gallery-frame {
    position: relative;
    height: clamp(240px, 52vw, 420px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0,0,0,.4);
    background: #0A1526;
}
.gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .85s ease, visibility .85s ease;
}
.gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 6s ease;
}
.gallery-slide.is-active img { transform: scale(1); }
.gallery-slide figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.4rem 1.35rem 1.7rem;
    background: linear-gradient(180deg, transparent, rgba(7,17,31,.92));
}
.gallery-slide small {
    display: block;
    font-family: var(--ui);
    font-size: .7rem;
    letter-spacing: .18em;
    color: var(--cyan);
    margin-bottom: .25rem;
}
.gallery-slide strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
}
.gallery-slide span {
    color: var(--muted);
    font-size: .9rem;
}
.gal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(7,17,31,.55);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.gal-btn:hover { background: rgba(6,182,212,.3); box-shadow: 0 0 18px rgba(6,182,212,.35); }
.gal-btn.prev { left: .85rem; }
.gal-btn.next { right: .85rem; }
.gal-dots {
    position: absolute;
    left: 50%;
    bottom: .85rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .4rem;
}
.gal-dots button {
    width: 8px; height: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    padding: 0;
    cursor: pointer;
}
.gal-dots button.is-on {
    width: 24px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(6,182,212,.5);
}
.gal-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255,255,255,.08);
    z-index: 3;
}
.gal-progress i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--gold));
}

/* ========== TEAM & COMMISSION ========== */
.team-comm-block {
    margin: 1.5rem 0 2.25rem;
}
.team-comm-head {
    text-align: center;
    margin-bottom: 1.25rem;
}
.team-comm-title {
    margin: 0 0 .55rem;
    font-family: var(--display);
    font-size: clamp(1.75rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}
.team-comm-title .accent { color: var(--gold); }
.team-comm-copy {
    margin: 0 auto;
    max-width: 42ch;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}
.team-comm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}
.team-comm-card {
    position: relative;
    min-height: 220px;
}
.team-comm-card.tone-l1 {
    --tc: #22D3EE;
    --tc2: #0891B2;
}
.team-comm-card.tone-l2 {
    --tc: #FACC15;
    --tc2: #D97706;
}
.team-comm-frame {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    background: linear-gradient(135deg, var(--tc), var(--tc2));
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.team-comm-frame::after {
    content: '';
    position: absolute;
    inset: 1.6px;
    border-radius: 18px;
    clip-path: polygon(0 0, calc(100% - 16.5px) 0, 100% 16.5px, 100% 100%, 16.5px 100%, 0 calc(100% - 16.5px));
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 55%),
        linear-gradient(165deg, #121A2E, #0B1220);
}
.team-comm-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1.15rem 1.05rem 1.2rem;
    height: 100%;
}
.team-comm-ico {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: .35rem;
    color: #07111F;
    font-size: 1.05rem;
    background: linear-gradient(145deg, var(--tc), var(--tc2));
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.team-comm-inner small {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc);
}
.team-comm-inner strong {
    font-family: var(--ui);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.team-comm-inner > p {
    margin: 0 0 .55rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    flex: 1;
}
.team-comm-rate {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .7rem .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}
.team-comm-rate em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.team-comm-rate b {
    font-family: var(--ui);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--tc);
    line-height: 1;
}
@media (max-width: 560px) {
    .team-comm-grid { grid-template-columns: 1fr; }
}

/* ========== UNIQUE BUTTONS ========== */
.cta-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.btn-unique {
    position: relative;
    overflow: hidden;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 1.05rem 1.8rem;
    font-family: var(--ui);
    font-weight: 700;
    font-size: .95rem;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.btn-unique:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.08);
}
.btn-unique i { font-size: .95rem; }
.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}
.btn-cyan {
    background: linear-gradient(120deg, #0E7490, #06B6D4 50%, #67E8F9);
    color: #042F2E;
    box-shadow: 0 12px 30px rgba(6,182,212,.28);
}
.btn-cyan:hover { box-shadow: 0 0 34px rgba(6,182,212,.55), 0 14px 30px rgba(6,182,212,.3); }
.btn-gold {
    background: linear-gradient(120deg, #CA8A04, #FACC15 55%, #FEF08A);
    color: #1C1917;
    box-shadow: 0 12px 30px rgba(250,204,21,.22);
}
.btn-gold:hover { box-shadow: 0 0 34px rgba(250,204,21,.5), 0 14px 30px rgba(250,204,21,.25); }

/* ========== FOOTER ========== */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 3.5rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(7,17,31,0), #040B14 28%);
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    width: 520px; height: 260px;
    left: 50%; top: -140px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(6,182,212,.18), transparent 70%);
    pointer-events: none;
}
.footer-shell {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 1.25rem;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.footer-logo-wrap {
    width: 78px;
    height: 78px;
    box-shadow:
        0 0 0 1px rgba(6,182,212,.5),
        0 0 0 4px rgba(250,204,21,.2),
        0 0 30px rgba(6,182,212,.4);
}
.footer-brand strong {
    display: block;
    font-family: var(--ui);
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .2rem;
    background: linear-gradient(100deg, #fff 20%, #67E8F9 55%, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-brand p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-social { display: flex; gap: .55rem; }
.footer-social a {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--cyan);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.footer-social a:hover {
    transform: translateY(-3px);
    background: rgba(6,182,212,.12);
    box-shadow: 0 0 18px rgba(6,182,212,.3);
}

.footer-feedback {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
}
.footer-rate-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(10, 20, 36, 0.75);
    backdrop-filter: blur(14px);
    padding: 1.35rem 1.25rem;
}
.footer-rate-card h6 {
    margin: 0 0 .35rem;
    font-family: var(--ui);
    font-size: .95rem;
    font-weight: 750;
    color: #fff;
}
.footer-rate-sub {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .85rem;
}
.rate-stars {
    display: flex;
    gap: .35rem;
    margin-bottom: .9rem;
}
.rate-star {
    width: 42px; height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: #64748B;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.rate-star:hover,
.rate-star.is-on {
    color: var(--gold);
    background: rgba(250,204,21,.12);
    box-shadow: 0 0 16px rgba(250,204,21,.2);
    transform: translateY(-2px) scale(1.05);
}
.rate-star.is-on i { font-weight: 900; }
.rate-star.is-on i::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.rate-summary {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    color: var(--muted);
    font-size: .88rem;
}
.rate-summary strong {
    font-family: var(--ui);
    font-size: 1.7rem;
    color: var(--gold);
}

.footer-comment-form { display: grid; gap: .65rem; }
.footer-comment-form input,
.footer-comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0,0,0,.28);
    color: #fff;
    padding: .75rem .9rem;
    font-family: var(--font);
    font-size: .9rem;
    outline: none;
    resize: vertical;
}
.footer-comment-form input:focus,
.footer-comment-form textarea:focus {
    border-color: rgba(6,182,212,.5);
    box-shadow: 0 0 0 3px rgba(6,182,212,.12);
}
.footer-comment-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-family: var(--ui);
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    background: linear-gradient(120deg, #0891B2, #06B6D4);
    color: #042F2E;
    transition: transform .2s ease, box-shadow .2s ease;
}
.footer-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(6,182,212,.4);
}
.footer-comments {
    margin-top: 1rem;
    display: grid;
    gap: .65rem;
    max-height: 180px;
    overflow: auto;
}
.footer-comment-item {
    padding: .75rem .85rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}
.footer-comment-item strong {
    display: block;
    font-size: .86rem;
    margin-bottom: .2rem;
    color: var(--cyan);
}
.footer-comment-item p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
}
.footer-comment-empty {
    color: var(--muted);
    font-size: .84rem;
    margin: .35rem 0 0;
}

.footer-links-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0 .5rem;
    border-top: 1px solid var(--line);
}
.footer-links-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: .65rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(6,182,212,.3);
    background: rgba(6,182,212,.08);
    color: #E2E8F0;
    font-family: var(--ui);
    font-size: .85rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.footer-links-strip a:hover {
    color: #fff;
    background: rgba(6,182,212,.18);
    border-color: rgba(6,182,212,.55);
    box-shadow: 0 0 18px rgba(6,182,212,.25);
    transform: translateY(-2px);
}

.footer-rights {
    text-align: center;
    padding: 1.35rem 1rem 1.7rem;
    background: rgba(0,0,0,.28);
    border-top: 1px solid var(--line);
}
.footer-rights-line {
    width: 64px;
    height: 3px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--gold));
    box-shadow: 0 0 14px rgba(6,182,212,.4);
}
.footer-rights p {
    margin: 0;
    font-family: var(--ui);
    font-size: .95rem;
    color: #E2E8F0;
}
.footer-rights strong {
    background: linear-gradient(100deg, #67E8F9, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-rights-sub {
    margin-top: .35rem !important;
    color: var(--muted) !important;
    font-size: .82rem !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 700px) {
    .footer-feedback { grid-template-columns: 1fr; }
    .btn-unique { width: 100%; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
    .topnav-name { font-size: .88rem; }
}

/* ===== Profile panel (logged-in) ===== */
.profile-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(6,182,212,.4);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(6,182,212,.2), rgba(250,204,21,.08));
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 0 18px rgba(6,182,212,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(6,182,212,.4);
}
.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--ui);
    font-weight: 800;
    font-size: .95rem;
    color: #042F2E;
    background: linear-gradient(135deg, #06B6D4, #67E8F9);
}
.profile-avatar.lg {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
}
.profile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 998;
}
.profile-panel {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    right: 1rem;
    z-index: 999;
    width: min(320px, calc(100vw - 2rem));
    border-radius: 22px;
    border: 1px solid rgba(6,182,212,.3);
    background: rgba(8, 16, 30, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    padding: 1rem;
    animation: drawerIn .35s ease;
}
.profile-panel-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
}
.profile-panel-head strong {
    display: block;
    font-family: var(--ui);
    font-size: .95rem;
}
.profile-panel-head small {
    color: var(--muted);
    font-size: .75rem;
}
.profile-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    cursor: pointer;
}
.profile-close:hover { color: #fff; background: rgba(239,68,68,.2); }
.profile-rows { display: grid; gap: .65rem; margin-bottom: 1rem; }
.profile-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .8rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}
.profile-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(6,182,212,.12);
    color: var(--cyan);
    flex-shrink: 0;
}
.profile-row em {
    display: block;
    font-style: normal;
    font-size: .72rem;
    color: var(--muted);
    margin-bottom: .15rem;
}
.profile-row strong {
    font-size: .9rem;
    font-weight: 700;
    word-break: break-all;
}
.profile-pass-wrap {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.profile-eye {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: .15rem;
}
.profile-eye:hover { color: var(--cyan); }
.profile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 14px;
    font-family: var(--ui);
    font-weight: 750;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(120deg, #DC2626, #EF4444);
    box-shadow: 0 10px 24px rgba(239,68,68,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.profile-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(239,68,68,.35);
}

@media (max-width: 480px) {
    .brand-logo-wrap {
        width: 44px;
        height: 44px;
    }
    .topnav-name {
        font-size: .8rem;
    }
    .profile-btn {
        width: 42px;
        height: 42px;
    }
    .profile-avatar {
        width: 30px;
        height: 30px;
        font-size: .85rem;
    }
    .profile-panel {
        right: max(.75rem, env(safe-area-inset-right));
        left: max(.75rem, env(safe-area-inset-left));
        width: auto;
        max-height: calc(100vh - var(--nav-h) - 1.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 360px) {
    .topnav-inner {
        padding: 0 .85rem;
    }
    .topnav-brand {
        gap: .55rem;
    }
}

/* Shared utilities for login / dashboard pages */
.hx-label {
    font-family: var(--ui);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
}
.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    border-radius: 999px;
    font-family: var(--ui);
    font-weight: 700;
    font-size: .85rem;
    border: 1px solid transparent;
}
.hx-btn-sm { padding: .5rem .9rem; font-size: .8rem; }
.hx-btn-cyan {
    background: linear-gradient(120deg, #0891B2, #06B6D4);
    color: #042F2E;
}
.hx-btn-ghost {
    background: rgba(255,255,255,.04);
    border-color: rgba(6,182,212,.35);
    color: #fff;
}
.hx-btn-gold {
    background: linear-gradient(120deg, #EAB308, #FACC15);
    color: #1C1917;
}
