/* Fair E Web Host — Reseller Console v7.1
   Scoped additions for the production reseller hosting workspace. */
.fwh-reseller-console {
    --reseller-ink: #14231b;
    --reseller-muted: #65736c;
    --reseller-line: #e3e9e5;
    --reseller-soft: #f6f9f7;
    --reseller-green: #159447;
    --reseller-green-deep: #0f7337;
    --reseller-blue: #2463eb;
}

.fwh-reseller-onboarding,
.fwh-reseller-hero {
    border: 1px solid var(--reseller-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 35, 27, .05);
}

.fwh-reseller-onboarding {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 34px;
    padding: clamp(24px, 4vw, 46px);
}
.fwh-reseller-onboarding h2 { margin: 8px 0 12px; max-width: 720px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.fwh-reseller-onboarding p { max-width: 740px; color: var(--reseller-muted); font-size: 1rem; line-height: 1.7; }
.fwh-reseller-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--reseller-green-deep); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.fwh-reseller-onboarding-list { display: grid; gap: 10px; align-content: center; }
.fwh-reseller-onboarding-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--reseller-soft); }
.fwh-reseller-onboarding-list > div > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--reseller-green-deep); background: #e8f7ed; }
.fwh-reseller-onboarding-list strong, .fwh-reseller-onboarding-list small { display: block; }
.fwh-reseller-onboarding-list strong { color: var(--reseller-ink); margin: 1px 0 3px; }
.fwh-reseller-onboarding-list small { color: var(--reseller-muted); line-height: 1.45; }

