/* GateSync Pro v2.5 — Colorful Navy + Pastel Sparkline Desktop & Fixed-Nav Mobile App Shell */
.gatesync-shell, .gatesync-app-shell {
    background: #f4f6fb;
    color: #161b33;
    border-radius: 18px;
    margin: 0;
    padding: 0;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    border: 1px solid #dfe5f2;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.gatesync-app-shell *, .gatesync-app-shell *::before, .gatesync-app-shell *::after,
.gs-bottom-nav *, .gs-bottom-nav *::before, .gs-bottom-nav *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.gatesync-app-shell button, .gs-bottom-nav button {
    font-family: inherit;
    outline: none;
}

#wpbody-content .gatesync-app-shell {
    margin: 6px 10px 10px 0;
    width: calc(100% - 10px);
}

.gs-desktop-software {
    display: flex;
    flex-direction: row;
    min-height: 760px;
}

/* USER TICKET APP FRAME */
.gs-user-app {
    max-width: 460px;
    margin: 10px auto;
    height: 84vh;
    min-height: 600px;
    max-height: 820px;
    display: flex;
    flex-direction: column;
}
.gs-user-app .gs-workspace-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.gs-user-app .gs-workspace-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(135deg, #131734 0%, #1c244f 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 12px 14px 16px 14px;
}
.gs-user-app .gs-workspace-body {
    margin-top: -10px;
    background: #f4f6fb;
    border-radius: 18px 18px 0 0;
    position: relative;
    z-index: 2;
}
.gs-user-app .gs-app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -290px;
    z-index: 100005;
}
.gs-user-app .gs-app-sidebar.open { left: 0; }
.gs-user-app .gs-menu-btn,
.gs-user-app .gs-drawer-close,
.gs-user-app .gs-bottom-nav { display: flex; }
.gs-user-app .gs-bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 95;
    flex-direction: column;
}
.gs-user-app .gs-topbar-mob-sub { display: flex; }

