/* company.css — Company Overview page.
   Uses the same tokens as home.css (--navy, --blue, --teal, --line, --bg ...)
   so this page matches the header/footer/signup/contact look exactly. */

.co-crumb { padding: 14px 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fff; }
.co-crumb a:hover { color: var(--blue); }
.co-crumb .sep { margin: 0 6px; color: #c7cae0; }
.co-crumb .cur { color: var(--ink); font-weight: 700; }

.co-shell { display: grid; grid-template-columns: 236px 1fr 300px; gap: 22px; padding: 26px 0 70px; align-items: start; background: var(--bg); }
.co-shell .wrap { padding: 0 0; }

/* ---------- Left side nav ---------- */
.co-side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; position: sticky; top: 110px; }
.co-side { list-style: none; margin: 0; padding: 0; }
.co-side li a {
    display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 10px;
    font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .15s ease, color .15s ease;
}
.co-side li a i { width: 16px; text-align: center; }
.co-side li a:hover { background: var(--bg); color: var(--ink); }
.co-side li a.active { background: var(--navy); color: #fff; }

/* ---------- Main column ---------- */
.co-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.co-card, .co-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 13px; box-shadow: 0 8px 24px -14px rgba(8, 18, 63, .10); }

.co-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.co-id { display: flex; gap: 16px; align-items: flex-start; }
.co-ico {
    width: 56px; height: 56px; border-radius: 14px; background: #edf4ff; color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
}
.co-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-name-row h1 { font-size: 20px; color: var(--ink); }
.co-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8fbf4; color: #14795a; }
.co-status.inactive { background: #fdeeee; color: #c0322b; }
.co-lock {
    display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border: none;
    border-radius: 999px; padding: 6px 13px; font-size: 11px; font-weight: 700; cursor: pointer; margin-top: 10px;
}
.co-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.co-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.co-actions .btn { border-radius: 999px; padding: 10px 18px; font-size: 13px; }

.co-capital { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.co-capital .k { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.co-capital .v { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }

.co-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.co-panel-head h3 { font-size: 16px; color: var(--ink); }
.co-panel p.body { font-size: 13.5px; color: var(--slate, #38425e); line-height: 1.65; }

.co-locked-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg); border-radius: 12px; padding: 13px 16px; margin-top: 14px; flex-wrap: wrap; }
.co-locked-strip .t { font-size: 13px; font-weight: 600; color: var(--muted); }

.co-info-row { display: flex; flex-wrap: wrap; gap: 12px; }
.co-chip { flex: 1 1 150px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.co-chip .k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.co-chip .v { font-size: 13.5px; font-weight: 700; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }

/* FAQ */
.co-faq-item { border-bottom: 1px solid var(--line); }
.co-faq-item:last-child { border-bottom: none; }
.co-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 2px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: none; border: none; width: 100%; text-align: left; cursor: pointer; }
.co-faq-q .chev { transition: transform .2s ease; color: var(--blue); flex: none; }
.co-faq-item.open .co-faq-q .chev { transform: rotate(180deg); }
.co-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.co-faq-item.open .co-faq-a { max-height: 160px; }
.co-faq-a p { font-size: 13px; color: var(--muted); padding: 0 2px 16px; }

/* Charges table */
table.co-charges { width: 100%; border-collapse: collapse; }
table.co-charges th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.co-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px 12px; color: var(--muted); }
.co-empty .ic { font-size: 24px; margin-bottom: 10px; color: #c7cae0; }
.co-empty .t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.co-empty .s { font-size: 12px; margin-top: 4px; }

/* Teaser blocks */
.co-teaser { text-align: center; padding: 18px 10px 4px; }
.co-avatars { display: flex; justify-content: center; margin-bottom: 14px; }
.co-avatars .av {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; font-family: 'Plus Jakarta Sans', sans-serif;
    border: 3px solid #fff; margin-left: -12px;
}
.co-avatars .av:first-child { margin-left: 0; }
.co-teaser h4 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.co-teaser p { font-size: 12.5px; color: var(--muted); max-width: 380px; margin: 0 auto 14px; }

.co-lit-preview { position: relative; border-radius: 12px; overflow: hidden; margin-top: 6px; }
.co-lit-blur { filter: blur(4px); opacity: .7; pointer-events: none; padding: 6px 2px; }
.co-lit-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.co-lit-row .flag { width: 8px; height: 8px; border-radius: 50%; background: #eb5757; }
.co-lit-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255, 255, 255, .6); padding: 20px; }
.co-bell { width: 44px; height: 44px; border-radius: 50%; background: #edf4ff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 10px; }
.co-lit-overlay p { font-size: 12.5px; color: var(--slate, #38425e); max-width: 420px; margin-bottom: 14px; }

/* Contact grid */
.co-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.co-contact-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-contact-row:last-child { border-bottom: none; }
.co-contact-row .lab { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--slate, #38425e); }
.co-contact-row .lab .ic { width: 30px; height: 30px; border-radius: 8px; background: #edf4ff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.co-contact-row .val { font-size: 12.5px; color: var(--muted); text-align: right; }

/* Timeline */
.co-timeline { position: relative; padding-left: 26px; }
.co-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.co-t-item { position: relative; padding-bottom: 20px; }
.co-t-item:last-child { padding-bottom: 0; }
.co-t-item::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #edf4ff; }
.co-t-date { font-size: 11px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.co-t-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.co-t-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Right sidebar */
.co-right { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.co-info-list { list-style: none; margin: 0; padding: 0; }
.co-info-list li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.co-info-list li:last-child { border-bottom: none; }
.co-info-list .k { font-size: 12px; color: var(--muted); }
.co-info-list .v { font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: right; }

.co-cta { background: linear-gradient(150deg, var(--navy-2), var(--navy-3)); border-radius: var(--radius-sm); padding: 22px 20px; color: #fff; }
.co-cta h4 { color: #fff; font-size: 15.5px; margin-bottom: 8px; }
.co-cta p { font-size: 12.5px; color: #c7cde8; margin-bottom: 14px; }
.co-cta .btn { width: 100%; margin-bottom: 10px; border-radius: 999px; }
.co-cta .btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, .3) !important; background: transparent !important; }

@media (max-width: 1100px) {
    .co-shell { grid-template-columns: 1fr; }
    .co-side-card, .co-right { position: relative; top: 0; }
}
@media (max-width: 760px) {
    .co-capital { grid-template-columns: 1fr; gap: 12px; }
    .co-contact-grid { grid-template-columns: 1fr; }
    .co-info-row { flex-direction: column; }
}

/* ---------- Upgrade / Buy Report modal ---------- */
.co-modal-backdrop {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(8, 18, 63, .55); align-items: center; justify-content: center; padding: 20px;
}
.co-modal-backdrop.open { display: flex; }
.co-modal-card {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 760px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}
.co-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.co-modal-head h3 { font-size: 20px; color: var(--navy); }
.co-modal-close {
    width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg);
    color: var(--muted); font-size: 15px; cursor: pointer;
}
.co-modal-close:hover { background: #eef0f6; color: var(--ink); }
.co-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 26px; }
@media (max-width: 640px) { .co-modal-body { grid-template-columns: 1fr; } }

.co-plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.co-plan-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); }
.co-plan-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.co-plan-price {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 30px; color: var(--ink);
    margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.co-plan-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.co-plan-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.co-plan-list { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 12px; }
.co-plan-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.co-plan-list li i { color: var(--blue); flex: none; margin-top: 2px; }

/* ---------- Stats row (charges page) ---------- */
.co-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.co-stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.co-stat-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.co-stat-label i { width: 26px; height: 26px; border-radius: 8px; background: #edf4ff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.co-stat-value { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.co-stat-value.warn { color: #c0322b; }
.co-stat-value.ok { color: #14795a; }
.co-stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .co-stats-row { grid-template-columns: 1fr; } }

/* ---------- Charges table (dedicated page) ---------- */
table.co-charge-tbl { width: 100%; border-collapse: collapse; }
table.co-charge-tbl th {
    text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; padding: 10px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
table.co-charge-tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink); vertical-align: middle; }
table.co-charge-tbl tbody tr:nth-child(even) td { background: var(--bg); }
.co-charge-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--blue); font-weight: 700; }
.co-charge-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.co-charge-pill.open { background: #fdeeee; color: #c0322b; }
.co-charge-pill.satisfied { background: #e8fbf4; color: #14795a; }

/* ---------- Lender bars ---------- */
.co-lender-bar { margin-bottom: 14px; }
.co-lender-bar-meta { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.co-lender-bar-name { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; }
.co-lender-bar-amt { font-weight: 800; color: var(--blue); }
.co-lender-bar-track { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.co-lender-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.co-lender-bar-fill.satisfied { background: linear-gradient(90deg, #27ae60, #14795a); }

/* ---------- Director cards (people page) ---------- */
.co-director-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.co-director-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.co-director-top {
    background: linear-gradient(150deg, var(--navy-2), var(--navy-3)); padding: 18px; display: flex; align-items: center; gap: 12px;
}
.co-director-avatar {
    width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; color: #fff; flex: none;
}
.co-director-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; color: #fff; line-height: 1.25; }
.co-director-role {
    display: inline-flex; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; background: rgba(255, 255, 255, .15); color: #fff;
}
.co-director-body { padding: 14px 16px; }
.co-director-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.co-director-row:last-child { border-bottom: none; }
.co-director-row .lbl { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .05em; min-width: 60px; flex: none; }
.co-director-row .val { color: var(--ink); font-weight: 600; }

/* ---------- Summary strip (people page) ---------- */
.co-summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.co-summary-cell { padding: 18px; text-align: center; border-right: 1px solid var(--line); }
.co-summary-cell:last-child { border-right: none; }
.co-summary-cell .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.co-summary-cell .v { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 24px; color: var(--blue); }
@media (max-width: 600px) { .co-summary-strip { grid-template-columns: 1fr; } .co-summary-cell { border-right: none; border-bottom: 1px solid var(--line); } .co-summary-cell:last-child { border-bottom: none; } }
/* ---------- Order progress (company overview) ---------- */
.co-order .co-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.co-order-pill {
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.co-order-pill.wip   { background: #e8edff; color: #3b5bfd; }
.co-order-pill.ready { background: #fff5e3; color: #b97a12; }
.co-order-pill.ok    { background: #e8fbf4; color: #168d72; }

.co-order-body { padding: 22px; }

.co-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 12.5px;
    color: var(--muted, #65708b);
    margin-bottom: 26px;
}

.co-order-meta b { color: var(--ink, #12182d); margin-right: 6px; }

.co-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

/* line runs from the centre of step 1 to the centre of step 4 */
.co-steps-line {
    position: absolute;
    top: 15px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    border-radius: 99px;
    background: #e7ecfa;
}

.co-steps-line i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue, #2f67ff), var(--teal, #42e1c3));
    transition: width .4s ease;
}

.co-step { position: relative; z-index: 1; }

.co-step .dot {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 3px solid #e7ecfa;
    color: #9aa4c0;
    font-size: 14px;
}

.co-step.done .dot {
    background: linear-gradient(135deg, #14a98c, var(--teal, #42e1c3));
    border-color: transparent;
    color: #fff;
}

.co-step.active .dot {
    border-color: var(--blue, #2f67ff);
    color: var(--blue, #2f67ff);
    box-shadow: 0 0 0 6px rgba(47, 103, 255, .12);
    animation: coPulse 1.6s ease-in-out infinite;
}

@keyframes coPulse {
    50% { box-shadow: 0 0 0 10px rgba(47, 103, 255, .04); }
}

.co-step .lab { font-size: 13px; font-weight: 700; color: var(--ink, #12182d); }
.co-step .sub { font-size: 11.5px; color: var(--muted, #65708b); margin-top: 2px; }
.co-step.todo .lab { color: #8a93a6; }

.co-order-msg {
    margin-top: 22px;
    background: #f4f7ff;
    border: 1px solid #e3e9fb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ink, #12182d);
}

.co-order-msg i { color: var(--blue, #2f67ff); margin-right: 4px; }

@media (max-width: 560px) {
    .co-order-body { padding: 16px; }
    .co-step .lab { font-size: 11.5px; }
    .co-step .sub { font-size: 10.5px; }
}
/* ---------- Order progress: several orders for the same company ---------- */
.co-order-count {
    background: #fff8ea;
    border: 1px solid #f6e3b8;
    color: #7a5410;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.co-order-hist {
    margin-top: 22px;
    border-top: 1px solid var(--line, #e7eaf2);
    padding-top: 16px;
}

.co-order-hist-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a93a6;
    margin-bottom: 8px;
}

.co-order-hist-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f9;
    font-size: 13px;
}

.co-order-hist-row:last-child { border-bottom: none; }

.co-order-hist-row .id {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--blue, #2f67ff);
    font-weight: 600;
}

.co-order-hist-row .dt { flex: 1; color: var(--muted, #65708b); min-width: 0; }

@media (max-width: 560px) {
    .co-order-hist-row { flex-wrap: wrap; gap: 6px 12px; }
    .co-order-hist-row .dt { flex-basis: 100%; order: 3; }
}

/* ---------- Follow / Claim small modals ---------- */
.co-modal-card.sm{max-width:440px;width:calc(100% - 32px)}
.co-modal-card.sm .co-modal-body{display:block;padding:22px 24px 26px}
.co-modal-card.sm p{margin:0 0 10px;color:#4b5565;font-size:14.5px;line-height:1.6}
.co-modal-card.sm .co-mini-note{font-size:12.5px;color:#7a8394}
.co-mini-ico{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  background:#edf4ff;color:var(--blue,#2563eb);font-size:22px;margin-bottom:14px}
.co-modal-btns{display:flex;gap:10px;margin-top:18px}
.co-modal-btns .btn{flex:1;justify-content:center;text-align:center}

/* Followed state of the header button */
.btn.is-following{background:#edf4ff;border-color:var(--blue,#2563eb);color:var(--blue,#2563eb)}

/* Toast + scroll lock while a modal is open */
.co-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#111827;
  color:#fff;padding:11px 18px;border-radius:10px;font-size:14px;opacity:0;pointer-events:none;
  transition:opacity .25s,transform .25s;z-index:3000}
.co-toast.show{opacity:1;transform:translate(-50%,0)}
body.co-noscroll{overflow:hidden}