/* ==========================================================
   IOM3 CMS DEMO — Master Stylesheet
   Digital Panda Websites Ltd
   ========================================================== */

/* ---- Reset & Base ---- */
.iom3-demo *, .iom3-demo *::before, .iom3-demo *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.iom3-demo {
    font-family: 'Azo Sans', 'Gill Sans MT', 'Gill Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #292929;
    line-height: 1.5;
    background: #F5F5F5;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.iom3-demo h1, .iom3-demo h2, .iom3-demo h3, .iom3-demo h4 {
    font-weight: 700;
    line-height: 1.25;
}

.iom3-demo a {
    color: #3FB1E8;
    text-decoration: none;
    cursor: pointer;
}

.iom3-demo a:hover {
    text-decoration: underline;
}

/* ---- DEMO Badge ---- */
.iom3-demo .demo-badge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #E00000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    z-index: 99999;
    letter-spacing: 0.5px;
}

/* ---- Master Tabs ---- */
.iom3-master-tabs {
    display: flex;
    background: #292929;
    border-bottom: 3px solid #E00000;
    overflow-x: auto;
}

.iom3-master-tab {
    background: none;
    border: none;
    color: #B5B7B9;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 24px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color .15s, border-color .15s;
}

.iom3-master-tab:hover {
    color: #fff;
}

.iom3-master-tab.active {
    color: #fff;
    border-bottom-color: #E00000;
}

.iom3-scenario-intro {
    padding: 24px 32px;
    background: #fff;
    border-bottom: 1px solid #B5B7B9;
}

.iom3-scenario-intro h2 {
    color: #E00000;
    font-size: 20px;
    margin-bottom: 4px;
}

.iom3-scenario-intro p {
    color: #B5B7B9;
    font-size: 14px;
}

/* ---- Progress Bar ---- */
.iom3-progress {
    display: flex;
    background: #292929;
    padding: 0;
    gap: 0;
}

.iom3-progress-step {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #B5B7B9;
    background: #F5F5F5;
    border-right: 1px solid #fff;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iom3-progress-step:last-child {
    border-right: none;
}

.iom3-progress-step.completed {
    background: #3AAD2C;
    color: #fff;
}

.iom3-progress-step.current {
    background: #E00000;
    color: #fff;
}

/* ---- IOM3 Header Bar (Front-end) ---- */
.iom3-header {
    background: #292929;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    border-bottom: 4px solid #E00000;
}

.iom3-header-logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.iom3-header-logo .dot {
    color: #E00000;
    margin: 0 1px;
}

.iom3-header-nav {
    display: flex;
    gap: 24px;
    list-style: none;
}

.iom3-header-nav li {
    color: #B5B7B9;
    font-size: 13px;
    cursor: pointer;
}

.iom3-header-nav li:hover {
    color: #fff;
}

.iom3-header-nav .welcome-text {
    color: #fff;
    font-weight: 700;
}

/* ---- CMS Toolbar ---- */
.iom3-cms-toolbar {
    background: #292929;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 48px;
    border-bottom: 3px solid #E00000;
    gap: 12px;
}

