/* ============ Madreseyar Header & Footer ============ */

.syh, .syf {
    --sy-navy: #0b1220;
    --sy-navy-2: #101b31;
    --sy-blue: #2563eb;
    --sy-blue-soft: #60a5fa;
    --sy-gold: #f59e0b;
    --sy-gold-2: #fcd34d;
    --sy-line: rgba(148, 163, 184, 0.20);
    --sy-muted: #94a3b8;
    direction: rtl;
    font-family: inherit;
    box-sizing: border-box;
}

.syh *, .syf * { box-sizing: border-box; }

.syh-wrap, .syf-wrap {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* ---------------- HEADER ---------------- */

.syh-spacer { height: 74px; }

.syh {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1030;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sy-line);
    transition: 0.3s ease;
}

.syh::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sy-gold), var(--sy-blue), transparent);
    opacity: 0.85;
}

.syh.is-stuck {
    background: rgba(11, 18, 32, 0.98);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.45);
}

.syh-bar {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* brand */
.syh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.syh-brand:hover { text-decoration: none; }

.syh-brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(245, 158, 11, 0.14));
    border: 1px solid rgba(96, 165, 250, 0.30);
    overflow: hidden;
    flex: 0 0 auto;
}

.syh-brand__logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.syh-brand__txt b {
    display: block;
    color: #fff;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.6;
}

.syh-brand__txt span {
    display: block;
    color: var(--sy-muted);
    font-size: 11.5px;
    line-height: 1.7;
}

/* actions */
.syh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.syh-btn {
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: 0.24s ease;
}

.syh-btn:hover { text-decoration: none; transform: translateY(-2px); }

.syh-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sy-line);
    color: #e2e8f0;
}

.syh-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(96, 165, 250, 0.45);
}

.syh-btn--gold {
    background: linear-gradient(135deg, var(--sy-gold-2), var(--sy-gold));
    color: #1a1405;
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.30);
}

.syh-btn--gold:hover { color: #1a1405; box-shadow: 0 14px 34px rgba(245, 158, 11, 0.42); }

.syh-btn--danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.28);
}

.syh-btn--danger:hover { color: #fff; }

.syh-logout { margin: 0; }

/* mobile toggle */
.syh-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sy-line);
    color: #e2e8f0;
    font-size: 17px;
    cursor: pointer;
}

.syh-mobile {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid var(--sy-line);
}

.syh-mobile.is-open { display: block; }

.syh-mobile__inner {
    padding-top: 16px;
    display: grid;
    gap: 10px;
}

.syh-mobile .syh-btn,
.syh-mobile .syh-logout .syh-btn { width: 100%; justify-content: center; }

@media (max-width: 767px) {
    .syh-actions { display: none; }
    .syh-toggle { display: grid; place-items: center; }
    .syh-brand__txt span { display: none; }
}

/* ---------------- FOOTER ---------------- */

.syf {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 70px;
    color: #cbd5e1;
    background:
        radial-gradient(900px 400px at 88% -20%, rgba(245, 158, 11, 0.10), transparent 60%),
        radial-gradient(900px 400px at 8% 120%, rgba(37, 99, 235, 0.16), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #070d18 100%);
}

.syf::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sy-gold), var(--sy-blue), transparent);
}

.syf-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-bottom: 46px;
}

.syf-col h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.syf-col h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sy-gold), var(--sy-blue));
}

.syf-about p {
    margin: 0 0 18px;
    color: var(--sy-muted);
    font-size: 13.8px;
    line-height: 2.2;
}

.syf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.syf-badge {
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.26);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
}

.syf-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.syf-links li { margin-bottom: 12px; }

.syf-links a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    line-height: 2;
    text-decoration: none;
    transition: 0.22s ease;
}

.syf-links a i { color: var(--sy-gold); font-size: 11px; }

.syf-links a:hover {
    color: #fff;
    transform: translateX(-4px);
    text-decoration: none;
}

.syf-cta {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sy-gold-2), var(--sy-gold));
    color: #1a1405;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
    transition: 0.24s ease;
}

.syf-cta:hover { color: #1a1405; transform: translateY(-2px); text-decoration: none; }

/* contact */
.syf-contact { margin: 0; padding: 0; list-style: none; }

.syf-contact li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.syf-contact i.syf-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sy-line);
    color: var(--sy-blue-soft);
    display: grid;
    place-items: center;
    font-size: 14px;
    flex: 0 0 auto;
}

.syf-contact b {
    display: block;
    color: #fff;
    font-size: 14.5px;
    line-height: 1.8;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
}

.syf-contact small {
    display: block;
    color: var(--sy-muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.syf-msgs {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sy-line);
}

.syf-msgs span {
    display: block;
    margin-bottom: 8px;
    color: var(--sy-muted);
    font-size: 12.5px;
    line-height: 1.9;
}

.syf-msgs b {
    color: #fcd34d;
    font-size: 14px;
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* bottom */
.syf-bottom {
    padding: 24px 0 28px;
    border-top: 1px solid var(--sy-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.syf-copy {
    color: var(--sy-muted);
    font-size: 13px;
    line-height: 2.1;
}

.syf-copy a { color: #bfdbfe; text-decoration: none; }
.syf-copy a:hover { color: #fff; text-decoration: none; }

.syf-seal {
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    display: inline-flex;
    line-height: 0;
}

.syf-seal img { max-height: 88px; width: auto; }

@media (max-width: 991px) {
    .syf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .syf { padding-top: 52px; }
    .syf-grid { grid-template-columns: 1fr; gap: 30px; }
    .syf-bottom { justify-content: center; text-align: center; }
}