/* ==========================================================================
   USSD DialPay - Pan-African Frontend Styles v1.0.0
   Tailored for the Cameroonian Mobile Money Market (MTN MoMo & Orange Money)
   ========================================================================== */

:root {
    --cm-mtn-yellow: #ffcc00;
    --cm-mtn-dark: #111111;
    --cm-om-orange: #f16e00;
    --cm-om-dark: #1a0d00;
    --cm-bg-dark: #0f172a;
    --cm-card-bg: #1e293b;
    --cm-card-surface: #334155;
    --cm-text-light: #f8fafc;
    --cm-text-muted: #94a3b8;
    --cm-border-color: #334155;
    --cm-radius-md: 14px;
    --cm-radius-lg: 20px;
}

.cm-momo-container {
    background-color: var(--cm-bg-dark);
    color: var(--cm-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 22px 18px;
    border-radius: var(--cm-radius-lg);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    border: 1px solid var(--cm-border-color);
    transition: all 0.25s ease;
    container-type: inline-size;
    container-name: ussd-widget;
}

.cm-momo-container * {
    box-sizing: border-box;
}

/* Toast Notification */
.cm-toast-notification {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #10b981;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    white-space: nowrap;
}

.cm-toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Top Bar: Cameroon Flag & Bilingual Switcher */
.cm-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-flag-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-lang-pill {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.cm-lang-pill:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
}

/* Typography */
.cm-headline {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
    line-height: 1.25;
}

.cm-subheadline {
    text-align: center;
    font-size: 13px;
    color: var(--cm-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.45;
}

.cm-instruction {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 12px 0 16px 0;
    line-height: 1.4;
}

.cm-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 14px;
    line-height: 1.4;
}

/* Amount Selector Grid */
.cm-amount-selector-title {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.cm-amt-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    text-align: center;
}

.cm-amt-btn:hover {
    background: #2a3447;
    border-color: #4b5b7a;
}

.cm-amt-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
    font-weight: 800;
    transform: scale(1.02);
}

/* Custom Amount Box */
.cm-custom-amount-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cm-custom-input {
    flex: 1;
    background: #131720;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.cm-custom-input:focus {
    border-color: #3b82f6;
}