.iom3-cms-toolbar-brand {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.iom3-cms-toolbar-path {
    color: #B5B7B9;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- D365 Header ---- */
.iom3-d365-header {
    background: #3844AC;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 48px;
    gap: 12px;
}

.iom3-d365-header-brand {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.iom3-d365-header-path {
    color: #B5B7B9;
    font-size: 13px;
}

/* ---- Sync Banners ---- */
.iom3-sync-banner {
    padding: 12px 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iom3-sync-banner.cms-sync {
    background: #EEF8FD;
    border-left: 3px solid #3FB1E8;
    color: #292929;
}

.iom3-sync-banner.d365-sync {
    background: #EEF8FD;
    border-left: 3px solid #3844AC;
    color: #292929;
}

/* ---- Buttons ---- */
.iom3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity .15s;
    gap: 6px;
    white-space: nowrap;
}

.iom3-btn:hover {
    opacity: 0.9;
}

.iom3-btn-primary {
    background: #E00000;
    color: #fff;
}

.iom3-btn-secondary {
    background: #F5F5F5;
    color: #292929;
    border: 1px solid #B5B7B9;
}

.iom3-btn-cms {
    background: #292929;
    color: #fff;
}

.iom3-btn-d365 {
    background: #3844AC;
    color: #fff;
}

.iom3-btn-full {
    width: 100%;
}

.iom3-btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

/* ---- Cards ---- */
.iom3-card {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 24px;
}

.iom3-card-shadow {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* ---- Status Badges ---- */
.iom3-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.iom3-badge-active, .iom3-badge-success {
    color: #3AAD2C;
    background: #F0FAF0;
}

.iom3-badge-warning {
    color: #FF6900;
    background: #FFF5EC;
}

.iom3-badge-new {
    color: #3AAD2C;
    background: #F0FAF0;
}

.iom3-badge-updated {
    color: #3844AC;
    background: #EEF8FD;
}

.iom3-badge-info {
    color: #3FB1E8;
    background: #EEF8FD;
}

.iom3-badge-error {
    color: #E00000;
    background: #FFF0F0;
}

.iom3-badge-inactive {
    color: #B5B7B9;
    background: #F5F5F5;
}

/* ---- Member Avatar ---- */
.iom3-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #292929;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.iom3-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* ---- Forms ---- */
.iom3-form-group {
    margin-bottom: 16px;
}

.iom3-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #292929;
    margin-bottom: 6px;
}

.iom3-form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    background: #fff;
    color: #292929;
    outline: none;
    transition: border-color .15s;
}

.iom3-form-input:focus {
    border-color: #E00000;
}

.iom3-form-input[readonly] {
    background: #F5F5F5;
    color: #B5B7B9;
}

/* ---- Tables ---- */
.iom3-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.iom3-table th {
    text-align: left;
    padding: 10px 12px;
    background: #F5F5F5;
    font-weight: 700;
    color: #292929;
    border-bottom: 2px solid #B5B7B9;
    white-space: nowrap;
}

.iom3-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
}

.iom3-table tr:hover td {
    background: #FAFAFA;
}

.iom3-table .row-highlight {
    background: #F0FAF0;
}

/* ---- Warning Banner ---- */
.iom3-warning-banner {
    background: #FFF5EC;
    border-left: 4px solid #FF6900;
    padding: 14px 20px;
    font-size: 14px;
    color: #292929;
}

.iom3-success-banner {
    background: #F0FAF0;
    border-left: 4px solid #3AAD2C;
    padding: 14px 20px;
    font-size: 14px;
    color: #292929;
}

.iom3-info-banner {
    background: #EEF8FD;
    border-left: 4px solid #3FB1E8;
    padding: 14px 20px;
    font-size: 14px;
    color: #292929;
}

/* ---- Screen Wrapper ---- */
.iom3-scenario-wrapper {
    position: relative;
    min-height: 400px;
}

.iom3-screen {
    display: none;
    background: #F5F5F5;
}

.iom3-screen.active {
    display: block;
}

.iom3-screen-body {
    padding: 32px;
}

.iom3-screen-body-narrow {
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Utility ---- */
.iom3-text-center { text-align: center; }
.iom3-text-red { color: #E00000; }
.iom3-text-grey { color: #B5B7B9; }
.iom3-text-green { color: #3AAD2C; }
.iom3-text-orange { color: #FF6900; }
.iom3-text-blue { color: #3FB1E8; }
.iom3-text-sm { font-size: 12px; }
.iom3-text-xs { font-size: 11px; }
.iom3-text-bold { font-weight: 700; }
.iom3-mt-4 { margin-top: 4px; }
.iom3-mt-8 { margin-top: 8px; }
.iom3-mt-16 { margin-top: 16px; }
.iom3-mt-24 { margin-top: 24px; }
.iom3-mt-32 { margin-top: 32px; }
.iom3-mb-8 { margin-bottom: 8px; }
.iom3-mb-16 { margin-bottom: 16px; }
.iom3-mb-24 { margin-bottom: 24px; }
.iom3-gap-8 { gap: 8px; }
.iom3-gap-16 { gap: 16px; }
.iom3-gap-24 { gap: 24px; }

.iom3-flex {
    display: flex;
}

.iom3-flex-col {
    display: flex;
    flex-direction: column;
}

.iom3-flex-wrap {
    flex-wrap: wrap;
}

.iom3-flex-center {
    display: flex;
    align-items: center;
}

.iom3-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iom3-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.iom3-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.iom3-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.iom3-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ---- Login Card ---- */
.iom3-login-card {
    max-width: 380px;
    margin: 48px auto;
    padding: 32px;
}

.iom3-login-card h2 {
    color: #E00000;
    font-size: 22px;
    margin-bottom: 4px;
}

.iom3-login-card .sub {
    color: #B5B7B9;
    font-size: 13px;
    margin-bottom: 24px;
}

/* ---- Member Card ---- */
.iom3-member-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.iom3-member-info h3 {
    font-size: 18px;
    color: #292929;
}

.iom3-member-info .member-no {
    color: #B5B7B9;
    font-size: 13px;
}

.iom3-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-top: 16px;
}

.iom3-info-grid dt {
    font-size: 12px;
    color: #B5B7B9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iom3-info-grid dd {
    font-size: 14px;
    color: #292929;
    margin-top: 2px;
}

/* ---- Stat Tiles ---- */
.iom3-stat-tile {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 16px 20px;
    text-align: center;
}

.iom3-stat-tile .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #E00000;
}

.iom3-stat-tile .stat-label {
    font-size: 12px;
    color: #B5B7B9;
    margin-top: 2px;
}

/* ---- Summary Row ---- */
.iom3-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 14px;
}

.iom3-summary-row:last-child {
    border-bottom: none;
}

.iom3-summary-row .label {
    color: #B5B7B9;
}

.iom3-summary-row .value {
    font-weight: 700;
    color: #292929;
    text-align: right;
}

.iom3-summary-row.total {
    border-top: 2px solid #292929;
    padding-top: 12px;
    margin-top: 4px;
    font-size: 16px;
}

/* ---- Payment Option Cards ---- */
.iom3-payment-option {
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color .15s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.iom3-payment-option:hover {
    border-color: #292929;
}

.iom3-payment-option.selected {
    border: 2px solid #E00000;
}

.iom3-payment-option .option-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.iom3-payment-option h4 {
    font-size: 15px;
    color: #292929;
    margin-bottom: 2px;
}

.iom3-payment-option p {
    font-size: 13px;
    color: #B5B7B9;
}

/* ---- DD Guarantee box ---- */
.iom3-dd-guarantee {
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 12px;
    color: #B5B7B9;
    background: #fff;
    margin-top: 16px;
}

/* ---- Confirmation Screen ---- */
.iom3-confirm-check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3AAD2C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

/* ---- Tab Bar ---- */
.iom3-tab-bar {
    display: flex;
    border-bottom: 2px solid #F5F5F5;
    background: #fff;
    padding: 0 24px;
}

.iom3-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #B5B7B9;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.iom3-tab:hover {
    color: #292929;
}

.iom3-tab.active {
    color: #E00000;
    border-bottom-color: #E00000;
}

/* ---- Section heading ---- */
.iom3-section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #292929;
    padding-bottom: 8px;
    border-bottom: 2px solid #F5F5F5;
    margin-bottom: 16px;
}

/* ---- Two column layout ---- */
.iom3-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---- Duplicate match panel ---- */
.iom3-match-panel {
    background: #F5F5F5;
    border-left: 4px solid #FF6900;
    padding: 16px 20px;
    border-radius: 0 4px 4px 0;
}

.iom3-match-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.iom3-match-row .label {
    color: #B5B7B9;
}

/* ---- Confidence bar ---- */
.iom3-confidence-bar {
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.iom3-confidence-fill {
    height: 100%;
    background: #3AAD2C;
    border-radius: 4px;
    transition: width .3s;
}

/* ---- Resolution option cards ---- */
.iom3-resolution-option {
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color .15s;
}

.iom3-resolution-option:hover {
    border-color: #292929;
}

.iom3-resolution-option.selected {
    border: 2px solid #E00000;
}

.iom3-resolution-option h4 {
    font-size: 14px;
    color: #292929;
    margin-bottom: 2px;
}

.iom3-resolution-option p {
    font-size: 12px;
    color: #B5B7B9;
}

/* ---- Verification code input ---- */
.iom3-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.iom3-code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: inherit;
    border: 2px solid #B5B7B9;
    border-radius: 4px;
    color: #292929;
    background: #fff;
    outline: none;
}

.iom3-code-input:focus {
    border-color: #E00000;
}

/* ---- CMS Sidebar ---- */
.iom3-cms-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 500px;
}

.iom3-cms-sidebar {
    background: #292929;
    padding: 20px 0;
}

.iom3-cms-sidebar-item {
    padding: 10px 20px;
    font-size: 13px;
    color: #B5B7B9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
}

.iom3-cms-sidebar-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.iom3-cms-sidebar-item.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.iom3-cms-sidebar-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E00000;
}

.iom3-cms-sidebar-group {
    padding: 10px 20px 4px 36px;
    font-size: 12px;
    color: #B5B7B9;
    cursor: pointer;
}

.iom3-cms-sidebar-group:hover {
    color: #fff;
}

.iom3-cms-sidebar-group.active {
    color: #E00000;
}

.iom3-cms-main {
    padding: 24px;
    background: #F5F5F5;
}

/* ---- Rich Text Editor ---- */
.iom3-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    background: #F5F5F5;
    border: 1px solid #B5B7B9;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.iom3-editor-btn {
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #292929;
    cursor: pointer;
    font-family: inherit;
}