/* ALWAYS-OPEN DARK NAVY SIDEBAR (DESKTOP >= 860px) */
.gs-app-sidebar {
    width: 234px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #151a3a 0%, #0d1026 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px 14px;
    z-index: 40;
    transition: left 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 760px;
}
.gs-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 18px 4px;
}
.gs-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.38);
}
.gs-sidebar-brand strong { display: block; color: #ffffff; font-size: 14.5px; line-height: 1.2; }
.gs-sidebar-brand small { display: block; color: #94a3b8; font-size: 11px; }
.gs-drawer-close {
    display: none;
    margin-left: auto;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.gs-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.gs-sidebar-menu .gs-nav-trigger {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 11px;
    padding: 9px 10px;
    color: #9aa5c4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.gs-sidebar-menu .gs-nav-trigger .gs-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.gs-sidebar-menu .gs-nav-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}
.gs-sidebar-menu .gs-nav-trigger:active { transform: scale(0.97); }
.gs-sidebar-menu .gs-nav-trigger.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    color: #ffffff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #38bdf8;
}
.gs-sidebar-menu .gs-nav-trigger.active .gs-ico {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    color: #ffffff;
    transform: scale(1.06);
}
.gs-side-badge {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.gs-side-pill {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-style: normal;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
}

.gs-sidebar-live-pill {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #e2e8f0;
}

/* WORKSPACE RIGHT PANEL */
.gs-workspace-main {
    flex: 1;
    min-width: 0;
    background: #f4f6fb;
    display: flex;
    flex-direction: column;
}
.gs-workspace-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e6ebf5;
    padding: 11px 18px;
    position: sticky;
    top: 0;
    z-index: 85;
}
.gs-topbar-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gs-svg-ico {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}
.gs-topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.gs-topbar-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.gs-mob-brand-ico, .gs-mob-brand-txt, .gs-topbar-mob-sub, .gs-mob-filter-strip { display: none; }

.gatesync-app-shell .gs-menu-btn {
    display: none;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gatesync-app-shell .gs-menu-btn:active { transform: scale(0.92); }

.gatesync-app-shell .gs-top-icon-btn,
.gatesync-app-shell .gs-fs-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #161b33 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.14s ease, background 0.14s ease;
}
.gatesync-app-shell .gs-top-icon-btn { display: none; }
.gatesync-app-shell .gs-fs-btn { display: inline-flex; }
.gatesync-app-shell .gs-fs-btn:hover { background: #eef2f9 !important; }
.gatesync-app-shell .gs-fs-btn:active,
.gatesync-app-shell .gs-top-icon-btn:active { transform: scale(0.92); }
.gatesync-app-shell .gs-fs-btn.active { background: #dbeafe !important; color: #1d4ed8 !important; border-color: #93c5fd !important; }

.gs-page-heading {
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #161b33 !important;
    white-space: nowrap;
}
.gs-gate-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f6fb;
    border: 1px solid #dde3f0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #334155;
}
.gs-gate-filter-pill select {
    border: none !important;
    background: transparent !important;
    color: #161b33;
    font-size: 12px;
    font-weight: 600;
    outline: none !important;
    box-shadow: none !important;
    padding: 2px 4px;
    cursor: pointer;
}
.gs-search-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f6fb;
    border: 1px solid #dde3f0;
    border-radius: 999px;
    padding: 4px 12px;
    width: 215px;
}
.gs-search-pill input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    font-size: 12.5px;
    color: #161b33;
    padding: 3px 0;
}
.gatesync-app-shell .gs-bell-btn {
    position: relative;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #161b33 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    overflow: visible !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.gatesync-app-shell .gs-bell-btn:active { transform: scale(0.92); }
.gatesync-app-shell .gs-bell-btn em {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #ffffff;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #151a3a;
    pointer-events: none;
}
.gs-owner-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #161b33;
}
.gs-owner-ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}
.gs-live-chip {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gs-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    animation: gsPulse 1.8s infinite;
}
@keyframes gsPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gs-workspace-body {
    flex: 1;
    padding: 14px 16px;
}
.gs-tab-panel { display: none; }
.gs-tab-panel.active {
    display: block;
    animation: gsSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gsSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gsCardRise {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gsTabPop {
    0% { transform: scale(0.86) translateY(2px); }
    55% { transform: scale(1.16) translateY(-2px); }
    100% { transform: scale(1.06) translateY(0); }
}

/* COLORFUL PASTEL SPARKLINE KPI CARDS (MATCHING BOTH IMAGES) */
.gs-kpi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 13px;
}
.gs-kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 13px;
}
.gs-kpi-card {
    border-radius: 14px;
    padding: 11px 12px 9px 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
    animation: gsCardRise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gs-kpi-card:nth-child(1) { animation-delay: 0.02s; }
.gs-kpi-card:nth-child(2) { animation-delay: 0.06s; }
.gs-kpi-card:nth-child(3) { animation-delay: 0.10s; }
.gs-kpi-card:nth-child(4) { animation-delay: 0.14s; }
.gs-kpi-card:nth-child(5) { animation-delay: 0.18s; }
.gs-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.gs-kpi-card:active { transform: scale(0.98); }

.gs-kpi-blue { background: linear-gradient(145deg, #edf4ff 0%, #dceaff 100%); border: 1px solid #c7dcfd; }
.gs-kpi-peach { background: linear-gradient(145deg, #fff5e8 0%, #fde7ca 100%); border: 1px solid #fbd8ae; }
.gs-kpi-mint { background: linear-gradient(145deg, #ebfdf4 0%, #d1fae5 100%); border: 1px solid #a7f3d0; }
.gs-kpi-slate { background: linear-gradient(145deg, #f4f7fc 0%, #e7edf7 100%); border: 1px solid #d5dfef; }
.gs-kpi-gold { background: linear-gradient(145deg, #fffbeb 0%, #fef0c7 100%); border: 1px solid #fde196; }

.gs-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.gs-kpi-head span {
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gs-chip-green {
    background: #dcfce7;
    color: #15803d;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
.gs-chip-orange {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
}
.gs-kpi-val {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.gs-spark-svg {
    width: 100%;
    height: 30px;
    display: block;
    margin-top: 2px;
}
.gs-operational-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}
.gs-pill-operational {
    background: #dcfce7;
    color: #15803d;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}
.gs-operational-row small { font-size: 10.5px; color: #64748b; }
.gs-seg-wrap { margin-top: 8px; }
.gs-seg-bar {
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}
.gs-seg-bar i {
    display: block;
    height: 100%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gs-seg-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

/* MIDDLE ANALYTICS ROW (MATCHES BOTH SCREENSHOTS, STRICT ANTI-CREEP GRID) */
.gs-mid-analytics {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 13px;
}
.gs-kpi-grid-5 > *, .gs-kpi-grid-4 > *, .gs-mid-analytics > *, .gs-bottom-dashboard > * {
    min-width: 0;
    max-width: 100%;
}
.gs-canvas-box {
    width: 100%;
    max-width: 100%;
    height: 185px;
    position: relative;
    overflow: hidden;
}
.gs-canvas-box canvas {
    width: 100% !important;
    height: 185px !important;
    display: block;
}
.gs-card-white {
    background: #ffffff;
    border: 1px solid #e6ebf5;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
    animation: gsCardRise 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
    min-width: 0;
    max-width: 100%;
}
.gs-mid-analytics .gs-card-white,
.gs-bottom-dashboard .gs-card-white { margin-bottom: 0; }
.gs-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.gs-card-head h3 {
    margin: 0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #161b33 !important;
}
.gs-head-muted { font-size: 11.5px; color: #64748b; font-weight: 600; }
.gs-chart-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}
.gs-chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.gs-chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.gs-donut-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 6px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.gs-donut-legend {
    display: grid;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}
.gs-donut-legend div { display: flex; align-items: center; gap: 6px; }
.gs-donut-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* BOTTOM 3-PANEL DASHBOARD */
.gs-bottom-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 12px;
}
.gs-feed-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 8px;
}
.gs-feed-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    padding-bottom: 6px;
    border-bottom: 1px dashed #eef2f7;
    min-width: 0;
}
.gs-feed-list li:last-child { border-bottom: none; padding-bottom: 0; }
.gs-feed-left { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; }
.gs-feed-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.gs-feed-list small { color: #64748b; font-size: 11px; white-space: nowrap; }

.gs-compact-table td { padding: 7px 6px !important; font-size: 12.5px; }
.gs-pill-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}
.gs-pill-status.running, .gs-pill-status.active { background: #dcfce7; color: #15803d; }
.gs-pill-status.busy { background: #fee2e2; color: #b91c1c; }

/* 2x2 COLORFUL GRADIENT QUICK ACTION BUTTONS (MATCHING BOTH IMAGES) */
.gs-quick-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.gs-qbtn {
    border: none;
    border-radius: 11px;
    padding: 11px 10px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease, box-shadow 0.16s ease;
}
.gs-qbtn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }
.gs-qbtn:active { transform: scale(0.96); }
.gs-qbtn em { font-style: normal; }
.gs-qico {
    font-style: normal;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.gs-qbtn-red { background: linear-gradient(135deg, #ef5343 0%, #c0392b 100%); }
.gs-qbtn-gold { background: linear-gradient(135deg, #eab308 0%, #c58112 100%); }
.gs-qbtn-crimson { background: linear-gradient(135deg, #a62639 0%, #7d1828 100%); }
.gs-qbtn-teal { background: linear-gradient(135deg, #439aa0 0%, #2a6f75 100%); }

.gs-link-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.gs-muted { color: #64748b; font-size: 13px; margin: 0 0 10px 0; }

/* TABLES & FORMS */
.gs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gs-clean-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gs-clean-table th {
    background: #f4f6fb;
    color: #64748b;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    text-align: left;
    padding: 9px 10px;
}
.gs-clean-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f1f4f8;
    color: #161b33;
    vertical-align: middle;
}
.gs-clean-table tr:last-child td { border-bottom: none; }
.gs-delta.ok { color: #15803d; font-weight: 700; }

.gs-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    align-items: end;
}
.gs-form-grid label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.gs-form-grid input, .gs-form-grid select,
.gs-toolbar-actions input, .gs-toolbar-actions select,
.gs-inline-search input {
    width: 100%;
    background: #f8fafc;
    color: #161b33;
    border: 1px solid #d5deed;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 13.5px;
}
.gs-form-grid input:focus, .gs-form-grid select:focus, .gs-inline-search input:focus {
    outline: none;
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.gs-toolbar-actions input, .gs-toolbar-actions select { width: auto; }
.gs-inline-search { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-inline-search input { flex: 1; min-width: 180px; }

.gs-btn-primary, .gs-btn-teal, .gs-btn-coral, .gs-btn-soft, .gs-btn-danger-soft {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.14s ease, filter 0.14s ease;
}
.gs-btn-primary:active, .gs-btn-teal:active, .gs-btn-coral:active, .gs-btn-soft:active, .gs-btn-danger-soft:active {
    transform: scale(0.95);
}
.gs-btn-primary { background: linear-gradient(135deg, #1b2149, #121633); color: #ffffff; }
.gs-btn-teal { background: linear-gradient(135deg, #439aa0, #2a6f75); color: #ffffff; }
.gs-btn-coral { background: linear-gradient(135deg, #ef5343, #c0392b); color: #ffffff; }
.gs-btn-soft { background: #eef2f9; color: #161b33; text-decoration: none; padding: 6px 10px; font-size: 12px; }
.gs-btn-danger-soft { background: #fee2e2; color: #b91c1c; padding: 6px 10px; font-size: 12px; }

.gs-code-pill {
    display: block;
    background: #f4f6fb;
    border: 1px solid #dde3f0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #161b33;
    font-family: monospace;
    overflow-x: auto;
}
.gs-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.gs-toolbar h3 { margin: 0 !important; font-size: 15px !important; color: #161b33 !important; }
.gs-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.gs-mobile-list { display: grid; gap: 10px; }
.gs-light-row-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; display: grid; gap: 5px; }
.gs-list-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gs-row-meta { font-size: 13px; color: #475569; }
.gs-list-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.gs-badge { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; display: inline-block; }
.gs-badge.active, .gs-badge.valid, .gs-badge.paid { background: #dcfce7; color: #15803d; }
.gs-badge.used, .gs-badge.pending_verification, .gs-badge.awaiting_payment { background: #fef3c7; color: #b45309; }
.gs-badge.suspended, .gs-badge.expired, .gs-badge.revoked, .gs-badge.rejected { background: #fee2e2; color: #b91c1c; }

/* INSTANT 1-TAP GUARD ACTIVATE / DISABLE SWITCH */
.gs-guards-cards { display: none; }
.gs-guards-desktop-table { display: block; }
.gs-guard-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 11px 5px 6px !important;
    min-height: 32px !important;
    border-radius: 999px !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
    transition: background 0.18s ease, transform 0.12s ease, opacity 0.15s ease;
}
.gs-guard-switch:active { transform: scale(0.94); }
.gs-guard-switch.is-busy { opacity: 0.65; pointer-events: none; }
.gs-guard-switch.on {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
}
.gs-guard-switch.off {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
}
.gs-sw-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    display: inline-block;
    flex-shrink: 0;
}
.gs-sw-lbl { line-height: 1; }

/* USER MOBILE APP CARDS */
.gs-plan-picker { display: grid; gap: 10px; }
.gs-plan-card { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; padding: 13px; cursor: pointer; transition: transform 0.16s, border-color 0.18s; }
.gs-plan-card:active { transform: scale(0.98); }
.gs-plan-card.selected { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15); }
.gs-plan-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gs-plan-row strong { font-size: 15px; color: #161b33; display: block; }
.gs-tier-chip { font-size: 11px; color: #2563eb; font-weight: 700; text-transform: uppercase; }
.gs-plan-price { font-size: 17px; font-weight: 800; color: #15803d; white-space: nowrap; }
.gs-plan-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #64748b; margin-top: 6px; }
.gs-qty-stepper { display: flex; align-items: center; gap: 6px; }
.gs-qty-stepper button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #cbd5e1; background: #ffffff; color: #161b33; font-size: 18px; font-weight: 700; cursor: pointer; }
.gs-qty-stepper input { text-align: center; font-weight: 700; width: 58px !important; }
.gs-total-bar { grid-column: 1 / -1; background: linear-gradient(135deg, #161b3e, #0d112b); color: #ffffff; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gs-total-bar small { display: block; color: #94a3b8; font-size: 11px; }
.gs-total-bar strong { font-size: 20px; color: #38bdf8; }

.gs-pay-amount-banner { background: linear-gradient(135deg, #161b3e, #0d112b); color: #ffffff; padding: 14px; border-radius: 14px; display: grid; gap: 4px; }
.gs-pay-amount-banner small { color: #94a3b8; font-size: 11px; text-transform: uppercase; }
.gs-pay-amount-banner strong { font-size: 24px; color: #38bdf8; }
.gs-pay-amount-banner span { font-family: monospace; color: #cbd5e1; font-size: 12px; }

.gatesync-qr-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }
.gatesync-mini-qr { background: #ffffff; color: #161b33; border: 1px solid #e2e8f0; padding: 10px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gatesync-mini-qr code { font-size: 11px; font-weight: 700; }

.gatesync-ticket-card { max-width: 390px; margin: 10px auto; background: #ffffff; color: #0f172a; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14); border: 1px solid #e2e8f0; }
.gatesync-ticket-hero { background: linear-gradient(135deg, #151a3a, #242d65); color: #ffffff; padding: 18px; text-align: center; }
.gatesync-ticket-hero h2 { margin: 8px 0 4px 0; color: #ffffff; font-size: 18px; }
.gatesync-ticket-qr { padding: 20px; text-align: center; border-bottom: 2px dashed #cbd5e1; }
.gs-countdown { color: #ef4444; font-weight: 700; font-family: monospace; margin-top: 8px; font-size: 14px; }
.gs-ticket-id { font-family: monospace; font-weight: 700; margin: 6px 0 12px 0; color: #334155; }
.gs-ticket-actions { display: flex; justify-content: center; gap: 10px; }
.gatesync-ticket-details { padding: 16px 20px; display: grid; gap: 7px; font-size: 13.5px; color: #1e293b; }

/* FLOATING TOAST */
#gs-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483645;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 24px);
}
.gs-toast {
    pointer-events: auto;
    background: #151a3a;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: gsToastIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gs-toast.success { background: #15803d; }
.gs-toast.error { background: #b91c1c; }
.gs-toast.leaving { opacity: 0; transform: translateY(-10px) scale(0.95); transition: all 0.22s ease; }
@keyframes gsToastIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* DRAWER BACKDROP & DARK NAVY FIXED BOTTOM BAR WITH LIVE SYNC STRIP */
.gs-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 34, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2147483620;
}
.gs-drawer-backdrop.open { display: block; }

.gs-bottom-nav {
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, #1a2148 0%, #0e132d 100%);
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -12px 34px rgba(10, 14, 36, 0.42);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.gs-nav-live-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gs-nav-btn-row {
    display: flex;
    align-items: stretch;
    padding: 6px 6px 8px 6px;
    gap: 4px;
}
.gs-bottom-nav .gs-nav-trigger {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    border: none !important;
    color: #a5b4cf !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 2px !important;
    margin: 0 !important;
    min-height: 54px !important;
    cursor: pointer;
    border-radius: 12px !important;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease, transform 0.14s ease;
    box-shadow: none !important;
    line-height: 1.1 !important;
}
.gs-bottom-nav .gs-nav-trigger:active { transform: scale(0.92); }
.gs-bnav-ico {
    position: relative;
    width: 46px;
    height: 30px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: background 0.22s ease, color 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}
.gs-bottom-nav .gs-nav-trigger small {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.15 !important;
}
.gs-bottom-nav .gs-nav-trigger.active {
    color: #ffffff !important;
    background: transparent !important;
}
.gs-bottom-nav .gs-nav-trigger.active .gs-bnav-ico {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(99, 102, 241, 0.42));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: gsTabPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.gs-nav-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-style: normal;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    border: 1.5px solid #10142f;
}

/* PERMANENTLY LOCKED FIXED BOTTOM NAV ON PHONES */
.gs-bottom-nav.gs-fixed-mobile-dock {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 2147483600 !important;
}

/* IMMERSIVE FULLSCREEN APP MODE (DESKTOP + MOBILE) */
html.gs-immersive-active, body.gs-immersive-active {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.gs-immersive-active #wpadminbar,
body.gs-immersive-active #adminmenumain,
body.gs-immersive-active #adminmenuwrap,
body.gs-immersive-active #adminmenuback,
body.gs-immersive-active #wpfooter {
    display: none !important;
}
.gatesync-app-shell.gs-is-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 2147483000 !important;
    overflow: hidden !important;
    display: flex !important;
}
.gatesync-app-shell.gs-is-fullscreen .gs-app-sidebar {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}
.gatesync-app-shell.gs-is-fullscreen .gs-workspace-main {
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: clip;
    -webkit-overflow-scrolling: touch;
}

/* TABLET / DESKTOP ADAPTATIONS */
@media (max-width: 1180px) {
    .gs-kpi-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gs-bottom-dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .gs-bottom-dashboard > :last-child { grid-column: 1 / -1; }
}

/* MOBILE PHONE LAYOUT (FIXED NAV + CURVED NAVY HEADER + ZERO WIDTH CREEP) */
@media (max-width: 900px) {
    .gatesync-app-shell {
        border-radius: 0;
        border: none;
        overflow-x: clip;
        overflow-y: visible;
        min-height: 100vh;
    }
    #wpbody-content .gatesync-app-shell {
        margin: 0;
        width: 100%;
    }
    .gs-user-app {
        max-width: 100%;
        margin: 0;
        height: auto;
        max-height: none;
        min-height: 100vh;
    }
    .gs-user-app .gs-workspace-main { overflow-y: visible; }
    .gs-desk-only, .gs-desk-only-card { display: none !important; }
    .gs-app-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: -290px;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        z-index: 2147483640;
        box-shadow: 16px 0 40px rgba(10, 14, 34, 0.45);
    }
    .gs-app-sidebar.open { left: 0; }
    .gatesync-app-shell .gs-menu-btn,
    .gatesync-app-shell .gs-drawer-close,
    .gatesync-app-shell .gs-top-icon-btn { display: inline-flex; }
    .gs-guards-cards { display: grid; }
    .gs-guards-desktop-table { display: none; }

    /* DEEP NAVY CURVED MOBILE HEADER */
    .gs-workspace-topbar {
        background: linear-gradient(135deg, #131734 0%, #1d2656 100%);
        color: #ffffff;
        border-bottom: none;
        padding: 10px 12px 20px 12px;
        position: sticky;
        top: 0;
        z-index: 90;
    }
    .gs-mob-brand-ico {
        display: inline-flex;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: linear-gradient(135deg, #f97316, #ef4444);
        color: #ffffff;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .gs-mob-brand-txt { display: block; min-width: 0; flex: 1 1 auto; overflow: hidden; }
    .gs-mob-brand-txt strong { display: block; font-size: 13.5px; color: #ffffff; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gs-mob-brand-txt small { display: block; font-size: 10.5px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gs-topbar-mob-sub {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-top: 8px;
        gap: 8px;
    }
    .gs-topbar-mob-sub strong { font-size: 16.5px; font-weight: 800; color: #ffffff; }
    .gs-topbar-mob-sub span { font-size: 11px; color: #cbd5e1; white-space: nowrap; }
    .gatesync-app-shell .gs-bell-btn,
    .gatesync-app-shell .gs-top-icon-btn,
    .gatesync-app-shell .gs-fs-btn {
        background: rgba(255, 255, 255, 0.14) !important;
        border-color: rgba(255, 255, 255, 0.24) !important;
        color: #ffffff !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }
    .gatesync-app-shell .gs-fs-btn.active { background: rgba(56, 189, 248, 0.28) !important; color: #ffffff !important; border-color: #38bdf8 !important; }
    .gs-owner-ava { width: 32px; height: 32px; }

    /* ROUNDED LIGHT SHEET RISING INTO NAVY HEADER */
    .gs-workspace-body {
        margin-top: -12px;
        background: #f4f6fb;
        border-radius: 18px 18px 0 0;
        padding: 10px 10px calc(124px + env(safe-area-inset-bottom, 0px)) 10px;
        position: relative;
        z-index: 91;
        overflow-x: clip;
    }
    .gs-mob-filter-strip {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 8px;
        margin-bottom: 10px;
    }
    .gs-mob-filter-strip .gs-gate-filter-pill,
    .gs-mob-filter-strip .gs-search-pill {
        width: 100%;
        background: #ffffff;
        padding: 4px 9px;
        min-width: 0;
    }

    /* 2x2 KPI GRID ON PHONES */
    .gs-kpi-grid-5, .gs-kpi-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }
    .gs-kpi-card { padding: 9px 10px 7px 10px; border-radius: 13px; }
    .gs-kpi-val { font-size: 18px; }

    /* SIDE-BY-SIDE ANALYTICS EVEN ON PHONES */
    .gs-mid-analytics {
        grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.9fr);
        gap: 8px;
        margin-bottom: 10px;
    }
    .gs-bottom-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    .gs-bottom-dashboard > :last-child { grid-column: 1 / -1; }
    .gs-card-white { padding: 11px; border-radius: 13px; margin-bottom: 10px; }
    .gs-card-head { margin-bottom: 7px; }
    .gs-card-head h3 { font-size: 13px !important; }
    .gs-chart-legend { display: none; }

    .gs-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 2147483600 !important;
    }

    #gs-toast-container { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 375px) {
    .gs-mid-analytics, .gs-bottom-dashboard { grid-template-columns: minmax(0, 1fr); }
}

/* ==================== v3.0.0 AUTH GATE, AVATARS, MODALS & 90-DAY ANALYTICS ==================== */
.gs-auth-wall {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 14px;
    background: radial-gradient(circle at top right, #1e2758 0%, #0f1430 65%, #090c20 100%);
    border-radius: 20px;
}
.gs-login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    color: #161b33;
}
.gs-login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.gs-login-brand strong { display: block; font-size: 16px; color: #161b33; }
.gs-login-brand small { display: block; font-size: 12px; color: #64748b; }
.gs-login-box h2 { margin: 0 0 6px 0 !important; font-size: 21px !important; font-weight: 800 !important; color: #0f172a !important; }
.gs-login-form { display: grid; gap: 12px; margin-top: 14px; }
.gs-login-form label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #64748b; margin-bottom: 4px; }
.gs-login-form input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #d5deed;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    color: #0f172a;
}
.gs-login-form input:focus { outline: none; background: #fff; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14); }
.gs-login-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
}
.gs-login-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef2ff;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Profile & Guard Avatars */
.gs-owner-chip {
    background: transparent !important;
    border: none !important;
    padding: 2px 4px !important;
    cursor: pointer;
    border-radius: 999px;
}
.gs-owner-ava { overflow: hidden; }
.gs-owner-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gs-avatar-md {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #cbd5e1;
}
.gs-avatar-fallback {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}
.gs-guard-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.gs-guard-identity strong { display: block; font-size: 13.5px; }
.gs-act-cell { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.gs-profile-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.gs-profile-avatar-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
}
.gs-profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-photo-upload-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Logout Buttons */
.gatesync-app-shell .gs-logout-top-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@media (max-width: 900px) {
    .gatesync-app-shell .gs-logout-top-btn {
        background: rgba(239, 68, 68, 0.22) !important;
        border-color: rgba(252, 165, 165, 0.4) !important;
        color: #fecaca !important;
    }
    .gs-owner-chip span.gs-desk-only { display: none !important; }
}
.gs-sidebar-logout {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 11px;
    padding: 9px 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.gs-sidebar-logout .gs-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Clickable Revenue KPI Cards */
.gs-kpi-clickable { cursor: pointer; }
.gs-kpi-clickable:hover { border-color: #3b82f6; box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14); }
.gs-kpi-hint {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    margin-top: 2px;
    opacity: 0.85;
}

/* Modals (Revenue Analytics, Guard Edit, Credentials) */
.gs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 34, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2147483630;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.gs-modal-card {
    background: #ffffff;
    color: #161b33;
    border-radius: 18px;
    padding: 18px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.35);
    animation: gsCardRise 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gs-modal-sm { max-width: 440px; }
.gs-modal-lg { max-width: 780px; }
.gs-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.gs-modal-head h3 { margin: 0 !important; font-size: 16.5px !important; font-weight: 800 !important; color: #0f172a !important; }
.gs-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.gs-rev-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.gs-rev-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.gs-rev-pill span { display: block; font-size: 11px; color: #64748b; font-weight: 600; }
.gs-rev-pill strong { display: block; font-size: 18px; font-weight: 800; color: #0f172a; margin-top: 2px; }
.gs-rev-months-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.gs-rev-month-chip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 7px 11px;
    font-size: 12px;
}
.gs-rev-month-chip strong { color: #1d4ed8; }
.gs-rev-chart-wrap {
    width: 100%;
    height: 190px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 12px;
}
.gs-rev-chart-wrap canvas { width: 100% !important; height: 172px !important; display: block; }
.gs-rev-table-scroll { max-height: 230px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 10px; }

/* Website Owner Polling & Traffic Controller */
.gs-load-meter {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.gs-load-meter.high { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.gs-load-meter.low { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.gs-polling-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 12px 0 16px 0;
}
.gs-preset-btn {
    text-align: left;
    border-radius: 12px;
    padding: 11px 13px;
    border: 1.5px solid #dbe3f0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    display: grid;
    gap: 3px;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.gs-preset-btn:hover { transform: translateY(-1px); border-color: #3b82f6; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12); }
.gs-preset-btn strong { font-size: 13px; }
.gs-preset-btn small { font-size: 11px; color: #475569; }
.gs-preset-fast { background: #fff7ed; border-color: #fed7aa; }
.gs-preset-balanced { background: #eff6ff; border-color: #bfdbfe; }
.gs-preset-saver { background: #ecfdf5; border-color: #a7f3d0; }
.gs-polling-list {
    display: grid;
    gap: 10px;
}
.gs-polling-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
}
.gs-polling-meta { flex: 1; min-width: 240px; }
.gs-polling-meta p { margin: 5px 0; font-size: 12.5px; color: #334155; line-height: 1.45; }
.gs-polling-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gs-polling-title-row strong { font-size: 14px; color: #0f172a; }
.gs-polling-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}
.gs-tag-android { background: #dcfce7; color: #15803d; }
.gs-tag-web { background: #dbeafe; color: #1d4ed8; }
.gs-tag-user { background: #fef3c7; color: #b45309; }
.gs-tag-worker { background: #ede9fe; color: #6d28d9; }
.gs-tag-saver { background: #cffafe; color: #0e7490; }
.gs-polling-ctrl {
    min-width: 145px;
    display: grid;
    gap: 4px;
}
.gs-polling-ctrl label {
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}
.gs-polling-ctrl input[type="number"] {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.gs-toggle-row {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px !important;
    text-transform: none !important;
    color: #0f172a !important;
    cursor: pointer;
}
.gs-toggle-row input { width: 17px; height: 17px; accent-color: #2563eb; margin: 0; }
.gs-polling-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