.cm-custom-apply-btn {
    background: #2563eb;
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.cm-custom-apply-btn:hover {
    background: #1d4ed8;
}

/* Hero Amount Badge */
.cm-hero-amount-badge {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    padding: 8px 24px;
    border-radius: 30px;
    margin: 0 auto 16px auto;
    width: fit-content;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cm-hero-amount-badge small,
.cm-hero-amount-badge .cm-currency-label {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

/* Provider Lists & Cards (Template 1: Classic Telco) */
.cm-providers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 14px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-card-orange {
    background: var(--cm-card-bg, #1e293b);
    border-radius: 16px;
    padding: 14px;
    color: #ffffff;
    border: 1px solid rgba(241, 110, 0, 0.25);
    border-left: 4px solid var(--cm-om-orange, #f16e00);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cm-card-mtn {
    background: var(--cm-card-bg, #1e293b);
    border-radius: 16px;
    padding: 14px;
    color: #ffffff;
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-left: 4px solid var(--cm-mtn-yellow, #ffcc00);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cm-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cm-brand-logo {
    width: 48px;
    height: 38px;
    background: transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cm-telco-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cm-op-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
    box-sizing: border-box;
    display: block;
}

.mpesa-badge {
    background: #00A859;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.wave-badge {
    background: #1DA1F2;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.moov-badge {
    background: #005DAA;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.airtel-badge {
    background: #E60000;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.telecel-badge {
    background: #E60000;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.opay-badge {
    background: #14B8A6;
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

.cm-svg-om {
    width: 30px;
    height: 30px;
}

.mtn-oval {
    background: #ffcc00;
    border-radius: 50%;
    padding: 3px 6px;
    text-align: center;
    border: 2px solid #000;
}

.mtn-oval span {
    display: block;
    font-weight: 900;
    font-size: 11px;
    color: #000;
    line-height: 1;
}

.mtn-oval small {
    display: block;
    font-size: 6px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.cm-brand-text {
    display: flex;
    flex-direction: column;
}

.cm-brand-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.cm-brand-action {
    font-size: 11px;
    opacity: 0.9;
}

.cm-dial-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.15s ease, filter 0.15s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cm-card-orange .cm-dial-box {
    background: linear-gradient(135deg, #f16e00 0%, #d45d00 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(241, 110, 0, 0.35);
}

.cm-card-mtn .cm-dial-box {
    background: linear-gradient(135deg, #ffcc00 0%, #ebb800 100%);
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.cm-dial-box:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cm-dial-box:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Template 2: FinTech Glassmorphism
   ========================================================================== */
.cm-template-fintech_glass {
    background: rgba(18, 22, 32, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-fintech-header {
    text-align: center;
    margin-bottom: 16px;
}

.cm-fintech-chip {
    display: inline-block;
    background: linear-gradient(90deg, #ffcc00, #f16e00);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cm-fintech-amount-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.cm-amount-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fintech-badge {
    background: transparent;
    color: #ffffff;
    font-size: 32px;
    padding: 0;
    box-shadow: none;
    margin-bottom: 12px;
}

.fintech-badge small {
    color: var(--cm-mtn-yellow);
    font-size: 16px;
}

.fintech-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

.fintech-btn {
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.cm-fintech-action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.cm-fintech-action-card.mtn-glass {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 204, 0, 0.04) 100%);
    border-left: 4px solid var(--cm-mtn-yellow);
}

.cm-fintech-action-card.orange-glass {
    background: linear-gradient(90deg, rgba(241, 110, 0, 0.15) 0%, rgba(241, 110, 0, 0.04) 100%);
    border-left: 4px solid var(--cm-om-orange);
}

.cm-fintech-action-card.op-glass {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left: 4px solid var(--brand-glow, #3b82f6);
}

.cm-fintech-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cm-fintech-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cm-glass-icon {
    font-size: 20px;
}

.cm-fintech-card-title {
    font-size: 14px;
    font-weight: 800;
}

.cm-fintech-card-code {
    font-size: 12px;
    color: #cbd5e1;
    font-family: monospace;
    font-weight: 700;
    margin-top: 2px;
}

.cm-fintech-dial-arrow {
    font-size: 18px;
}

/* ==========================================================================
   Template 3: Bottom Drawer / Mobile Sheet
   ========================================================================== */
.cm-body-drawer .cm-drawer-handle {
    width: 44px;
    height: 4px;
    background: #475569;
    border-radius: 4px;
    margin: 0 auto 14px auto;
}

.cm-drawer-amount-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cm-drawer-amount-badge {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
    color: var(--cm-mtn-yellow);
}

.cm-drawer-scroller {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.drawer-btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.cm-drawer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cm-drawer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.15s ease;
}

.cm-drawer-btn:active {
    transform: scale(0.97);
}

.cm-drawer-btn small {
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.85;
}

.cm-btn-mtn {
    background: var(--cm-mtn-yellow);
    color: #000000;
}

.cm-btn-orange {
    background: var(--cm-om-orange);
    color: #ffffff;
}

/* ==========================================================================
   Template 4: Express Pill / Minimalist
   ========================================================================== */
.cm-template-express_pill {
    padding: 14px 16px;
    border-radius: 16px;
}

.cm-pill-header h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-align: center;
}

.cm-amount-pills-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.pill-btn {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
}

.cm-pill-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cm-pill-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    transition: transform 0.1s ease;
}

.cm-pill-action strong {
    font-size: 11px;
    font-family: monospace;
    margin-top: 2px;
}

.cm-pill-mtn {
    background: var(--cm-mtn-yellow);
    color: #000;
}

.cm-pill-orange {
    background: var(--cm-om-orange);
    color: #fff;
}

/* ==========================================================================
   Template 5: Bilingual Cameroon Interactive Kiosk
   ========================================================================== */
.cm-kiosk-badge {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 10px auto;
    letter-spacing: 0.5px;
}

.kiosk-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 12px;
}

.cm-kiosk-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.cm-tab-btn {
    background: #181c24;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-tab-btn.active {
    background: #232936;
    color: #ffffff;
    border-color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cm-tab-content {
    display: none;
}

.cm-tab-content.active {
    display: block;
    animation: cmFadeIn 0.25s ease-in-out;
}

@keyframes cmFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cm-kiosk-simulated-screen {
    background: #000000;
    border: 2px solid #334155;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    margin-bottom: 12px;
}

.cm-kiosk-simulated-screen.orange-theme {
    border-color: rgba(241, 110, 0, 0.4);
}

.cm-screen-header {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cm-screen-ussd {
    font-size: 18px;
    font-weight: 900;
    color: var(--cm-mtn-yellow);
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.orange-theme .cm-screen-ussd {
    color: #ff8a26;
}

.cm-screen-meta {
    font-size: 11px;
    color: #94a3b8;
}

.cm-kiosk-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
}

.cm-kiosk-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
}

.cm-kiosk-dial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.cm-kiosk-dial-btn.mtn-accent {
    background: var(--cm-mtn-yellow);
    color: #000000;
}

.cm-kiosk-dial-btn.orange-accent {
    background: var(--cm-om-orange);
    color: #ffffff;
}

.cm-kiosk-copy-btn {
    background: #334155;
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cm-kiosk-copy-btn:hover {
    background: #475569;
}

/* 100% White-Label Official Carrier Trust Bar */
.cm-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-trust-shield {
    display: inline-flex;
    align-items: center;
    color: #10b981;
}

.cm-trust-text {
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Display Slots: Modal Popup, Floating Dock, Header Bar
   ========================================================================== */
.cm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
}

.cm-modal-overlay.cm-show {
    display: flex;
    animation: cmFadeIn 0.25s ease;
}

.cm-modal-window {
    position: relative;
    max-width: 440px;
    width: 100%;
}

.cm-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ffffff;
    color: #000000;
    border: none;
    font-size: 22px;
    font-weight: 900;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.cm-dock-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 100%;
    max-width: 440px;
    padding: 0 10px 10px 10px;
}

.cm-header-bar-container {
    position: relative;
    width: 100%;
    z-index: 9999;
    padding: 10px 0;
}

/* ==========================================================================
   Call To Action Trust Summary Badge
   ========================================================================== */
.cm-cta-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 auto 12px auto;
    text-align: center;
    max-width: 100%;
}

.cm-cta-summary-badge .cm-summary-shield {
    font-size: 12px;
}

.cm-cta-summary-badge .cm-summary-text {
    line-height: 1.3;
}

/* ==========================================================================
   Single Provider Focus Layout & Multi-Provider Hub Styles
   ========================================================================== */
.ussd-layout-single .cm-providers-list {
    display: flex;
    flex-direction: column;
}

.ussd-layout-single .cm-card {
    padding: 18px 16px;
}

.ussd-layout-single .cm-dial-box {
    padding: 14px 18px;
    font-size: 16px;
}

.ussd-layout-multi .cm-providers-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ==========================================================================
   Clear / Light Theme Overrides for Frontend Widgets
   ========================================================================== */
.ussd-theme-light {
    --cm-bg-dark: #f8fafc;
    --cm-card-bg: #ffffff;
    --cm-text-light: #0f172a;
    --cm-text-muted: #64748b;
    --cm-border-color: #e2e8f0;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.ussd-theme-light .cm-headline {
    color: #0f172a;
}

.ussd-theme-light .cm-subheadline {
    color: #64748b;
}

.ussd-theme-light .cm-top-bar {
    border-bottom-color: #e2e8f0;
}

.ussd-theme-light .cm-flag-pill {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.ussd-theme-light .cm-lang-pill {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ussd-theme-light .cm-lang-pill:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.ussd-theme-light .cm-cta-summary-badge {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.ussd-theme-light .cm-amount-selector-title {
    color: #64748b;
}

.ussd-theme-light .cm-amt-btn {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ussd-theme-light .cm-amt-btn:hover {
    border-color: #94a3b8;
}

.ussd-theme-light .cm-amt-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.ussd-theme-light .cm-custom-input {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ussd-theme-light .cm-custom-apply-btn {
    background: #0f172a;
    color: #ffffff;
}

.ussd-theme-light .cm-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ussd-theme-light .cm-card-orange {
    background: #ffffff !important;
    border-color: #fed7aa !important;
    border-left: 4px solid var(--cm-om-orange, #f16e00) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(241, 110, 0, 0.08) !important;
}

.ussd-theme-light .cm-card-mtn {
    background: #ffffff !important;
    border-color: #fef08a !important;
    border-left: 4px solid var(--cm-mtn-yellow, #ffcc00) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.08) !important;
}

.ussd-theme-light .cm-card-orange .cm-brand-name,
.ussd-theme-light .cm-card-mtn .cm-brand-name {
    color: #0f172a !important;
}

.ussd-theme-light .cm-hero-amount-badge {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.ussd-theme-light .cm-hero-amount-badge small,
.ussd-theme-light .cm-hero-amount-badge .cm-currency-label {
    color: #64748b !important;
}

.ussd-theme-light .cm-brand-name {
    color: #0f172a;
}

.ussd-theme-light .cm-brand-action {
    color: #64748b;
}

.ussd-theme-light .cm-instruction,
.ussd-theme-light .cm-disclaimer {
    color: #64748b;
}

/* System Auto Detection Overrides when OS is in Light Mode */
@media (prefers-color-scheme: light) {
    .ussd-theme-auto {
        --cm-bg-dark: #f8fafc;
        --cm-card-bg: #ffffff;
        --cm-text-light: #0f172a;
        --cm-text-muted: #64748b;
        --cm-border-color: #e2e8f0;
        background-color: #f8fafc !important;
        color: #0f172a !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    }

    .ussd-theme-auto .cm-headline {
        color: #0f172a;
    }

    .ussd-theme-auto .cm-subheadline {
        color: #64748b;
    }

    .ussd-theme-auto .cm-top-bar {
        border-bottom-color: #e2e8f0;
    }

    .ussd-theme-auto .cm-flag-pill {
        background: #f1f5f9;
        color: #475569;
        border-color: #cbd5e1;
    }

    .ussd-theme-auto .cm-lang-pill {
        background: #f1f5f9;
        color: #0f172a;
        border-color: #cbd5e1;
    }

    .ussd-theme-auto .cm-lang-pill:hover {
        background: #e2e8f0;
        border-color: #94a3b8;
    }

    .ussd-theme-auto .cm-cta-summary-badge {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #334155;
    }

    .ussd-theme-auto .cm-amount-selector-title {
        color: #64748b;
    }

    .ussd-theme-auto .cm-amt-btn {
        background: #ffffff;
        color: #0f172a;
        border-color: #cbd5e1;
    }

    .ussd-theme-auto .cm-amt-btn:hover {
        border-color: #94a3b8;
    }

    .ussd-theme-auto .cm-amt-btn.active {
        background: #0f172a;
        color: #ffffff;
        border-color: #0f172a;
    }

    .ussd-theme-auto .cm-custom-input {
        background: #ffffff;
        color: #0f172a;
        border-color: #cbd5e1;
    }

    .ussd-theme-auto .cm-custom-apply-btn {
        background: #0f172a;
        color: #ffffff;
    }

    .ussd-theme-auto .cm-card {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .ussd-theme-auto .cm-card-orange {
        background: #ffffff !important;
        border-color: #fed7aa !important;
        border-left: 4px solid var(--cm-om-orange, #f16e00) !important;
        color: #0f172a !important;
    }

    .ussd-theme-auto .cm-card-mtn {
        background: #ffffff !important;
        border-color: #fef08a !important;
        border-left: 4px solid var(--cm-mtn-yellow, #ffcc00) !important;
        color: #0f172a !important;
    }

    .ussd-theme-auto .cm-card-orange .cm-brand-name,
    .ussd-theme-auto .cm-card-mtn .cm-brand-name {
        color: #0f172a !important;
    }

    .ussd-theme-auto .cm-hero-amount-badge {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }

    .ussd-theme-auto .cm-hero-amount-badge small,
    .ussd-theme-auto .cm-hero-amount-badge .cm-currency-label {
        color: #64748b !important;
    }

    .ussd-theme-auto .cm-brand-name {
        color: #0f172a;
    }

    .ussd-theme-auto .cm-brand-action {
        color: #64748b;
    }

    .ussd-theme-auto .cm-instruction,
    .ussd-theme-auto .cm-disclaimer {
        color: #64748b;
    }
}

/* ==========================================================================
   Website Branding Harmonization Mode
   Harmonizes widget controls with the host website's custom palette
   ========================================================================== */
.ussd-branding-website .cm-amt-btn.active {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
    border-color: var(--cm-website-brand-primary, #ffcc00) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ussd-branding-website .cm-amt-btn:hover {
    border-color: var(--cm-website-brand-primary, #ffcc00);
}

.ussd-branding-website .cm-custom-apply-btn {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website .cm-custom-input:focus {
    border-color: var(--cm-website-brand-primary, #ffcc00) !important;
}

.ussd-branding-website .cm-btn-dial,
.ussd-branding-website .cm-dial-box {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website.cm-template-express_pill .ussd-pill-btn,
.ussd-branding-website.cm-template-floating_pill .cm-pill-action,
.ussd-branding-website .cm-pill-action {
    background: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
    border-color: var(--cm-website-brand-primary, #ffcc00) !important;
}

.ussd-branding-website.cm-template-fintech_glass .fg-dial-btn,
.ussd-branding-website.cm-template-fintech_grid .cm-fintech-action-card,
.ussd-branding-website .cm-fintech-action-card {
    background: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website.cm-template-bottom_drawer .bd-cta-btn,
.ussd-branding-website.cm-template-bottom_dock .cm-drawer-btn,
.ussd-branding-website .cm-drawer-btn {
    background: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website.cm-template-bilingual_kiosk .bk-dial-action,
.ussd-branding-website.cm-template-kiosk_card .cm-kiosk-dial-btn,
.ussd-branding-website .cm-kiosk-dial-btn {
    background: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website.cm-template-bilingual_kiosk .bk-tab.active,
.ussd-branding-website.cm-template-kiosk_card .cm-tab-btn.active,
.ussd-branding-website .cm-tab-btn.active {
    border-bottom-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-primary, #ffcc00) !important;
}

/* ==========================================================================
   Widget Card Surface Styles (Auto, Card, Flat, Glass)
   ========================================================================== */
.ussd-surface-card {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
    border-radius: var(--cm-radius-lg) !important;
}

.ussd-surface-flat {
    box-shadow: none !important;
    border: 1px solid var(--cm-border-color) !important;
}

.ussd-surface-glass {
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    background: rgba(24, 28, 36, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}

.ussd-theme-light.ussd-surface-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

/* ==========================================================================
   FinTech Vector Emblems Styling
   ========================================================================== */
.dialpay-emblem {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.dialpay-emblem-flag-en,
.dialpay-emblem-flag-fr {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Desktop Horizontal 2-Column Stacking & Mobile Space-Efficiency
   Container Queries & Viewport Media Rules
   ========================================================================== */
.cm-responsive-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Container Queries for modern embedded environments */
@container ussd-widget (min-width: 580px) {
    .cm-responsive-row {
        display: grid !important;
        grid-template-columns: 1.05fr 0.95fr !important;
        gap: 28px !important;
        align-items: start !important;
    }

    .cm-responsive-row .cm-col-left {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .cm-responsive-row .cm-col-left .cm-headline,
    .cm-responsive-row .cm-col-left .cm-subheadline,
    .cm-responsive-row .cm-col-left .cm-amount-selector-title,
    .cm-responsive-row .cm-col-left .cm-amount-label {
        text-align: left !important;
    }

    .cm-responsive-row .cm-col-left .cm-cta-summary-badge {
        align-self: flex-start !important;
    }

    .cm-responsive-row .cm-col-left .cm-hero-amount-badge {
        margin: 0 0 16px 0 !important;
    }

    .cm-responsive-row .cm-col-right {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .cm-pill-action-row {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .cm-momo-container {
        max-width: 860px;
        padding: 28px 26px;
    }

    .cm-momo-container.cm-template-compact_strip {
        max-width: 960px;
        padding: 16px 20px;
    }

    .cm-momo-container.cm-template-bilingual_stepper {
        max-width: 760px;
        padding: 26px 24px;
    }

    .cm-responsive-row {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 32px;
        align-items: start;
    }

    .cm-responsive-row .cm-col-left {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
    }

    .cm-responsive-row .cm-col-left .cm-headline,
    .cm-responsive-row .cm-col-left .cm-subheadline,
    .cm-responsive-row .cm-col-left .cm-amount-selector-title,
    .cm-responsive-row .cm-col-left .cm-amount-label {
        text-align: left;
    }

    .cm-responsive-row .cm-col-left .cm-cta-summary-badge {
        align-self: flex-start;
    }

    .cm-responsive-row .cm-col-left .cm-hero-amount-badge {
        margin: 0 0 16px 0;
    }

    .cm-responsive-row .cm-col-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Studio Phone Preview Scoping (Prevents 768px desktop viewport from breaking the 390px phone frame) */
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-momo-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-headline,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-subheadline,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-amount-selector-title {
    text-align: center !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-hero-amount-badge,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-split-badge {
    margin: 0 auto 12px auto !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-responsive-row .cm-col-left .cm-cta-summary-badge {
    align-self: center !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-split-card-top {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-split-dial-display {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-body-compact-strip .cm-strip-content {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-strip-info,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-strip-presets,
.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-strip-actions {
    justify-content: center !important;
}

.mobile-frame:not(.desktop-frame):not(.tablet-frame) .cm-strip-text .cm-headline {
    text-align: center !important;
}

/* Studio Tablet & Desktop Preview Scoping */
.mobile-frame.tablet-frame .cm-momo-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 18px !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.mobile-frame.desktop-frame .cm-momo-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 22px !important;
    border-radius: 18px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.mobile-frame.tablet-frame .cm-responsive-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

.mobile-frame.desktop-frame .cm-responsive-row {
    display: grid !important;
    grid-template-columns: 1.05fr 0.95fr !important;
    gap: 26px !important;
    align-items: start !important;
}

.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left .cm-headline,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left .cm-headline,
.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left .cm-subheadline,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left .cm-subheadline,
.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left .cm-amount-selector-title,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left .cm-amount-selector-title {
    text-align: left !important;
}

.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left .cm-hero-amount-badge,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left .cm-hero-amount-badge,
.mobile-frame.tablet-frame .cm-responsive-row .cm-col-left .cm-split-badge,
.mobile-frame.desktop-frame .cm-responsive-row .cm-col-left .cm-split-badge {
    margin: 0 0 12px 0 !important;
    align-self: flex-start !important;
}

.mobile-frame.tablet-frame .cm-split-card-top {
    flex-wrap: wrap !important;
    gap: 8px !important;
}

@media (max-width: 767px) {
    .cm-momo-container {
        max-width: 100%;
        padding: 15px 13px;
        border-radius: 14px;
        margin: 0 auto;
    }

    .cm-headline {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    .cm-subheadline {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .cm-top-bar {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .cm-amount-grid {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .cm-amt-btn {
        padding: 8px 6px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }

    .cm-hero-amount-badge {
        font-size: 20px !important;
        padding: 6px 18px !important;
        margin-bottom: 12px !important;
    }

    .cm-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .cm-dial-box {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .cm-trust-bar {
        font-size: 10.5px !important;
        margin-top: 14px !important;
        padding-top: 10px !important;
    }
}

/* ==========================================================================
   Template 6: Modern Split Checkout (Left Details + Right Instant Dial)
   ========================================================================== */
.cm-split-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    width: fit-content;
}

.cm-split-amount-block {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px;
    margin-top: 8px;
}

.cm-split-amount-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-live-total-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.35);
    color: #ffcc00;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.cm-split-op-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cm-op-select-title {
    font-size: 12px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-instant-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 3px 9px;
    border-radius: 999px;
}

.cm-split-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cm-split-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.cm-split-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cm-split-brand-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cm-split-op-name {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}

.cm-split-merchant-id {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.cm-split-merchant-id strong {
    color: #cbd5e1;
}

.cm-split-dial-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(15, 23, 42, 0.6);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    letter-spacing: 0.4px;
    word-break: break-all;
}

.cm-split-card-actions {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 8px;
}

.cm-split-dial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.cm-split-dial-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cm-split-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cm-split-copy-btn:hover {
    background: #475569;
}

/* ==========================================================================
   Template 7: Compact Strip (Horizontal Banner Strip)
   ========================================================================== */
.cm-body-compact-strip .cm-strip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #1e293b;
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-strip-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.cm-strip-flag {
    font-size: 22px;
}

.cm-strip-text .cm-headline {
    font-size: 15px;
    margin: 0;
    text-align: left;
}

.cm-strip-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.cm-strip-sub strong {
    color: var(--cm-mtn-yellow);
}

.cm-strip-presets {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.strip-amt-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.strip-amt-btn.active {
    background: var(--cm-mtn-yellow);
    color: #000;
    border-color: var(--cm-mtn-yellow);
    font-weight: 800;
}

.cm-strip-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cm-strip-dial-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cm-strip-dial-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.cm-strip-dial-pill .cm-brand-logo {
    width: 26px;
    height: 20px;
}

.cm-strip-code {
    font-family: monospace;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
}

/* ==========================================================================
   Template 8: Bilingual Stepper (Guided 3-Step Payment Wizard)
   ========================================================================== */
.cm-body-stepper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cm-stepper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 4px;
}

.cm-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.cm-step-indicator.active {
    opacity: 1;
}

.cm-step-indicator.completed {
    opacity: 0.85;
}

.cm-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #334155;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.cm-step-indicator.active .cm-step-num {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.cm-step-indicator.completed .cm-step-num {
    background: #10b981;
    color: #ffffff;
}

.cm-step-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.cm-step-indicator.active .cm-step-label {
    color: #f8fafc;
}

.cm-stepper-line {
    flex: 1;
    height: 2px;
    background: #334155;
    margin: 0 10px;
    transition: background 0.2s ease;
}

.cm-stepper-line.completed {
    background: #10b981;
}

.cm-step-content,
.cm-step-pane {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
}

.cm-step-back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cm-step-back-btn,
.cm-stepper-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-step-back-btn:hover,
.cm-stepper-back-btn:hover {
    background: #334155;
    color: #ffffff;
}

.cm-step-summary-amt {
    font-size: 12px;
    font-weight: 800;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
}

.cm-step-heading {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 12px;
    text-align: center;
}

.cm-stepper-ops,
.cm-stepper-operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.cm-stepper-op-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: #f8fafc;
    transition: all 0.2s ease;
}

.cm-stepper-op-choice:hover {
    border-color: #64748b;
    transform: translateY(-1px);
}

.cm-stepper-op-choice.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.cm-stepper-op-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
}

.cm-stepper-op-full {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.cm-stepper-confirm-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.cm-stepper-op-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cm-stepper-ussd-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #38bdf8;
    background: #0f172a;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.cm-stepper-steps-guidance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cm-guide-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.cm-guide-step .guide-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-stepper-dial-actions {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 8px;
}

.cm-stepper-dial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-stepper-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-stepper-controls,
.cm-stepper-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
    gap: 12px;
}

.cm-stepper-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-stepper-next-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* ==========================================================================
   Custom Theme Mode (.ussd-theme-custom)
   ========================================================================== */
.ussd-theme-custom {
    background-color: var(--cm-custom-bg, #0f172a) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
    border-color: var(--cm-custom-border, #334155) !important;
}

.ussd-theme-custom .cm-card,
.ussd-theme-custom .cm-fintech-amount-card,
.ussd-theme-custom .cm-split-card,
.ussd-theme-custom .cm-split-amount-block,
.ussd-theme-custom .cm-step-content,
.ussd-theme-custom .cm-step-pane,
.ussd-theme-custom .cm-strip-content,
.ussd-theme-custom .cm-drawer-card,
.ussd-theme-custom .cm-kiosk-simulated-screen {
    background-color: var(--cm-custom-card-bg, #1e293b) !important;
    border-color: var(--cm-custom-border, #334155) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
}

.ussd-theme-custom .cm-headline,
.ussd-theme-custom .cm-split-op-name,
.ussd-theme-custom .cm-step-indicator.active .cm-step-label {
    color: var(--cm-custom-text, #f8fafc) !important;
}

.ussd-theme-custom .cm-subheadline,
.ussd-theme-custom .cm-instruction,
.ussd-theme-custom .cm-disclaimer,
.ussd-theme-custom .cm-amount-selector-title {
    color: var(--cm-custom-text, #f8fafc) !important;
    opacity: 0.8;
}

.ussd-theme-custom .cm-amt-btn {
    background: var(--cm-custom-card-bg, #1e293b) !important;
    border-color: var(--cm-custom-border, #334155) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
}

.ussd-theme-custom .cm-amt-btn.active {
    background: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
    border-color: var(--cm-website-brand-primary, #ffcc00) !important;
}

.ussd-theme-custom .cm-custom-input {
    background: var(--cm-custom-bg, #0f172a) !important;
    border-color: var(--cm-custom-border, #334155) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
}

.ussd-theme-custom .cm-trust-bar {
    border-top-color: var(--cm-custom-border, rgba(255, 255, 255, 0.08)) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
    opacity: 0.8;
}

/* ==========================================================================
   Website Branding Harmonization Extensions
   ========================================================================== */
.ussd-branding-website .cm-split-dial-btn {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website .cm-strip-dial-pill {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website .cm-stepper-next-btn {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website .cm-step-indicator.active .cm-step-num {
    background-color: var(--cm-website-brand-primary, #ffcc00) !important;
    color: var(--cm-website-brand-text, #000000) !important;
}

.ussd-branding-website .cm-stepper-op-choice.selected {
    border-color: var(--cm-website-brand-primary, #ffcc00) !important;
}

/* Light Mode Overrides for Modern Templates */
.ussd-theme-light .cm-split-card,
.ussd-theme-light .cm-split-amount-block,
.ussd-theme-light .cm-strip-content,
.ussd-theme-light .cm-step-content,
.ussd-theme-light .cm-step-pane {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.ussd-theme-light .cm-split-op-name,
.ussd-theme-light .cm-op-select-title,
.ussd-theme-light .cm-step-heading,
.ussd-theme-light .cm-stepper-op-title,
.ussd-theme-light .cm-step-label {
    color: #0f172a !important;
}

.ussd-theme-light .cm-split-dial-display,
.ussd-theme-light .cm-stepper-ussd-code {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: #cbd5e1 !important;
}

.ussd-theme-light .cm-split-copy-btn,
.ussd-theme-light .cm-stepper-copy-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.ussd-theme-light .cm-split-copy-btn:hover,
.ussd-theme-light .cm-stepper-copy-btn:hover {
    background: #e2e8f0 !important;
}

.ussd-theme-light .strip-amt-btn {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.ussd-theme-light .strip-amt-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.ussd-theme-light .cm-stepper-op-choice,
.ussd-theme-light .cm-stepper-confirm-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.ussd-theme-light .cm-guide-step {
    color: #334155 !important;
}

.ussd-theme-light .cm-stepper-line {
    background: #e2e8f0 !important;
}

.ussd-theme-light .cm-step-num {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.ussd-theme-light .cm-step-back-btn,
.ussd-theme-light .cm-stepper-back-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* ==========================================================================
   Merchant / Phone Number & Aligned Recipient Name Transaction Badges
   ========================================================================== */
.cm-merchant-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
}

.cm-merchant-num-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.cm-merchant-num-pill strong {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.cm-merchant-name-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #6ee7b7;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.cm-merchant-name-pill strong {
    color: inherit;
    font-weight: 800;
}

.cm-split-merchant-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.cm-drawer-op-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cm-drawer-merchant-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    opacity: 0.92;
    font-weight: 600;
}

.cm-drawer-merchant-meta .cm-merchant-name-pill,
.cm-pill-merchant-sub .cm-merchant-name-pill,
.cm-strip-merchant-sub .cm-merchant-name-pill {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.cm-pill-op-meta,
.cm-strip-op-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    gap: 2px;
}

.cm-pill-merchant-sub,
.cm-strip-merchant-sub {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    opacity: 0.9;
    font-weight: 600;
}

.cm-stepper-choice-merchant {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 10.5px;
    color: #94a3b8;
}

.cm-stepper-choice-merchant .cm-merchant-name-pill {
    padding: 1px 6px;
    font-size: 10px;
}

.cm-stepper-merchant-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* Light theme adjustments for merchant pills */
.ussd-theme-light .cm-merchant-num-pill {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

.ussd-theme-light .cm-merchant-num-pill strong {
    color: #0f172a !important;
}

.ussd-theme-light .cm-merchant-name-pill {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}

.ussd-theme-light .cm-drawer-merchant-meta .cm-merchant-name-pill,
.ussd-theme-light .cm-pill-merchant-sub .cm-merchant-name-pill,
.ussd-theme-light .cm-strip-merchant-sub .cm-merchant-name-pill {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
}

/* ==========================================================================
   Template 9: Smart POS Terminal & Receipt Card (pos_qr_terminal)
   ========================================================================== */
.cm-pos-receipt-shell {
    background: #131c2e;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cm-pos-header {
    text-align: center;
    margin-bottom: 12px;
}

.cm-pos-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.cm-pos-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.cm-pos-title {
    margin-bottom: 4px;
}

.cm-pos-subtitle {
    margin-bottom: 8px;
}

.cm-pos-divider {
    border-top: 1.5px dashed rgba(148, 163, 184, 0.25);
    margin: 12px 0;
}

.cm-pos-screen-box {
    background: #090d16;
    border: 1.5px solid #1e293b;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    margin-bottom: 12px;
}

.cm-pos-screen-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
    margin-bottom: 4px;
}

.cm-pos-screen-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 26px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 0.5px;
}

.cm-pos-screen-amount small {
    font-size: 13px;
    color: #6ee7b7;
}

.cm-pos-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 10px;
}

.pos-amt-btn {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
}

.cm-pos-operators-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-pos-op-ticket {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--op-accent, #ffcc00);
    border-radius: 12px;
    padding: 12px;
}

.cm-pos-op-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cm-pos-op-details {
    flex: 1;
    min-width: 0;
}

.cm-pos-op-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.cm-pos-op-bottom {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.cm-pos-ussd-code {
    background: #0f172a;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 800;
    color: #38bdf8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-pos-dial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.cm-pos-dial-btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.cm-pos-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border: 1px solid #475569;
    color: #f8fafc;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==========================================================================
   Template 10: NGO & Fundraising Impact Showcase (ngo_impact_hero)
   ========================================================================== */
.cm-ngo-hero-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(37, 99, 235, 0.14) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.cm-ngo-badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cm-ngo-impact-pill,
.cm-ngo-country-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #6ee7b7;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}

.cm-ngo-country-pill {
    color: #f8fafc;
}

.cm-ngo-amount-showcase {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 22px;
    margin-top: 6px;
}

.cm-ngo-amt-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.cm-ngo-amt-val {
    font-size: 24px;
    font-weight: 900;
    color: #34d399;
}

.cm-ngo-amt-val small {
    font-size: 13px;
    color: #a7f3d0;
}

.ngo-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ngo-amt-btn.active {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #052e16 !important;
}

.cm-ngo-providers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cm-ngo-provider-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.cm-ngo-op-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cm-ngo-op-info {
    flex: 1;
    min-width: 0;
}

.cm-ngo-op-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.cm-ngo-op-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cm-ngo-dial-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.cm-ngo-dial-cta:hover {
    transform: translateY(-1px);
}

.cm-ngo-cta-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cm-ngo-ussd-chip {
    background: rgba(0, 0, 0, 0.22);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
}

.cm-ngo-copy-btn {
    background: #334155;
    border: 1px solid #475569;
    color: #ffffff;
    width: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   Template 11: Executive Invoice & Bill Settlement (vip_invoice_card)
   ========================================================================== */
.cm-invoice-card-wrap {
    background: #162033;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

.cm-invoice-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.cm-invoice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cm-invoice-title {
    text-align: left;
    font-size: 18px;
    margin-bottom: 3px;
}

.cm-invoice-sub {
    text-align: left;
    margin-bottom: 0;
    font-size: 12px;
}

.cm-invoice-total-box {
    background: #0f172a;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: right;
    flex-shrink: 0;
}

.cm-invoice-total-lbl {
    display: block;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
}

.cm-invoice-total-num {
    font-size: 18px;
    font-weight: 900;
    color: #fbbf24;
    white-space: nowrap;
}

.cm-invoice-total-num small {
    font-size: 11px;
    color: #cbd5e1;
}

.invoice-grid {
    grid-template-columns: repeat(2, 1fr);
}

.cm-invoice-ledger-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-invoice-ledger-item {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-invoice-op-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-invoice-op-meta {
    flex: 1;
    min-width: 0;
}

.cm-invoice-op-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.cm-invoice-action-col {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.cm-invoice-ussd-pill {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 7px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-invoice-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.cm-invoice-copy-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   Template 12: Conversion Trust Dock & Verified Grid (floating_trust_dock)
   ========================================================================== */
.cm-dock-header {
    text-align: center;
    margin-bottom: 12px;
}

.cm-dock-pill-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cm-dock-trust-chip,
.cm-dock-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.cm-dock-country-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.cm-dock-amount-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.cm-dock-amt-lbl {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
}

.cm-dock-amt-val {
    font-size: 20px;
    font-weight: 900;
    color: #ffcc00;
}

.cm-dock-amt-val small {
    font-size: 12px;
    color: #cbd5e1;
}

.dock-grid {
    grid-template-columns: repeat(2, 1fr);
}

.cm-dock-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cm-dock-op-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 3px solid var(--dock-brand, #ffcc00);
    border-radius: 14px;
    padding: 12px;
}

.cm-dock-op-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cm-dock-op-text {
    flex: 1;
    min-width: 0;
}

.cm-dock-op-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.cm-dock-op-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cm-dock-dial-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.cm-dock-dial-btn:hover {
    transform: translateY(-1px);
}

.cm-dock-ussd-tag {
    background: rgba(0, 0, 0, 0.22);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.cm-dock-copy-btn {
    background: #334155;
    border: 1px solid #475569;
    color: #ffffff;
    width: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Light & Custom Theme Overrides for Templates 9–12 */
.ussd-theme-light .cm-pos-receipt-shell,
.ussd-theme-light .cm-pos-op-ticket,
.ussd-theme-light .cm-ngo-provider-card,
.ussd-theme-light .cm-invoice-card-wrap,
.ussd-theme-light .cm-invoice-ledger-item,
.ussd-theme-light .cm-dock-amount-bar,
.ussd-theme-light .cm-dock-op-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.ussd-theme-light .cm-pos-op-name,
.ussd-theme-light .cm-ngo-op-title,
.ussd-theme-light .cm-invoice-op-name,
.ussd-theme-light .cm-dock-op-title {
    color: #0f172a !important;
}

.ussd-theme-light .cm-pos-ussd-code,
.ussd-theme-light .cm-invoice-ussd-pill {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: #cbd5e1 !important;
}

.ussd-theme-light .cm-dock-amt-val,
.ussd-theme-light .cm-invoice-total-num {
    color: #0f172a !important;
}

.ussd-theme-custom .cm-pos-receipt-shell,
.ussd-theme-custom .cm-pos-op-ticket,
.ussd-theme-custom .cm-ngo-provider-card,
.ussd-theme-custom .cm-invoice-card-wrap,
.ussd-theme-custom .cm-invoice-ledger-item,
.ussd-theme-custom .cm-dock-amount-bar,
.ussd-theme-custom .cm-dock-op-card {
    background-color: var(--cm-custom-card-bg, #1e293b) !important;
    border-color: var(--cm-custom-border, #334155) !important;
    color: var(--cm-custom-text, #f8fafc) !important;
}

/* Container query responsiveness for Templates 9–12 */
@container ussd-widget (max-width: 390px) {
    .cm-pos-op-bottom,
    .cm-invoice-action-col {
        grid-template-columns: 1fr auto;
    }
    .cm-pos-ussd-code,
    .cm-invoice-ussd-pill {
        grid-column: 1 / -1;
    }
    .cm-invoice-top-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cm-invoice-total-box {
        text-align: left;
    }
}

/* Remote Master Security Lockdown Banner */
.cm-remote-lockdown-overlay {
    background: rgba(15, 23, 42, 0.96);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    color: #f8fafc;
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.25);
}