.iom3-editor-btn:hover {
    background: #292929;
    color: #fff;
}

.iom3-editor-sep {
    width: 1px;
    height: 28px;
    background: #B5B7B9;
    margin: 0 4px;
}

.iom3-editor-blocks {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    background: #EEF8FD;
    border: 1px solid #B5B7B9;
    border-top: none;
}

.iom3-editor-block-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    color: #292929;
}

.iom3-editor-block-btn:hover {
    background: #E00000;
    color: #fff;
    border-color: #E00000;
}

.iom3-editor-content {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 24px;
    min-height: 160px;
}

.iom3-editor-content h2 {
    color: #292929;
    font-size: 18px;
    margin-bottom: 12px;
}

/* ---- Tags ---- */
.iom3-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #F5F5F5;
    border: 1px solid #B5B7B9;
    border-radius: 20px;
    font-size: 12px;
    color: #292929;
    font-weight: 700;
}

.iom3-tag-pill .remove {
    color: #B5B7B9;
    cursor: pointer;
    font-size: 14px;
}

.iom3-tag-suggestions {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    margin-top: 4px;
    padding: 8px 0;
}

.iom3-tag-suggestion {
    padding: 6px 14px;
    font-size: 13px;
    color: #292929;
    cursor: pointer;
}

.iom3-tag-suggestion:hover {
    background: #F5F5F5;
}

