/* CLUB PHONE customer dashboard — dark + neon, matches the supplied mockups */
.cpd{--cpd-neon:#c6ff00;--cpd-bg:#0b0b0b;--cpd-card:#121212;--cpd-card2:#0e0e0e;--cpd-line:#2d2d2d;--cpd-text:#fff;--cpd-mute:#b9b9b9;--cpd-radius:16px;
  display:grid;grid-template-columns:272px minmax(0,1fr);gap:22px;align-items:start;max-width:1240px;margin:0 auto;padding:24px 16px 40px;color:var(--cpd-text);
  font-family:"Barlow Semi Condensed","Barlow","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;font-size:16px;line-height:1.35;box-sizing:border-box}
.cpd *,.cpd *::before,.cpd *::after{box-sizing:border-box}
.cpd a{color:inherit;text-decoration:none}
.cpd h1,.cpd h2,.cpd h3,.cpd p{margin:0}
.cpd .cpd-i{flex:none;display:block}
.cpd-part{display:block;padding:0;max-width:none;margin:0;--cpd-neon:#c6ff00;--cpd-card:#121212;--cpd-radius:16px;color:#fff}
.cpd-part--note:empty{display:none}
.cpd .woocommerce-Price-amount,.cpd .woocommerce-Price-currencySymbol{font:inherit;color:inherit}

/* sidebar */
.cpd-side{background:linear-gradient(180deg,#141414,#0d0d0d);border:1px solid var(--cpd-line);border-radius:var(--cpd-radius);padding:16px 12px 12px;position:sticky;top:16px}
.cpd-me{display:flex;gap:14px;align-items:center;padding:4px 8px 16px}
.cpd-avatar{width:66px;height:66px;border-radius:50%;background:#fff;color:#0b0b0b;border:3px solid var(--cpd-neon);display:grid;place-items:center;flex:none}
.cpd-me__txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.cpd-me__txt strong{font-size:24px;font-weight:700;line-height:1}
.cpd-me__txt>span{font-size:14px;color:#e6e6e6;overflow-wrap:anywhere}
.cpd-pill{align-self:flex-start;display:inline-flex;gap:5px;align-items:center;background:var(--cpd-neon);color:#0b0b0b;font-style:normal;font-weight:700;font-size:12px;padding:3px 10px;border-radius:6px}
.cpd-tiles{display:none}
.cpd-nav{display:flex;flex-direction:column;gap:2px}
.cpd-nav__a{display:flex;align-items:center;gap:16px;padding:12px 14px;border-radius:8px;font-size:18px;font-weight:500;border-bottom:1px solid #1f1f1f;transition:background .15s,color .15s}
.cpd-nav__a:hover{background:#1b1b1b}
.cpd-nav__a.is-active{background:var(--cpd-neon);color:#0b0b0b;font-weight:700;border-bottom-color:transparent}
.cpd-nav__a:focus-visible,.cpd-btn:focus-visible,.cpd-stat:focus-visible,.cpd-actions a:focus-visible{outline:2px solid var(--cpd-neon);outline-offset:2px}
.cpd-nav__sep{height:18px}

/* main */
.cpd-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.cpd-card{background:linear-gradient(180deg,var(--cpd-card),var(--cpd-card2));border:1px solid var(--cpd-line);border-radius:var(--cpd-radius);padding:20px}
.cpd-card h2{font-size:26px;font-weight:700;line-height:1.1;margin-bottom:12px}
.cpd-empty{color:var(--cpd-mute);padding:8px 0 14px}
.cpd-msg{padding:12px 16px;border-radius:12px;border:1px solid var(--cpd-line)}
.cpd-msg--ok{border-color:var(--cpd-neon);color:var(--cpd-neon)}.cpd-msg--err{border-color:#ff6b6b;color:#ff9a9a}
.cpd-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.cpd-title h1{font-size:38px;font-weight:700}.cpd-title a{color:var(--cpd-neon)}

/* hero */
.cpd-hero{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:170px;overflow:hidden;border-radius:var(--cpd-radius);padding:6px 0 0 4px;background:radial-gradient(60% 120% at 78% 100%,rgba(100,255,0,.35),transparent 60%)}
.cpd-hero__txt h1{font-size:clamp(40px,5vw,56px);line-height:.98;font-weight:800;letter-spacing:-.5px}
.cpd-hero__txt h1 span{color:var(--cpd-neon)}
.cpd-hero__txt p{font-size:19px;margin-top:10px;max-width:340px;color:#eee}
.cpd-hero__img{flex:1;display:flex;justify-content:flex-end;align-self:stretch;min-width:0}
.cpd-hero__img img{max-height:200px;width:auto;max-width:100%;object-fit:contain;align-self:flex-end}
.cpd-hero__img--glow{min-height:140px}

/* stat cards */
.cpd-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.cpd-stat{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;border:1px solid #3a3a3a;background:linear-gradient(180deg,#151515,#0d0d0d);min-height:76px}
.cpd-stat__i{color:var(--cpd-neon)}
.cpd-stat__t{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.cpd-stat__t b{font-size:28px;font-weight:700;white-space:nowrap}
.cpd-stat__t small{font-size:15px;color:#f1f1f1}
.cpd-stat--due .cpd-stat__t small,.cpd-stat--status .cpd-stat__t small{font-size:15px}
.cpd-stat--due .cpd-stat__t b,.cpd-stat--status .cpd-stat__t b{font-size:21px;color:var(--cpd-neon)}
.cpd-stat--inline .cpd-stat__t{flex-direction:row;align-items:baseline;gap:6px}
.cpd-stat--inline .cpd-stat__t small{order:2}
.cpd-stat .is-late{color:#ff7b7b}
.cpd-chev{display:none;margin-left:auto}

/* rows */
.cpd-row{display:grid;gap:14px}
.cpd-row--a{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}
.cpd-row--b{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}

/* rented phone */
.cpd-rental__body{display:grid;grid-template-columns:128px minmax(0,1fr) auto;gap:16px;align-items:start}
.cpd-rental__img{display:block}
.cpd-phone{display:block;width:100%;height:auto;max-height:168px;object-fit:contain;border-radius:10px}
.cpd-phone--empty{display:grid;place-items:center;height:140px;color:var(--cpd-neon);background:#181818}
.cpd-rental__info h3{font-size:22px;font-weight:700;margin-bottom:6px}
.cpd-badge{display:inline-block;padding:2px 12px;border-radius:6px;background:var(--cpd-neon);color:#0b0b0b;font-weight:700;font-size:13px;margin-bottom:8px}
.cpd-badge--overdue{background:#ff6b6b}.cpd-badge--paused,.cpd-badge--return_requested{background:#ffd166}
.cpd-badge--returned,.cpd-badge--completed,.cpd-badge--cancelled{background:#555;color:#fff}
.cpd-specs{display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:#ddd;margin-bottom:6px}
.cpd-specs i{font-style:normal;color:#777}
.cpd-dates{display:flex;align-items:center;gap:6px;font-size:13px;color:#ddd;margin-top:3px}
.cpd-rental__act{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:190px}
.cpd-price{font-size:30px;font-weight:700;color:var(--cpd-neon);text-align:right;line-height:1;margin-bottom:2px;white-space:nowrap}
.cpd-price small{font-size:30px}
.cpd-rental__m{display:none}

/* buttons */
.cpd-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:8px;font-weight:700;font-size:16px;cursor:pointer;border:1.5px solid transparent;font-family:inherit;line-height:1.1;transition:filter .15s,background .15s}
.cpd-btn--primary{background:var(--cpd-neon);color:#0b0b0b}.cpd-btn--primary:hover{filter:brightness(.92)}
.cpd-btn--ghost{background:#0f0f0f;border-color:#d8d8d8;color:#fff;font-weight:500;font-size:14px}.cpd-btn--ghost:hover{background:#1c1c1c}
.cpd-btn--outline{background:transparent;border-color:var(--cpd-neon);color:var(--cpd-neon);font-weight:600}
.cpd-btn--block{display:flex;width:100%;font-size:19px;padding:13px}
.cpd-btn--sm{padding:6px 12px;font-size:14px}
.cpd-link{color:var(--cpd-neon);font-weight:600;text-decoration:underline!important}

/* payment */
.cpd-pay__top{display:flex;align-items:center;gap:16px;color:var(--cpd-neon);margin-bottom:12px}
.cpd-pay__top p{color:#fff;font-size:15px}
.cpd-pay__amt{font-size:38px!important;font-weight:700;color:var(--cpd-neon)!important;line-height:1.1}
.cpd-auto{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:15px}
.cpd-auto .cpd-switch{margin-left:auto}
.cpd-switch{width:46px;height:26px;border-radius:13px;background:#3a3a3a;position:relative;flex:none}
.cpd-switch i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.cpd-switch.is-on{background:var(--cpd-neon)}.cpd-switch.is-on i{left:23px}

/* activity */
.cpd-act__head{display:flex;justify-content:space-between;align-items:baseline}
.cpd-act__head h2{font-size:26px}
.cpd-act__head a{display:inline-flex;gap:6px;align-items:center;color:var(--cpd-neon);font-size:14px;font-weight:600}
.cpd-act__list{list-style:none;margin:0;padding:0}
.cpd-act__list li{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:9px 0;border-top:1px solid #262626}
.cpd-act__list li:first-child{border-top:0}
.cpd-act__i{color:#fff;display:grid;place-items:center}
.cpd-act__i--ok{width:30px;height:30px;border-radius:50%;background:var(--cpd-neon);color:#0b0b0b}
.cpd-act__t{display:flex;flex-direction:column;line-height:1.15}.cpd-act__t strong{font-size:15px}.cpd-act__t small{font-size:12px;color:#bbb}
.cpd-act__a{font-weight:700;font-size:15px}.cpd-act__list time{font-size:13px;color:#ddd;min-width:84px;text-align:right}

/* change card */
.cpd-change{position:relative;display:flex;overflow:hidden;min-height:190px}
.cpd-change__txt{position:relative;z-index:1;max-width:62%}
.cpd-change h2{display:flex;align-items:center;gap:10px;color:#fff}.cpd-change h2 .cpd-i{color:var(--cpd-neon)}
.cpd-change p{font-size:15px;margin:6px 0 14px;color:#eee}
.cpd-change__img{position:absolute;right:-6px;bottom:0;height:100%;max-width:45%;object-fit:contain;object-position:right bottom}

/* quick actions */
.cpd-actions{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--cpd-line);border-radius:var(--cpd-radius);background:#111;overflow:hidden}
.cpd-actions a{display:flex;align-items:center;gap:14px;padding:16px 18px;font-size:15px;line-height:1.15;border-left:1px solid #333}
.cpd-actions a:first-child{border-left:0}.cpd-actions a:hover{background:#1a1a1a}
.cpd-actions .cpd-i{color:var(--cpd-neon)}.cpd-actions strong{display:block;font-size:17px}

/* tables, forms */
.cpd-tablewrap{padding:6px 16px;overflow-x:auto}
.cpd-table{width:100%;border-collapse:collapse}
.cpd-table th,.cpd-table td{padding:12px 8px;text-align:left;border-bottom:1px solid #262626;font-size:15px;background:none!important;color:#fff;vertical-align:top}
.cpd-table thead th{color:var(--cpd-mute);font-weight:600;font-size:13px}
.cpd-table .cpd-total th,.cpd-table .cpd-total td{font-weight:700}
.cpd-table td:last-child{text-align:right}
.cpd-note{display:flex;gap:10px;align-items:center;color:#fff}.cpd-note .cpd-i{color:var(--cpd-neon)}
.cpd-pager{display:flex;gap:12px;align-items:center;justify-content:center}
.cpd-dl{display:grid;grid-template-columns:200px 1fr;gap:8px 16px;margin:0 0 18px}.cpd-dl dt{color:var(--cpd-mute)}.cpd-dl dd{margin:0;font-weight:600}
.cpd-terms{color:#ddd;font-size:14px;margin:8px 0 14px}.cpd-terms p{margin:0 0 .7em}
.cpd-contract h3{font-size:20px;margin:6px 0}
.cpd-form{display:flex;flex-direction:column;gap:12px}
.cpd-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cpd-field{display:flex;flex-direction:column;gap:6px}.cpd-field label{font-size:14px;color:var(--cpd-mute)}
.cpd-field input,.cpd-field textarea,.cpd-field select{background:#0a0a0a;color:#fff;border:1px solid #3a3a3a;border-radius:8px;padding:11px 12px;font:inherit;width:100%}
.cpd-field input:focus,.cpd-field textarea:focus,.cpd-field select:focus{outline:2px solid var(--cpd-neon);outline-offset:1px}
.cpd-invoice__cols{display:flex;justify-content:space-between;gap:20px;margin-bottom:12px}
.cpd-login{display:block;max-width:520px}
.cpd-login .cpd-card{background:#121212}
.cpd-login input{background:#0a0a0a;color:#fff;border:1px solid #3a3a3a;border-radius:8px;padding:10px;width:100%}
.cpd-login button,.cpd-login .button{background:var(--cpd-neon);color:#0b0b0b;border:0;border-radius:8px;padding:11px 18px;font-weight:700;cursor:pointer}
.cpd-login a{color:var(--cpd-neon)}
.cpd-bottom{display:none}

/* tablet */
@media (max-width:1100px){
  .cpd{grid-template-columns:230px minmax(0,1fr)}
  .cpd-stats{grid-template-columns:repeat(2,1fr)}
  .cpd-row--a,.cpd-row--b{grid-template-columns:1fr}
  .cpd-actions{grid-template-columns:repeat(2,1fr)}.cpd-actions a:nth-child(3){border-left:0}.cpd-actions a:nth-child(n+3){border-top:1px solid #333}
}

/* mobile: matches the phone mockup */
@media (max-width:760px){
  .cpd{display:block;padding:12px 12px 96px}
  .cpd-side{position:static;background:none;border:0;padding:0;margin-bottom:12px}
  .cpd-me{padding:0 0 12px}
  .cpd-avatar{width:64px;height:64px}
  .cpd-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
  .cpd-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:1px solid #3a3a3a;border-radius:10px;font-size:14px;background:#0f0f0f}
  .cpd-tile.is-active{background:var(--cpd-neon);color:#0b0b0b;font-weight:700;border-color:var(--cpd-neon)}
  .cpd-nav{display:flex;flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:6px;scrollbar-width:thin}
  .cpd-nav__a{flex:none;font-size:14px;padding:8px 12px;border:1px solid #3a3a3a;border-radius:999px;gap:8px}
  .cpd-nav__a .cpd-i{width:18px;height:18px}.cpd-nav__sep{display:none}
  .cpd-hide-m{display:none}
  .cpd-grid2{grid-template-columns:1fr}.cpd-dl{grid-template-columns:1fr}
  .cpd-title h1{font-size:30px}
  .cpd-table thead{display:none}.cpd-table,.cpd-table tbody,.cpd-table tr,.cpd-table td{display:block;width:100%}
  .cpd-table tr{padding:8px 0;border-bottom:1px solid #333}.cpd-table td{border:0;padding:4px 6px;text-align:left!important}
  .cpd-table td::before{content:attr(data-label) ": ";color:var(--cpd-mute)}
  .cpd-card h2{font-size:22px}
  /* home view: rented phone, due date, contract, big pay button */
  .cpd[data-view=""] .cpd-main{display:flex;flex-direction:column;gap:10px}
  .cpd[data-view=""] .cpd-hero,.cpd[data-view=""] .cpd-row--b,.cpd[data-view=""] .cpd-actions{display:none}
  .cpd[data-view=""] .cpd-stats,.cpd[data-view=""] .cpd-row--a{display:contents}
  .cpd[data-view=""] .cpd-rental{order:1}
  .cpd[data-view=""] .cpd-stat:nth-child(1),.cpd[data-view=""] .cpd-stat:nth-child(2){display:none}
  .cpd[data-view=""] .cpd-stat:nth-child(3){order:2}
  .cpd[data-view=""] .cpd-stat:nth-child(4){order:3}
  .cpd[data-view=""] .cpd-pay{order:4;padding:0;border:0;background:none}
  .cpd[data-view=""] .cpd-stat{min-height:0;padding:12px 14px}
  .cpd-chev{display:block}
  .cpd[data-view=""] .cpd-rental__body{display:none}
  .cpd[data-view=""] .cpd-rental__m{display:flex;align-items:center;gap:12px;border:1px solid #333;border-radius:12px;padding:10px}
  .cpd-rental__m>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
  .cpd-rental__mi{width:68px}.cpd-rental__mi .cpd-phone{max-height:96px}
  .cpd-rental__m b{color:var(--cpd-neon);font-size:22px}
  .cpd[data-view=""] .cpd-pay h2,.cpd[data-view=""] .cpd-pay__top,.cpd[data-view=""] .cpd-auto{display:none}
  .cpd[data-view=""] .cpd-pay .cpd-btn--block{border-radius:10px;font-size:20px;padding:15px}
  .cpd-rental__body{grid-template-columns:96px minmax(0,1fr)}.cpd-rental__act{grid-column:1/-1}
  .cpd-bottom{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#0b0b0b;border-top:1px solid #2d2d2d;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
  .cpd-bottom a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0;border-radius:10px;font-size:13px}
  .cpd-bottom a.is-active{background:var(--cpd-neon);color:#0b0b0b;font-weight:700}
}
@media (prefers-reduced-motion:reduce){.cpd *{transition:none!important}}
@media print{.cpd-side,.cpd-bottom,.cpd-btn,.cpd-title a{display:none!important}.cpd{display:block;color:#000;background:#fff}.cpd-card{border:0;background:none;color:#000}.cpd *{color:#000!important}}