.fwh-reseller-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: clamp(20px, 3vw, 30px);
    margin-bottom: 18px;
}
.fwh-reseller-hero-main { min-width: 0; display: flex; align-items: center; gap: 17px; }
.fwh-reseller-site-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #159447, #0b6f36); font-size: 1.35rem; box-shadow: 0 9px 22px rgba(21, 148, 71, .2); }
.fwh-reseller-hero h2 { margin: 4px 0 8px; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
.fwh-reseller-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--reseller-muted); font-size: .86rem; }
.fwh-reseller-meta > span:not(.fwh-status) { display: inline-flex; align-items: center; gap: 6px; }
.fwh-reseller-meta i { color: #7b8b82; }
.fwh-reseller-connection { display: flex; align-items: center; gap: 10px; min-width: 178px; padding: 11px 14px; border: 1px solid var(--reseller-line); border-radius: 14px; background: var(--reseller-soft); }
.fwh-reseller-connection-dot { width: 10px; height: 10px; border-radius: 50%; background: #c58520; box-shadow: 0 0 0 4px rgba(197, 133, 32, .1); }
.fwh-reseller-connection.is-connected .fwh-reseller-connection-dot { background: var(--reseller-green); box-shadow: 0 0 0 4px rgba(21, 148, 71, .11); }
.fwh-reseller-connection strong, .fwh-reseller-connection small { display: block; }
.fwh-reseller-connection strong { font-size: .84rem; }
.fwh-reseller-connection small { color: var(--reseller-muted); font-size: .72rem; margin-top: 1px; }

.fwh-reseller-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.fwh-reseller-kpi { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: start; padding: 18px; border: 1px solid var(--reseller-line); border-radius: 16px; background: #fff; }
.fwh-reseller-kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #eef3ff; color: #345fc4; }
.fwh-reseller-kpi-icon.success { background: #eaf8ee; color: var(--reseller-green-deep); }
.fwh-reseller-kpi-icon.warning { background: #fff4dc; color: #9a6816; }
.fwh-reseller-kpi small, .fwh-reseller-kpi span { display: block; }
.fwh-reseller-kpi small { color: var(--reseller-muted); font-weight: 700; font-size: .73rem; text-transform: uppercase; letter-spacing: .045em; }
.fwh-reseller-kpi strong { display: block; color: var(--reseller-ink); margin: 3px 0 3px; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.12; }
.fwh-reseller-kpi strong.fwh-reseller-date { font-size: 1.02rem; margin-top: 8px; }
.fwh-reseller-kpi div > span { color: var(--reseller-muted); font-size: .76rem; line-height: 1.4; }

.fwh-reseller-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 18px; }
.fwh-reseller-resource-panel .fwh-panel-body { display: grid; gap: 24px; }
.fwh-reseller-resource { display: grid; gap: 9px; }
.fwh-reseller-resource-head, .fwh-reseller-resource-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.fwh-reseller-resource-head > span { color: var(--reseller-ink); font-weight: 700; }
.fwh-reseller-resource-head > span i { color: var(--reseller-green); width: 22px; }
.fwh-reseller-resource-head strong { font-size: .9rem; white-space: nowrap; }
.fwh-reseller-resource-head strong small { color: var(--reseller-muted); font-weight: 500; }
.fwh-reseller-resource-foot { color: var(--reseller-muted); font-size: .74rem; }
.fwh-reseller-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.fwh-reseller-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--reseller-green); transition: width .25s ease; }
.fwh-reseller-progress > span.warning { background: #d99424; }
.fwh-reseller-progress > span.critical { background: #d64045; }

.fwh-reseller-tools { display: grid; gap: 9px; }
.fwh-reseller-tools form { margin: 0; }
.fwh-reseller-tool { width: 100%; display: grid; grid-template-columns: 40px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--reseller-line); border-radius: 13px; background: #fff; color: var(--reseller-ink); text-align: left; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
button.fwh-reseller-tool { font: inherit; cursor: pointer; }
.fwh-reseller-tool:hover { border-color: #b8d7c2; background: #f9fbfa; color: var(--reseller-ink); }
.fwh-reseller-tool:disabled { opacity: .55; cursor: not-allowed; }
.fwh-reseller-tool > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #edf7f0; color: var(--reseller-green-deep); }
.fwh-reseller-tool strong, .fwh-reseller-tool small { display: block; }
.fwh-reseller-tool strong { margin-bottom: 2px; font-size: .9rem; }
.fwh-reseller-tool small { color: var(--reseller-muted); font-size: .75rem; line-height: 1.35; }
.fwh-reseller-tool > i { color: #9aa69f; font-size: .75rem; }

.fwh-reseller-table > :not(caption) > * > * { vertical-align: middle; }
.fwh-reseller-table th { white-space: nowrap; }
.fwh-reseller-table td { min-height: 54px; }

.fwh-reseller-account-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.fwh-reseller-account-summary > div { min-width: 0; padding: 17px 18px; border: 1px solid var(--reseller-line); border-radius: 15px; background: #fff; }
.fwh-reseller-account-summary small, .fwh-reseller-account-summary strong { display: block; }
.fwh-reseller-account-summary small { color: var(--reseller-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fwh-reseller-account-summary strong { color: var(--reseller-ink); margin-top: 5px; font-size: 1.45rem; overflow-wrap: anywhere; }
.fwh-reseller-account-summary .fwh-reseller-owner { font-size: .95rem; margin-top: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

@media (max-width: 1199.98px) {
    .fwh-reseller-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
    .fwh-reseller-onboarding, .fwh-reseller-grid { grid-template-columns: 1fr; }
    .fwh-reseller-account-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .fwh-reseller-hero { align-items: flex-start; flex-direction: column; }
    .fwh-reseller-connection { width: 100%; }
    .fwh-reseller-resource-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .fwh-reseller-resource-head strong { white-space: normal; }
}
@media (max-width: 575.98px) {
    .fwh-reseller-kpis, .fwh-reseller-account-summary { grid-template-columns: 1fr; }
    .fwh-reseller-onboarding { padding: 20px; gap: 24px; }
    .fwh-reseller-hero { padding: 18px; }
    .fwh-reseller-hero-main { align-items: flex-start; }
    .fwh-reseller-site-icon { width: 48px; height: 48px; border-radius: 14px; }
    .fwh-reseller-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
}
