/* Agent digital business card — Instacard-style */
:root{
  /* --navy = agent PRIMARY, --gold = agent SECONDARY (both customizable) */
  --navy:#1E3A5F; --navy-2:#16304E; --gold:#C9A84C; --gold-deep:#A8852F;
  --ink:#1B2330; --soft:#4C5667; --muted:#8893A4; --line:#ECE7DD;
  --bg:#F4F1EA; --paper:#FFFFFF; --bar-bg:rgba(255,255,255,.92);
  --serif:'Playfair Display',Georgia,serif; --sans:'Inter',system-ui,sans-serif;
}
/* Dark base — overrides only the card's surfaces, not the accent */
.card.dark{
  --ink:#F2F4F7; --soft:#AEB6C2; --muted:#7E8898; --line:#2A2F3A;
  --bg:#10141B; --paper:#171B22; --bar-bg:rgba(23,27,34,.92);
}
.card.dark .cover::after{background:linear-gradient(to bottom,rgba(0,0,0,.2),rgba(0,0,0,.6))}
/* True Blue Lending block stays constant navy/gold regardless of the agent's scheme */
.tbl{ --navy:#1E3A5F; --navy-2:#16304E; --gold:#C9A84C; --gold-deep:#A8852F; }
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased;
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy-2) 45%,#0B1622 100%);min-height:100vh;padding:0 16px}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}

.card{max-width:480px;margin:0 auto;background:var(--paper);min-height:100vh;
  box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden}

/* top bar */
.bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;background:var(--bar-bg);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar-brand{display:flex;align-items:center;gap:9px}
.bar-logo{width:30px;height:30px;border-radius:8px;background:var(--navy);color:var(--gold);
  display:grid;place-items:center;font-family:var(--serif);font-weight:700;font-size:13px}
.bar-name{font-weight:600;font-size:14px;color:var(--ink)}
.bar-share{display:flex;align-items:center;gap:6px;background:var(--navy);color:#fff;border:none;
  padding:8px 14px;border-radius:999px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:.2s}
.bar-share:hover{background:var(--navy-2)}

/* cover + profile */
.cover{position:relative;height:150px;overflow:hidden}
.cover img{width:100%;height:100%;object-fit:cover}
.cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(15,34,56,.15),rgba(15,34,56,.55))}
.profile{text-align:center;padding:0 24px 18px;margin-top:-54px;position:relative;z-index:2}
.avatar{width:108px;height:108px;border-radius:50%;object-fit:cover;margin:0 auto 14px;
  border:4px solid var(--paper);box-shadow:0 8px 24px rgba(0,0,0,.18);transition:border-radius .2s,width .2s,height .2s}
/* Portrait photo option (rectangular thumbnail, Instacard-style) */
.card.portrait .avatar{width:132px;height:166px;border-radius:20px}
.name{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.1;color:var(--ink)}
.role{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-deep);margin-top:6px}
.company{font-size:14px;color:var(--muted);margin-top:4px}
.bio{font-size:15px;color:var(--soft);margin-top:14px;line-height:1.65}

/* actions */
.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:4px 16px 18px}
.action{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 6px;border:1px solid var(--line);
  border-radius:14px;background:var(--paper);color:var(--ink);font-size:12px;font-weight:600;cursor:pointer;
  font-family:inherit;transition:.18s}
