/* Shared base styles: page styles outside this layer take precedence. */

:root {
    --bg-dark: #0f0f11;
    --card-bg: #18181c;
    --card-hover: #222228;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --border-gold: rgba(212, 175, 55, .25);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, .15);
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition: all .35s cubic-bezier(.4, 0, .2, 1)
}

body.light-mode {
    --bg-dark: #f8f9fa;
    --card-bg: #fff;
    --card-hover: #f1f3f5;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border-gold: rgba(191, 149, 63, .4)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Cairo, Arial, sans-serif
}

body {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .18), transparent 28%),
        linear-gradient(180deg, #0f0f11 0%, #14151a 100%);
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition)
}

body.light-mode {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, .16), transparent 28%),
        #f8f9fa
}

a {
    color: inherit;
    text-decoration: none
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(15, 15, 17, .88);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gold)
}

body.light-mode .navbar {
    background: rgba(248, 249, 250, .9)
}

.nav-right,
.nav-actions,
.actions,
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px
}

.menu-btn,
.icon-btn,
.btn {
    border: 1px solid var(--border-gold);
    background: transparent;
    color: var(--gold-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition)
}

.user-menu-floating {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
}

.menu-btn {
    font-size: 1.25rem;
    padding: 7px 12px
}

.icon-btn {
    font-size: 1.15rem;
    padding: 8px 11px
}

.menu-btn:hover,
.icon-btn:hover {
    background: var(--gold-primary);
    color: #000
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 34px 0
}

.hero {
    position: relative;
    padding: 60px 20px 54px;
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, .06), rgba(212, 175, 55, 0)),
        rgba(255, 255, 255, .01);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 18px 8% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .5), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, .4);
    background: rgba(212, 175, 55, .08);
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: .02em
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
    line-height: 1.4
}

.hero p {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: auto;
    color: var(--text-muted);
    line-height: 2
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--gold-primary);
    color: #000;
    font-weight: 800
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold)
}

.btn.secondary {
    background: transparent;
    color: var(--gold-primary)
}

.btn.danger {
    background: #5b2020;
    color: #fff;
    border-color: #8b3333
}

.card {
    background: rgba(24, 24, 28, .9);
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    transition: var(--transition)
}

.card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(212, 175, 55, .12)
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px
}

.muted {
    color: var(--text-muted);
    line-height: 1.8
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: .82rem
}

.price {
    font-size: 1.25rem;
    color: var(--gold-light);
    font-weight: 900
}

.system-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-gold);
    margin-bottom: 12px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

label {
    font-weight: 700
}

.input,
.select,
.textarea {
    width: 100%;
    background: #111116;
    color: var(--text-main);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 11px 13px;
    outline: none
}

.textarea {
    min-height: 130px;
    resize: vertical
}

body.light-mode .input,
body.light-mode .select,
body.light-mode .textarea {
    background: #fff
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .1)
}

.table-wrap {
    overflow: auto;
    margin-top: 18px
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px
}

.table th,
.table td {
    padding: 13px;
    border-bottom: 1px solid var(--border-gold);
    text-align: right
}

.table th {
    color: var(--gold-light)
}

.empty {
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md)
}

.side-menu {
    position: fixed;
    top: 0;
    right: -330px;
    width: 310px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-gold);
    z-index: 1200;
    padding: 24px;
    transition: right .3s;
    overflow: auto
}

.side-menu.open {
    right: 0
}

