/* CLB Client - Frontend Modern Theme v3.0 */

/* === GLOBAL RESET === */
#clb-wrapper *, #clb-wrapper *::before, #clb-wrapper *::after { box-sizing: border-box; }
.clb-bar, .clb-firms-grid, .clb-banner, .clb-section-title, .clb-cta-wrap, .clb-load-more, a.clb-firm { max-width: 100%; }

/* === WRAPPER === */
body > #clb-wrapper:first-child { margin-top: 0 !important; }
body:has(> #clb-wrapper:first-child) { margin-top: 0 !important; padding-top: 0 !important; }
#clb-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; position: relative; z-index: 999; margin: 0 !important; padding: 0 !important; background: var(--clb-bg-dark, #0f0f1a); line-height: 0; font-size: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
.clb-bar { padding: 0.1px 0 8px 0; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; line-height: 1.5; font-size: 14px; overflow: hidden; width: 100%; max-width: 100%; }

/* === ANIMATION === */
@keyframes clbSlideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes clbFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes clbShine { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.clb-anim-slide-down { animation: clbSlideDown 0.5s ease-out; }

/* === BANNER === */
.clb-banner { display: flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 12px; margin: 10px 12px 4px; text-decoration: none; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; position: relative; overflow: hidden; }
a.clb-banner:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(38, 0, 209, 0.25); }
a.clb-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%); background-size: 200% 100%; animation: clbShine 3s infinite; pointer-events: none; }
.clb-banner-title { color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* === SECTION TITLES === */
.clb-section-title { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; padding: 0 20px; margin: 12px 16px 6px; position: relative; }
.clb-section-title::before { content: ''; width: 3px; height: 18px; border-radius: 3px; flex-shrink: 0; }

/* === FIRM GRID === */
.clb-firms-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }

/* === FIRM CARD === */
a.clb-firm { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 2px 16px; border-radius: 10px; position: relative; border: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); text-decoration: none; cursor: pointer; overflow: visible; }
a.clb-firm::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
a.clb-firm:hover { border-color: rgba(38, 0, 209, 0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(38, 0, 209, 0.1); }

/* === VIP CARD === */
a.clb-firm-vip { border: 1px solid rgba(255, 185, 0, 0.3); background-image: linear-gradient(135deg, rgba(255, 185, 0, 0.04) 0%, transparent 60%) !important; }
a.clb-firm-vip:hover { border-color: rgba(255, 185, 0, 0.5); box-shadow: 0 8px 32px rgba(255, 185, 0, 0.12), 0 0 0 1px rgba(255, 185, 0, 0.15); }

/* VIP Badge */
.clb-vip { position: absolute; top: 0; right: 14px; color: #fff; font-size: 9px; font-weight: 800; padding: 3px 12px; border-radius: 0 0 8px 8px; text-transform: uppercase; letter-spacing: 0.8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 10; }

/* Logo */
.clb-firm-logo { flex: 0 0 160px; height: 68px; display: flex; align-items: center; justify-content: center; background: none !important; border: none !important; border-radius: 0 !important; padding: 0 !important; overflow: hidden; outline: none; box-shadow: none; }
.clb-firm-logo img { max-width: 120px; max-height: 46px; object-fit: contain; border: none; outline: none; box-shadow: none; background: transparent; }
.clb-firm-logo .clb-logo-img { width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; border: none; outline: none; box-shadow: none; }

/* Info */
.clb-firm-info { flex: 1; min-width: 0; text-align: center; }
.clb-firm-bonus { color: #fff; font-weight: 700; font-size: 15px; display: block; line-height: 1.3; }
.clb-firm-desc { color: var(--clb-subtext, #8a8a9a); font-size: 12px; display: block; margin-top: 1px; opacity: 0.85; }

/* Button */
.clb-firm-btn { flex-shrink: 0; color: #fff; padding: 10px 20px; border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap; border: none; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.25s ease; position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(38, 0, 209, 0.3); }
.clb-firm-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%); pointer-events: none; border-radius: 50px; }
a.clb-firm:hover .clb-firm-btn { box-shadow: 0 4px 20px rgba(38, 0, 209, 0.5); transform: scale(1.03); }

/* === CTA BUTTON === */
.clb-cta-wrap { text-align: center; padding: 8px 16px 2px; }
.clb-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: 0.8px; padding: 12px 48px; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
.clb-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%); pointer-events: none; border-radius: 50px; }
.clb-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.clb-cta svg { flex-shrink: 0; }

/* === LOAD MORE === */
.clb-load-more { display: block; width: calc(100% - 32px); margin: 6px 16px; padding: 10px; text-align: center; background: transparent; color: var(--clb-subtext, #8a8a9a); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; letter-spacing: 0.3px; }
.clb-load-more:hover { background: rgba(38, 0, 209, 0.1); border-color: rgba(38, 0, 209, 0.3); color: #fff; }

/* === HIDDEN === */
.clb-hidden { display: none !important; }

/* === DESKTOP 2-COLUMN === */
@media (min-width: 769px) {
    .clb-firms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
    a.clb-firm { margin: 2px 2px; }
    .clb-bar, #clb-wrapper { max-width: 100%; }
    .clb-section-title { margin: 12px 16px 6px; }
}

/* === MOBILE === */
@media (max-width: 768px) {
    #clb-wrapper { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; }
    .clb-bar { width: 100% !important; max-width: 100vw !important; overflow-x: hidden !important; }
    .clb-banner { margin: 6px 8px 2px; padding: 12px 18px; border-radius: 10px; }
    .clb-banner-title { font-size: 12px; letter-spacing: 1px; }
    .clb-section-title { font-size: 11px; margin: 10px 10px 4px; padding: 0 14px; letter-spacing: 1.5px; }
    .clb-section-title::before { width: 3px; height: 14px; }
    a.clb-firm { margin: 2px 8px; padding: 7px 10px; gap: 8px; border-radius: 8px; }
    .clb-firm-logo { flex: 0 0 100px; height: 48px; }
    .clb-firm-logo img { max-width: 92px; max-height: 42px; }
    .clb-firm-info { text-align: left; }
    .clb-firm-bonus { font-size: 13px; }
    .clb-firm-desc { font-size: 11px; }
    .clb-firm-btn { padding: 8px 14px; font-size: 11px; border-radius: 50px; }
    .clb-cta { padding: 10px 32px; font-size: 13px; }
    .clb-load-more { margin: 4px 8px; width: calc(100% - 16px); }
}

/* === SMALL MOBILE === */
@media (max-width: 380px) {
    a.clb-firm { padding: 6px 8px; gap: 6px; }
    .clb-firm-logo { flex: 0 0 85px; height: 42px; }
    .clb-firm-bonus { font-size: 12px; }
    .clb-firm-btn { padding: 7px 12px; font-size: 10px; }
}

/* Print */
@media print { #clb-wrapper, .clb-bar { display: none; } }