.action:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 8px 20px rgba(30,58,95,.08)}
.action-ic{width:42px;height:42px;border-radius:50%;background:var(--bg);color:var(--navy);display:grid;place-items:center}
.action-save{background:var(--navy);border-color:var(--navy);color:#fff}
.action-save .action-ic{background:rgba(255,255,255,.14);color:var(--gold)}
.action-save:hover{background:var(--navy-2);border-color:var(--navy-2)}

/* socials */
.socials{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;padding:0 16px 22px;border-bottom:1px solid var(--line)}
.socials a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;transition:.2s;box-shadow:0 4px 12px rgba(18,36,59,.16)}
.socials a:hover{transform:translateY(-2px);filter:brightness(1.07)}
.socials .s-ig{background:radial-gradient(circle at 30% 107%,#FED576 0%,#F47133 25%,#BC3081 55%,#4C63D2 100%)}
.socials .s-fb{background:#1877F2}
.socials .s-li{background:#0A66C2}
.socials .s-yt{background:#FF0000}
.socials .s-tt{background:#010101}
.socials .s-g{background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px rgba(18,36,59,.1)}
/* Google reviews badge */
.greviews{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 16px 20px;padding:12px 16px;
  background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 14px rgba(18,36,59,.06)}
.card.dark .greviews{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}
.greviews .g-stars{color:#FBBC05;font-size:14px;letter-spacing:1px}
.greviews .g-score{font-weight:700;font-size:15px;color:var(--ink)}
.greviews .g-label{font-size:12px;color:var(--muted)}

/* blocks */
.block{padding:24px 20px;border-bottom:1px solid var(--line)}
.block-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.block-head h2{font-family:var(--serif);font-weight:600;font-size:21px;color:var(--ink)}
.block-count{background:var(--bg);color:var(--soft);font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px}
.stars{color:var(--gold);font-size:14px;letter-spacing:2px}

/* listing cards */
.listing{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid var(--line);border-radius:16px;
  margin-bottom:12px;transition:.18s;background:var(--paper)}
.listing:last-child{margin-bottom:0}
.listing:hover{border-color:var(--gold);box-shadow:0 10px 26px rgba(30,58,95,.1)}
.listing-img{width:96px;height:80px;border-radius:12px;object-fit:cover;flex-shrink:0}
.listing-info{flex:1;min-width:0}
.listing-price{font-family:var(--serif);font-size:20px;font-weight:700;color:var(--ink)}
.listing-addr{font-size:14px;font-weight:600;color:var(--ink);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listing-city{font-size:13px;color:var(--muted)}
.listing-specs{display:flex;gap:12px;margin-top:6px;font-size:12px;color:var(--soft)}
.listing-go{color:var(--gold-deep);font-size:18px;flex-shrink:0;padding-right:6px}

/* reviews */
.review{background:var(--bg);border-radius:16px;padding:18px;margin-bottom:12px}
.review:last-child{margin-bottom:0}
.review-stars{color:var(--gold);font-size:13px;letter-spacing:2px;margin-bottom:8px}
.review p{font-size:15px;color:var(--ink);line-height:1.6;font-style:italic}
.review-by{font-size:13px;font-weight:600;color:var(--soft);margin-top:10px}

/* lead form */
.lead{display:flex;flex-direction:column;gap:10px}
.lead input,.lead textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--bg);
  padding:13px 14px;font-family:inherit;font-size:15px;color:var(--ink);resize:none}
.lead input:focus,.lead textarea:focus{outline:none;border-color:var(--gold);background:var(--paper)}
.lead-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn-primary{background:var(--navy);color:#fff;border:none;border-radius:12px;padding:14px;font-family:inherit;
  font-size:15px;font-weight:600;cursor:pointer;transition:.2s;width:100%}
.btn-primary:hover{background:var(--navy-2)}
.lead-done{text-align:center;color:var(--gold-deep);font-weight:600;font-size:15px;padding:10px}

/* TBL block */
.tbl{padding:26px 20px;background:linear-gradient(165deg,#1E3A5F,#13283F);color:#fff}
.tbl-tag{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);text-align:center;margin-bottom:18px}
.tbl-jesse{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.tbl-jesse img{width:62px;height:62px;border-radius:50%;object-fit:cover;border:2px solid var(--gold)}
.tbl-jesse-name{font-family:var(--serif);font-size:20px;font-weight:600}
.tbl-jesse-sub{font-size:13px;color:rgba(255,255,255,.8);margin-top:2px}
.tbl-jesse-meta{font-size:11px;color:rgba(255,255,255,.55);margin-top:5px}

.calc-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:20px}
.calc-title{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gold);margin-bottom:16px;text-align:center}
.calc-row{margin-bottom:16px}
.calc-row label{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:9px}
.calc-label{font-size:13px;color:rgba(255,255,255,.7)}
.calc-value{font-size:15px;font-weight:600;color:var(--gold)}
input[type=range]{-webkit-appearance:none;width:100%;height:4px;border-radius:2px;background:rgba(255,255,255,.2);outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--gold);cursor:pointer;border:2px solid #16304E}
input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--gold);cursor:pointer;border:2px solid #16304E}
.seg{display:flex;gap:6px}
.seg-btn{flex:1;padding:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.8);
  border-radius:9px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;transition:.18s}
.seg-btn.is-active{background:var(--gold);color:#16304E;border-color:var(--gold)}
.calc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.calc-num{display:flex;flex-direction:column;gap:5px;font-size:11px;color:rgba(255,255,255,.55)}
.calc-num input{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:8px;padding:9px;font-family:inherit;font-size:14px}
.calc-total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;margin-top:4px}
.calc-total-label{font-size:13px;color:rgba(255,255,255,.7)}
.calc-total-value{font-family:var(--serif);font-size:30px;font-weight:700;color:#fff}
.calc-breakdown{display:grid;gap:6px;margin-top:12px}
.calc-breakdown div{display:flex;justify-content:space-between;font-size:13px;color:rgba(255,255,255,.65)}
.btn-apply{display:block;text-align:center;background:var(--gold);color:#16304E;font-weight:700;font-size:15px;
  padding:15px;border-radius:12px;margin-top:18px;transition:.2s}
.btn-apply:hover{background:#D8BC68}
.tbl-link{display:block;text-align:center;color:rgba(255,255,255,.85);font-size:14px;font-weight:600;margin-top:14px}
.tbl-link:hover{color:#fff}

/* footer */
.foot{padding:24px 20px 34px;text-align:center;font-size:12px;color:var(--muted);background:var(--paper)}
.foot>div{margin-bottom:6px}
.foot-eho{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:600;color:var(--soft)}
.foot-powered{color:var(--gold-deep);font-weight:600;margin-top:8px}

/* share overlay */
.share-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,34,56,.7);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:24px}
.share-overlay[hidden]{display:none}
.share-panel{position:relative;background:var(--paper);border-radius:22px;padding:30px 26px;text-align:center;width:100%;max-width:320px;box-shadow:0 30px 80px rgba(0,0,0,.4)}
.share-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:28px;color:var(--muted);cursor:pointer;line-height:1}
.share-title{font-family:var(--serif);font-size:21px;font-weight:600;margin-bottom:18px}
.share-qr{width:-moz-fit-content;width:fit-content;margin:0 auto 14px;border-radius:14px;border:1px solid var(--line);padding:8px;background:#fff;line-height:0}
.share-qr canvas,.share-qr img{display:block}
.share-hint{font-size:13px;color:var(--muted);margin-bottom:16px}
.share-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.share-opt{padding:12px;border:1px solid var(--line);border-radius:12px;font-weight:600;font-size:14px;color:var(--ink);transition:.18s}
.share-opt:hover{border-color:var(--gold);background:var(--bg)}

@media(max-width:380px){
  .actions{grid-template-columns:repeat(2,1fr)}
}

/* ---- Customizer (tool chrome — independent of the card's theme) ---- */
.cz-fab{position:fixed;right:16px;bottom:16px;z-index:300;display:flex;align-items:center;gap:8px;
  background:#16181D;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:11px 18px;
  font-family:'Inter',system-ui,sans-serif;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 10px 36px rgba(0,0,0,.45)}
.cz-fab:hover{background:#1E2128}
.cz-panel{position:fixed;right:16px;bottom:70px;z-index:300;width:300px;max-width:calc(100vw - 32px);
  background:#16181D;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:20px;
  box-shadow:0 24px 70px rgba(0,0,0,.55);font-family:'Inter',system-ui,sans-serif}
.cz-panel[hidden]{display:none}
.cz-h{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8A93A4;margin:0 0 10px}
.cz-sec{margin-bottom:18px}
.cz-sec:last-child{margin-bottom:0}
.cz-base{display:flex;gap:8px}
.cz-base button{flex:1;padding:10px;background:#22252C;border:1px solid rgba(255,255,255,.12);color:#C7CDD6;
  border-radius:10px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
.cz-base button.on{background:#fff;color:#16181D;border-color:#fff}
.cz-sw{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cz-sw button{width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer;padding:0;outline-offset:2px}
.cz-sw button.on{border-color:#fff}
.cz-custom{position:relative;width:30px;height:30px;border-radius:50%;border:1px dashed rgba(255,255,255,.45);
  cursor:pointer;overflow:hidden;display:grid;place-items:center;color:#8A93A4;font-size:15px}
.cz-custom input{position:absolute;inset:0;opacity:0;cursor:pointer;border:none}
.cz-fonts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cz-fonts button{padding:11px 12px;background:#22252C;border:1px solid rgba(255,255,255,.12);color:#E6E9EE;
  border-radius:10px;cursor:pointer;font-size:16px;text-align:left;line-height:1.1;transition:.15s}
.cz-fonts button.on{border-color:#fff;background:#2A2E36}
.cz-fonts small{display:block;font-size:10px;color:#8A93A4;margin-top:3px;font-family:'Inter',system-ui,sans-serif}