/* ---- CMS Meta Panel ---- */
.iom3-cms-meta {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 20px;
}

.iom3-cms-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 13px;
}

.iom3-cms-meta-row:last-child {
    border-bottom: none;
}

.iom3-cms-meta-row .label {
    color: #B5B7B9;
}

/* ---- Page Builder Blocks ---- */
.iom3-page-block {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
    position: relative;
}

.iom3-page-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.iom3-page-block-type {
    font-size: 11px;
    font-weight: 700;
    color: #B5B7B9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iom3-page-block-actions {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.iom3-page-block-actions span {
    cursor: pointer;
    color: #B5B7B9;
}

.iom3-page-block-actions span:hover {
    color: #E00000;
}

/* ---- Block Add Dropdown ---- */
.iom3-block-dropdown {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 200px;
}

.iom3-block-dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #292929;
}

.iom3-block-dropdown-item:hover {
    background: #F5F5F5;
}

.iom3-block-dropdown-item.selected {
    background: #EEF8FD;
    color: #E00000;
    font-weight: 700;
}

/* ---- CTA Preview ---- */
.iom3-cta-preview {
    text-align: center;
    padding: 16px;
    background: #F5F5F5;
    border-radius: 4px;
    margin-top: 12px;
}

.iom3-cta-preview .iom3-btn {
    min-width: 240px;
}

/* ---- Filter Builder ---- */
.iom3-filter-builder {
    background: #fff;
    border-top: 3px solid #E00000;
    border: 1px solid #B5B7B9;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    margin-bottom: 16px;
}

.iom3-filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.iom3-filter-select {
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    background: #fff;
    color: #292929;
    min-width: 160px;
}

.iom3-filter-remove {
    color: #B5B7B9;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.iom3-filter-remove:hover {
    color: #E00000;
}

.iom3-filter-dropdown {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: absolute;
    min-width: 200px;
    z-index: 10;
}

.iom3-filter-dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

.iom3-filter-dropdown-item:hover {
    background: #F5F5F5;
}

.iom3-filter-dropdown-item.highlighted {
    background: #EEF8FD;
    color: #E00000;
    font-weight: 700;
}

/* ---- Filter pills ---- */
.iom3-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.iom3-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #EEF8FD;
    border: 1px solid #3FB1E8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #292929;
}

.iom3-filter-pill .remove {
    color: #B5B7B9;
    cursor: pointer;
}

/* ---- Saved Views Cards ---- */
.iom3-view-card {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 20px;
}

.iom3-view-card h4 {
    font-size: 14px;
    color: #292929;
    margin-bottom: 8px;
}

