/* ==========================================================================
   ONYX DESIGN HOUSING ARCHITECTURE (LIGHT BENTO DESIGN)
   ========================================================================== */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body.bento-layout-body {
    background-color: #f8fafc; /* Beautiful off-white gray background canvas */
    color: #0f172a; min-height: 100vh;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 40px 16px;
}

.hidden { display: none !important; }

/* Fixed main outer viewport container box wrap constraints */
.bento-wrapper {
    width: 100%; max-width: 1140px;
    display: flex; flex-direction: column; gap: 20px;
}

/* --- BRAND TOP META PANEL LINE --- */
.bento-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10px; text-transform: uppercase;
}
.bento-header-left strong { font-size: 0.85rem; color: #0f172a; font-weight: 800; letter-spacing: 0.05em; }
.bento-header-left p { font-size: 0.725rem; color: #94a3b8; font-weight: 600; }
.bento-header-right { display: flex; align-items: center; gap: 16px; }
.subscriber-tag { font-size: 0.8rem; color: #0f172a; font-weight: 700; }
.tag-accent { color: #f97316; font-weight: 800; margin-left: 4px; }
.bento-logout {
    text-decoration: none; color: #64748b; font-size: 0.8rem; font-weight: bold;
    width: 30px; height: 30px; background: #ffffff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.bento-logout:hover { background-color: #ef4444; color: #ffffff; }

/* ==========================================================================
   BENTO CORE MODULAR CARD TILES DESIGNS
   ========================================================================== */
.bento-tile {
    background-color: #ffffff; border-radius: 32px; padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 35px rgba(0,0,0,0.02);
    display: flex; flex-direction: column; justify-content: space-between;
}

.tile-label {
    font-size: 0.7rem; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.08em; display: block;
}
.pool-footer { font-size: 0.725rem; color: #cbd5e1; font-weight: 600; text-transform: uppercase; margin-top: auto; }

/* --- TILE: HIGHEST LEVEL USER PROFILE BANNER --- */
.hero-banner { flex-direction: row; justify-content: space-between; align-items: center; padding: 36px 40px; }
.hero-profile { display: flex; align-items: center; gap: 20px; }
.hero-avatar {
    width: 60px; height: 60px; background-color: #0f172a; color: #ffffff;
    border-radius: 20px; display: flex; justify-content: center; align-items: center; font-size: 1.6rem;
}
.hero-profile h2 { font-size: 1.7rem; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: -0.02em; }
.sub-label { font-size: 0.75rem; color: #94a3b8; font-weight: 600; margin-top: 2px; letter-spacing: 0.025em; }

.hero-value-pill { background-color: #f0fdf4; border: 1px solid #bbf7d0; padding: 14px 28px; border-radius: 24px; text-align: right; }
.pill-label { font-size: 0.65rem; color: #166534; font-weight: 800; letter-spacing: 0.05em; }
.hero-value-pill h3 { font-size: 1.5rem; color: #15803d; font-weight: 800; margin-top: 2px; font-style: italic; }

/* ==========================================================================
   4-COLUMN POOL GRID MASONRY LAYOUT RULES
   ========================================================================== */
.bento-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.pool-card { min-height: 175px; }
.pool-card h2 { font-size: 1.5rem; font-weight: 800; margin-top: 12px; letter-spacing: -0.02em; }

/* Card colors variations overrides based explicitly on your target look */
.status-pool.active-bg { background-color: #10b981; color: #ffffff; border: none; }
.status-pool.active-bg .tile-label { color: rgba(255,255,255,0.6); }
.status-pool.active-bg .pool-footer { color: rgba(255,255,255,0.8); }

.status-pool.expired-bg { background-color: #0f172a; color: #ffffff; border: none; }
.status-pool.expired-bg .tile-label { color: #475569; }
.status-pool.expired-bg .pool-footer { color: #ef4444 !important; font-weight: 700; }

.standard-pool h2 { color: #0f172a; }
.compact-text { font-size: 0.95rem !important; font-weight: 800 !important; text-transform: uppercase; line-height: 1.3; }

/* Liquidity block setup tracking image target look explicitly */
.debt-pool.unpaid { background-color: #eab308; color: #0f172a; border: none; }
.debt-pool.unpaid .tile-label { color: #713f12; }
.debt-pool.unpaid h2 { font-style: italic; font-weight: 800; }
.debt-pool.unpaid .pool-footer { color: #713f12; font-weight: 500; }

.debt-pool.cleared { background-color: #f8fafc; color: #cbd5e1; }

/* ==========================================================================
   SPLIT WORKSPACE LAYOUT BOTTOM BLOCKS ROWS
   ========================================================================== */
.bento-split-row {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px;
}
.action-panel { background-color: #ffffff; gap: 12px; }
.btn-flex-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Inline custom selector zone boxes */
.dropdown-control-zone { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 4px; }
.select-housing { position: relative; width: 100%; margin-bottom: 10px; }
.select-housing select {
    width: 100%; background-color: #f8fafc; color: #0f172a; border: 1px solid #e2e8f0;
    padding: 12px 16px; font-size: 0.85rem; font-weight: 500; border-radius: 12px; outline: none; appearance: none; cursor: pointer;
}
.select-housing::after { content: "▼"; font-size: 0.65rem; color: #94a3b8; position: absolute; right: 16px; top: 16px; pointer-events: none; }
.locked-notice-text { font-size: 0.8rem; color: #94a3b8; font-weight: 500; }

/* Nav card design rules matching target report block */
.link-panel { background-color: #0f172a; color: #ffffff; border: none; cursor: pointer; transition: transform 0.2s; }
.link-panel:hover { transform: translateY(-2px); }
.link-panel-inner { display: flex; align-items: flex-start; gap: 18px; }
.panel-icon { font-size: 2rem; background-color: rgba(255,255,255,0.05); padding: 10px; border-radius: 16px; }
.link-panel h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.04em; }
.link-panel p { font-size: 0.8rem; color: #64748b; line-height: 1.4; margin-top: 4px; }
.report-badge { background-color: #ffffff; color: #0f172a; font-weight: 800; font-size: 0.75rem; padding: 10px 18px; border-radius: 12px; align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   PRODUCTION UTILITIES REUSABLE BUTTON COMPONENT MODULES
   ========================================================================== */
.bento-action-btn {
    border: none; padding: 12px 18px; border-radius: 14px; font-size: 0.8rem;
    font-weight: 700; cursor: pointer; transition: opacity 0.2s; text-transform: uppercase; letter-spacing: 0.025em;
}
.bento-action-btn:active { opacity: 0.8; }
.dark-btn { background-color: #0f172a; color: #ffffff; }
.amber-btn { background-color: #eab308; color: #0f172a; }
.outline-orange { background-color: transparent; border: 2px solid #f97316; color: #f97316; width: 100%; margin-top: 4px; }

/* ==========================================================================
   TABLET & MOBILE SMART RESPONSIVE FALLBACKS
   ========================================================================== */
@media (max-width: 820px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-split-row { grid-template-columns: 1fr; }
    .hero-banner { flex-direction: column; text-align: center; gap: 20px; }
    .hero-profile { flex-direction: column; }
    .hero-value-pill { text-align: center; width: 100%; }
    .btn-flex-group { flex-direction: column; }
    .bento-action-btn { width: 100%; }
}