.company-page { background: #f3f5f8; color: #172438; }
.company-topbar { min-height: 72px; padding: 14px 7%; background: #101c30; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.company-topbar .brand { margin: 0; color: #fff; }
.company-topbar .brand span { color: #ffc629; }
.company-topbar nav { display: flex; gap: 22px; }
.company-topbar nav a { color: #e3e9f2; font-size: 14px; text-decoration: none; }
.company-dashboard { width: min(1240px, calc(100% - 36px)); margin: 38px auto 70px; }
.company-page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.company-page-heading h1 { margin: 7px 0 9px; color: #101c30; font-size: clamp(28px, 4vw, 38px); }
.company-page-heading p { color: #687487; line-height: 1.6; max-width: 720px; }
.company-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); gap: 20px; align-items: start; }
.company-form-card, .company-side-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 24px; box-shadow: 0 8px 24px #101c3008; }
.company-form-card h2, .company-side-card h2 { margin: 0 0 10px; color: #101c30; font-size: 20px; }
.company-muted { color: #718096; font-size: 13px; line-height: 1.6; }
.company-form { margin-top: 22px; }
.company-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.company-upload-box { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px; border: 1px dashed #cbd3df; border-radius: 9px; color: #26364c; font-size: 13px; font-weight: 700; }
.company-upload-box input { width: 100%; font-size: 12px; }
.company-upload-box small { color: #718096; font-weight: 400; }
.company-logo-preview { width: 116px; height: 116px; object-fit: contain; border: 1px solid #e6eaf0; border-radius: 8px; background: #f8fafc; }
.company-cover-preview { width: 100%; height: 116px; object-fit: cover; border-radius: 8px; background: #edf1f5; }
.company-upload-placeholder { width: 116px; height: 116px; display: grid; place-items: center; background: #f1f4f8; color: #a1aaba; border-radius: 8px; font-size: 20px; }
.company-cover-placeholder { width: 100%; height: 116px; font-size: 13px; }
.company-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.company-field-grid label { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 13px; font-weight: 700; }
.company-field-grid input, .company-field-grid textarea { width: 100%; border: 1px solid #dce2ea; border-radius: 7px; padding: 12px; color: #172438; font: inherit; font-weight: 400; outline: none; }
.company-field-grid input:focus, .company-field-grid textarea:focus { border-color: #d7a51d; box-shadow: 0 0 0 3px #ffc62925; }
.company-field-grid textarea { resize: vertical; line-height: 1.6; }
.company-field-grid .field-full { grid-column: 1 / -1; }
.company-field-grid small { color: #718096; font-weight: 400; }
.company-publish-option { display: flex; align-items: flex-start; gap: 10px; padding: 16px; margin: 22px 0; border: 1px solid #f0d98f; background: #fffbeb; border-radius: 8px; }
.company-publish-option input { margin-top: 4px; accent-color: #b8860b; }
.company-publish-option span { display: flex; flex-direction: column; gap: 5px; }
.company-publish-option small { color: #718096; }
.company-primary-button, .company-secondary-button, .company-danger-button, .company-copy-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 7px; border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.company-primary-button { background: #ffc629; color: #101c30; }
.company-secondary-button, .company-copy-button { background: #fff; color: #26364c; border: 1px solid #d6dde7; }
.company-danger-button { background: #fff1f1; color: #a32929; border: 1px solid #f0c5c5; }
.company-side-column { display: grid; gap: 16px; }
.company-side-card p { margin: 12px 0; color: #4b596d; line-height: 1.55; font-size: 13px; overflow-wrap: anywhere; }
.company-side-card > small { color: #718096; line-height: 1.5; display: block; }
.company-side-card .company-secondary-button, .company-side-card .company-copy-button { width: 100%; margin-top: 9px; }
.company-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.company-stat-grid div { padding: 12px 7px; background: #f5f7fa; border-radius: 7px; text-align: center; }
.company-stat-grid strong { display: block; font-size: 22px; color: #101c30; }
.company-stat-grid span { font-size: 11px; color: #718096; }
.store-status { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.store-status-published { background: #e1f5e8; color: #17633a; }
.store-status-draft { background: #fff4d9; color: #855d00; }
.store-status-suspended { background: #fde7e7; color: #a32929; }
.company-alert { padding: 13px 16px; border-radius: 8px; margin: 15px 0; font-size: 13px; line-height: 1.55; }
.company-alert-error { color: #9d2929; background: #fff0f0; border: 1px solid #f3cccc; }
.company-alert-success { color: #17633a; background: #edfaf1; border: 1px solid #c5e9d1; }
.company-alert-warning { color: #805b08; background: #fff8e5; border: 1px solid #f0dfa9; padding: 13px; border-radius: 8px; font-size: 13px; margin: 18px 0; }

.company-directory { width: min(1180px, calc(100% - 36px)); margin: 55px auto 75px; }
.company-directory-heading h1 { font-size: clamp(30px, 4vw, 42px); color: #101c30; margin: 8px 0; }
.company-directory-heading p { color: #687487; line-height: 1.6; }
.company-search { display: grid; grid-template-columns: 1fr 100px auto; gap: 10px; margin: 26px 0 30px; padding: 12px; background: #fff; border: 1px solid #e4e8ef; border-radius: 10px; }
.company-search input { min-width: 0; padding: 12px; border: 1px solid #dce2ea; border-radius: 7px; font: inherit; }
.company-search button { border: 0; padding: 12px 20px; border-radius: 7px; background: #ffc629; color: #101c30; font-weight: 800; cursor: pointer; }
.company-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.company-public-card { display: grid; grid-template-columns: 86px 1fr; gap: 15px; padding: 18px; border: 1px solid #e4e8ef; background: #fff; border-radius: 11px; }
.company-public-logo { width: 86px; height: 86px; border-radius: 9px; overflow: hidden; background: #f1f4f8; display: grid; place-items: center; color: #101c30; font-size: 32px; font-weight: 900; }
.company-public-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-public-info h2 { margin: 0 0 5px; color: #101c30; font-size: 17px; }
.company-public-info h2 a { text-decoration: none; color: inherit; }
.company-public-info p { margin: 7px 0; color: #687487; font-size: 12px; line-height: 1.5; }
.company-public-info .company-location { color: #455166; font-weight: 700; }
.company-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; color: #687487; font-size: 10px; }
.company-verified { color: #17633a; background: #e5f6eb; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.company-not-verified { color: #7a5a10; background: #fff4d9; padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.company-card-link { display: inline-block; color: #8b6500; font-size: 12px; font-weight: 800; margin-top: 3px; }
.company-empty { padding: 38px; background: #fff; border: 1px solid #e4e8ef; border-radius: 10px; text-align: center; color: #687487; }
.company-empty h2, .company-empty h3 { color: #101c30; margin-bottom: 8px; }

.public-store-page { min-height: 65vh; }
.public-store-cover { height: 260px; background: linear-gradient(120deg, #101c30, #344c68); background-position: center; background-size: cover; }
.public-store-profile { width: min(1180px, calc(100% - 36px)); margin: -48px auto 0; position: relative; display: flex; align-items: end; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e1e6ed; }
.public-store-logo { width: 126px; height: 126px; flex: 0 0 126px; border: 5px solid #fff; border-radius: 13px; background: #f1f4f8; overflow: hidden; display: grid; place-items: center; color: #101c30; font-size: 42px; font-weight: 900; }
.public-store-logo img { width: 100%; height: 100%; object-fit: contain; }
.public-store-heading { flex: 1; padding-bottom: 8px; }
.public-store-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.public-store-title h1 { margin: 0; color: #101c30; font-size: 30px; }
.public-store-heading p { margin: 7px 0 0; color: #687487; font-size: 13px; }
.company-whatsapp-button { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 13px 18px; border-radius: 7px; background: #16834b; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.public-store-content { width: min(1180px, calc(100% - 36px)); margin: 30px auto 65px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.public-store-about { background: #fff; border: 1px solid #e4e8ef; border-radius: 10px; padding: 20px; }
.public-store-about h2 { color: #101c30; font-size: 18px; margin: 0 0 14px; }
.public-store-about p { color: #59677b; font-size: 13px; line-height: 1.7; margin: 10px 0; overflow-wrap: anywhere; }
.public-store-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.public-store-socials a { color: #8b6500; font-size: 12px; font-weight: 800; }
.public-store-listings .section-heading { margin-bottom: 18px; }
.company-admin-page { width: min(1180px, calc(100% - 36px)); margin: 40px auto 70px; }
.company-admin-list { display: grid; gap: 12px; }
.company-admin-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border: 1px solid #e4e8ef; border-radius: 10px; padding: 18px; }
.company-admin-main h2 { margin: 0 0 8px; color: #101c30; font-size: 18px; }
.company-admin-main p { color: #687487; font-size: 12px; margin: 5px 0; }
.company-admin-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.company-admin-actions form { margin: 0; }

@media (max-width: 900px) {
    .company-dashboard-grid { grid-template-columns: 1fr; }
    .company-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-store-content { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .company-topbar { padding: 14px 18px; }
    .company-topbar nav { gap: 12px; }
    .company-topbar nav a { font-size: 12px; }
    .company-dashboard { width: calc(100% - 24px); margin-top: 25px; }
    .company-page-heading { flex-direction: column; }
    .company-form-card, .company-side-card { padding: 18px; }
    .company-upload-grid, .company-field-grid { grid-template-columns: 1fr; }
    .company-field-grid .field-full { grid-column: auto; }
    .company-search { grid-template-columns: 1fr 75px; }
    .company-search button { grid-column: 1 / -1; }
    .company-directory-grid { grid-template-columns: 1fr; }
    .public-store-cover { height: 190px; }
    .public-store-profile { flex-wrap: wrap; align-items: center; margin-top: -38px; }
    .public-store-logo { width: 92px; height: 92px; flex-basis: 92px; }
    .public-store-heading { min-width: calc(100% - 120px); }
    .public-store-title h1 { font-size: 22px; }
    .company-whatsapp-button { width: 100%; }
    .company-admin-card { align-items: flex-start; flex-direction: column; }
    .company-admin-actions { width: 100%; }
}
