:root {
    --bg-gradient: linear-gradient(180deg, #136b4c 0%, #0b4533 42%, #06241b 100%);
    --card-panel-bg: rgba(7, 38, 28, 0.78);
    --accent-green: #2ecc71;
    --accent-teal: #1abc9c;
    --accent-blue: #0f6b4a;
    --accent-purple: #b8860b;
    --accent-gold: #d4af37;
    --accent-gold-soft: #f0d98a;
    --text-main: #ffffff;
    --text-muted: #a5bdb1;
    --light-bg: #fbf8f1;
    --light-border: #e8e0cf;
    --light-sub: #6b756b;
    --serif: Georgia, "Noto Serif", "Source Serif 4", "Times New Roman", "Noto Serif CJK SC", serif;
}
* { box-sizing: border-box; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button, [onclick], .clicker-area { outline: none; }
body { margin: 0; padding: 0; background-color: #04120d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; height: 100dvh; overflow: hidden; }
.phone-frame { width: 100%; max-width: 414px; height: 100vh; height: 100dvh; max-height: 896px; background: var(--bg-gradient); color: var(--text-main); display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
@media (min-width: 415px) { .phone-frame { border-radius: 40px; border: 10px solid #1a1a1a; height: 92vh; } }
.screen-view { flex: 1; width: 100%; height: calc(100% - 68px); display: none !important; flex-direction: column; overflow-y: auto !important; -webkit-overflow-scrolling: touch; position: relative; }
.screen-view.active { display: flex !important; }
.screen-view::-webkit-scrollbar { display: none; }
.screen-view { -ms-overflow-style: none; scrollbar-width: none; }

/* ZAROBKI */
#view-earnings { background: transparent; }
.top-container { padding: 20px 16px 10px 16px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.bank-card { width: 100%; height: 155px; border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,0.45); transition: all 0.4s ease; overflow: hidden; }
.card-tier-bronze { background: linear-gradient(135deg, #42291d 0%, #2b170e 100%); border: 2px solid #5a3826; color: #d1b5a5; }
.card-tier-bronze .bank-card-chip { background: linear-gradient(135deg, #704732 0%, #4a2818 100%); border: 1px solid #8c5b41; }
.card-tier-silver { background: linear-gradient(135deg, #8a9ba8 0%, #485563 50%, #29323c 100%); border: 2px solid #a6b8c7; color: #e0e6ed; }
.card-tier-silver .bank-card-chip { background: linear-gradient(135deg, #d9e2ec 0%, #9fb3c8 100%); border: 1px solid #bcccdc; }
.card-tier-gold { background: linear-gradient(135deg, #b8860b 0%, #d4af37 40%, #855806 100%); border: 2px solid #ffd700; color: #fff4d1; }
.card-tier-gold .bank-card-chip { background: linear-gradient(135deg, #fff2a3 0%, #c49b27 100%); border: 1px solid #ffe066; }
.card-tier-black { background: linear-gradient(135deg, #1c1c1e 0%, #0a0a0c 60%, #151517 100%); border: 2px solid #3a3a3c; color: #8e8e93; }
.card-tier-black .bank-card-chip { background: linear-gradient(135deg, #3a3a3c 0%, #1f1f21 100%); border: 1px solid #545458; }
.card-tier-diamond { background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 45%, #415a77 100%); border: 2px solid #e0f2fe; color: #e0f2fe; }
.card-tier-diamond .bank-card-chip { background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 100%); border: 1px solid #e0f2fe; }
.bank-card-header { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.bank-card-balance-box { margin-top: 5px; padding-right: 70px; }
.bank-card-balance-label { font-size: 13px; margin-bottom: 2px; }
.bank-card-balance { font-size: 32px; font-weight: 800; letter-spacing: 0.5px; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); white-space: nowrap; transition: font-size 0.2s ease; }
.bank-card-chip { position: absolute; right: 20px; bottom: 20px; width: 46px; height: 36px; border-radius: 6px; opacity: 0.9; }
.card-tier-badge { position: absolute; right: 20px; top: 42px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
.upgrade-card { background: var(--card-panel-bg); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: transform 0.1s, border 0.2s; }
.upgrade-card:active { transform: scale(0.98); }
.upgrade-card-header { display: flex; align-items: baseline; gap: 6px; }
.click-rate-value { font-size: 20px; font-weight: 800; color: #ffffff; }
.click-rate-label { font-size: 12px; color: var(--text-muted); }
.upgrade-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.upgrade-level { color: #ffffff; }
.upgrade-gain { color: var(--accent-green); display: flex; align-items: center; gap: 4px; }
.progress-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: var(--accent-teal); border-radius: 3px; transition: width 0.15s ease-out; }
.upgrade-cost-text { text-align: right; font-size: 14px; font-weight: 800; color: #ffffff; }
.clicker-area { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; position: relative; z-index: 1; }
.click-icon-box { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; transition: transform 0.08s ease; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5)); }
.clicker-area:active .click-icon-box { transform: scale(0.88); }
.click-svg { width: 100%; height: 100%; }
.clicker-hint { margin-top: 22px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.95); text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,0.5); pointer-events: none; }
.floating-text { position: absolute; font-size: 20px; font-weight: 800; color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); pointer-events: none; animation: floatUp 0.8s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-60px) scale(1.15); } }

/* DZIAŁALNOŚĆ */
#view-biz { background-color: var(--light-bg); color: #10261d; padding: 24px 20px; gap: 16px; }
.biz-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin: 0; color: #10261d; }
.biz-summary-card { background: #ffffff; border-radius: 20px; padding: 20px; border: 1px solid var(--light-border); box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 6px; }
.biz-summary-val { font-size: 32px; font-weight: 800; color: #10261d; letter-spacing: -0.5px; }
.biz-summary-label { font-size: 13px; font-weight: 600; color: #10b981; }
.biz-sub-streams { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--light-border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; color: var(--light-sub); font-weight: 600; }
.biz-sub-stream-col { display: flex; flex-direction: column; gap: 2px; }
.biz-sub-stream-col b { color: #10261d; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-controls-group { display: flex; flex-direction: column; gap: 10px; }
.biz-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.biz-btn-action { padding: 16px 14px; border-radius: 18px; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.2s ease; position: relative; gap: 4px; min-height: 84px; }
.biz-btn-action:active { transform: scale(0.97); }
.btn-rent-active { background: #0f6b4a; color: #ffffff; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); }
.btn-rent-active .action-title { font-size: 14px; font-weight: 800; }
.btn-rent-active .action-sub { font-size: 11px; color: #e4d7a8; font-weight: 600; }
.btn-rent-locked { background: #e8e0cf; color: #6b756b; border: 1px solid #d9cfb8; cursor: not-allowed; }
.btn-rent-locked .action-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.btn-rent-locked .action-sub { font-size: 10px; color: #97a395; font-weight: 600; }
.btn-career-primary { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); color: #ffffff; box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35); }
.btn-career-primary .action-title { font-size: 14px; font-weight: 800; }
.btn-career-primary .action-sub { font-size: 11px; color: #ccfbf1; font-weight: 500; }
.btn-biz-wide { width: 100%; padding: 18px 20px; border-radius: 18px; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s ease; gap: 4px; }
.btn-biz-wide.active { background: linear-gradient(135deg, #1f8f66 0%, #0f6b4a 50%, #0b3b2a 100%); color: #ffffff; box-shadow: 0 6px 20px rgba(15, 107, 74, 0.4); }
.btn-biz-wide.active .wide-title { font-size: 16px; font-weight: 800; letter-spacing: 0.3px; }
.btn-biz-wide.active .wide-sub { font-size: 12px; color: #e9d5ff; font-weight: 600; }
.btn-biz-wide.locked { background: #e8e0cf; color: #6b756b; border: 1px solid #d9cfb8; cursor: not-allowed; }
.btn-biz-wide.locked .wide-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.btn-biz-wide.locked .wide-sub { font-size: 11px; color: #97a395; font-weight: 600; }
.biz-section-header { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.biz-section-title { font-size: 18px; font-weight: 800; color: #10261d; margin: 0; }
.biz-section-counter { font-size: 14px; font-weight: 700; color: var(--light-sub); }
.biz-cards-stack { display: flex; flex-direction: column; gap: 10px; }
.biz-card-owned { background: #ffffff; border-radius: 20px; padding: 14px 16px; border: 1px solid var(--light-border); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 3px 12px rgba(0,0,0,0.03); cursor: pointer; gap: 12px; }
.biz-card-owned:active { transform: scale(0.98); }
.biz-card-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.biz-card-icon-box { width: 46px; height: 46px; border-radius: 14px; background: #f6f1e1; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 1px solid #efe6c8; flex-shrink: 0; }
.biz-card-texts { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.biz-card-texts h4 { margin: 0; font-size: 14px; font-weight: 800; color: #10261d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-card-rate-row { font-size: 12px; color: #10b981; font-weight: 700; white-space: nowrap; }
.biz-card-lvl-pill { font-size: 10px; color: var(--light-sub); font-weight: 700; background: #f3eee2; padding: 2px 6px; border-radius: 6px; display: inline-block; width: fit-content; }
.biz-card-action-txt { font-size: 13px; font-weight: 800; color: #0f6b4a; flex-shrink: 0; white-space: nowrap; }
.biz-empty-card { background: #ffffff; border-radius: 18px; padding: 24px 18px; border: 1px solid var(--light-border); text-align: center; color: var(--light-sub); font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* INWESTOWANIE */
#view-invest { background-color: #ffffff; color: #10261d; padding: 20px 18px 40px 18px; display: flex; flex-direction: column; gap: 16px; }
.invest-main-title { font-size: 28px; font-weight: 800; margin: 0; color: #10261d; }
.invest-tabs-row { display: flex; border-bottom: 1px solid var(--light-border); gap: 20px; }
.invest-tab-link { padding: 8px 2px 12px 2px; font-size: 15px; font-weight: 700; color: #97a395; cursor: pointer; position: relative; display: flex; align-items: center; gap: 4px; }
.invest-tab-link.active { color: #0f6b4a; font-weight: 800; }
.invest-tab-link.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: #0f6b4a; border-radius: 3px 3px 0 0; }
.invest-tab-link.locked { opacity: 0.6; cursor: not-allowed; }
.invest-banners-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.invest-hero-banner { width: 100%; height: 150px; border-radius: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: #ffffff; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.14); transition: transform 0.15s ease; }
.invest-hero-banner:active { transform: scale(0.98); }
.banner-bg-market { background: linear-gradient(180deg, rgba(16,38,29,0.2) 0%, rgba(16,38,29,0.85) 100%), radial-gradient(circle at 70% 30%, #1f8f66 0%, #10261d 100%); }
.banner-bg-portfolio { background: linear-gradient(180deg, rgba(16,38,29,0.2) 0%, rgba(16,38,29,0.85) 100%), radial-gradient(circle at 70% 30%, #0d9488 0%, #10261d 100%); }
.invest-banner-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.invest-banner-sub { font-size: 12px; color: #e8e0cf; font-weight: 500; margin-top: 4px; opacity: 0.95; }
.banner-badge-count { position: absolute; top: 14px; right: 16px; background: #ef4444; color: #ffffff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 12px; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); }

/* OVERLAYE */
.fullscreen-overlay-view { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 80; display: none; flex-direction: column; overflow-y: auto; color: #10261d; }
.fullscreen-overlay-view.active { display: flex; }
.dealership-top-bar { display: flex; align-items: center; padding: 16px; gap: 12px; border-bottom: 1px solid #f3eee2; position: sticky; top: 0; background: #ffffff; z-index: 10; }
.back-nav-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #10261d; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.back-nav-btn:active { background: #f3eee2; }
.dealership-header-meta h2 { margin: 0; font-size: 20px; font-weight: 800; }
.dealership-header-meta span { font-size: 12px; color: var(--light-sub); font-weight: 600; }
.dealership-header-meta span b { color: #10261d; }

/* PIGUŁKI */
.sort-pills-row { display: flex; gap: 8px; padding: 12px 16px 4px 16px; }
.sort-pill-btn { background: #f3eee2; border: 1px solid var(--light-border); padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #6b756b; cursor: pointer; transition: all 0.15s ease; outline: none; }
.sort-pill-btn.active { background: #10261d !important; color: #ffffff !important; border-color: #10261d !important; box-shadow: 0 2px 6px rgba(16, 38, 29, 0.2); }

.estate-cards-list { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.estate-card-item { background: #ffffff; border-radius: 22px; border: 1px solid var(--light-border); box-shadow: 0 4px 18px rgba(0,0,0,0.04); overflow: hidden; display: flex; flex-direction: column; }
.estate-card-img-box { width: 100%; height: 175px; background: #e8e0cf; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.estate-card-img { width: 100%; height: 100%; object-fit: cover; }
.estate-card-bottom-bar { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.estate-price-val { font-size: 20px; font-weight: 800; color: #10261d; margin: 0; }
.estate-loc-tag { font-size: 12px; color: var(--light-sub); font-weight: 600; display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.btn-estate-buy { background: #0f6b4a; color: #ffffff; border: none; padding: 10px 22px; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

.estate-details-hero { width: 100%; height: 220px; position: relative; background: #10261d; overflow: hidden; }
.estate-details-hero-img { width: 100%; height: 100%; object-fit: cover; }
.estate-actions-bar { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--light-border); }
.btn-set-residence { width: 100%; padding: 12px; border-radius: 14px; font-size: 13px; font-weight: 800; cursor: pointer; border: 1px solid #e4d7a8; background: #f6f1e1; color: #0f6b4a; transition: all 0.15s; }
.btn-set-residence.is-residence { background: #10b981; color: #ffffff; border-color: #10b981; cursor: default; }

.estate-upgrades-section { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.estate-upgrades-title { font-size: 18px; font-weight: 800; color: #10261d; margin: 0 0 4px 0; }
.upgrade-item-card { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upgrade-icon-bubble { width: 44px; height: 44px; border-radius: 14px; background: #ffffff; border: 1px solid var(--light-border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; position: relative; }
.upgrade-info-col { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upgrade-name { font-size: 13px; font-weight: 700; color: #10261d; margin: 0; }
.upgrade-gains { font-size: 10px; color: #10b981; font-weight: 700; }
.upgrade-cost { font-size: 12px; font-weight: 800; color: #0f6b4a; }
.btn-buy-upgrade { background: #0f6b4a; color: #ffffff; border: none; padding: 8px 14px; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-upgrade-done { background: #e8e0cf; color: #10b981; border: none; padding: 8px 14px; border-radius: 12px; font-size: 12px; font-weight: 800; cursor: default; }
.estate-footer-sell-box { margin-top: auto; padding: 16px; border-top: 1px solid var(--light-border); display: flex; flex-direction: column; gap: 10px; }
.estate-market-val-row { display: flex; justify-content: space-between; align-items: baseline; }
.estate-market-val-title { font-size: 14px; color: var(--light-sub); font-weight: 600; }
.estate-market-val-num { font-size: 22px; font-weight: 800; color: #10261d; }
.btn-estate-sell { width: 100%; background: #0f6b4a; color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); }
.btn-estate-sell span { display: block; font-size: 11px; font-weight: 500; opacity: 0.9; margin-top: 2px; }

/* WYNAJEM */
.rent-card-item { background: #ffffff; border-radius: 20px; border: 1px solid var(--light-border); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); }
.rent-card-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.rent-card-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #e8e0cf; }
.rent-card-info h4 { margin: 0; font-size: 14px; font-weight: 800; color: #10261d; }
.rent-card-rate { font-size: 13px; font-weight: 800; color: #10b981; margin-top: 2px; }
.btn-start-rent { background: #0f6b4a; color: #ffffff; border: none; padding: 10px 18px; border-radius: 14px; font-size: 13px; font-weight: 800; cursor: pointer; }
.btn-stop-rent { background: #ef4444; color: #ffffff; border: none; padding: 10px 14px; border-radius: 14px; font-size: 12px; font-weight: 800; cursor: pointer; }
.badge-residence-tag { font-size: 11px; font-weight: 700; color: #6b756b; background: #f3eee2; padding: 6px 12px; border-radius: 10px; }

/* PULPIT BIZNESU */
.biz-detail-view-container { flex: 1; display: flex; flex-direction: column; background: #fbf8f1; overflow-y: auto; }
.biz-hero-header-box { background: linear-gradient(180deg, #10b981 0%, #059669 100%); padding: 16px 20px 36px 20px; display: flex; flex-direction: column; align-items: center; position: relative; color: #ffffff; border-radius: 0 0 28px 28px; }
.biz-top-nav-row { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.biz-gear-btn { background: rgba(255, 255, 255, 0.2); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: #ffffff; }
.biz-gear-btn:active { background: rgba(255, 255, 255, 0.35); }
.biz-icon-circle { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.biz-custom-name-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.3px; text-align: center; }
.biz-content-body { padding: 0 18px 40px 18px; margin-top: -24px; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.biz-income-stat-card { background: #ffffff; border-radius: 22px; padding: 20px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 1px solid var(--light-border); }
.biz-income-stat-val { font-size: 32px; font-weight: 800; color: #10261d; letter-spacing: -0.5px; }
.biz-income-stat-lbl { font-size: 13px; color: var(--light-sub); font-weight: 600; margin-bottom: 6px; }
.biz-ticket-boost-bar { width: 100%; padding-top: 10px; border-top: 1px solid #f3eee2; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; color: #10b981; }
.biz-level-bar-card { background: #ffffff; border-radius: 18px; padding: 14px 18px; border: 1px solid var(--light-border); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.biz-level-row-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #10261d; }
.biz-level-progress-bg { width: 100%; height: 8px; background: #e8e0cf; border-radius: 4px; overflow: hidden; }
.biz-level-progress-fill { height: 100%; background: #10b981; border-radius: 4px; transition: width 0.3s ease; }
.biz-upgrade-stage-card { background: #ffffff; border-radius: 22px; padding: 20px; border: 1px solid var(--light-border); box-shadow: 0 4px 16px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 10px; }
.stage-card-title-row { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #10261d; }
.stage-investment-cost { font-size: 22px; font-weight: 800; color: #10261d; margin: 4px 0 0 0; }
.stage-cost-lbl { font-size: 11px; color: var(--light-sub); font-weight: 600; }
.stage-expected-gain { font-size: 16px; font-weight: 800; color: #10b981; display: flex; align-items: center; gap: 4px; }
.stage-gain-lbl { font-size: 11px; color: var(--light-sub); font-weight: 600; }
.btn-upgrade-biz-action { width: 100%; background: #10b981; color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); transition: all 0.15s; }
.btn-upgrade-biz-action:active { transform: scale(0.98); }
.btn-upgrade-biz-action.disabled { background: #d9cfb8; box-shadow: none; cursor: not-allowed; }

/* USTAWIENIA BIZNESU */
.biz-settings-body { padding: 16px 20px 40px 20px; display: flex; flex-direction: column; gap: 14px; }
.biz-settings-header-card { display: flex; align-items: center; gap: 14px; padding: 8px 0 14px 0; }
.biz-settings-icon { width: 54px; height: 54px; border-radius: 50%; background: #10b981; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.biz-settings-title { font-size: 22px; font-weight: 800; color: #10261d; margin: 0; }
.settings-stat-card { background: #ffffff; border-radius: 20px; padding: 18px 20px; border: 1px solid var(--light-border); box-shadow: 0 4px 14px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 4px; }
.settings-stat-tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--light-sub); }
.settings-stat-num { font-size: 28px; font-weight: 800; color: #10261d; margin-top: 4px; }
.settings-stat-num-sub { font-size: 20px; font-weight: 800; color: #10261d; }
.settings-liquidation-box { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.settings-liq-desc { font-size: 12px; color: var(--light-sub); line-height: 1.4; margin: 0; }
.btn-close-biz-30 { width: 100%; background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; padding: 15px; border-radius: 16px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.15s; }
.btn-close-biz-30:active { background: #ffe4e6; }
.btn-close-biz-100 { width: 100%; background: #fb7185; color: #ffffff; border: none; padding: 15px; border-radius: 16px; font-size: 14px; font-weight: 800; cursor: not-allowed; opacity: 0.9; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* GARAŻ & SALON */
.garage-cards-list { padding: 12px 16px 40px 16px; display: flex; flex-direction: column; gap: 14px; }
.garage-card-item { border-radius: 24px; padding: 16px 18px 18px 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; cursor: pointer; position: relative; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transition: transform 0.12s; min-height: 175px; }
.garage-card-header-bar { width: 100%; height: 24px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 6px; z-index: 5; }
.garage-card-badge-primary { background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #ffffff; display: inline-flex; align-items: center; gap: 4px; }
.garage-card-img-preview { max-width: 220px; max-height: 105px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35)); margin-top: 4px; margin-bottom: 10px; z-index: 2; }
.garage-card-name { font-size: 18px; font-weight: 800; margin: 0; color: #ffffff; }
.garage-card-sub { font-size: 12px; opacity: 0.9; margin-top: 3px; color: #ffffff; }

.dealership-list-wrap { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.car-card-tier { border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 105px; cursor: pointer; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.08); transition: transform 0.12s; }
.car-card-tier:active { transform: scale(0.98); }
.tier-1-copper { background: linear-gradient(135deg, #42291d 0%, #2b170e 100%); border: 1px solid #5a3826; color: #ffffff; }
.tier-2-steel { background: linear-gradient(135deg, #4a5a50 0%, #1e293b 100%); border: 1px solid #6b756b; color: #ffffff; }
.tier-3-cobalt { background: linear-gradient(135deg, #6b4f06 0%, #10261d 100%); border: 1px solid #1f8f66; color: #ffffff; }
.tier-4-gold { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); border: 1px solid #f59e0b; color: #ffffff; }
.tier-5-obsidian { background: linear-gradient(135deg, #09090b 0%, #18181b 60%, #2e1065 100%); border: 1px solid #a855f7; color: #ffffff; }
.car-tier-name { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.car-tier-spec { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.car-tier-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.car-tier-price { font-size: 16px; font-weight: 800; }
.car-tier-action-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.15); }

.config-view-body { padding: 12px 18px 30px 18px; display: flex; flex-direction: column; gap: 16px; }
.config-car-stage { width: 100%; height: 195px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; margin-top: 4px; }
.stage-tier-glow { position: absolute; bottom: 25px; width: 75%; height: 25px; border-radius: 50%; filter: blur(20px); opacity: 0.45; z-index: 1; pointer-events: none; }
.glow-tier-1-copper { background: #b87333; }
.glow-tier-2-steel { background: #c9a227; }
.glow-tier-3-cobalt { background: #0f6b4a; }
.glow-tier-4-gold { background: #f59e0b; opacity: 0.65; filter: blur(24px); }
.glow-tier-5-obsidian { background: #a855f7; opacity: 0.7; filter: blur(26px); }
.config-car-img { max-width: 95%; max-height: 160px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 14px 16px rgba(0,0,0,0.38)); }
.config-car-placeholder-box { width: 100%; height: 140px; border: 2px dashed #d9cfb8; border-radius: 18px; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #97a395; font-size: 12px; font-weight: 600; position: relative; z-index: 2; }
.config-car-meta-bar { width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.config-car-main-title { font-size: 22px; font-weight: 800; color: #10261d; margin: 0; }
.config-car-main-spec { font-size: 12px; color: var(--light-sub); font-weight: 600; }
.config-sec-title { font-size: 15px; font-weight: 800; color: #10261d; margin: 4px 0 2px 0; }
.config-sec-desc { font-size: 12px; color: var(--light-sub); margin: 0 0 4px 0; }
.config-pills-stack { display: flex; flex-direction: column; gap: 8px; }
.config-option-card { background: #fbf8f1; border: 2px solid var(--light-border); border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.15s ease; }
.config-option-card.selected { background: #f6f1e1; border-color: #0f6b4a; }
.config-opt-left h4 { margin: 0; font-size: 14px; font-weight: 700; color: #10261d; }
.config-opt-left p { margin: 2px 0 0 0; font-size: 11px; color: var(--light-sub); }
.config-opt-right { font-size: 13px; font-weight: 800; color: #0f6b4a; white-space: nowrap; }
.config-summary-bar { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--light-border); display: flex; flex-direction: column; gap: 12px; }
.config-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.config-total-label { font-size: 14px; color: var(--light-sub); font-weight: 600; }
.config-total-value { font-size: 24px; font-weight: 800; color: #10261d; }
.btn-buy-configured { width: 100%; background: #0f6b4a; color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); }

/* PRZEDMIOTY & PROFIL */
#view-items, #view-profile { background-color: #ffffff; color: #10261d; padding: 20px 16px 40px 16px; display: flex; flex-direction: column; gap: 14px; }
.items-header-row, .profile-header-bar { display: flex; justify-content: space-between; align-items: baseline; flex-shrink: 0; }
.items-title, .profile-title { font-size: 28px; font-weight: 800; margin: 0; color: #10261d; }
.items-net-worth { font-size: 13px; font-weight: 700; color: #10b981; }
.hub-triplet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; flex-shrink: 0; }
.hub-base-card { height: 102px; border-radius: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 10px; color: #ffffff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.hub-bg-garage { background: linear-gradient(180deg, rgba(16,38,29,0.3) 0%, rgba(16,38,29,0.9) 100%), radial-gradient(circle at 50% 30%, #33463c 0%, #10261d 100%); }
.hub-bg-hangar { background: linear-gradient(180deg, rgba(30,41,59,0.3) 0%, rgba(16,38,29,0.9) 100%), radial-gradient(circle at 50% 30%, #4a5a50 0%, #1e293b 100%); }
.hub-bg-port { background: linear-gradient(180deg, rgba(3,105,161,0.3) 0%, rgba(12,74,96,0.95) 100%), radial-gradient(circle at 50% 30%, #0284c7 0%, #082f49 100%); }
.hub-base-title { font-size: 15px; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.hub-base-count { font-size: 11px; color: #e8e0cf; font-weight: 600; opacity: 0.95; margin-top: 2px; }
.hub-stores-bar { width: 100%; min-height: 96px; background: #ffffff; border-radius: 18px; display: grid !important; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--light-border); box-shadow: 0 3px 10px rgba(0,0,0,0.04); flex-shrink: 0 !important; }
.hub-store-slot { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding-top: 10px; cursor: pointer; position: relative; background: #ffffff; }
.hub-store-slot:not(:last-child) { border-right: 1px solid #e8e0cf; }
.hub-slot-locked { opacity: 0.55; cursor: not-allowed !important; background: #fbf8f1 !important; }
.store-icon-wrap { height: 42px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.hub-store-label { font-size: 10px; font-weight: 800; color: #ffffff; background: #0f6b4a; width: 100%; padding: 7px 2px; text-align: center; }
.badge-store-new { position: absolute; top: 5px; right: 6px; background: #a855f7; color: #fff; font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 4px; text-transform: uppercase; }
.divider-line { height: 1px; background: #e8e0cf; margin: 4px 0; width: 100%; flex-shrink: 0; }
.collection-section-title { font-size: 20px; font-weight: 800; margin: 0; color: #10261d; flex-shrink: 0; }
.collections-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; padding-bottom: 25px; flex-shrink: 0; }
.collection-card { background: #fbf8f1; border-radius: 20px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid #e8e0cf; cursor: pointer; position: relative; }
.collection-card.col-locked { opacity: 0.6; cursor: not-allowed; background: #f3eee2; }
.collection-badge-new { position: absolute; top: 10px; right: 10px; background: #6b756b; color: #fff; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 5px; text-transform: uppercase; }
.collection-3d-visual { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.collection-card-name { font-size: 14px; font-weight: 800; color: #10261d; margin-top: 4px; }
.collection-card-counter { font-size: 12px; color: var(--light-sub); font-weight: 600; }

.profile-future-banner { width: 100%; height: 90px; border-radius: 22px; background: linear-gradient(135deg, #1e293b 0%, #10261d 100%); border: 1px solid #33463c; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: #ffffff; box-shadow: 0 6px 18px rgba(0,0,0,0.12); cursor: not-allowed; flex-shrink: 0; }
.future-banner-text h4 { margin: 0 0 3px 0; font-size: 16px; font-weight: 800; color: #fbbf24; }
.future-banner-text p { margin: 0; font-size: 11px; color: #97a395; font-weight: 600; }
.future-banner-lock-icon { font-size: 26px; opacity: 0.85; }
.profile-assets-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-asset-tile { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 20px; height: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 8px; position: relative; }
.profile-asset-icon { font-size: 30px; }
.profile-car-showcase-img { max-width: 95%; max-height: 55px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25)); }
.profile-asset-title { font-size: 12px; font-weight: 800; color: #10261d; margin-top: 2px; }
.profile-asset-status { font-size: 10px; font-weight: 700; color: var(--light-sub); text-align: center; }
.profile-asset-status.active { color: #10b981; }
.profile-stats-card { background: linear-gradient(145deg, #10b981 0%, #0d9488 40%, #0f766e 100%); border-radius: 24px; padding: 22px 20px; color: #ffffff; box-shadow: 0 10px 28px rgba(13, 148, 136, 0.28); display: flex; flex-direction: column; gap: 18px; }
.stats-card-main-title { font-size: 22px; font-weight: 800; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 10px; }
.stats-section-block { display: flex; flex-direction: column; gap: 9px; }
.stats-sub-title { font-size: 16px; font-weight: 800; margin: 6px 0 2px 0; color: #ecfdf5; }
.stats-metric-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.stats-metric-label { color: #ccfbf1; font-weight: 600; }
.stats-metric-val { font-weight: 800; color: #ffffff; }

.admin-stealth-box { margin-top: 10px; background: #fbf8f1; border-radius: 18px; padding: 16px; border: 1px dashed #d9cfb8; display: flex; flex-direction: column; gap: 10px; }
.admin-pin-row { display: flex; gap: 8px; }
.admin-pin-input { flex: 1; padding: 10px 14px; border-radius: 12px; border: 1px solid #d9cfb8; font-size: 15px; font-weight: bold; text-align: center; }
.admin-pin-btn { background: #1e293b; color: #ffffff; border: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.admin-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.admin-action-btn { padding: 10px 8px; border-radius: 10px; border: 1px solid #d9cfb8; background: #ffffff; font-size: 11px; font-weight: 700; cursor: pointer; }

.bottom-nav { height: 68px; background: #ffffff; display: flex; align-items: center; justify-content: space-around; border-top: 1px solid rgba(0,0,0,0.06); z-index: 10; }
.nav-slot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; cursor: pointer; color: #97a395; position: relative; }
.nav-slot.active { color: #0f6b4a; }
.nav-icon { width: 22px; height: 22px; fill: currentColor; }
.nav-label { font-size: 10px; font-weight: 700; }
.nav-badge-pill { position: absolute; top: 6px; right: 18px; background: #a855f7; color: #ffffff; font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 4px; text-transform: uppercase; }

.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(16, 38, 29, 0.65); backdrop-filter: blur(4px); z-index: 100; display: none; justify-content: center; align-items: flex-end; }
.modal-sheet { width: 100%; max-height: 85%; background: #ffffff; border-radius: 28px 28px 0 0; padding: 24px 20px 30px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; color: #10261d; }
.modal-header-row { display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 20px; font-weight: 800; margin: 0; }
.modal-close-btn { background: #f3eee2; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: bold; cursor: pointer; }
.job-card { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job-card.job-passed { opacity: 0.6; }
.job-card-info h4 { margin: 0; font-size: 14px; font-weight: 700; }
.job-pay-text { font-size: 13px; color: #10b981; font-weight: 800; }
.job-course-label { font-size: 11px; color: #6b756b; }
.job-btn { padding: 8px 14px; border-radius: 12px; border: none; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-buy-course { background: #f59e0b; color: #ffffff; }
.btn-apply-job { background: #0d9488; color: #ffffff; }
.btn-active-job { background: #10b981; color: #ffffff; cursor: default; }
.btn-passed-job { background: #d9cfb8; color: #4a5a50; cursor: not-allowed; }
.biz-input-field { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid #d9cfb8; font-size: 16px; font-weight: 700; color: #10261d; outline: none; transition: border 0.2s; }
.biz-input-field:focus { border-color: #10b981; }
.btn-create-biz-submit { width: 100%; padding: 16px; border-radius: 16px; border: none; background: #10b981; color: #ffffff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
.btn-create-biz-submit.disabled { background: #d9cfb8; box-shadow: none; cursor: not-allowed; }

/* PRZEŁĄCZNIK JĘZYKA */
.lang-switch-box { display: flex; align-items: center; gap: 6px; }
.lang-select { border: 1px solid #d9cfb8; border-radius: 10px; padding: 6px 8px; font-size: 12px; font-weight: 700; background: #ffffff; color: #10261d; }

/* ===== FLOTY: wybór typu firmy, pulpit, katalog, zakup ===== */
.biz-type-list { display: flex; flex-direction: column; gap: 8px; }
.biz-type-card { display: flex; align-items: center; gap: 12px; background: #fbf8f1; border: 2px solid var(--light-border); border-radius: 16px; padding: 10px 12px; cursor: pointer; }
.biz-type-card.selected { background: #ecfdf5; border-color: #10b981; }
.biz-type-card.locked { opacity: 0.5; cursor: not-allowed; }
.biz-type-icon { font-size: 26px; flex-shrink: 0; }
.biz-type-text { flex: 1; min-width: 0; }
.biz-type-text h4 { margin: 0; font-size: 13px; font-weight: 800; color: #10261d; }
.biz-type-text p { margin: 2px 0 0 0; font-size: 11px; color: var(--light-sub); line-height: 1.3; }
.biz-type-cost { font-size: 12px; font-weight: 800; color: #059669; white-space: nowrap; }

.fleet-capacity { font-size: 12px; font-weight: 700; color: var(--light-sub); }
.btn-fleet-catalog { width: 100%; background: #0f6b4a; color: #ffffff; border: none; padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); }
.fleet-mass-btn { width: 100%; background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; padding: 13px; border-radius: 16px; font-size: 14px; font-weight: 800; cursor: pointer; }
.fleet-mass-btn.disabled { background: #f3eee2; color: #97a395; border-color: #e8e0cf; cursor: not-allowed; }
.fleet-list { display: flex; flex-direction: column; gap: 10px; }
.fleet-row { background: #ffffff; border: 1px solid var(--light-border); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 3px 12px rgba(0,0,0,0.03); }
.fleet-row.is-wreck { background: #fff7f7; border-color: #fecaca; }
.fleet-row-top { display: flex; align-items: center; gap: 12px; }
.fleet-row-img { width: 64px; height: 44px; object-fit: contain; flex-shrink: 0; }
.fleet-row-main { min-width: 0; flex: 1; }
.fleet-row-main h4 { margin: 0; font-size: 14px; font-weight: 800; color: #10261d; }
.fleet-row-sub { font-size: 11px; font-weight: 700; color: #10b981; }
.fleet-row.is-wreck .fleet-row-sub { color: #ef4444; }
.wear-bar { width: 100%; height: 7px; background: #e8e0cf; border-radius: 4px; overflow: hidden; }
.wear-fill { height: 100%; border-radius: 4px; transition: width 0.4s linear; }
.fleet-row-km { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--light-sub); }
.fleet-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fleet-btn { flex: 1; border: none; padding: 9px 10px; border-radius: 12px; font-size: 12px; font-weight: 800; cursor: pointer; color: #ffffff; min-width: 120px; }
.fleet-btn-sell { background: #0f6b4a; }
.fleet-btn-scrap { background: #ef4444; }
.fleet-btn-overhaul { background: #f59e0b; }

.fleet-cat-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fleet-cat-card { display: flex; gap: 12px; background: #ffffff; border: 1px solid var(--light-border); border-radius: 20px; padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); cursor: pointer; }
.fleet-cat-card:active { transform: scale(0.98); }
.fleet-cat-img-box { width: 110px; min-height: 80px; background: #f3eee2; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.fleet-cat-img-box img { width: 100%; height: 100%; object-fit: contain; }
.fleet-cat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fleet-cat-info h4 { margin: 0; font-size: 15px; font-weight: 800; color: #10261d; }
.fleet-cat-tag { font-size: 10px; font-weight: 800; color: #0f6b4a; text-transform: uppercase; letter-spacing: 0.4px; }
.fleet-cat-spec { font-size: 11px; color: var(--light-sub); font-weight: 600; }
.fleet-cat-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 14px; color: #10261d; }
.fleet-cat-income { font-size: 11px; font-weight: 800; color: #10b981; }

.fleet-buy-head { display: flex; align-items: center; gap: 12px; }
.fleet-buy-head img { width: 96px; height: 64px; object-fit: contain; }
.fleet-qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 52px; height: 48px; border-radius: 14px; border: 1px solid #d9cfb8; background: #fbf8f1; font-size: 22px; font-weight: 800; color: #10261d; cursor: pointer; }
.qty-btn.qty-max { background: #10261d; color: #ffffff; font-size: 14px; flex: 1; }
.qty-value { flex: 1; text-align: center; font-size: 26px; font-weight: 800; color: #10261d; }
.fleet-buy-summary { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--light-sub); font-weight: 600; }
.fleet-buy-summary > div { display: flex; justify-content: space-between; }
.fleet-buy-summary b { color: #10261d; }
.fleet-buy-total { padding-top: 8px; border-top: 1px solid var(--light-border); font-size: 16px; }
.btn-buy-configured.disabled-buy { background: #d9cfb8; box-shadow: none; }

/* ===== GRAFIKI RYSOWANE KODEM (art.js) ===== */
.art-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.art-wrap svg { width: 100%; height: 100%; display: block; }
.art-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.art-garage { width: 220px; height: 110px; margin: 4px 0 10px 0; z-index: 2; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35)); }
.art-profile { width: 96px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25)); }
.art-estate { width: 100%; height: 100%; }
.art-hero { width: 100%; height: 100%; }
.art-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.art-fleet-row { width: 76px; height: 46px; flex-shrink: 0; }
.art-cat { width: 100%; height: 100%; min-height: 70px; }
.art-buy { width: 110px; height: 66px; flex-shrink: 0; }
.config-art-slot { width: 95%; height: 165px; position: relative; z-index: 2; filter: drop-shadow(0 14px 16px rgba(0,0,0,0.38)); }
.art-config { width: 100%; height: 100%; }
.art-wrap img { width: 100%; height: 100%; }

/* ===== Własne okienka dialogowe (ui.js) ===== */
.ui-dialog-overlay { position: absolute; inset: 0; background: rgba(16, 38, 29, 0.7); backdrop-filter: blur(4px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ui-dialog { width: 100%; max-width: 340px; background: #ffffff; color: #10261d; border-radius: 22px; padding: 22px 20px 16px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.ui-dialog-title { margin: 0; font-size: 17px; font-weight: 800; }
.ui-dialog-text { margin: 0; font-size: 14px; line-height: 1.45; color: #33463c; white-space: pre-line; }
.ui-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ui-btn { border: none; border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.ui-btn-main { background: #10261d; color: #ffffff; flex: 1; }
.ui-btn-danger { background: #dc2626; }
.ui-btn-ghost { background: #f3eee2; color: #33463c; }
.ui-toast-wrap { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.ui-toast { background: #10261d; color: #ffffff; padding: 11px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,0.3); max-width: 100%; animation: uiToastIn 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; }
.ui-toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes uiToastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ===== Profil: przyciski narzędzi ===== */
.profile-tools-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-tool-btn { position: relative; background: #ffffff; border: 1px solid #e8e0cf; border-radius: 18px; padding: 12px 6px 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-family: inherit; color: #10261d; box-shadow: 0 4px 12px rgba(16,38,29,0.05); }
.profile-tool-btn .tool-ico { font-size: 24px; line-height: 1.1; }
.profile-tool-btn .tool-name { font-size: 12px; font-weight: 800; }
.profile-tool-btn small { font-size: 10px; color: #6b756b; font-weight: 700; }
.profile-tool-btn.has-alert { border-color: #10b981; }
.profile-tool-btn.has-alert small { color: #059669; }
.profile-tool-btn.has-alert::after { content: ''; position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }

/* ===== Nagroda dzienna ===== */
#dailyRewardBody { display: flex; flex-direction: column; gap: 12px; }
.daily-streak { margin: 0; text-align: center; font-size: 14px; font-weight: 800; color: #10261d; }
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.daily-tile { background: #fbf8f1; border: 1px solid #e8e0cf; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.daily-tile:last-child { grid-column: span 1; }
.daily-day { font-size: 10px; font-weight: 800; color: #6b756b; }
.daily-amt { font-size: 12px; font-weight: 800; color: #10261d; }
.daily-mark { font-size: 16px; }
.daily-tile.today { background: #ecfdf5; border-color: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,0.25); }
.daily-tile.done { background: #f3eee2; opacity: 0.7; }
.daily-tile.done .daily-mark { color: #10b981; font-weight: 800; }
.btn-daily-claim { background: linear-gradient(135deg, #10b981, #0d9488); color: #ffffff; border: none; border-radius: 16px; padding: 15px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-daily-claim.disabled { background: #e8e0cf; color: #6b756b; cursor: default; }
.daily-note { margin: 0; font-size: 11px; color: #97a395; text-align: center; line-height: 1.4; }

/* ===== Osiągnięcia ===== */
.ach-list { padding: 12px 16px 30px 16px; display: flex; flex-direction: column; gap: 10px; }
.ach-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fbf8f1; border: 1px solid #e8e0cf; opacity: 0.75; }
.ach-card.unlocked { background: #ecfdf5; border-color: #a7f3d0; opacity: 1; }
.ach-icon { font-size: 26px; width: 40px; text-align: center; flex: none; }
.ach-text { flex: 1; min-width: 0; }
.ach-text h4 { margin: 0; font-size: 14px; font-weight: 800; color: #10261d; }
.ach-text p { margin: 2px 0 0 0; font-size: 12px; color: #6b756b; line-height: 1.35; }
.ach-reward { flex: none; font-size: 12px; font-weight: 800; color: #0f766e; text-align: right; }

/* ===== Zapis gry ===== */
.save-help { margin: 0; font-size: 12px; color: #6b756b; line-height: 1.45; }
.save-label { font-size: 12px; font-weight: 800; color: #10261d; }
.save-box { width: 100%; box-sizing: border-box; border: 1px solid #d9cfb8; border-radius: 12px; padding: 10px; font-size: 11px; font-family: monospace; resize: none; color: #10261d; background: #fbf8f1; }
.save-btn-row { display: flex; gap: 8px; }
.save-btn { flex: 1; text-align: center; background: #10261d; color: #ffffff; border: none; border-radius: 12px; padding: 12px 8px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; }
.save-btn-warn { background: #dc2626; }

/* ===== Rynek (economy.js) ===== */
.market-chip { align-self: flex-start; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #e8e0cf; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.market-card { margin: 0; background: #ffffff; border: 1px solid #e8e0cf; border-radius: 20px; padding: 14px 16px; color: #10261d; box-shadow: 0 4px 14px rgba(16,38,29,0.06); display: flex; flex-direction: column; gap: 10px; }
.market-head { display: flex; justify-content: space-between; align-items: center; }
.market-title { font-size: 12px; font-weight: 800; color: #6b756b; text-transform: uppercase; letter-spacing: 0.6px; }
.market-phase { font-size: 15px; font-weight: 800; }
.market-news { margin: 0; font-size: 12px; color: #4a5a50; line-height: 1.4; }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.market-cell { background: #fbf8f1; border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
.mkt-label { font-size: 10px; font-weight: 800; color: #6b756b; text-align: center; }
.market-cell b { font-size: 17px; font-weight: 800; color: #10261d; }
.market-cell b.mkt-good { color: #059669; }
.market-cell b.mkt-bad { color: #dc2626; }
.mkt-arrow { font-style: normal; font-size: 10px; font-weight: 800; }
.mkt-arrow.good { color: #059669; }
.mkt-arrow.bad { color: #dc2626; }
.mkt-arrow.flat { color: #97a395; }
.market-effects { display: flex; flex-wrap: wrap; gap: 6px; }
.mkt-effect { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #f3eee2; color: #4a5a50; }
.mkt-effect.good { background: #ecfdf5; color: #047857; }
.mkt-effect.bad { background: #fef2f2; color: #b91c1c; }
.est-tag { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; margin-left: 4px; }
.est-tag:empty { display: none; }
.est-tag.cheap { background: #ecfdf5; color: #047857; }
.est-tag.pricey { background: #fef2f2; color: #b91c1c; }

/* ===== Zdarzenia (events.js) ===== */
.event-text { margin: 0; font-size: 14px; line-height: 1.5; color: #33463c; }
.event-choices { display: flex; flex-direction: column; gap: 10px; }
.event-choices.locked { opacity: 0.55; pointer-events: none; }
.event-choice { text-align: left; background: #fbf8f1; border: 1px solid #d9cfb8; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-family: inherit; color: #10261d; }
.event-choice b { font-size: 14px; font-weight: 800; }
.event-choice span { font-size: 12px; color: #6b756b; line-height: 1.35; }
.event-choice:active { background: #ecfdf5; border-color: #10b981; }
.event-choice.unaffordable { opacity: 0.5; cursor: default; }
.event-result { display: flex; flex-direction: column; gap: 14px; }
.event-result-text { margin: 0; font-size: 14px; line-height: 1.5; color: #10261d; font-weight: 600; background: #f3eee2; border-radius: 14px; padding: 14px; }
.btn-event-ok { background: linear-gradient(135deg, #10b981, #0d9488); color: #ffffff; border: none; border-radius: 16px; padding: 15px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== Synergie (synergies.js) ===== */
.syn-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #10261d, #1e293b); color: #ffffff; border-radius: 20px; padding: 14px 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(16,38,29,0.18); }
.syn-card-text { display: flex; flex-direction: column; gap: 3px; }
.syn-card-text b { font-size: 15px; font-weight: 800; }
.syn-card-text span { font-size: 12px; color: #97a395; font-weight: 600; }
.syn-card i { font-style: normal; font-size: 24px; color: #6b756b; }
.syn-body-wrap { padding: 8px 16px 30px 16px; display: flex; flex-direction: column; gap: 12px; }
.syn-map { width: 100%; height: auto; max-height: 440px; }
.syn-edge { stroke-linecap: round; }
.syn-edge.on { stroke: #10b981; stroke-width: 3.5; }
.syn-edge.off { stroke: #d9cfb8; stroke-width: 1.5; stroke-dasharray: 4 5; }
.syn-ring { fill: none; }
.syn-ring.on { stroke: #10b981; stroke-width: 2.5; stroke-dasharray: 5 4; }
.syn-ring.off { stroke: #d9cfb8; stroke-width: 1.5; stroke-dasharray: 3 5; }
.syn-node circle { fill: #ffffff; stroke-width: 2.5; }
.syn-node.owned circle { stroke: #10b981; }
.syn-node.missing circle { stroke: #d9cfb8; }
.syn-node.missing .syn-node-ico { opacity: 0.35; }
.syn-node-ico { font-size: 16px; }
.syn-node-label { font-size: 8.5px; font-weight: 800; fill: #4a5a50; }
.syn-summary { margin: 0; font-size: 12px; font-weight: 700; color: #33463c; background: #f3eee2; border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.syn-list { display: flex; flex-direction: column; gap: 10px; }
.syn-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fbf8f1; border: 1px solid #e8e0cf; }
.syn-item.active { background: #ecfdf5; border-color: #a7f3d0; }
.syn-item.off { opacity: 0.8; }
.syn-ico { font-size: 24px; width: 34px; text-align: center; flex: none; }
.syn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.syn-body h4 { margin: 0; font-size: 14px; font-weight: 800; color: #10261d; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.syn-body p { margin: 0; font-size: 12px; color: #4a5a50; line-height: 1.4; }
.syn-body small { font-size: 11px; color: #6b756b; font-weight: 700; }
.syn-badge { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 8px; }
.syn-badge.on { background: #10b981; color: #ffffff; }
.syn-badge.off { background: #e8e0cf; color: #6b756b; }
.syn-car-btn { margin-top: 8px; width: 100%; border: 1px solid #e4d7a8; background: #f6f1e1; color: #0b5238; border-radius: 12px; padding: 9px 10px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; }
.syn-car-btn.on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.syn-car-note { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #97a395; }
.btn-set-hq { width: 100%; padding: 12px; border-radius: 14px; font-size: 13px; font-weight: 800; cursor: pointer; border: 1px solid #ecdca0; background: #fff8e1; color: #8a6508; font-family: inherit; }
.btn-set-hq.is-hq { background: #b8860b; color: #ffffff; border-color: #b8860b; }
.syn-pick-row { display: flex; align-items: center; gap: 12px; text-align: left; background: #fbf8f1; border: 1px solid #d9cfb8; border-radius: 16px; padding: 12px 14px; cursor: pointer; font-family: inherit; color: #10261d; }
.syn-pick-ico { font-size: 24px; }
.syn-pick-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.syn-pick-text b { font-size: 14px; font-weight: 800; }
.syn-pick-text small { font-size: 11px; color: #6b756b; font-weight: 600; }
.syn-pick-bonus { font-size: 14px; font-weight: 800; color: #8a6508; }
.syn-node-label { paint-order: stroke; stroke: #ffffff; stroke-width: 3px; stroke-linejoin: round; }

/* ---------- Etap A: nowe klasy aut, blokady poziomów, filtry salonu ---------- */
.tier-6-platinum { background: linear-gradient(135deg, #e8e0cf 0%, #6b756b 55%, #33463c 100%); border: 1px solid #f3eee2; color: #10261d; }
.tier-6-platinum .car-tier-action-tag { background: rgba(16, 38, 29, 0.18); }
.tier-7-titan { background: linear-gradient(135deg, #134e4a 0%, #10261d 70%, #082f49 100%); border: 1px solid #2dd4bf; color: #ffffff; }
.tier-8-unique { background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 45%, #831843 100%); border: 1px solid #f0abfc; color: #ffffff; box-shadow: 0 4px 18px rgba(217, 70, 239, 0.35); }
.glow-tier-6-platinum { background: #e8e0cf; opacity: 0.7; filter: blur(26px); }
.glow-tier-7-titan { background: #2dd4bf; opacity: 0.65; filter: blur(26px); }
.glow-tier-8-unique { background: #d946ef; opacity: 0.75; filter: blur(28px); }
.garage-card-item.tier-6-platinum .garage-card-name, .garage-card-item.tier-6-platinum .garage-card-sub { color: #10261d; }

.unlock-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 2px dashed #d9cfb8; background: #fbf8f1; color: #4a5a50; }
.unlock-card-icon { font-size: 26px; }
.unlock-card-title { font-size: 14px; font-weight: 800; color: #10261d; }
.unlock-card-sub { font-size: 12px; margin-top: 3px; font-weight: 600; }

.dealership-filters { padding: 10px 16px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.filter-row .sort-pill-btn { flex: 0 0 auto; }
.filter-row-selects { overflow-x: visible; }
.filter-select { flex: 1 1 0; min-width: 0; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--light-border); background: #f3eee2; font-size: 12px; font-weight: 700; color: #33463c; }
.dealer-empty { text-align: center; padding: 30px 10px; color: #6b756b; font-weight: 600; }
.estate-name-line { display: block; font-size: 13px; font-weight: 700; color: #10261d; margin: 2px 0; }

/* ---------- Etap B: hangar i przystań ---------- */
.hv-body { padding: 12px 16px 40px 16px; display: flex; flex-direction: column; gap: 14px; }
.hv-status { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.hv-status-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #4a5a50; font-weight: 600; }
.hv-status-row b { color: #10261d; text-align: right; }
.hv-status-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hv-note { margin: 2px 0 0 0; font-size: 11px; color: #6b756b; line-height: 1.4; }
.hv-card { background: #ffffff; border: 1px solid var(--light-border); border-radius: 22px; box-shadow: 0 4px 18px rgba(0,0,0,0.05); padding: 12px 14px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.hv-art { width: 100%; height: 130px; border-radius: 16px; overflow: hidden; }
.hv-art-air { background: linear-gradient(180deg, #e4d7a8 0%, #f6f1e1 100%); }
.hv-art-sea { background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%); }
.hv-name { margin: 8px 0 0 0; font-size: 18px; font-weight: 800; color: #10261d; }
.hv-type { font-size: 12px; color: #6b756b; font-weight: 600; }
.hv-use { font-size: 12px; color: #4a5a50; }
.hv-buy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.hv-price { font-size: 16px; font-weight: 800; color: #10261d; }
.hv-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hv-btn { border: 1px solid var(--light-border); background: #f3eee2; color: #10261d; border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.hv-btn:disabled { opacity: 0.55; cursor: default; }
.hv-btn-main { background: #0f6b4a; border-color: #0f6b4a; color: #ffffff; }
.hv-btn-on { background: #ecfdf5; border-color: #10b981; color: #047857; }
.hv-btn-danger { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.hv-empty { text-align: center; padding: 30px 12px; color: #6b756b; font-weight: 600; line-height: 1.5; }

/* ---- Biznesy modułowe (Etap C) ---- */
.mod-card { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.mod-title { font-weight: 800; font-size: 15px; color: #10261d; }
.mod-card small, .mod-note { color: #6b756b; font-size: 12px; line-height: 1.4; }
.mod-note { padding: 0 4px; }
.mod-auto { font-size: 12px; font-weight: 700; color: #33463c; display: flex; align-items: center; gap: 6px; }
.mod-bar { height: 8px; background: #e8e0cf; border-radius: 6px; overflow: hidden; }
.mod-bar i { display: block; height: 100%; background: #10b981; border-radius: 6px; transition: width 0.9s linear; }
.mod-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod-tier { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--light-border); background: #ffffff; cursor: pointer; font-size: 12px; color: #10261d; }
.mod-tier span { font-size: 22px; }
.mod-tier em { font-style: normal; font-weight: 800; color: #0f6b4a; }
.mod-tier.locked, .mod-tier:disabled { opacity: 0.5; cursor: default; }
.mod-choice { display: flex; flex-direction: column; gap: 8px; }
.mod-opt { text-align: left; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--light-border); background: #ffffff; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: #10261d; }
.mod-opt.on { border-color: #10b981; background: #ecfdf5; }
.mod-opt small { color: #6b756b; font-size: 11.5px; }
.mod-row-season { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.mod-row-season.now { background: #f6f1e1; }
.mod-seg { display: flex; gap: 4px; }
.mod-seg button { flex: 1; padding: 7px 4px; border-radius: 10px; border: 1px solid var(--light-border); background: #ffffff; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.mod-seg button.on { background: #0f6b4a; color: #ffffff; border-color: #0f6b4a; }
.mod-seg button:disabled { opacity: 0.7; cursor: default; }
.mod-mini { max-height: 90px; }
.mod-mini2 { width: 90px; flex: none; max-height: 54px; }
.mod-ship { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.mod-ship > div:not(.art-wrap) { flex: 1; display: flex; flex-direction: column; }
#bizTypePicker { max-height: 52vh; overflow-y: auto; }

/* ---- Dynastia ---- */
.dyn-card { margin: 12px 16px; background: linear-gradient(135deg, #78350f, #b45309); }
.dyn-h { margin: 6px 4px 0 4px; font-size: 14px; font-weight: 800; color: #10261d; }
.dyn-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.dyn-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--light-border); background: #ffffff; font-size: 13px; cursor: pointer; }
.dyn-item span { flex: 1; }
.dyn-item.on { border-color: #10b981; background: #ecfdf5; }

/* ---- Samouczek i pomoc ---- */
.tut-root { position: absolute; inset: 0; z-index: 350; pointer-events: none; }
.tut-block { pointer-events: auto; position: absolute; background: rgba(16, 38, 29, 0.78); }
.tut-spot { position: absolute; border: 3px solid #fbbf24; border-radius: 16px; box-shadow: 0 0 0 4px rgba(251,191,36,0.25); animation: tutPulse 1.4s ease-in-out infinite; display: none; }
@keyframes tutPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(251,191,36,0.35); } 50% { box-shadow: 0 0 0 9px rgba(251,191,36,0.1); } }
.tut-card { pointer-events: auto; position: absolute; left: 14px; right: 14px; background: #ffffff; color: #10261d; border-radius: 22px; padding: 18px 18px 14px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 6px; }
.tut-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.tut-card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #33463c; }
.tut-dots { display: flex; gap: 4px; margin-bottom: 4px; }
.tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d9cfb8; }
.tut-dots i.on { background: #0f6b4a; width: 18px; border-radius: 6px; }
.tut-actions { display: flex; gap: 8px; margin-top: 8px; }
.tut-btn { flex: 1; border: 1px solid #e8e0cf; background: #f3eee2; color: #10261d; border-radius: 14px; padding: 11px; font-size: 14px; font-weight: 800; font-family: inherit; cursor: pointer; }
.tut-main { background: #0f6b4a; border-color: #0f6b4a; color: #ffffff; }
.tut-skip { background: none; border: none; color: #97a395; font-size: 12px; font-weight: 700; padding: 6px; cursor: pointer; font-family: inherit; }
.help-card { margin: 12px 16px 0 16px; background: linear-gradient(135deg, #0b5238, #1f8f66); }
.help-overlay { z-index: 90; }
.help-search { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--light-border); font-size: 14px; font-family: inherit; }
.help-topic { background: #fbf8f1; border: 1px solid var(--light-border); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.help-topic summary { font-weight: 800; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }
.help-topic summary::-webkit-details-marker { display: none; }
.help-topic ul { margin: 10px 0 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: #33463c; }
.help-empty { text-align: center; color: #6b756b; font-size: 13px; }
.help-link { background: #f6f1e1; border-color: #e4d7a8; color: #0b5238; }
.help-feedback { display: block; text-align: center; text-decoration: none; }

/* ===== Styl grafik: auta/pojazdy = połysk 3D (E), domy = plan techniczny (C) ===== */
svg.sv-car { filter: drop-shadow(0 6px 5px rgba(0,0,0,.45)); }
.art-garage svg.sv-car, .art-config svg.sv-car, .art-buy svg.sv-car, .art-hero svg.sv-car { filter: url(#gloss) drop-shadow(0 10px 8px rgba(0,0,0,.5)); }
.art-garage { background: linear-gradient(#3b4250, #12151c 62%, #242a36 62%, #0c0e13); border-radius: 16px; padding: 6px 8px 0; box-sizing: content-box; }
.art-garage svg.sv-car { -webkit-box-reflect: below -2px linear-gradient(transparent 68%, rgba(255,255,255,.28)); }
.art-cat, .art-fleet-row, .art-buy, .art-config, .hv-art { background: linear-gradient(#3b4250, #12151c 62%, #242a36 62%, #0c0e13); border-radius: 12px; }
svg.sv-house { background-color: #0b3a75; background-image: linear-gradient(rgba(165,216,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(165,216,255,.18) 1px, transparent 1px); background-size: 14px 14px; }
svg.sv-house * { fill: none !important; stroke: #bfe3ff !important; stroke-width: 1.4px !important; opacity: 1 !important; }
svg.sv-house ellipse[opacity] { display: none; }

/* ===== Wybór języka ===== */
.lang-overlay { position: fixed; inset: 0; background: rgba(8,12,24,.82); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lang-sheet { background: #fff; border-radius: 22px; padding: 22px 18px 18px; width: 100%; max-width: 360px; text-align: center; }
.lang-title { font-size: 26px; font-weight: 800; color: #10261d; letter-spacing: .5px; }
.lang-sub { font-size: 12px; color: #6b756b; margin: 6px 0 16px; line-height: 1.4; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-btn { padding: 14px 8px; border-radius: 14px; border: 2px solid #e8e0cf; background: #fbf8f1; font-size: 16px; font-weight: 700; color: #10261d; cursor: pointer; }
.lang-btn.active { border-color: #0f6b4a; background: #f6f1e1; color: #0b5238; }
.lang-card { margin: 12px 16px 0 16px; background: linear-gradient(135deg, #0f766e, #14b8a6); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* nick gracza */
.nick-input { width: 100%; box-sizing: border-box; border: 2px solid #d9cfb8; border-radius: 14px; padding: 12px 14px; font-size: 16px; font-weight: 700; font-family: inherit; color: #10261d; background: #fbf8f1; outline: none; }
.nick-input:focus { border-color: #10261d; }
.nick-err { min-height: 18px; margin-top: -6px; font-size: 12px; font-weight: 700; color: #dc2626; }
.nick-overlay .ui-dialog-actions { flex-wrap: wrap; }
.nick-cancel { width: 100%; }

/* Księga przedsiębiorstwa (okno firmy) */
.bs-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs-title-wrap .biz-settings-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-type { font-size: 12px; font-weight: 700; color: var(--light-sub); }
.bs-rename { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--light-border); background: #f3eee2; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.bs-hero { background: linear-gradient(135deg, #10261d, #134e4a); color: #fff; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 22px rgba(16,38,29,0.2); }
.bs-hero-tag { font-size: 12px; font-weight: 700; opacity: 0.75; letter-spacing: 0.3px; }
.bs-hero-num { font-size: 28px; font-weight: 800; color: #6ee7b7; }
.bs-split { display: flex; gap: 10px; margin-top: 6px; }
.bs-split > div { flex: 1; background: rgba(255,255,255,0.08); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.bs-split span { font-size: 11px; font-weight: 700; opacity: 0.7; }
.bs-split b { font-size: 13px; font-weight: 800; }
.bs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bs-grid2 .settings-stat-card { padding: 14px 14px; }
.bs-grid2 .settings-stat-tag { font-size: 11px; }
.bs-grid2 .settings-stat-num-sub { font-size: 16px; }
.bs-card { background: #ffffff; border: 1px solid var(--light-border); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); }
.bs-card p { margin: 0; font-size: 12px; color: var(--light-sub); line-height: 1.4; }
.bs-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.bs-ok { color: #10b981; font-weight: 800; }
.bs-zone-title { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #97a395; }

/* Kolekcja rodowa: trzy skrzydła rodu zamiast kafelków i paska sklepów */
.wing-list { display: flex; flex-direction: column; gap: 10px; width: 100%; flex-shrink: 0; }
.wing-card { display: flex; align-items: center; gap: 14px; padding: 14px 14px; border-radius: 20px; color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.wing-garage { background: linear-gradient(135deg, #10261d 0%, #33463c 100%); }
.wing-hangar { background: linear-gradient(135deg, #1e293b 0%, #4a5a50 100%); }
.wing-port { background: linear-gradient(135deg, #082f49 0%, #0369a1 100%); }
.wing-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.wing-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wing-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.wing-count { font-size: 12px; font-weight: 600; opacity: 0.85; }
.wing-shop { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.14); color: #fff; font-size: 11px; font-weight: 800; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.wing-shop:active { background: rgba(255,255,255,0.28); }
.gallery-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 25px 2px; width: 100%; flex-shrink: 0; }
.gallery-row .collection-card { flex: 0 0 140px; scroll-snap-align: start; }
.items-header-row { flex-wrap: wrap; gap: 2px 12px; }
.items-title { font-size: 26px; }

/* ============================================================
   ETAP C – tożsamość wizualna: ród, dziedzictwo (szmaragd i złoto)
   ============================================================ */
/* nagłówki szeryfowe */
.items-title, .profile-title, .biz-title, .invest-main-title, .collection-section-title, .dealership-header-meta h2,
.ui-dialog-title, .wing-title, .biz-settings-title, .stats-card-main-title, .dyn-h, .mod-title { font-family: var(--serif); letter-spacing: -0.2px; }
.items-title, .profile-title, .biz-title, .invest-main-title { font-weight: 700; }

/* dolna belka: ciemny szmaragd, złoty akcent */
.bottom-nav { background: linear-gradient(180deg, #0c2f23 0%, #07211a 100%); border-top: 1px solid rgba(212,175,55,0.35); box-shadow: 0 -6px 18px rgba(0,0,0,0.25); }
.nav-slot { color: #7f9b8e; }
.nav-slot.active { color: var(--accent-gold); }
.nav-slot.active .nav-icon { filter: drop-shadow(0 0 6px rgba(212,175,55,0.55)); }
.nav-badge-pill { background: var(--accent-gold) !important; color: #3a2a00 !important; }

/* karta skarbca (dawniej karta bankowa) */
.bank-card { border-radius: 22px; }
.bank-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; pointer-events: none; }
.bank-card::after { content: "⚜"; position: absolute; right: 14px; top: 28px; font-size: 120px; line-height: 1; opacity: 0.09; pointer-events: none; }
.bank-card-header { font-family: var(--serif); letter-spacing: 1.5px; font-size: 12px; }
.bank-card-balance-label { font-family: var(--serif); font-style: italic; opacity: 0.85; }
.bank-card-chip { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bank-card-chip::after { content: "⚜"; font-size: 22px; color: rgba(60,40,0,0.7); }
.card-tier-bronze { background: linear-gradient(135deg, #5b3a22 0%, #33200f 100%); border: 2px solid #8a5a34; color: #e3c9ae; }
.card-tier-silver { background: linear-gradient(135deg, #9db0a7 0%, #55695f 50%, #2b3a33 100%); border: 2px solid #b9cbc2; color: #eef4f0; }
.card-tier-gold { background: linear-gradient(135deg, #b8860b 0%, #e2c050 42%, #8a5f08 100%); border: 2px solid #f3d56a; color: #fff6d6; }
.card-tier-black { background: linear-gradient(135deg, #0f1d17 0%, #050a08 60%, #101b16 100%); border: 2px solid #c9a227; color: #d9c98c; }
.card-tier-black .bank-card-chip { background: linear-gradient(135deg, #f0d98a 0%, #b8860b 100%); border: 1px solid #f3d56a; }
.card-tier-diamond { background: linear-gradient(135deg, #0a2a22 0%, #12493a 45%, #1d7a5f 100%); border: 2px solid #f0d98a; color: #e9f7ef; }
.card-tier-diamond .bank-card-chip { background: linear-gradient(135deg, #fff6d6 0%, #d4af37 100%); border: 1px solid #f0d98a; }

/* karta ulepszenia klikera i chip rynku */
.upgrade-card { border: 1px solid rgba(212,175,55,0.28); }
.progress-bar-fill { background: linear-gradient(90deg, #d4af37, #f0d98a); }

/* karty i przyciski na jasnych ekranach */
.settings-stat-card, .bs-card, .collection-card, .profile-asset-tile { border-color: var(--light-border); }
.bs-hero { background: linear-gradient(135deg, #0c2f23, #13503c); }
.bs-hero-num { color: #f0d98a; }
.wing-garage { background: linear-gradient(135deg, #10261d 0%, #2f4a3d 100%); }
.wing-hangar { background: linear-gradient(135deg, #1a3328 0%, #46604f 100%); }
.wing-port { background: linear-gradient(135deg, #0b3a3a 0%, #1b7a72 100%); }
.wing-ico { background: rgba(240,217,138,0.16); }
.wing-shop { border-color: rgba(240,217,138,0.5); }
.collection-badge-new { background: #8a7a45; }
.ui-btn-main { background: #10261d; }


/* ===== Partnerzy gry (partners.js) ===== */
.partner-card { flex: 0 0 150px; }
.partner-card.col-locked { cursor: pointer; opacity: .75; }
.partner-empty { flex: 1 1 100%; max-width: none; }
.partner-preview { position: absolute; top: 8px; right: 8px; font: 700 9px sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #8a6b14; background: #f4e4a6; border: 1px solid #d4b74a; border-radius: 99px; padding: 2px 7px; }
.partner-body { padding: 0 0 24px; background: #f4f1e8; flex: 1; display: flex; flex-direction: column; }
.partner-hero { display: flex; justify-content: center; padding: 22px 0 6px; background: radial-gradient(circle at 50% 40%, #fff6d6, #f4f1e8 70%); }
.partner-tag { text-align: center; margin: 6px 0 12px; }
.partner-tag span { display: inline-block; font: 700 10.5px sans-serif; letter-spacing: 1.5px; color: #8a6b14; background: #f4e4a6; border: 1px solid #d4b74a; border-radius: 99px; padding: 4px 12px; }
.partner-gal { display: flex; gap: 8px; margin: 0 16px 12px; }
.partner-gal img { flex: 1; min-width: 0; height: 100px; object-fit: cover; border-radius: 12px; }
.partner-card-box { margin: 0 16px 12px; background: #fff; border: 1px solid #e1dcc8; border-radius: 16px; padding: 14px; box-shadow: 0 2px 8px #0001; }
.partner-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.partner-logo img { max-width: 80%; max-height: 110px; object-fit: contain; }
.partner-logo-ph { border: 1.5px dashed #c9c2a8; color: #8a8467; border-radius: 10px; padding: 26px 10px; text-align: center; font-size: 12px; width: 80%; }
.partner-name { display: block; font-family: var(--serif, Georgia, serif); font-size: 17px; margin-bottom: 6px; color: #08201a; }
.partner-card-box p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #33463e; }
.partner-slogan { font-style: italic; color: #0f6b4a; font-weight: 600; font-size: 12.5px; margin-top: 8px; text-align: center; }
.partner-code { margin: 0 16px 10px; border: 1.5px dashed #c79c25; background: #fff9e6; border-radius: 12px; padding: 10px; text-align: center; font-size: 12.5px; color: #6a5210; }
.partner-sig { text-align: center; font: 600 11.5px sans-serif; color: #6b756b; margin: 2px 16px 10px; }
.partner-warn { margin: 0 16px 10px; text-align: center; font-size: 11px; color: #9a6a10; background: #fff4d6; border-radius: 10px; padding: 8px; }
.partner-close { margin: auto 16px 8px; background: #0f6b4a; color: #fff; border: 0; border-radius: 14px; padding: 13px; font-weight: 700; font-size: 15px; cursor: pointer; }


/* ===== Ranking i znajomi (online.js) ===== */
.on-tabs { display: flex; gap: 6px; padding: 10px 14px 0; background: #fff; }
.on-tabs button { flex: 1; border: 1px solid #e1dcc8; background: #fbf8f1; color: #33463e; border-radius: 12px; padding: 9px 4px; font-weight: 700; font-size: 13px; cursor: pointer; }
.on-tabs button.on { background: #0f6b4a; color: #fff; border-color: #0f6b4a; }
.on-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f4f1e8; flex: 1; }
.on-note { font-size: 13.5px; line-height: 1.5; color: #33463e; background: #fff; border: 1px solid #e1dcc8; border-radius: 14px; padding: 12px; }
.on-small { font-size: 12px; color: #6b756b; }
.on-card { background: #fff; border: 1px solid #e1dcc8; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.on-card b { font-size: 16px; color: #08201a; word-break: break-all; }
.on-code { font-family: Georgia, serif; font-size: 26px !important; letter-spacing: 4px; color: #0f6b4a !important; }
.on-mini { position: absolute; right: 12px; top: 12px; border: 1px solid #0f6b4a; color: #0f6b4a; background: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 12px; cursor: pointer; }
.on-btn { background: #0f6b4a; color: #fff; border: 0; border-radius: 14px; padding: 13px; font-weight: 700; font-size: 15px; cursor: pointer; }
.on-btn.ghost { background: #fff; color: #0f6b4a; border: 1px solid #0f6b4a; }
.on-btn.danger { background: #fff; color: #b3261e; border: 1px solid #b3261e; }
.on-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #10261d; }
.on-add { display: flex; gap: 8px; }
.on-add input { flex: 1; min-width: 0; border: 1px solid #d9d2bb; border-radius: 12px; padding: 11px; font-size: 15px; text-transform: uppercase; letter-spacing: 2px; background: #fff; }
.on-list { display: flex; flex-direction: column; gap: 6px; }
.on-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e8e0cf; border-radius: 12px; padding: 9px 10px; font-size: 13px; }
.on-row.me { border-color: #0f6b4a; background: #ecf7f1; }
.on-rk { width: 26px; font-weight: 800; color: #8a6b14; text-align: center; }
.on-nick { flex: 1; min-width: 0; font-weight: 700; color: #10261d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-gen { font-size: 11px; color: #6b756b; }
.on-val { font-weight: 800; color: #0f6b4a; white-space: nowrap; }
.on-x { border: 0; background: transparent; color: #b3261e; font-size: 16px; cursor: pointer; }