.iom3-view-card .meta {
    font-size: 12px;
    color: #B5B7B9;
    line-height: 1.6;
}

/* ---- Modal Overlay ---- */
.iom3-modal-overlay {
    background: rgba(0,0,0,0.4);
    padding: 40px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 400px;
}

.iom3-modal {
    background: #fff;
    border-radius: 4px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.iom3-modal h3 {
    color: #E00000;
    font-size: 18px;
    margin-bottom: 16px;
}

/* ---- Groups Hero ---- */
.iom3-group-hero {
    background: #292929;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iom3-group-hero-content h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.iom3-group-hero-content .sub {
    color: #B5B7B9;
    font-size: 14px;
    margin-top: 4px;
}

.iom3-group-hero .iom3-lettermark {
    display: inline-block;
    background: #292929;
    border: 1px solid #B5B7B9;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 8px;
}

.iom3-group-hero .iom3-lettermark .dot {
    color: #A48A7B;
}

/* ---- Group Page Two Col ---- */
.iom3-group-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 24px;
    padding: 32px;
}

.iom3-group-glance {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 20px;
}

.iom3-group-glance h4 {
    font-size: 14px;
    color: #E00000;
    margin-bottom: 12px;
}

.iom3-group-glance-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 13px;
}

.iom3-group-glance-row .label {
    color: #B5B7B9;
}

/* ---- News Card ---- */
.iom3-news-card {
    background: #F5F5F5;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.iom3-news-card h4 {
    font-size: 14px;
    color: #292929;
    margin-bottom: 2px;
}

.iom3-news-card .date {
    font-size: 12px;
    color: #B5B7B9;
}

/* ---- Event Item ---- */
.iom3-event-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.iom3-event-date-block {
    background: #E00000;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px 10px;
    min-width: 48px;
    flex-shrink: 0;
}

.iom3-event-date-block .day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.iom3-event-date-block .month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iom3-event-info h4 {
    font-size: 14px;
    color: #292929;
}

.iom3-event-info .venue {
    font-size: 12px;
    color: #B5B7B9;
}

/* ---- Checklist ---- */
.iom3-checklist {
    list-style: none;
    padding: 0;
}

.iom3-checklist li {
    padding: 6px 0;
    font-size: 14px;
    color: #292929;
}

.iom3-checklist li::before {
    content: "\2713";
    color: #3AAD2C;
    font-weight: 700;
    margin-right: 8px;
}

/* ---- Activity Feed ---- */
.iom3-activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 13px;
    color: #292929;
}

.iom3-activity-item:last-child {
    border-bottom: none;
}

.iom3-activity-item .time {
    color: #B5B7B9;
    font-size: 12px;
}

/* ---- Content Permissions Panel ---- */
.iom3-permissions-panel {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    padding: 20px;
}

.iom3-radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    cursor: pointer;
}

.iom3-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #B5B7B9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iom3-radio.checked {
    border-color: #E00000;
}

.iom3-radio.checked::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E00000;
}

/* ---- Page Preview ---- */
.iom3-page-preview {
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    overflow: hidden;
}

.iom3-page-preview-body {
    padding: 32px;
}

.iom3-breadcrumb {
    font-size: 12px;
    color: #B5B7B9;
    margin-bottom: 16px;
}

/* ---- Pagination ---- */
.iom3-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.iom3-pagination-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #B5B7B9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    color: #292929;
}

.iom3-pagination-btn.active {
    background: #E00000;
    color: #fff;
    border-color: #E00000;
}

/* ---- CMS Two Panel Editor ---- */
.iom3-editor-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 24px;
}

/* ---- Inline dot separator ---- */
.iom3-dot-sep::before {
    content: " \00B7 ";
    color: #B5B7B9;
}

/* ---- Sub-tabs ---- */
.iom3-subtabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-bottom: 2px solid #F5F5F5;
    padding: 0 24px;
}

.iom3-subtab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #B5B7B9;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.iom3-subtab.active {
    color: #E00000;
    border-bottom-color: #E00000;
}

/* ---- Responsive guard ---- */
@media (max-width: 1024px) {
    .iom3-cms-layout {
        grid-template-columns: 1fr;
    }
    .iom3-editor-layout {
        grid-template-columns: 1fr;
    }
    .iom3-group-layout {
        grid-template-columns: 1fr;
    }
    .iom3-two-col {
        grid-template-columns: 1fr;
    }
}