.side-menu h2 {
    margin-bottom: 18px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.side-menu a {
    display: block;
    padding: 13px;
    border-radius: 10px;
    margin: 5px 0;
    color: var(--text-main)
}

.side-menu a:hover {
    background: rgba(212, 175, 55, .1);
    color: var(--gold-light)
}

.side-menu-group-title {
    margin: 16px 0 7px;
    color: var(--gold-primary, #d4af37);
    font-size: .9rem;
    font-weight: 800
}

.side-menu-divider {
    border: 0;
    height: 1px;
    margin: 17px 0 12px;
    background: linear-gradient(90deg, transparent, var(--gold-primary, #d4af37), transparent)
}

.close-menu {
    width: 100%;
    margin-bottom: 12px
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: .3s
}

.overlay.show {
    opacity: 1;
    pointer-events: auto
}

.footer {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--border-gold);
    color: var(--text-muted);
    margin-top: 40px
}

.footer-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
    margin: 18px auto 0
}

.social-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 2px 2px rgba(255,255,255,.35), inset 0 -4px 6px rgba(0,0,0,.25), 0 5px 0 rgba(0,0,0,.35), 0 9px 16px rgba(0,0,0,.25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

.social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
    box-shadow: inset 0 2px 2px rgba(255,255,255,.4), inset 0 -4px 6px rgba(0,0,0,.2), 0 8px 0 rgba(0,0,0,.3), 0 13px 20px rgba(0,0,0,.3)
}

.social-icon .social-brand-icon,
.social-icon .social-fallback { grid-area: 1 / 1 }
.social-icon .social-fallback { text-shadow: 0 1px 2px rgba(0,0,0,.3) }
.social-fonts-ready .social-icon .social-fallback { display: none }
.social-icon.is-unconfigured { cursor: default; opacity: .8 }
.social-whatsapp { background: linear-gradient(145deg,#46e083,#128c4a) }
.social-facebook { background: linear-gradient(145deg,#5b9cff,#1456b8); font-family: Arial,sans-serif }
.social-instagram { background: linear-gradient(145deg,#f9ce34,#ee2a7b 55%,#6228d7) }
.social-tiktok { background: linear-gradient(145deg,#383838,#050505) }
.social-x { background: linear-gradient(145deg,#555,#050505) }
.social-telegram { background: linear-gradient(145deg,#54c7f4,#087bb5) }

@media (prefers-reduced-motion: reduce) {
    .social-icon { transition: none }
}

.toast-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3000;
    display: grid;
    gap: 8px
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-gold)
}

.toast.error {
    border-color: #8b3333
}

.stat {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin-top: 5px
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px
}

.check {
    display: flex;
    align-items: center;
    gap: 8px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, .18)
}

.section-title h2 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    color: var(--gold-light);
    margin: 0
}

.status {
    font-weight: 800
}

.status.pending {
    color: #f0c75e
}

.status.confirmed,
.status.completed,
.status.delivered {
    color: #8fd694
}

.status.cancelled {
    color: #ef7777
}

.status.in_progress {
    color: #8fc7ef
}

@media(max-width:700px) {
    .navbar {
        padding: 13px 4%
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 40px 10px
    }

    .container {
        width: 94%;
        padding: 24px 0
    }

    .side-menu {
        width: min(310px, 86vw)
    }

    .actions,
    .toolbar {
        flex-wrap: wrap
    }

    .table {
        min-width: 650px
    }
}

/* Shared navigation, fields and contained layouts. Product sizing stays in index.css. */
.account-topbar {
    position: fixed;
    inset: 12px 14px auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 10px;
    min-height: 52px;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    background: var(--card-bg);
}
.account-topbar .menu-btn, .account-topbar .icon-btn { width: 44px; margin: 0; padding: 6px; }
.account-topbar .logo-text { min-width: 0; font-size: clamp(1rem,2vw,1.25rem); }
.navbar, .gallery-nav, .sector-nav { gap: 12px; }
.navbar .nav-right, .navbar .nav-actions { min-width: 0; }
.navbar .logo-text { font-size: clamp(1rem, 2vw, 1.35rem); overflow-wrap: anywhere; }
.grid > *, .form-grid > *, .field, .card { min-width: 0; }
.grid { grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.input, .select, .textarea { font-size: 1rem; min-width: 0; }
.btn, .icon-btn, .menu-btn { min-height: 44px; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 3px; }
.side-menu { height: 100dvh; max-width: 90vw; overscroll-behavior: contain; }
.side-menu:not(.open) { visibility: hidden; }
.side-menu.open { visibility: visible; }
.side-menu a[aria-current="page"] { background: rgba(212,175,55,.12); color: var(--gold-light); border-inline-start: 3px solid var(--gold-primary); }
.side-menu .close-menu { position: sticky; top: 0; background: var(--card-bg); z-index: 1; }
.card:has(form):hover, .card:has(.table-wrap):hover, .system-detail-grid > .card:hover { transform: none; }
.empty { grid-column: 1 / -1; overflow-wrap: anywhere; }
.toast-wrap { max-width: calc(100vw - 40px); }
@media(max-width:700px) {
    .section-title { flex-wrap: wrap; }
    .navbar { flex-wrap: wrap; }
    .toolbar > *, .actions > * { max-width: 100%; }
}

/* FORM SECTIONS — shared by system entry and customer registration. */
.form-page .form-shell { width: min(1040px,92%); display: grid; gap: 24px; }
.form-page .form-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; background: radial-gradient(ellipse at top right,rgba(212,175,55,.08),transparent 65%),var(--card-bg); border: 1px solid var(--border-gold); border-radius: 20px; }
.form-page .form-page-heading > div { min-width: 0; }
.form-page .form-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-primary); font-size: .8rem; font-weight: 700; }
.form-page .form-eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.form-page .form-page-heading h1 { margin: 8px 0; color: var(--gold-light); font-size: clamp(1.6rem,3.4vw,2.2rem); line-height: 1.5; }
.form-page .form-page-heading p { max-width: 650px; color: var(--text-muted); font-size: .9rem; line-height: 1.9; }
.form-page .form-back-link { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--gold-primary); font-size: .82rem; font-weight: 700; text-align: center; }
.form-page .form-context-note { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border-gold); border-radius: var(--radius-md); background: rgba(212,175,55,.035); color: var(--text-muted); font-size: .82rem; line-height: 1.8; }
.form-page .form-context-note > span { flex-shrink: 0; color: var(--gold-primary); font-size: 1.3rem; }
.form-page .form-section { min-width: 0; margin: 0; padding: 20px 24px 24px; background: var(--card-bg); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); }
.form-page .form-section legend { display: flex; align-items: center; gap: 10px; max-width: 100%; padding-inline: 8px; color: var(--gold-light); font-size: 1rem; font-weight: 800; line-height: 1.8; }
.form-page .form-section-number { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--border-gold); border-radius: 9px; background: var(--card-bg); color: var(--gold-primary); font: 700 .7rem Arial,sans-serif; }
.form-page .form-section-note { color: var(--text-muted); font-size: .8rem; font-weight: 400; line-height: 1.8; margin-bottom: 18px; }
.form-page .form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px 24px; }
.form-page .form-fields > * { min-width: 0; }
.form-page .form-fields .full { grid-column: 1 / -1; }
.form-page .form-fields label { color: var(--gold-light); font-size: .9rem; line-height: 1.8; }
.form-page .form-fields input, .form-page .form-fields select, .form-page .form-fields textarea { max-width: 100%; }
.form-page .form-fields :is(.input,.select) { min-height: 48px; }
.form-page .form-actions-panel { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; padding: 20px 24px; border: 1px solid var(--border-gold); border-radius: var(--radius-lg); background: var(--card-bg); }
.form-page .form-actions-panel > * { min-width: 0; max-width: 100%; }
.form-page .form-actions-panel .form-section-note { margin: 4px 0 0; }
.form-page .form-action-label { color: var(--gold-light); font-size: .9rem; font-weight: 700; }
.form-page .form-submit { min-height: 48px; gap: 12px; padding-inline: 24px; font-size: .95rem; }
.form-page .form-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form-page .form-result { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--border-gold); color: var(--text-muted); font-size: .8rem; line-height: 1.8; }
.form-page .form-error { color: #ef9b93; font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.form-page .form-error:empty { display: none; }
.form-page .form-error:not(:empty) { padding: 14px 18px; border: 1px solid rgba(239,119,119,.35); border-radius: var(--radius-md); background: rgba(239,119,119,.06); }
body.light-mode.form-page .form-page-heading h1, body.light-mode.form-page .form-section legend, body.light-mode.form-page .form-fields label, body.light-mode.form-page .form-action-label { color: #795b10; }
body.light-mode.form-page .form-error { color: #a3291c; }
@media(max-width:700px) {
    .form-page .form-shell { width: 94%; gap: 18px; }
    .form-page .form-page-heading { flex-direction: column; align-items: stretch; padding: 22px 18px; gap: 12px; }
    .form-page .form-back-link { align-self: flex-start; }
    .form-page .form-section { padding: 16px 18px 20px; }
    .form-page .form-section legend { font-size: .95rem; gap: 8px; }
    .form-page .form-fields { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .form-page .form-actions-panel { padding: 18px; }
    .form-page .form-submit { width: 100%; }
}


.site-brand-logo { display:inline-block; vertical-align:middle; object-fit:contain; margin-inline-end:8px; flex-shrink:0; }

.system-card button.badge-code, .gallery-card button.badge-code { cursor:pointer; font:inherit; font-size:12px; min-height:40px; z-index:3; pointer-events:auto; }
.system-card button.badge-code:focus-visible, .gallery-card button.badge-code:focus-visible { outline:2px solid var(--gold-light); outline-offset:3px; }



.session-logout-link { margin-block-start:16px; min-height:44px; cursor:pointer; }

/* Reference shell: menu / brand / theme. Page content and palettes remain local. */
.sg-site-header {display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,auto) minmax(44px,1fr);align-items:center;gap:14px;width:100%;padding:12px clamp(14px,4vw,56px);background:var(--card-bg);color:var(--text-main);border-bottom:1px solid var(--border-gold);flex:0 0 auto;min-height:72px;position:relative;z-index:1000;}
.sg-site-header .sg-shell-menu,.sg-site-header .sg-shell-home {justify-self:start;}
.sg-site-header .sg-shell-theme {justify-self:end;}
.sg-site-header .sg-shell-brand {display:flex;align-items:center;justify-content:center;min-width:0;text-align:center;text-decoration:none;color:var(--gold-primary);font-weight:800;font-size:clamp(17px,2vw,23px);line-height:1.6;overflow-wrap:anywhere;}
.sg-site-header :is(button,.sg-shell-home) {min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-gold);border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit;padding:8px 12px;}
.sg-site-header :is(button,a):focus-visible {outline:2px solid var(--gold-primary);outline-offset:3px;}
.sg-site-footer {width:100%;flex-shrink:0;}
body.sg-shared-shell:has(.app) {display:flex;flex-direction:column;padding:0;gap:0;}
body.sg-shared-shell:has(.app) .app {height:calc(100dvh - 72px);width:min(1440px,100%);margin-inline:auto;flex:1;min-height:0;}
.sg-shared-shell [hidden] {display:none!important;}
@media(max-width:640px){.sg-site-header {min-height:64px;padding:10px 12px;gap:8px;}.sg-site-header :is(button,.sg-shell-home){padding:8px;}.sg-site-header .sg-shell-brand{font-size:16px;}body.sg-shared-shell:has(.app) .app{height:calc(100dvh - 64px);}}

.sg-floating-bot { position:fixed;inset-inline-end:max(18px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:950;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;border:1px solid var(--gold-primary);background:var(--card-bg);color:var(--gold-primary);box-shadow:0 6px 22px rgba(0,0,0,.25);text-decoration:none; }
.sg-floating-bot span { font-size:28px;line-height:1; }
.sg-floating-bot:focus-visible {outline:2px solid var(--gold-primary);outline-offset:4px;}
body:has(.message-form) .sg-floating-bot {bottom:calc(96px + env(safe-area-inset-bottom));}
body:has(.side-menu.open) .sg-floating-bot,body:has(dialog[open]) .sg-floating-bot {visibility:hidden;pointer-events:none;}
@media(max-width:640px){.sg-floating-bot {width:50px;height:50px;inset-inline-end:14px;bottom:calc(16px + env(safe-area-inset-bottom));}.sg-floating-bot span {font-size:25px;}body:has(.message-form) .sg-floating-bot {bottom:calc(90px + env(safe-area-inset-bottom));}}

/* Shared structure alignment: no palette changes. */
.sg-shared-shell .sg-secondary-header {position:relative;inset:auto;top:auto;width:100%;margin:0;z-index:100;flex-wrap:wrap;}
.sg-shared-shell .sg-secondary-header[hidden] {display:none!important;}
body.sg-account-layout {display:flex;flex-direction:column;align-items:center;padding:0;min-height:100dvh;gap:0;}
.sg-account-layout > main {flex:1;width:min(100% - 32px,520px);margin:24px auto;display:flex;flex-direction:column;justify-content:center;}
.sg-shared-shell .sg-site-footer {margin-top:auto;}
.sg-shared-shell .sg-secondary-header > :is(.nav-right,.nav-actions) {min-width:0;flex-wrap:wrap;}
@media(max-width:640px){.sg-secondary-header{padding-inline:14px;}.sg-account-layout > main{margin-block:18px;width:calc(100% - 24px);}}

/* Footer layout follows the approved reference and existing palette variables. */
footer.sg-reference-footer {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;width:100%;padding:36px 20px 30px;margin-top:40px;background:var(--card-bg);color:var(--text-muted);border-top:1px solid var(--border-gold);text-align:center;flex-shrink:0;}
.sg-reference-footer .sg-footer-contact-title {margin:0;font-size:14px;line-height:1.8;color:var(--text-muted);}
.sg-reference-footer .footer-social-links {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;order:1;margin:0;padding:0;}
.sg-reference-footer .social-icon {display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;border:1px solid var(--border-gold);border-radius:50%;color:var(--gold-primary);background:transparent;text-decoration:none;box-shadow:none;}
.sg-reference-footer .social-icon:hover {background:var(--gold-primary);color:var(--bg-dark);transform:translateY(-2px);}
.sg-reference-footer .sg-footer-copy {order:2;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;font-size:12px;line-height:1.9;max-width:100%;overflow-wrap:anywhere;}
.sg-reference-footer .sg-footer-copy [data-site-name] {color:var(--gold-light);font-weight:700;}
.sg-reference-footer .social-icon:focus-visible {outline:2px solid var(--gold-primary);outline-offset:4px;}
.sg-reference-footer [hidden] {display:none!important;}
@media(max-width:640px){footer.sg-reference-footer{padding:28px 16px;margin-top:28px;gap:16px;}.sg-reference-footer .sg-footer-copy{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.sg-reference-footer .social-icon{transition:none;transform:none;}}

/* Approved reference description spacing; content remains unchanged. */
:is(.hero,.hero-section,.gallery-intro,.sector-intro) > p {max-width:650px;margin-inline:auto;line-height:1.9;color:var(--text-muted);font-size:clamp(14px,1.2vw,17px);text-wrap:pretty;overflow-wrap:anywhere;}
:is(.hero,.hero-section,.gallery-intro,.sector-intro) > h1 {line-height:1.4;overflow-wrap:anywhere;margin-bottom:16px;}

.sg-floating-bot {background:var(--gold-gradient);color:#0d0d0d;border:1px solid rgba(255,255,255,.3);box-shadow:0 8px 25px rgba(212,175,55,.4);}
.sg-floating-bot span {display:inline-flex;align-items:center;justify-content:center;}
.sg-floating-bot svg {display:block;flex-shrink:0;}
