/* Portal Buyer - Frontend Styles */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:#f7f9ff;color:#111;min-height:100vh;display:flex;flex-direction:column}
.nav{background:#fff;border-bottom:1px solid #e8edf5;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:64px;position:sticky;top:0;z-index:50;flex-shrink:0}
.nav-left{display:flex;align-items:center;gap:1.25rem}
.nav-logo{height:28px;width:auto;display:block}
.nav-divider{width:1px;height:24px;background:#e8edf5}
.nav-portal-tag{font-family:ui-monospace,monospace;font-size:11px;font-weight:600;color:#004aad;letter-spacing:2px;text-transform:uppercase}
.nav-right{display:flex;align-items:center;gap:1rem}
.nav-user{display:none;align-items:center;gap:.5rem;font-size:13px;color:#111}
.nav-user.visible{display:flex}
.nav-user-email{font-weight:600;color:#111;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-user-dot{width:6px;height:6px;border-radius:50%;background:#10b981}
.nav-logout{display:none;background:transparent;color:#666;border:1px solid #e0e8f0;padding:6px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;border-radius:6px;transition:all .15s}
.nav-logout.visible{display:inline-flex}
.nav-logout:hover{background:#f0f4ff;color:#004aad;border-color:#aac0e0}
.main{flex:1;padding:2.5rem 2rem 3rem}
.container{max-width:1100px;margin:0 auto}
.container-narrow{max-width:600px;margin:0 auto}
.view{display:none}
.view.active{display:block}
.login-card{background:#fff;border:1px solid #e0e8f0;padding:2.5rem;margin:2rem auto 0;max-width:520px}
.login-pill{display:inline-block;padding:5px 12px;background:#eef4ff;border:1px solid rgba(0,74,173,.15);color:#004aad;font-family:ui-monospace,monospace;font-size:10px;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:1.25rem}
.login-card h1{font-size:32px;font-weight:900;color:#111;letter-spacing:-1px;line-height:1.1;margin-bottom:.75rem}
.login-card h1 span{color:#004aad;font-weight:300;font-style:italic;display:block}
.login-card p.lead{font-size:14px;color:#666;line-height:1.65;margin-bottom:2rem}
.signin-block{display:flex;flex-direction:column;gap:.875rem;margin-bottom:1.5rem}
.signin-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;background:#004aad;color:#fff;border:none;font-family:inherit;font-size:14px;font-weight:700;letter-spacing:.5px;cursor:pointer;transition:background .15s}
.signin-btn:hover{background:#003a8a}
.signin-btn svg{width:16px;height:16px}
.signup-info{padding:1rem;background:#f7f9ff;border:1px solid #e0e8f0;font-size:12px;color:#666;line-height:1.65}
.signup-info strong{color:#111;font-weight:700;display:block;margin-bottom:4px;font-size:13px}
.login-help{padding-top:1.5rem;border-top:1px solid #e0e8f0;font-size:12px;color:#666;line-height:1.65}
.login-help a{color:#004aad;font-weight:600;text-decoration:none}
.login-help a:hover{text-decoration:underline}
.login-demo-bypass{margin-top:1rem;padding:.75rem;background:#fffae6;border:1px dashed #d4b800;font-size:11px;color:#856404;line-height:1.5;border-radius:6px}
.login-demo-bypass button{margin-top:6px;background:#004aad;color:#fff;border:none;padding:6px 14px;font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.5px;border-radius:4px}
.activation-banner{background:#d4f0e0;border:1px solid rgba(15,110,56,.25);padding:1.25rem;margin-bottom:1.5rem;display:flex;gap:1rem;align-items:flex-start}
.activation-banner-icon{width:28px;height:28px;background:#0f6e38;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:700}
.activation-banner-text strong{display:block;color:#0f6e38;font-size:13px;font-weight:700;margin-bottom:2px}
.activation-banner-text span{font-size:12px;color:#0f6e38;line-height:1.55}
.dash-header{margin-bottom:2rem}
.dash-eyebrow{font-family:ui-monospace,monospace;font-size:11px;font-weight:600;color:#004aad;text-transform:uppercase;letter-spacing:2.5px;margin-bottom:.75rem}
.dash-title{font-size:38px;font-weight:900;color:#111;letter-spacing:-1px;line-height:1.05;margin-bottom:.5rem}
.dash-title span{color:#004aad;font-weight:300;font-style:italic}
.dash-subtitle{font-size:15px;color:#666;line-height:1.65;max-width:640px}
.buyer-bar{background:#fff;border:1px solid #e0e8f0;padding:1.25rem 1.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:2rem}
.bb-label{font-family:ui-monospace,monospace;font-size:10px;font-weight:600;color:rgba(17,17,17,.45);letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.bb-value{font-size:14px;font-weight:700;color:#111;line-height:1.3}
.bb-value-sub{font-size:12px;color:#666;margin-top:2px}
.bb-status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;font-family:ui-monospace,monospace;font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;background:#d4f0e0;color:#0f6e38;border:1px solid rgba(15,110,56,.2)}
.bb-status-dot{width:6px;height:6px;border-radius:50%;background:#10b981}
.bb-substatus{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed rgba(17,17,17,.08)}
.bb-substatus:first-of-type{border-top:none;padding-top:0;margin-top:0}
.bb-sublabel{font-family:ui-monospace,monospace;font-size:9px;font-weight:600;color:rgba(17,17,17,.45);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:5px}
.bb-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;font-family:ui-monospace,monospace;font-size:9px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;border:1px solid}
.bb-pill .bb-pill-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.pill-not-started{background:#f0f0f0;color:#666;border-color:#e0e0e0}
.pill-not-started .bb-pill-dot{background:#999}
.pill-submitted{background:#e0eaff;color:#003a8a;border-color:rgba(0,74,173,.25)}
.pill-submitted .bb-pill-dot{background:#004aad}
.pill-in-review{background:#fff3cd;color:#7a5600;border-color:rgba(122,86,0,.25)}
.pill-in-review .bb-pill-dot{background:#d4a017}
.pill-approved{background:#d4f0e0;color:#0f6e38;border-color:rgba(15,110,56,.25)}
.pill-approved .bb-pill-dot{background:#10b981}
.pill-done{background:#0f6e38;color:#fff;border-color:#0f6e38}
.pill-done .bb-pill-dot{background:#fff}
.pill-rejected{background:#fee2e2;color:#991b1b;border-color:rgba(220,38,38,.25)}
.pill-rejected .bb-pill-dot{background:#dc2626}
.services-header{margin-bottom:1.25rem;display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.services-header h2{font-size:22px;font-weight:900;color:#111;letter-spacing:-.4px}
.services-header-hint{font-size:12px;color:#666;font-family:ui-monospace,monospace;letter-spacing:1.5px;text-transform:uppercase}
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;max-width:760px}
.service-card{background:#fff;border:1px solid #e0e8f0;padding:1.75rem;display:flex;flex-direction:column;cursor:pointer;transition:all .15s;text-align:left;font-family:inherit;border-radius:0;position:relative}
.service-card:hover{border-color:#004aad;box-shadow:0 4px 16px rgba(0,74,173,.08)}
.service-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.service-card-icon{width:44px;height:44px;background:#eef4ff;color:#004aad;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.service-card-icon svg{width:22px;height:22px}
.service-card-status{font-family:ui-monospace,monospace;font-size:9px;font-weight:700;padding:3px 8px;letter-spacing:1.5px;text-transform:uppercase;border:1px solid;align-self:flex-start;white-space:nowrap}
.status-not-started{background:#f7f9ff;color:#666;border-color:#e0e8f0}
.status-submitted{background:#e0eaff;color:#003a8a;border-color:rgba(0,74,173,.25)}
.service-card-title{font-size:18px;font-weight:800;color:#111;letter-spacing:-.3px;line-height:1.2;margin-bottom:.5rem}
.service-card-desc{font-size:13px;color:#666;line-height:1.6;flex:1;margin-bottom:1.25rem}
.service-card-action{font-family:ui-monospace,monospace;font-size:11px;font-weight:700;color:#004aad;letter-spacing:1.5px;text-transform:uppercase;display:inline-flex;align-items:center;gap:6px}
.service-card-action svg{width:12px;height:12px;transition:transform .15s}
.service-card:hover .service-card-action svg{transform:translateX(3px)}
.account-actions{margin-top:1.25rem;display:flex;gap:.625rem;justify-content:flex-end;flex-wrap:wrap}
.account-link{display:inline-flex;align-items:center;gap:6px;background:transparent;color:#666;text-decoration:none;padding:9px 14px;font-size:12px;font-weight:600;border:1px solid #e0e8f0;cursor:pointer;font-family:inherit;transition:all .15s}
.account-link:hover{background:#f0f4ff;color:#004aad;border-color:#aac0e0}
.account-link svg{width:12px;height:12px}
.help-block{margin-top:2.5rem;background:#fff;border:1px solid #e0e8f0;padding:1.5rem;display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.help-block-icon{width:40px;height:40px;background:#eef4ff;color:#004aad;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.help-block-icon svg{width:20px;height:20px}
.help-block-text{flex:1;min-width:240px}
.help-block-title{font-size:14px;font-weight:700;color:#111;margin-bottom:2px}
.help-block-desc{font-size:12px;color:#666;line-height:1.55}
.help-block-btn{display:inline-flex;align-items:center;gap:6px;background:transparent;color:#004aad;text-decoration:none;padding:9px 16px;font-size:12px;font-weight:700;border:1.5px solid #004aad;letter-spacing:.5px;transition:background .15s;font-family:inherit;cursor:pointer}
.help-block-btn:hover{background:#eef4ff}
.wizard-header{margin-bottom:2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.wizard-back{display:inline-flex;align-items:center;gap:6px;background:transparent;color:#666;border:none;padding:0;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:color .15s}
.wizard-back:hover{color:#004aad}
.wizard-back svg{width:14px;height:14px}
.wizard-eyebrow{font-family:ui-monospace,monospace;font-size:11px;font-weight:600;color:#004aad;text-transform:uppercase;letter-spacing:2.5px;margin-bottom:6px}
.wizard-title{font-size:32px;font-weight:900;color:#111;letter-spacing:-.7px;line-height:1.05}
.wizard-title span{color:#004aad;font-weight:300;font-style:italic}
.wizard-steps{display:flex;align-items:center;gap:0;margin-bottom:2rem;background:#fff;border:1px solid #e0e8f0;padding:1.25rem 1.5rem;flex-wrap:wrap;row-gap:.5rem}
.wstep{display:flex;align-items:center;gap:.625rem;flex-shrink:0}
.wstep-num{width:30px;height:30px;border-radius:50%;background:#f0f0f0;color:#888;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #f0f0f0;transition:all .2s;flex-shrink:0}
.wstep.active .wstep-num{background:#004aad;color:#fff;border-color:#004aad}
.wstep.done .wstep-num{background:#0f6e38;color:#fff;border-color:#0f6e38}
.wstep-label{font-size:12px;font-weight:600;color:#888;white-space:nowrap}
.wstep.active .wstep-label{color:#004aad;font-weight:700}
.wstep.done .wstep-label{color:#0f6e38}
.wstep-divider{flex:1;height:2px;background:#f0f0f0;margin:0 12px;min-width:20px}
.wstep.done + .wstep-divider{background:#0f6e38}
.wizard-step-content{background:#fff;border:1px solid #e0e8f0;padding:2.5rem}
.wizard-step-intro{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e0e8f0}
.wizard-step-intro h3{font-size:20px;font-weight:800;color:#111;letter-spacing:-.4px;margin-bottom:.5rem}
.wizard-step-intro p{font-size:13px;color:#666;line-height:1.65}
.tally-slot{min-height:360px;background:#f7f9ff;border:1.5px dashed #aac0e0;display:flex;align-items:center;justify-content:center;padding:2.5rem;flex-direction:column;text-align:center;gap:.75rem}
.tally-slot-icon{font-size:32px;color:#aac0e0}
.tally-slot-title{font-family:ui-monospace,monospace;font-size:11px;font-weight:700;color:#004aad;letter-spacing:2px;text-transform:uppercase}
.tally-slot-id{font-family:ui-monospace,monospace;font-size:12px;color:#666;background:#fff;padding:4px 10px;border:1px solid #e0e8f0;border-radius:4px}
.tally-slot-desc{font-size:12px;color:#666;max-width:420px;line-height:1.6}
.tally-slot-fields{margin-top:1rem;padding:1rem;background:#fff;border:1px solid #e0e8f0;font-size:11px;color:#666;text-align:left;max-width:500px;width:100%;line-height:1.7;font-family:ui-monospace,monospace}
.tally-slot-fields strong{color:#004aad;display:block;margin-bottom:6px;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}
.wizard-nav{display:flex;justify-content:space-between;gap:1rem;margin-top:1.5rem}
.wnav-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;font-size:13px;font-weight:700;letter-spacing:.5px;cursor:pointer;font-family:inherit;border:none;transition:background .15s}
.wnav-btn-prev{background:transparent;color:#666;border:1.5px solid #e0e8f0}
.wnav-btn-prev:hover{background:#f0f4ff;color:#004aad;border-color:#aac0e0}
.wnav-btn-next{background:#004aad;color:#fff}
.wnav-btn-next:hover{background:#003a8a}
.wnav-btn-submit{background:#0f6e38;color:#fff}
.wnav-btn-submit:hover{background:#0a5a2e}
.confirm-card{background:#fff;border:1px solid #e0e8f0;padding:3rem 2.5rem;margin:2rem auto;text-align:center;max-width:620px}
.confirm-icon{width:72px;height:72px;border-radius:50%;background:#d4f0e0;color:#0f6e38;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem}
.confirm-icon svg{width:36px;height:36px}
.confirm-card h1{font-size:32px;font-weight:900;color:#111;letter-spacing:-1px;line-height:1.1;margin-bottom:.75rem}
.confirm-card h1 span{color:#0f6e38;font-weight:300;font-style:italic;display:block}
.confirm-card .lead{font-size:15px;color:#666;line-height:1.65;margin-bottom:1.75rem}
.confirm-ref{display:inline-block;background:#f7f9ff;border:1px dashed #aac0e0;padding:.875rem 1.5rem;font-family:ui-monospace,monospace;font-size:14px;color:#004aad;letter-spacing:1.5px;margin-bottom:1.75rem}
.confirm-ref strong{display:block;font-size:10px;font-weight:600;color:#666;letter-spacing:2px;text-transform:uppercase;margin-bottom:4px}
.confirm-next{padding-top:1.5rem;border-top:1px solid #e0e8f0;font-size:13px;color:#666;line-height:1.7;text-align:left}
.confirm-next strong{display:block;font-size:11px;font-weight:700;color:#111;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:.75rem;text-align:center}
.confirm-next ul{list-style:none;padding:0}
.confirm-next li{padding:8px 0;display:flex;align-items:flex-start;gap:10px}
.confirm-next li::before{content:'→';color:#004aad;font-weight:700;flex-shrink:0;margin-top:1px}
.confirm-btns{display:flex;gap:.625rem;justify-content:center;margin-top:1.75rem;flex-wrap:wrap}
.cb-primary{background:#004aad;color:#fff;border:none;padding:13px 24px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.5px;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.cb-primary:hover{background:#003a8a}
.cb-ghost{background:transparent;color:#666;border:1.5px solid #e0e8f0;padding:13px 24px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.5px}
.cb-ghost:hover{background:#f0f4ff;color:#004aad;border-color:#aac0e0}
.footer-min{background:#fff;border-top:1px solid #e8edf5;padding:1.5rem 2rem;text-align:center;flex-shrink:0;margin-top:auto}
.footer-min-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#888;flex-wrap:wrap;gap:8px}
.footer-min a{color:#004aad;text-decoration:none;font-weight:600;margin-left:1rem}
.footer-min a:hover{text-decoration:underline}
.auth-loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1rem;padding:4rem 2rem;text-align:center}
.auth-spinner{width:36px;height:36px;border:3px solid #e0e8f0;border-top-color:#004aad;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.auth-loading-text{font-size:13px;color:#666}
.auth-error{background:#fee2e2;border:1px solid rgba(220,38,38,.25);padding:1rem;margin-bottom:1.5rem;font-size:13px;color:#991b1b;line-height:1.55}
.auth-error strong{display:block;margin-bottom:4px;font-weight:700}
.form-block{display:flex;flex-direction:column;gap:1.5rem}
.form-section{padding-bottom:1.25rem;border-bottom:1px solid #e8edf5}
.form-section:last-child{border-bottom:none;padding-bottom:0}
.form-section-title{font-family:ui-monospace,monospace;font-size:11px;font-weight:700;color:#004aad;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:1rem}
.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}
.form-field{display:flex;flex-direction:column;gap:6px}
.form-field.full{grid-column:1 / -1}
.form-label{font-size:12px;font-weight:600;color:#111;letter-spacing:.2px}
.form-label .req{color:#dc2626;margin-left:2px}
.form-hint{font-size:11px;color:rgba(17,17,17,.55);line-height:1.5;margin-top:-2px}
.form-hint strong{color:#111;font-weight:700}
.form-input,.form-select,.form-textarea{width:100%;padding:11px 14px;font-family:inherit;font-size:13px;color:#111;background:#fff;border:1px solid #e0e8f0;border-radius:0;outline:none;transition:border-color .15s}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:#004aad}
.form-input:invalid:not(:placeholder-shown){border-color:#dc2626}
.form-input[readonly]{background:#f7f9ff;color:rgba(17,17,17,.6);cursor:not-allowed}
.form-select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;padding-right:36px;cursor:pointer}
.form-textarea{min-height:90px;resize:vertical;font-family:inherit;line-height:1.55}
.form-file-wrapper{position:relative}
.form-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.form-file-label{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f7f9ff;border:1.5px dashed #aac0e0;cursor:pointer;transition:all .15s;font-family:inherit}
.form-file-label:hover{background:#eef4ff;border-color:#004aad}
.form-file-label.has-file{border-style:solid;border-color:#0f6e38;background:#f0fdf4}
.form-file-icon{flex-shrink:0;width:32px;height:32px;background:#eef4ff;color:#004aad;display:flex;align-items:center;justify-content:center}
.form-file-label.has-file .form-file-icon{background:#0f6e38;color:#fff}
.form-file-icon svg{width:16px;height:16px}
.form-file-text{flex:1;min-width:0}
.form-file-title{font-size:13px;font-weight:600;color:#111;line-height:1.3}
.form-file-sub{font-size:11px;color:rgba(17,17,17,.55);line-height:1.4;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-file-clear{flex-shrink:0;background:transparent;border:1px solid #e0e8f0;padding:4px 8px;font-size:10px;font-weight:600;color:#666;cursor:pointer;font-family:inherit;display:none}
.form-file-clear:hover{background:#fee2e2;border-color:#dc2626;color:#dc2626}
.form-file-label.has-file .form-file-clear{display:inline-block}
.form-reminder{font-size:11px;color:rgba(17,17,17,.6);line-height:1.55;margin-top:2px;font-style:italic}
.form-reminder strong{font-style:normal;color:#004aad}
.form-notice{background:#fffae6;border-left:3px solid #d4b800;padding:.875rem 1rem;font-size:12px;color:#856404;line-height:1.6;margin-top:.5rem}
.form-notice strong{color:#856404;font-weight:700}
.form-submitting{position:relative;pointer-events:none;opacity:.6}
@media(max-width:900px){
  .main{padding:1.5rem 1rem 2rem}
  .dash-title{font-size:28px}
  .buyer-bar{grid-template-columns:1fr 1fr;gap:1rem}
  .services-grid{grid-template-columns:1fr;gap:1rem}
  .wizard-step-content{padding:1.5rem}
  .wstep-label{display:none}
  .wstep-divider{margin:0 6px}
  .confirm-card{padding:2rem 1.25rem}
  .nav{padding:0 1rem;height:auto;flex-wrap:wrap;padding-top:.5rem;padding-bottom:.5rem;gap:.5rem}
  .nav-user-email{max-width:140px}
  .form-grid-2,.form-grid-3{grid-template-columns:1fr;gap:.875rem}
}