/* Trezo integration: design tokens and adapters for application-specific controls.
   Vendor Bootstrap, tables, utilities and RTL styles live in /trezo/css/style.css. */
:root, body.trezo-app {
    --primary: #605dff; --primary-dark: #4936f5; --primary-light: #7572ff;
    --secondary: #ecf0ff; --accent: #ffbc2b; --success: #1e8308;
    --danger: #d71c00; --warning: #ffbc2b; --info: #2db6f5;
    --dark: #111827; --dark-2: #1f2937; --dark-3: #374151; --dark-4: #4b5563;
    --bg-main: #f6f7f9; --bg-card: #fff; --card-bg: #fff;
    --text-primary: #111827; --text-secondary: #374151; --text-muted: #4b5563;
    --border: #eceef2; --border-color: #eceef2; --glass-border: #eceef2;
    --radius: 8px; --radius-sm: 6px; --radius-pill: 8px;
    --shadow: none; --shadow-lg: 0 4px 24px rgb(58 66 82 / 7%);
    --transition: color .2s, background-color .2s, border-color .2s;
    --sidebar-width: 260px; --header-height: 76px;
    --bs-primary: #605dff; --bs-primary-rgb: 96,93,255;
    --bs-body-bg: #f6f7f9; --bs-body-color: #111827; --bs-border-color: #eceef2;
    --bs-font-sans-serif: 'Cairo', sans-serif; --bs-body-font-family: 'Cairo', sans-serif;
    --luxury-gold: var(--primary); --luxury-border: var(--border);
    --luxury-glass-bg: #fff; --luxury-text-headings: var(--text-primary);
}
body.trezo-app {
    font-family: 'Cairo', sans-serif !important;
    background: var(--bg-main); color: var(--text-primary); line-height: 1.7;
    margin: 0; min-height: 100vh;
}
.trezo-app :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,table,small,span):not(.material-symbols-outlined):not([class^="ri-"]):not(.fa):not(.fas):not(.fab):not(.far) {
    font-family: 'Cairo', sans-serif;
}
.trezo-app :is(button,input,select,textarea) { font-family: 'Cairo', sans-serif !important; }
.trezo-app a { text-decoration: none; }
.trezo-app :focus-visible { outline: 3px solid #adabff; outline-offset: 3px; }
.trezo-app :is(h1,h2,h3,h4,h5,h6) { line-height: 1.5; }
.trezo-app input:is([type=email],[type=tel],[type=url]), .trezo-app .otp-input { direction: ltr; }
.trezo-app :is(.card,.glass-card,.enhanced-container) {
    background: #fff; color: var(--text-primary); border-color: var(--border);
    border-radius: 8px; box-shadow: none; backdrop-filter: none;
}
.trezo-app .card.shadow, .trezo-app .card.shadow-sm { box-shadow: none !important; }
.trezo-app .card-header { background: #fff; border-bottom: 1px solid var(--border); padding: 20px 24px; font-weight: 700; }
.trezo-app .card-body { padding: 24px; }
.trezo-app .card-footer { background: #fff; border-top-color: var(--border); }
.trezo-app .btn { border-radius: 7px; font-weight: 600; box-shadow: none; }
.trezo-app .btn-primary, .trezo-app .btn-submit {
    --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark);
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.trezo-app .btn-primary:hover { background: var(--primary-dark); }
.trezo-app .btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.trezo-app .btn-outline-primary:hover { color: #fff; background: var(--primary); }
.trezo-app :is(.form-control,.form-select,.enhanced-input) {
    background-color: #fff; color: var(--text-primary); border: 1px solid #d5d9e2;
    border-radius: 7px; min-height: 44px; font-size: 14px;
}
.trezo-app :is(.form-control,.form-select):focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(96 93 255 / 12%); }
.trezo-app :is(.form-control,.form-select):disabled { background-color: #f6f7f9; }
.trezo-app .form-label { margin-bottom: 8px; font-weight: 600; }
.trezo-admin :is(input,textarea,select).form-control { background-color: #fff !important; color: #3a4252 !important; border-color: #d5d9e2 !important; }
.trezo-admin .form-control::placeholder { color: #8695aa !important; }
.trezo-admin .training-card :is(.text-white,.text-white-50),
.trezo-admin .list-group-item.bg-transparent.text-white,
.trezo-admin .card-header.bg-transparent.text-white { color: #3a4252 !important; }
.trezo-auth .field-error { color: #b32910; font-size: 13px; }
.trezo-app .table { --bs-table-bg: #fff; --bs-table-color: #64748b; --bs-table-border-color: #eceef2; margin-bottom: 0; }
.trezo-app .table > thead > tr > th { background: #f6f7f9; color: #3a4252; font-weight: 600; padding: 14px 20px; white-space: nowrap; }
.trezo-app .table > tbody > tr > td { padding: 16px 20px; vertical-align: middle; }
.trezo-app .default-table-area { border-radius: 8px; }
.trezo-app .table :is(.btn,.badge) { white-space: nowrap; }
.trezo-app .badge-gold { background: #ecf0ff; color: #4936f5; border: 1px solid #dde4ff; }
.trezo-app .status-badge { display: inline-block; padding: 4px 10px; border-radius: 5px; font-size: 12px; background: #ecf0ff; color: #4936f5; }
.trezo-app .status-badge.completed { background: #eeffe5; color: #1e8308; }
.trezo-app .status-badge.pending { background: #fff4d2; color: #795800; }
.trezo-app .status-badge.cancelled { background: #ffe1dd; color: #b32910; }
.trezo-app .table-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 5px; color: #64748b; }
.trezo-app .table-action-btn.edit { color: #605dff; }
.trezo-app .table-action-btn.delete { color: #d71c00; }
.trezo-app .table-action-btn:hover { background: #f6f7f9 !important; }
.trezo-app .pagination { gap: 8px; flex-wrap: wrap; margin-bottom: 0; padding: 0; }
.trezo-app .pagination .page-link { background: #fff !important; color: #3a4252 !important; border: 1px solid #eceef2 !important; border-radius: 6px !important; box-shadow: none; }
.trezo-app .pagination .active .page-link { background: #605dff !important; color: #fff !important; }
.trezo-app .pagination .disabled .page-link { background: #f6f7f9 !important; color: #8695aa !important; }
.trezo-app .posts-list-item { display: block; padding: 16px; background: #fff; border-bottom: 1px solid #eceef2; }
.trezo-app .posts-list-item.active, .trezo-app .posts-list-item:hover { background: #ecf0ff; }
.trezo-app .comment-item { padding: 14px; border-bottom: 1px solid #eceef2; }
.trezo-app .comment-author { color: #4936f5; font-weight: 700; font-size: 13px; }
.trezo-app .comment-date { color: #8695aa; font-size: 12px; }
.trezo-app .comment-reply { padding: 12px; margin: 8px 16px; border-inline-start: 3px solid #605dff; background: #ecf0ff; border-radius: 6px; }
.trezo-app .page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.trezo-app .page-title { font-size: 23px; font-weight: 700; margin: 0; }
.trezo-app .stat-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 142px; }
.trezo-app .stat-card h3 { font-size: 28px; font-weight: 700; margin: 8px 0; font-variant-numeric: tabular-nums; }
.trezo-app .stat-card h6 { font-size: 14px; font-weight: 500; }
.trezo-app .stat-icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 24px; }
.trezo-app .chart-container { position: relative; min-width: 0; }

/* Admin shell follows blank-page.html; existing route and permission logic is retained. */
.trezo-admin .sidebar-area {
    position: fixed; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto;
    width: var(--sidebar-width); height: 100dvh; background: #fff; z-index: 1040;
    padding: 0; display: flex; flex-direction: column; border-inline-end: 1px solid var(--border);
    transition: transform .25s ease;
}
.trezo-admin .sidebar-header.logo { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.trezo-admin .sidebar-brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.trezo-admin .sidebar-brand span { color: var(--text-primary) !important; margin: 0 !important; }
.trezo-admin .sidebar-menu { padding: 16px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.trezo-admin .menu-category { padding: 20px 14px 8px; font-size: 12px; color: #8695aa; }
.trezo-admin .sidebar .nav-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; margin: 3px 0;
    font-size: 14px; font-weight: 600; color: #64748b; border-radius: 7px; text-align: start;
}
.trezo-admin .sidebar .nav-link i { width: 21px; text-align: center; font-size: 17px; flex-shrink: 0; }
.trezo-admin .sidebar .nav-link:hover, .trezo-admin .sidebar .nav-link.active { background: #ecf0ff !important; color: #605dff; }
.trezo-admin .store-collapse-btn .store-arrow { margin-inline-start: auto; font-size: 11px; }
.trezo-admin .store-collapse-btn[aria-expanded=true] .store-arrow { transform: rotate(-90deg); }
.trezo-admin .store-submenu { display: none; padding-inline-start: 16px; }
.trezo-admin .store-submenu.open { display: block; }
.trezo-admin .store-submenu .nav-link { font-size: 13px; font-weight: 500; }
.trezo-admin .sidebar-user { display: flex; align-items: center; gap: 10px; padding: 16px 12px; border-top: 1px solid var(--border); }
.trezo-admin .sidebar-user .text-white { color: var(--text-primary) !important; }
.trezo-admin .user-avatar { width: 38px; height: 38px; display: grid; place-items: center; background: #ecf0ff; color: var(--primary); border-radius: 50%; flex-shrink: 0; }
.trezo-admin .main-wrapper.main-content { margin: 0; padding: 0; padding-inline-start: var(--sidebar-width); min-width: 0; transition: padding .25s; }
.trezo-admin .top-navbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 16px 24px; margin: 0 24px; position: relative; z-index: 1020; }
.trezo-admin .top-navbar > div:first-child { flex-wrap: wrap; }
.trezo-admin .toggle-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 7px; background: #f6f7f9; color: #64748b; }
.trezo-admin .top-navbar .store-switcher { max-width: 220px; }
.trezo-admin .top-navbar > .d-none.d-md-flex { position: static !important; transform: none !important; margin-inline-start: auto; }
.trezo-content { padding: 24px; min-width: 0; }
.trezo-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.trezo-page-heading h1 { font-size: 22px; font-weight: 700; margin: 0; }
.trezo-page-heading > span { font-size: 13px; }
.trezo-content:has(> .page-header) > .trezo-page-heading { display: none; }
.trezo-sidebar-backdrop { display: none; }
.trezo-skip-link { position: fixed; top: -100px; inset-inline-start: 24px; padding: 12px; background: #fff; color: #4936f5; z-index: 1100; }
.trezo-skip-link:focus { top: 12px; }
@media (min-width: 1200px) {
    .trezo-admin.sidebar-collapsed .sidebar-area { transform: translateX(-100%); }
    .trezo-admin.rtl.sidebar-collapsed .sidebar-area { transform: translateX(100%); }
    .trezo-admin.sidebar-collapsed .main-wrapper.main-content { padding-inline-start: 0; }
}
@media (max-width: 1199.98px) {
    .trezo-admin .sidebar-area { transform: translateX(-100%); visibility: hidden; }
    .trezo-admin.rtl .sidebar-area { transform: translateX(100%); }
    .trezo-admin.sidebar-open .sidebar-area { transform: translateX(0); visibility: visible; }
    .trezo-admin .main-wrapper.main-content { padding-inline-start: 0; }
    .trezo-admin.sidebar-open .trezo-sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; border: 0; background: rgb(25 34 50 / 35%); }
    .trezo-admin.sidebar-open { overflow: hidden; }
}

/* Authentication composition and controls from login/register/reset-password.html. */
.trezo-auth-container { min-height: 100vh; display: flex; align-items: center; padding-block: 48px; max-width: 1230px; }
.trezo-auth-image { width: 100%; height: min(740px, 85vh); object-fit: cover; }
.trezo-auth-form { max-width: 480px; margin-inline: auto; width: 100%; }
.trezo-auth .auth-card { width: 100%; }
.trezo-auth .auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.trezo-auth .auth-logo-icon img { width: 44px; height: 44px; border-radius: 10px; }
.trezo-auth .auth-logo-name { font-size: 26px; font-weight: 800; color: #3a4252; }
.trezo-auth .auth-heading { font-size: 28px; margin-bottom: 8px; font-weight: 700; }
.trezo-auth .auth-subheading { color: #64748b; margin-bottom: 28px; }
.trezo-auth .form-group { margin-bottom: 20px; }
.trezo-auth .input-wrapper { position: relative; display: flex; align-items: center; }
.trezo-auth .input-icon { position: absolute; inset-inline-start: 16px; color: #8695aa; z-index: 1; pointer-events: none; }
.trezo-auth .input-wrapper .form-control { min-height: 52px; padding-inline: 44px; }
.trezo-auth .btn-submit { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px; width: 100%; margin-top: 8px; }
.trezo-auth .auth-divider { display: flex; align-items: center; gap: 16px; color: #8695aa; margin: 24px 0; }
.trezo-auth .auth-divider::before,.trezo-auth .auth-divider::after { content: ''; flex: 1; height: 1px; background: #d5d9e2; }
.trezo-auth .auth-footer-link { text-align: center; font-size: 14px; }
.trezo-auth .back-to-home { display: inline-flex; gap: 8px; margin-top: 20px; color: #64748b; }
.trezo-auth .alert-box { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 8px; margin-bottom: 18px; }
.trezo-auth .alert-danger { background: #ffe1dd; color: #b32910; }
.trezo-auth .alert-warning { background: #fff4d2; color: #795800; }
.trezo-auth .alert-success { background: #eeffe5; color: #1e8308; }
.trezo-auth .otp-input { width: 100%; font-size: 28px; text-align: center; letter-spacing: 12px; border: 1px solid #d5d9e2; border-radius: 8px; padding: 16px; }
.trezo-auth .otp-phone-badge { display: inline-flex; gap: 8px; background: #ecf0ff; border-radius: 8px; padding: 8px 16px; margin-bottom: 20px; }
.trezo-auth .otp-resend-btn { background: none; border: 0; color: var(--primary); }
.trezo-auth .otp-resend-btn:disabled { color: #8695aa; cursor: not-allowed; }

/* Customer-facing product grid, cart and checkout use Trezo's commerce surfaces. */
.trezo-store { --secondary: #ecf0ff; }
.trezo-store :is(.navbar,.store-navbar) { background: var(--nav-bg,#fff); color: var(--nav-text,#3a4252); border-bottom: 1px solid #eceef2; box-shadow: none; padding: 18px 4%; }
.trezo-store :is(.nav-logo,.store-brand) { color: var(--nav-text,#3a4252); font-size: 22px; font-weight: 700; }
.trezo-store .search-container { border: 1px solid #eceef2; background: #f6f7f9; border-radius: 8px; }
.trezo-store .categories-bar { padding: 16px 4%; background: transparent; border: 0; }
.trezo-store :is(.category-btn,.category-pill) { border-radius: 8px; background: #fff; border: 1px solid #eceef2; color: #64748b; padding: 9px 20px; }
.trezo-store :is(.category-btn,.category-pill).active { background: var(--primary); border-color: var(--primary); color: #fff; }
.trezo-store .hero { margin: 8px 4% 24px; padding: 36px; min-height: 330px; background: #ecf0ff; border-radius: 8px; }
.trezo-store .hero-title { font-size: clamp(26px,3vw,42px); }
.trezo-store .hero-image img { animation: none; box-shadow: none; max-height: 310px; object-fit: contain; }
.trezo-store .hero-carousel { margin: 8px 4% 24px; border-radius: 8px; overflow: hidden; }
.trezo-store .section { padding: 24px 4%; background: transparent !important; }
.trezo-store .section-header { margin-bottom: 24px; }
.trezo-store .section-title { font-size: 22px; padding: 0; }
.trezo-store .section-title::before { display: none; }
.trezo-store .products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.trezo-store .product-card { background: #fff; border: 0; border-radius: 8px; box-shadow: none; padding: 20px; }
.trezo-store .product-card:hover { transform: none; box-shadow: 0 4px 24px rgb(58 66 82 / 8%); }
.trezo-store .product-img-wrapper { height: 230px; background: #f6f7f9; border-radius: 8px; margin-bottom: 20px; }
.trezo-store .product-img-wrapper img { object-fit: contain; }
.trezo-store .product-title { font-size: 17px; font-weight: 600; color: #3a4252; }
.trezo-store .product-price { font-size: 20px; color: var(--primary); font-weight: 700; }
.trezo-store .product-category { color: #8695aa; font-weight: 500; }
.trezo-store .add-to-cart { border-radius: 8px; background: #ecf0ff; color: var(--primary); box-shadow: none; }
.trezo-store .product-badge { background: #ecf0ff; color: #4936f5; border-radius: 5px; }
.trezo-store :is(.cart-card,.checkout-card,.summary-card,.product-detail-info) { background: #fff; border: 0; border-radius: 8px; box-shadow: none; padding: 24px; }
.trezo-store .cart-page-container { max-width: 1200px; padding-inline: 24px; }
.trezo-store .cart-item-row { padding-block: 20px; border-bottom: 1px solid #eceef2; }
.trezo-store .product-detail-container { max-width: 1400px; }
.trezo-store .newsletter-section { margin: 24px 4%; padding: 40px 24px; border-radius: 8px; background: #ecf0ff; color: #3a4252; }
.trezo-store .newsletter-section :is(h3,p) { color: #3a4252; }
.trezo-store .newsletter-form { border-radius: 8px; }
.trezo-store :is(.btn-buy,.cart-btn) { background: var(--primary); color: #fff; border-radius: 7px; }
.trezo-store .store-hero { background: #ecf0ff; color: #3a4252; }
.trezo-store footer { background: #fff; color: #64748b; border-top: 1px solid #eceef2; }
.trezo-store .btn { box-shadow: none; transform: none; }

/* Public marketing and legal content shares the template's landing-page palette. */
.trezo-landing .trezo-landing-banner { padding-top: 80px; background: url('/trezo/images/landing/banner-bg.png') center top / cover no-repeat; }
.trezo-landing .banner-content { max-width: 920px; margin: 0 auto 48px; }
.trezo-landing .banner-content h1 { font-size: clamp(30px,4.2vw,60px); font-weight: 800; margin: 0 auto 24px; line-height: 1.35; }
.trezo-landing .banner-content > p { font-size: 18px; line-height: 1.9; max-width: 680px; margin-inline: auto; color: #64748b; }
.trezo-landing .trezo-landing-preview { width: 100%; max-width: 960px; border-radius: 12px 12px 0 0; }
.trezo-landing-stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 36px; }
.trezo-landing-stats strong { display: block; font-size: 26px; color: var(--primary); }
.trezo-landing-stats span { font-size: 13px; color: #64748b; }
.trezo-landing .trezo-landing-section { padding-block: 90px; }
.trezo-landing .trezo-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.trezo-landing .trezo-feature-card { padding: 28px; background: #fff; border-radius: 8px; }
.trezo-landing .trezo-feature-card i { width: auto; height: auto; line-height: 1; margin: 0; }
.trezo-landing .trezo-feature-card h4 { font-size: 19px !important; }
.trezo-landing .trezo-pricing-section { background: #f8fafc; }
.trezo-landing .trezo-pricing-card { border-radius: 16px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; border: 1px solid #e2e8f0 !important; background: #fff !important; }
.trezo-landing .trezo-pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(96,93,255,0.12) !important; }
.trezo-landing .navbar-landing { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 15px rgba(0,0,0,0.04); border-color: #eceef2; }
.trezo-landing :is(.btn-nav-login,.btn-hero-primary) { background: var(--primary); border-radius: 8px; box-shadow: none; }
.trezo-landing :is(.brand-icon,.feature-icon) { border-radius: 12px; }
.trezo-landing :is(.feature-card,.plan-card,.pricing-card,.testimonial-card,.product-card) { border-radius: 14px; border: 1px solid #eceef2; background: #fff; }
.trezo-landing .hero-section { background: #f8fafc; }
.trezo-landing :is(.section-title,.hero-title) { color: #111827 !important; font-weight: 800; }

/* =========================================================================
   STRICT BLACK FONT ENFORCEMENT ON WHITE BACKGROUNDS (ALL PROJECT PAGES)
   ========================================================================= */
/* 1. Landing and Public Footers: Pure white background with deep black font */
.trezo-landing .footer,
.trezo-landing .footers-area,
.trezo-landing .copyright-area,
.trezo-public footer {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
.trezo-landing :is(.footer, .footers-area, .copyright-area) :is(h1,h2,h3,h4,h5,h6,p,a,span,small,strong,li,div,b,td,th):not(.btn):not(.btn *):not(.badge):not(.badge *) {
    color: #111827 !important;
}
.trezo-landing :is(.footer, .footers-area) :is(.footer-desc, p) {
    color: #374151 !important;
}
.trezo-landing :is(.footer, .footers-area) :is(.footer-links, ul) a {
    color: #374151 !important;
}
.trezo-landing :is(.footer, .footers-area) :is(.footer-links, ul) a:hover {
    color: #605dff !important;
}
.trezo-landing .copyright-area p,
.trezo-landing .footer-bottom span {
    color: #111827 !important;
    font-weight: 600;
}

/* 2. Universal protection: on ANY white surface across all pages (admin, store, sales, products, etc.),
   never permit white or faint text outside of colored buttons/badges */
.trezo-app :is(.card, .glass-card, .table, .bg-white, .modal-content, .dropdown-menu, .trezo-content, .sidebar-area, .top-navbar, body, main)
:is(.text-white, .text-white-50):not(.btn):not(.btn *):not(.badge):not(.badge *):not([class*="bg-primary"]):not([class*="bg-primary"] *):not([class*="bg-danger"]):not([class*="bg-danger"] *):not([class*="bg-success"]):not([class*="bg-success"] *):not([class*="bg-dark"]):not([class*="bg-dark"] *):not([style*="background: var(--primary)"]):not([style*="background: var(--primary)"] *):not([style*="background: linear-gradient"]):not([style*="background: linear-gradient"] *):not([style*="background: #605dff"]):not([style*="background: #605dff"] *):not([style*="background:#605dff"]):not([style*="background:#605dff"] *) {
    color: #111827 !important;
}

/* 3. Default typography inside white surfaces */
.trezo-app :is(.card, .glass-card, .table, .bg-white, .modal-content, .dropdown-menu)
:is(h1,h2,h3,h4,h5,h6,label,th,td,strong,span,div):not(.btn):not(.btn *):not(.badge):not(.badge *):not([class*="bg-"]):not([style*="background:"]):not([style*="color:"]) {
    color: #111827;
}

.trezo-public .public-navbar { background: #fff; border-color: #eceef2; }
.trezo-landing .trezo-legal-banner { padding: 70px 0 48px; background: #ecf0ff; }
.trezo-standalone .header { background: var(--primary); color: #fff; }
.trezo-standalone .card { border-radius: 8px; box-shadow: none; }
.trezo-standalone :is(button[type=submit],.btn-submit) { background: var(--primary); color: #fff; border-radius: 7px; }

/* =========================================================================
   TREZO TEMPLATE LANDING PAGE ENHANCEMENTS
   ========================================================================= */
.shape { position: absolute; z-index: -1; pointer-events: none; }
.shape-1 { top: 50%; left: 0; transform: translateY(-50%); }
.shape-2 { top: 50%; right: 0; transform: translateY(-50%); }
.shape-3 { top: 0; left: 0; }
.shape-4 { top: 120px; right: 0; }
.shape-5 { bottom: -100px; left: 0; }
.shape-6 { bottom: -250px; right: 0; }
.shape-7 { top: -140px; left: 0; filter: blur(100px); }
.shape-8 { top: -120px; right: 100px; filter: blur(75px); }

.top-title {
    color: #7952f5;
    background: rgba(121,82,245,0.08);
    border: 1px solid rgba(121,82,245,0.3);
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tailor-area {
    padding: 100px 0;
    position: relative;
    background: #f8fafc;
}
.tailor-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 32px;
    line-height: 1.4;
}
.tailor-content ul { list-style: none; padding: 0; margin: 0; }
.tailor-content ul li { margin-bottom: 24px; }
.tailor-content ul li:last-child { margin-bottom: 0; }
.tailor-content h3 { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.tailor-content p { font-size: 14.5px; color: #4b5563; margin: 0; line-height: 1.7; }
.tailor-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(96,93,255,0.1); color: #605dff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}

.testimonials-area {
    padding: 100px 0;
    position: relative;
    background: #ffffff;
}
.single-testimonials {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.single-testimonials:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(96,93,255,0.08);
    border-color: #d1d5db;
}
.single-testimonials .rating { margin-bottom: 16px; color: #f59e0b; font-size: 16px; }
.single-testimonials p { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 24px; flex: 1; }
.single-testimonials .review-info { display: flex; align-items: center; gap: 14px; }
.single-testimonials .review-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; }
.single-testimonials .review-info h4 { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.single-testimonials .review-info span { font-size: 13px; color: #6b7280; }

.faq-arae {
    padding: 100px 0;
    position: relative;
    background: #f8fafc;
}
.faq-wrapper .accordion-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.faq-wrapper .accordion-button {
    font-size: 16px;
    font-weight: 700;
    color: #111827 !important;
    background: #ffffff !important;
    padding: 20px 24px;
    box-shadow: none !important;
}
.faq-wrapper .accordion-button:not(.collapsed) {
    color: #605dff !important;
    background: #f5f3ff !important;
}
.faq-wrapper .accordion-body {
    padding: 20px 24px;
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
}

.unlock-area {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    color: #ffffff;
    border-radius: 24px;
    margin: 40px auto 80px;
    width: min(1280px, 94%);
}
.unlock-content h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; color: #ffffff; margin-bottom: 16px; }
.unlock-content p { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 32px; line-height: 1.8; }

@media (max-width: 991.98px) {
    .trezo-landing .trezo-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .trezo-landing .trezo-landing-section { padding-block: 60px; }
    .trezo-store .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .trezo-auth-container { max-width: 600px; padding-block: 28px; }
    .trezo-admin .top-navbar { flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .trezo-landing .trezo-feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .trezo-landing .trezo-landing-banner { padding-top: 40px; }
    .trezo-landing .banner-content > p { font-size: 16px; }
    .trezo-content { padding: 16px; }
    .trezo-admin .top-navbar { margin-inline: 16px; padding: 12px; gap: 12px; }
    .trezo-admin .top-navbar h4 { font-size: 15px !important; }
    .trezo-app .card-body { padding: 18px; }
    .trezo-page-heading h1 { font-size: 19px; }
    .trezo-store .hero { padding: 24px; flex-direction: column; gap: 24px; }
    .trezo-store .hero-content, .trezo-store .hero-image { max-width: 100%; width: 100%; }
    .trezo-store .hero-image { display: none; }
    .trezo-store .hero-carousel img { height: 280px !important; }
    .trezo-store .products-grid { gap: 12px; }
    .trezo-store .product-card { padding: 12px; }
    .trezo-store .product-img-wrapper { height: 160px; }
    .trezo-store .product-title { font-size: 14px; }
    .trezo-store .product-price { font-size: 16px; }
    .trezo-store .product-bottom { flex-wrap: wrap; gap: 8px; }
    .trezo-store .nav-logo { font-size: 17px; max-width: 65%; }
    .trezo-store .nav-actions { gap: 8px; }
    .trezo-auth-container > .row { margin-inline: 0; }
    .trezo-auth-container > .row > div { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .trezo-app *, .trezo-app *::before, .trezo-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   TREZO SWEETALERT2 STYLING & MODAL THEMING
   ========================================================================= */
div:where(.swal2-container).trezo-swal-popup,
.swal2-popup.trezo-swal-popup {
    border-radius: 16px !important;
    font-family: "Cairo", sans-serif !important;
    padding: 28px 24px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e5e7eb !important;
}
.swal2-title.trezo-swal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
}
.swal2-html-container.trezo-swal-html {
    font-size: 15px !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
}
.swal2-actions {
    margin-top: 24px !important;
    gap: 10px !important;
}
.swal2-icon {
    border-width: 3px !important;
    margin: 12px auto 18px !important;
}

/* =========================================================================
   TREZO TABLE & SEARCH BAR REFINEMENTS
   ========================================================================= */
.table-src-form .form-control {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s ease;
}
.table-src-form .form-control:focus {
    background-color: #ffffff;
    border-color: #605dff;
    box-shadow: 0 0 0 3px rgba(96, 93, 255, 0.12);
}
.table-src-form i {
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
}
.trezo-table-modern thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 18px !important;
}
.trezo-table-modern tbody td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #1e293b !important;
    font-size: 14px !important;
}
.trezo-table-modern tbody tr:hover td {
    background-color: #f8fafc !important;
}
.wh-40 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
}
.wh-48 {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
}

/* Trezo controls: explicit icon-font isolation, touch targets and readable states. */
.trezo-app .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: 400 !important; font-style: normal !important;
    font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga';
    letter-spacing: normal; text-transform: none; direction: ltr;
    display: inline-block; vertical-align: middle; flex-shrink: 0;
    width: 1em; height: 1em; line-height: 1; white-space: nowrap;
}
.trezo-app .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; line-height: 1.5; }
.trezo-app .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.trezo-app .btn-lg { min-height: 48px; padding: 12px 22px; }
.trezo-app .btn > :is(i,.material-symbols-outlined) { margin-inline: 0 !important; color: inherit !important; }
.trezo-app .btn > .material-symbols-outlined { font-size: 20px; }
.trezo-app .btn-outline-primary { background: #fff; border: 1px solid #605dff; color: #4936f5; }
.trezo-app .btn-outline-primary:hover { background: #605dff; color: #fff; }
.trezo-app .btn-outline-danger { background: #fff5ed; border: 1px solid #ffcea9; color: #b32910; }
.trezo-app .btn-outline-danger:hover { background: #d71c00; border-color: #d71c00; color: #fff; }
.trezo-app .btn-outline-warning { color: #795800; }
.trezo-app .btn:disabled,.trezo-app .btn.disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.trezo-app .trezo-icon-button { width: 38px !important; height: 38px !important; min-width: 38px; min-height: 38px; padding: 0 !important; border-radius: 8px !important; flex-shrink: 0; }
.trezo-app .trezo-icon-button > .material-symbols-outlined { font-size: 20px; }
.trezo-app .table-action-btn { width: 36px; height: 36px; border: 1px solid #eceef2 !important; background: #fff !important; }
.trezo-app .table-action-btn.edit { background: #ecf0ff !important; }
.trezo-app .table-action-btn.delete { background: #fff5ed !important; color: #b32910; }
.trezo-app .badge { line-height: 1.6; }
.trezo-app .badge > .material-symbols-outlined { font-size: 16px !important; }
.trezo-app :is(.badge.text-success,.trezo-status-success) { color: #1e8308 !important; }
.trezo-app .badge.text-warning { color: #946100 !important; }
.trezo-app .badge.text-info { color: #006b9e !important; }
.trezo-app .table-src-form { position: relative; min-width: 0; }
.trezo-app .table-src-form .form-control { width: 100%; padding-inline-start: 44px !important; padding-inline-end: 14px; }
.trezo-app .table-src-form > i { inset-inline-start: 14px !important; inset-inline-end: auto !important; margin: 0 !important; top: 50%; transform: translateY(-50%); }

/* Override the vendor's generic 16px checkbox rule only for native switch controls. */
.trezo-app .form-check .form-check-input { width: 21px; height: 21px; flex-shrink: 0; border: 2px solid #8695aa; cursor: pointer; }
.trezo-app .form-check .form-check-input:checked { background-color: #605dff; border-color: #605dff; }
.trezo-app .form-check .form-check-input:focus-visible { outline: 3px solid #c7c5ff; outline-offset: 3px; box-shadow: none; }
.trezo-app .form-check .form-check-input:disabled { opacity: .45; cursor: not-allowed; }
.trezo-app .form-check-label { cursor: pointer; line-height: 1.6; }
.trezo-app .form-switch { padding-inline-start: 58px; min-height: 28px; }
.trezo-app .form-switch .form-check-input[type=checkbox],
.trezo-app .form-switch .form-check-input[type=checkbox]:focus,
.trezo-app .form-switch .form-check-input[type=checkbox]:checked {
    appearance: none; width: 46px !important; height: 26px !important; min-width: 46px;
    border: 2px solid #a8b2c1; border-radius: 20px !important; background-color: #d5d9e2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='white'/%3E%3C/svg%3E") !important;
    background-size: 22px 22px; background-repeat: no-repeat; background-position: left center;
    margin-top: 0; margin-inline-start: -58px; margin-inline-end: 0; transition: background-position .15s, background-color .15s;
}
.trezo-app .form-switch .form-check-input[type=checkbox]:checked { background-color: #605dff; border-color: #605dff; background-position: right center; }
.trezo-app.rtl .form-switch .form-check-input[type=checkbox] { background-position: right center; }
.trezo-app.rtl .form-switch .form-check-input[type=checkbox]:checked { background-position: left center; }
.trezo-app .form-switch.d-flex .form-check-input[type=checkbox] { margin-inline: 0 !important; float: none; }
.trezo-app .form-switch.d-flex { gap: 12px; padding: 0; }

.trezo-app .trezo-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 18px 0 0 !important; border: 0 !important; border-top: 1px solid #eceef2 !important; }
.trezo-pagination-count,.trezo-pagination-label { font-size: 13px; color: #64748b; white-space: nowrap; }
.trezo-pagination-nav { display: flex; align-items: center; gap: 16px; }
.trezo-app .trezo-pagination .page-link { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.trezo-app .trezo-pagination .page-link .material-symbols-outlined { font-size: 22px; }
.trezo-app .trezo-pagination .disabled .page-link { opacity: .5; cursor: not-allowed; }

/* Connected-page cards use the template's white card, avatar and status components. */
.trezo-facebook-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.trezo-facebook-panel-header h4 { font-size: 20px; color: #3a4252 !important; }
.trezo-app .trezo-connected-page { border: 1px solid #dfe3eb !important; border-top: 3px solid #605dff !important; padding: 22px; margin: 0; box-shadow: none; }
.trezo-app .trezo-connected-page.is-paused { border-top-color: #a8b2c1 !important; }
.trezo-connected-page-heading { display: flex; align-items: flex-start; gap: 14px; }
.trezo-facebook-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #ecf0ff; color: #605dff; font-size: 28px; flex-shrink: 0; }
.trezo-connected-page-identity { flex: 1; min-width: 0; }
.trezo-connected-page-identity h3 { font-size: 16px; font-weight: 700; line-height: 1.6; margin: 0 0 2px; overflow-wrap: anywhere; }
.trezo-connected-page-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.trezo-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.trezo-status .material-symbols-outlined { font-size: 16px; }
.trezo-status-success { background: #eeffe5; color: #1e8308; }
.trezo-status-primary { background: #ecf0ff; color: #4936f5; }
.trezo-status-muted { background: #f1f3f7; color: #64748b; }
.trezo-connected-page-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #eceef2; padding-top: 18px; margin-top: auto; }
.trezo-page-switch { display: flex; align-items: center; gap: 10px; margin: 0; }
.trezo-page-switch .form-switch { display: flex; align-items: center; gap: 10px; padding: 0; }
.trezo-app .trezo-page-switch .form-switch input[type=checkbox] { float: none; margin: 0 !important; }
.trezo-page-switch .form-check-label { font-size: 13px; font-weight: 600; }
.trezo-switch-status { font-size: 12px; color: #64748b; }
.trezo-automation-form { border: 1px solid #eceef2; border-radius: 8px; padding: 24px; background: #fff; }
.trezo-automation-option { display: flex; align-items: center; padding: 18px; border: 1px solid #d5d9e2; border-radius: 8px; min-height: 80px; background: #f6f7f9; height: 100%; }
.trezo-automation-option:has(input:checked) { border-color: #b7b5ff; background: #f2f1ff; }
.trezo-automation-option .form-check-label { font-size: 13px; }
.trezo-automation-form .input-group { border: 1px solid #d5d9e2; border-radius: 8px; overflow: hidden; }
.trezo-automation-form textarea.form-control { border: 0 !important; min-height: 120px; }
@media (max-width: 767.98px) {
    .trezo-facebook-panel-header { flex-direction: column; }
    .trezo-app .trezo-connected-page { padding: 18px; }
    .trezo-connected-page-controls > .btn { width: 100%; }
    .trezo-automation-form { padding: 16px; }
    .trezo-pagination-nav { width: 100%; justify-content: space-between; gap: 8px; }
    .trezo-app .trezo-icon-button { width: 42px !important; height: 42px !important; }
}

/* ── Free-plan alert (account downgraded after subscription expiry) ── */
.trezo-free-plan-wrap { padding: 24px 24px 0; }
.trezo-app .free-plan-alert { border-radius: 8px; border: 1px solid #f5c76a; background: #fff8e6; color: #7a4d00; }
.trezo-app .free-plan-alert .badge { font-size: 12px; }
@media (max-width: 767.98px) {
    .trezo-free-plan-wrap { padding: 16px 16px 0; }
}
@media (max-width: 575.98px) {
    .free-plan-alert { flex-wrap: wrap; }
    .free-plan-alert .flex-grow-1 { flex-basis: calc(100% - 40px); }
    .free-plan-alert .free-plan-cta { width: 100%; text-align: center; margin-top: 4px; }
}
