:root{
  --navy:#1B2A4A;
  --navy-light:#2A3F66;
  --orange:#F47B20;
  --orange-dark:#D96A15;
  --bg:#FAFBFD;
  --white:#fff;
  --gray-50:#F8F9FA;
  --gray-100:#F1F3F5;
  --gray-200:#E9ECEF;
  --gray-400:#CED4DA;
  --gray-700:#495057;
  --text-light:#868E96;
  --shadow:0 12px 48px rgba(0,0,0,.10);
  --radius:18px;
  --radius-sm:12px;
  --radius-pill:999px;
  --container:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,'Inter',Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
  color:var(--gray-700);
  background:linear-gradient(170deg,var(--white) 0%, #EEF2F7 50%, var(--white) 100%);
}
a{color:inherit;text-decoration:none}

.topbar{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--gray-200);
}
.topbar-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-size:20px;font-weight:900;color:var(--navy);line-height:1;
}
.brand svg{width:38px;height:38px;flex:0 0 auto}
.brand-text{display:inline}

/* Top toggle (Anfragen | Dashboard) */
.top-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:999px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.75);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.top-toggle a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  font-weight:1000;
  font-size:13px;
  color:var(--navy);
  border:1px solid transparent;
  min-width:92px;
}
.top-toggle a.active{
  background:rgba(244,123,32,.10);
  border-color:rgba(244,123,32,.28);
}
.top-toggle a:hover{border-color:rgba(244,123,32,.28)}

@media(max-width:768px){
  .top-toggle a{min-width:auto;padding:8px 12px}
  .brand{gap:0}
  .brand-text{display:none}
}
@media(max-width:960px){
  .topbar-inner{
    flex-wrap:wrap;
    align-items:center;
  }
  .topbar-inner > .row{
    margin-left:auto;
  }
  .top-toggle{
    order:3;
    width:100%;
    justify-content:center;
  }
}

.wrap{max-width:var(--container);margin:0 auto;padding:28px 18px 72px}
.card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card.overflow-visible{overflow:visible}
.card-body{padding:22px}

.h1{margin:0 0 6px;font-size:26px;letter-spacing:-.6px;color:var(--navy)}
.sub{margin:0;color:var(--text-light);font-size:14px}

/* Wizard (register) */
.wizard-head{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.78);
}
.wizard-steps-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  margin-top:14px;
}
.wizard-steps-visual .step-dot{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:1000;
  border:2px solid var(--gray-200);
  color:rgba(27,42,74,.45);
  background:var(--white);
  transition:all .3s;
}
.wizard-steps-visual .step-dot.active{
  border-color:var(--orange);
  background:var(--orange);
  color:#fff;
}
.wizard-steps-visual .step-dot.done{
  border-color:#27AE60;
  background:#27AE60;
  color:#fff;
}
.wizard-steps-visual .step-line{
  width:40px;
  height:2px;
  background:var(--gray-200);
  transition:background .3s;
}
.wizard-steps-visual .step-line.done{
  background:#27AE60;
}
.wizard-kicker{
  font-size:12px;
  font-weight:1000;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(27,42,74,.60);
}
.wizard-title{
  margin-top:4px;
  font-size:16px;
  font-weight:1000;
  color:var(--navy);
}
.wizard-bar{
  margin-top:10px;
  height:8px;
  border-radius:999px;
  background:rgba(27,42,74,.08);
  overflow:hidden;
}
.wizard-bar-fill{
  height:100%;
  width:25%;
  background:linear-gradient(90deg, rgba(244,123,32,.55), rgba(244,123,32,.95));
  border-radius:999px;
  transition:width .22s ease;
}
.wiz-step{margin-top:14px}
.wizard-nav{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.wizard-nav .btn{min-width:120px}
@media(max-width:640px){
  .wizard-nav{flex-direction:column-reverse;align-items:stretch}
  .wizard-nav .btn{width:100%}
}
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:var(--radius-pill);
  background:rgba(244,123,32,.12);
  border:1px solid rgba(244,123,32,.20);
  color:var(--orange);
  font-size:12px;font-weight:900;letter-spacing:1px;text-transform:uppercase;
}
.premium-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(22,163,74,.18);
  background:linear-gradient(180deg, rgba(240,253,244,.92), rgba(255,255,255,.96));
}
.premium-banner-left,.premium-banner-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.premium-banner.premium-inactive{border-color:rgba(22,163,74,.16)}
.premium-banner.premium-active{border-color:rgba(22,163,74,.24);background:linear-gradient(180deg, rgba(240,253,244,1), rgba(255,255,255,.96))}
.premium-badge-green{
  display:inline-block;
  padding:4px 12px;
  border:2px solid #16A34A;
  border-radius:6px;
  color:#16A34A;
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;
}
.premium-banner.premium-active .premium-badge-green{
  background:#F0FDF4;
  border-color:#16A34A;
  color:#16A34A;
}
.premium-remaining{
  color:#666;
  font-size:13px;
  margin-left:12px;
}
.premium-info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#E5E7EB;
  color:#6B7280;
  font-size:11px;
  font-weight:700;
  cursor:help;
  margin-left:8px;
  position:relative;
}
.premium-info-icon:hover::after{
  content:attr(title);
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  background:#1B2A4A;
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:400;
  max-width:300px;
  width:max-content;
  white-space:normal;
  z-index:100;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.premium-info-icon:hover::before{
  content:'';
  position:absolute;
  bottom:calc(100% + 2px);
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:#1B2A4A;
  z-index:101;
}
.btn-premium{
  background:#16A34A;
  color:#fff;
  border:none;
  padding:10px 24px;
  border-radius:8px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:background .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-premium:hover{background:#15803D}
.btn-secondary,.btn-secondary-small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:8px;
  border:1px solid var(--gray-200);
  background:#fff;
  color:var(--navy);
  font-weight:800;
  cursor:pointer;
}
.btn-secondary-small{padding:8px 14px;font-size:13px}
.premium-pricing-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  margin-top:20px;
}
.pricing-card{
  border:2px solid #E5E7EB;
  border-radius:12px;
  padding:24px;
  text-align:center;
  transition:all .2s ease;
  position:relative;
  background:#fff;
}
.pricing-card:hover{
  border-color:#16A34A;
  box-shadow:0 4px 12px rgba(22,163,74,.1);
}
.pricing-card.recommended{
  border-color:#16A34A;
  background:#F0FDF4;
}
.recommended-badge{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  background:#16A34A;
  color:#fff;
  padding:2px 12px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
}
.pricing-card .price{
  font-size:32px;
  font-weight:800;
  color:#1B2A4A;
  margin:8px 0 4px;
}
.pricing-card .price-info{
  color:#9CA3AF;
  font-size:13px;
  margin-bottom:16px;
}
.premium-status-card{
  border:2px solid rgba(22,163,74,.18);
  border-radius:16px;
  padding:20px 22px;
  background:linear-gradient(180deg, rgba(240,253,244,.9), rgba(255,255,255,.96));
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
}
.premium-status-card.is-inactive{
  border-color:rgba(27,42,74,.12);
  background:linear-gradient(180deg, rgba(248,249,250,.95), rgba(255,255,255,.98));
}
.premium-status-card.is-inactive .premium-badge-green{
  border-color:rgba(27,42,74,.18);
  color:var(--navy);
  background:transparent;
}
.premium-status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
}
.premium-status-body{
  display:block;
  min-width:0;
  text-align:left;
  width:100%;
}
.premium-status-info{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
  width:100%;
}
.premium-status-kicker{
  color:#16A34A;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.premium-status-title{
  color:var(--navy);
  font-size:28px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.03em;
  max-width:12ch;
  text-wrap:balance;
}
.premium-status-card.is-inactive .premium-status-kicker{
  color:rgba(27,42,74,.58);
}
.premium-status-head .premium-badge-green{
  white-space:nowrap;
  flex:0 0 auto;
}
.premium-status-selection{
  border:1px solid rgba(22,163,74,.14);
  border-radius:14px;
  padding:14px 16px;
  background:rgba(255,255,255,.72);
  grid-column:1 / -1;
  width:100%;
  min-width:0;
}
.premium-status-selection-head{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.premium-subscription-layout{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:stretch;
}
.premium-matrix-card{
  border:1px solid var(--gray-200);
  border-radius:16px;
  padding:16px;
  background:rgba(255,255,255,.92);
}
.premium-option-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.premium-option-card,
.premium-duration-card{
  width:100%;
  text-align:left;
  border:2px solid var(--gray-200);
  border-radius:16px;
  min-width:0;
  padding:12px 14px;
  background:#fff;
  transition:all .18s ease;
  cursor:pointer;
}
.premium-option-card:hover,
.premium-duration-card:hover{
  border-color:rgba(244,123,32,.45);
  box-shadow:0 10px 24px rgba(244,123,32,.08);
}
.premium-option-card.active,
.premium-duration-card.active{
  border-color:var(--orange);
  background:rgba(244,123,32,.08);
  box-shadow:0 12px 28px rgba(244,123,32,.10);
}
.premium-option-card strong,
.premium-duration-card strong{
  display:block;
  color:var(--navy);
  font-size:14px;
}
.premium-option-card span,
.premium-option-card small,
.premium-duration-card small{
  display:block;
  margin-top:5px;
  color:var(--text-light);
  line-height:1.35;
  font-size:12px;
}
.premium-duration-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.premium-duration-price{
  margin-top:6px;
  color:var(--navy);
  font-size:22px;
  font-weight:900;
  line-height:1.1;
  word-break:break-word;
}
.premium-field-stack{
  display:grid;
  gap:14px;
}
.premium-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.premium-chip-grid{
  max-height:280px;
  overflow:auto;
}
.premium-booking-panel{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(27,42,74,.08);
}
.premium-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:999px;
  border:2px solid var(--gray-200);
  background:#fff;
  color:var(--navy);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:all .18s ease;
}
.premium-chip:hover{
  border-color:rgba(244,123,32,.4);
}
.premium-chip.active{
  border-color:var(--orange);
  background:rgba(244,123,32,.08);
}
.premium-selection-summary{
  display:grid;
  gap:10px;
}
.premium-selection-summary-compact{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}
.premium-selection-line{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:6px;
  min-width:0;
  padding:12px 14px;
  border:1px solid rgba(27,42,74,.08);
  border-radius:12px;
  background:rgba(255,255,255,.92);
}
.premium-selection-line span{
  color:var(--text-light);
  font-size:13px;
}
.premium-selection-line strong{
  color:var(--navy);
  text-align:left;
  min-width:0;
  overflow-wrap:anywhere;
}
.premium-booking-panel{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--gray-200);
}
.premium-matrix{
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-x:auto;
  padding-bottom:4px;
}
.premium-matrix-grid{
  display:grid;
  grid-template-columns:minmax(240px, 1.35fr) repeat(4, minmax(130px, 1fr));
  gap:12px;
  min-width:820px;
  align-items:stretch;
}
.premium-matrix-header{
  align-items:end;
}
.premium-matrix-corner,
.premium-matrix-duration{
  padding:0 4px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(27,42,74,.55);
}
.premium-matrix-row{
  align-items:stretch;
}
.premium-matrix-meta{
  padding:16px;
  border:1px solid var(--gray-200);
  border-radius:16px;
  background:rgba(248,249,250,.92);
}
.premium-matrix-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.premium-matrix-title-row strong{
  color:var(--navy);
  font-size:15px;
}
.premium-matrix-coverage{
  margin-top:8px;
  color:var(--text-light);
  font-size:13px;
  line-height:1.45;
}
.premium-matrix-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.premium-matrix-status.is-bookable{
  color:#16A34A;
  background:rgba(22,163,74,.12);
}
.premium-matrix-status.is-planned{
  color:var(--navy);
  background:rgba(27,42,74,.08);
}
.premium-matrix-cell{
  min-height:108px;
  border:2px solid var(--gray-200);
  border-radius:16px;
  background:#fff;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  transition:all .18s ease;
}
.premium-matrix-cell.is-bookable{
  cursor:pointer;
}
.premium-matrix-cell.is-bookable:hover{
  border-color:rgba(244,123,32,.55);
  box-shadow:0 10px 24px rgba(244,123,32,.10);
  transform:translateY(-1px);
}
.premium-matrix-cell.is-selected{
  border-color:var(--orange);
  background:rgba(244,123,32,.08);
  box-shadow:0 12px 28px rgba(244,123,32,.12);
}
.premium-matrix-cell.is-locked{
  background:rgba(248,249,250,.96);
  color:rgba(27,42,74,.72);
  cursor:not-allowed;
}
.premium-matrix-cell-price{
  color:var(--navy);
  font-size:24px;
  font-weight:900;
  line-height:1.1;
}
.premium-matrix-cell-meta{
  color:var(--text-light);
  font-size:12px;
  line-height:1.4;
}
.premium-details{
  margin:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(160px, 1fr));
  gap:12px;
  width:100%;
  margin-top:8px;
}
.premium-details p{
  margin:0;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.64);
  border:1px solid rgba(27,42,74,.08);
  text-align:left;
}
.premium-portfolio-meta{
  display:grid;
  grid-template-columns:minmax(220px, 1fr);
  gap:12px;
  grid-column:1 / -1;
}
.premium-status-list{
  display:grid;
  gap:12px;
  grid-column:1 / -1;
  width:100%;
}
.premium-portfolio-item{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:18px;
  width:100%;
  min-width:0;
  padding:18px 20px;
  border-radius:14px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(27,42,74,.08);
}
.premium-portfolio-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.premium-portfolio-main strong{
  color:var(--navy);
  font-size:15px;
  line-height:1.35;
}
.premium-portfolio-sub,
.premium-portfolio-side span{
  color:var(--text-light);
  font-size:13px;
  line-height:1.4;
}
.premium-portfolio-side{
  flex:0 0 auto;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.premium-portfolio-side strong{
  color:var(--navy);
  font-size:22px;
  line-height:1.1;
}
.premium-lead-badge{
  display:inline-block;
  padding:2px 6px;
  background:#F0FDF4;
  border:1px solid #16A34A;
  border-radius:4px;
  color:#16A34A;
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  margin-left:6px;
  vertical-align:middle;
}

.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
@media(max-width:900px){
  .grid{grid-template-columns:1fr}
}

/* Equal-height cards inside 2-col grid */
.grid > .card{height:100%}
.grid > .card > .card-body{height:100%;display:flex;flex-direction:column}

.field{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.label{font-size:13px;font-weight:800;color:var(--navy)}
.input,.select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
  font-size:15px;
  font-weight:800;
  color:var(--navy);
  outline:none;
}
.input:focus,.select:focus{border-color:rgba(244,123,32,.55)}
.input::placeholder,.textarea::placeholder{color:var(--gray-400);font-weight:700}

/* Modern select (custom chevron, softer depth) */
.select{
  -webkit-appearance:none;
  appearance:none;
  padding-right:44px;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px 16px;
}
.select:hover{border-color:rgba(244,123,32,.28)}
.select:focus{box-shadow:0 12px 30px rgba(244,123,32,.14)}

/* Remove number spinners (cleaner CI look) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.end{justify-content:flex-end}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  color:var(--gray-700);
  font-size:14px;
  font-weight:700;
}
.check input{
  width:18px;height:18px;
  accent-color:var(--orange);
}

/* Registration form helpers */
.radio-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.radio{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.75);
  font-weight:900;
  color:var(--navy);
  cursor:pointer;
  user-select:none;
}
.radio input{accent-color:var(--orange)}
.fieldset{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.70);
}

/* Registration: dropdown (multi-select) */
.dd{
  margin-top:10px;
  border-radius:16px;
  border:2px solid var(--gray-200);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90));
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  overflow:hidden;
}
.dd.open{border-color:rgba(244,123,32,.35);box-shadow:0 12px 30px rgba(244,123,32,.12)}
.dd-summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  font-size:15px;
  font-weight:900;
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
}
.dd-summary::after{
  content:"";
  width:18px;height:18px;
  flex:0 0 auto;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
  opacity:.9;
  transition:transform .18s ease;
}
.dd.open .dd-summary::after{transform:rotate(180deg)}
.dd-panel{padding:12px 12px 14px;border-top:1px solid var(--gray-200)}
.dd-country{
  border:1px solid var(--gray-200);
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.85);
}
.dd-country + .dd-country{margin-top:10px}
.dd-country-head{
  padding:10px 12px;
  font-weight:1000;
  color:var(--navy);
  border-bottom:1px solid var(--gray-200);
  background:rgba(255,255,255,.85);
}
.dd-country-body{padding:12px}
.region-all{border-style:solid;background:rgba(244,123,32,.06);border-color:rgba(244,123,32,.22)}
.region-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 12px;
  margin-top:10px;
}
@media(max-width:640px){.region-grid{grid-template-columns:1fr}}
.region-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:var(--white);
  font-weight:900;
  color:var(--navy);
}
.region-item input{accent-color:var(--orange)}
.helper{
  margin-top:8px;
  color:var(--text-light);
  font-size:13px;
  font-weight:700;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:var(--radius-pill);
  border:1px solid var(--gray-200);
  background:var(--white);
  color:var(--navy);
  font-weight:900;
  cursor:pointer;
  transition:all .2s;
}
.btn:hover{border-color:rgba(244,123,32,.35);transform:translateY(-1px)}
.btn.primary{
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
  box-shadow:0 6px 22px rgba(244,123,32,.25);
}
.btn.primary:hover{background:var(--orange-dark);border-color:var(--orange-dark)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}

.btn.sm{
  padding:9px 12px;
  font-size:13px;
  font-weight:1000;
}

.login-foot{
  margin-top:18px;
  padding:10px 4px 0;
  border:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:transparent;
}
.login-foot-link{
  color:var(--text-light);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.login-foot-link:hover{color:var(--navy)}
.login-foot-link::after{
  content:'→';
  font-size:12px;
  line-height:1;
}
.login-foot-btn{
  min-width:auto;
  padding:8px 14px;
  justify-content:center;
  font-size:12px;
}

@media(max-width:640px){
  .login-foot{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding-top:12px;
  }
  .login-foot-btn{
    width:100%;
  }
}

/* Profile icon + menu */
.icon-btn{
  width:44px;height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.85);
  color:var(--navy);
  cursor:pointer;
  transition:all .18s ease;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.icon-btn:hover{border-color:rgba(244,123,32,.28);transform:translateY(-1px)}
.icon-btn:active{transform:none}
.icon-btn svg{width:20px;height:20px;opacity:.9}
.profile{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:180px;
  padding:10px;
  border-radius:16px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 40px rgba(0,0,0,.12);
  z-index:9999;
}
.menu-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:2px solid var(--gray-200);
  background:var(--white);
  color:var(--navy);
  font-weight:1000;
  cursor:pointer;
}
.menu-ico{
  width:18px;height:18px;
  flex:0 0 auto;
  opacity:.9;
  display:block;
}
.menu-item:hover{border-color:rgba(244,123,32,.28)}

/* Account page */
.account-shell{
  margin-top:14px;
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:14px;
  align-items:start;
}
.account-nav{
  position:sticky;
  top:84px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.account-tab{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:2px solid var(--gray-200);
  background:rgba(255,255,255,.78);
  color:var(--navy);
  font-weight:1000;
  cursor:pointer;
  text-align:left;
  transition:all .18s ease;
}
.account-tab:hover{border-color:rgba(244,123,32,.28)}
.account-tab.active{
  border-color:rgba(244,123,32,.55);
  background:rgba(244,123,32,.08);
}
.account-tab-ico{
  width:18px;height:18px;
  flex:0 0 auto;
  opacity:.9;
}
.account-panels{min-width:0}
.account-panel .card-body{padding:22px}

@media(max-width:900px){
  .account-shell{grid-template-columns:1fr}
  .account-nav{
    position:static;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  .account-tab{min-width:0}
}
@media(max-width:420px){
  .account-nav{grid-template-columns:1fr}
}

/* Chip dropdown (like blog filters) */
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:2px solid var(--gray-200);
  background:var(--white);
  font-size:13px;
  font-weight:900;
  color:var(--navy);
  cursor:pointer;
  transition:all .18s ease;
  user-select:none;
}
.chip:hover{border-color:rgba(244,123,32,.35)}
.chip.active{border-color:var(--orange);background:rgba(244,123,32,.08)}
.chip-arrow{
  width:14px;height:14px;
  display:inline-block;
  transition:transform .18s ease;
  opacity:.85;
}
.chip.open .chip-arrow{transform:rotate(180deg)}

.chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Switch (e.g., "Verlorene ausblenden") */
.switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.75);
  font-weight:900;
  color:var(--navy);
  cursor:pointer;
  user-select:none;
}
.switch input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{
  width:42px;height:24px;border-radius:999px;
  border:2px solid var(--gray-200);
  background:var(--white);
  position:relative;
  transition:all .18s ease;
  flex:0 0 auto;
}
.switch-ui::after{
  content:'';
  width:18px;height:18px;border-radius:999px;
  position:absolute;top:50%;left:3px;
  transform:translateY(-50%);
  background:rgba(27,42,74,.28);
  transition:all .18s ease;
  box-shadow:0 6px 16px rgba(0,0,0,.10);
}
.switch input:checked + .switch-ui{
  border-color:rgba(244,123,32,.35);
  background:rgba(244,123,32,.12);
}
.switch input:checked + .switch-ui::after{
  left:19px;
  background:var(--orange);
}
.switch-label{font-size:13px}

.dropdown{
  position:relative;
  margin-top:10px;
}
.dropdown-panel{
  position:absolute;
  left:0;
  top:100%;
  margin-top:10px;
  min-width:260px;
  max-width:520px;
  z-index:9999;
  padding:10px;
  border:1px solid var(--gray-200);
  border-radius:16px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  max-height:min(60vh, 420px);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.dropdown-list{display:flex;flex-direction:column;gap:10px}
.dropdown-item{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:2px solid var(--gray-200);
  background:var(--white);
  font-size:13px;
  font-weight:900;
  color:var(--navy);
  cursor:pointer;
}
.dropdown-item:hover{border-color:rgba(244,123,32,.35)}
.dropdown-item.active{border-color:var(--orange);background:rgba(244,123,32,.08)}

.dropdown-divider{
  height:1px;
  background:rgba(27,42,74,0.1);
  margin:4px 0;
}

/* Lead progress (detail page) */
.progress-steps{
  display:flex;
  align-items:center;
  gap:0;
  margin:16px 0;
  overflow-x:auto;
}
.progress-steps .step{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  position:relative;
  min-width:60px;
}
.progress-steps .step::after{
  content:'';
  position:absolute;
  top:10px;
  left:50%;
  width:100%;
  height:2px;
  background:rgba(27,42,74,0.15);
}
.progress-steps .step:last-child::after{display:none}
.progress-steps .step.done::after{background:#66BB6A}
.progress-steps .step-dot{
  width:20px;
  height:20px;
  border-radius:50%;
  background:rgba(27,42,74,0.15);
  position:relative;
  z-index:1;
}
.progress-steps .step.done .step-dot{background:#66BB6A}
.progress-steps .step.active .step-dot{background:var(--orange);box-shadow:0 0 0 4px rgba(244,123,32,0.2)}
.progress-steps .step-label{
  font-size:11px;
  margin-top:6px;
  color:rgba(27,42,74,0.5);
  text-align:center;
}
.progress-steps .step.done .step-label,
.progress-steps .step.active .step-label{color:var(--navy);font-weight:700}

/* ============================================================
   CRM KANBAN BOARD
   ============================================================ */

.kanban-container{
  display:grid;
  grid-template-columns:repeat(7, minmax(260px, 1fr));
  gap:12px;
  min-height:400px;
  overflow-x:auto;
  padding-bottom:12px;
}
.kanban-top-scroll{
  position:sticky;
  top:86px;
  z-index:7;
  overflow-x:auto;
  overflow-y:hidden;
  margin:0 0 10px;
  padding:4px 0 8px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(250,251,253,.96), rgba(250,251,253,.9));
  backdrop-filter:blur(8px);
}
.kanban-top-scroll-inner{
  height:10px;
  border-radius:999px;
}
.kanban-top-scroll::-webkit-scrollbar,
.kanban-container::-webkit-scrollbar{
  height:12px;
}
.kanban-container{
  scrollbar-width:none;
}
.kanban-container::-webkit-scrollbar{
  display:none;
}
.kanban-top-scroll::-webkit-scrollbar-track,
.kanban-container::-webkit-scrollbar-track{
  background:rgba(27,42,74,.08);
  border-radius:999px;
}
.kanban-top-scroll::-webkit-scrollbar-thumb,
.kanban-container::-webkit-scrollbar-thumb{
  background:rgba(27,42,74,.32);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
.kanban-top-scroll::-webkit-scrollbar-thumb:hover,
.kanban-container::-webkit-scrollbar-thumb:hover{
  background:rgba(27,42,74,.46);
  background-clip:padding-box;
}
@media (max-width: 1200px){
  .kanban-container{grid-template-columns:repeat(7, minmax(250px, 1fr))}
}
@media (max-width: 768px){
  .kanban-container{
    grid-template-columns:repeat(6, 260px) 230px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }
  .kanban-column{scroll-snap-align:start}
  .kanban-top-scroll{top:132px}
}

.kanban-column{
  background:rgba(27, 42, 74, 0.03);
  border:1px solid var(--gray-200);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  min-height:300px;
}
.kanban-column-collapsed{
  background:rgba(239, 83, 80, 0.03);
}
.kanban-header{
  padding:14px 12px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-bottom:1px solid var(--gray-200);
}
.kanban-header-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:1000;
  color:var(--navy);
  text-transform:uppercase;
  letter-spacing:0.8px;
}
.kanban-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.kanban-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(27, 42, 74, 0.08);
  font-size:11px;
  font-weight:1000;
  color:var(--navy);
}
.kanban-cards{
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  overflow-y:auto;
  max-height:65vh;
}
.kanban-card{
  min-width:0;
  min-height:124px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid var(--gray-200);
  background:var(--white);
  cursor:pointer;
  transition:all 0.15s ease;
  box-shadow:0 2px 8px rgba(0, 0, 0, 0.04);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.kanban-card:hover{
  border-color:rgba(244, 123, 32, 0.35);
  box-shadow:0 4px 16px rgba(0, 0, 0, 0.08);
  transform:translateY(-1px);
}
.kanban-card-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.kanban-card-ref{
  font-size:10px;
  font-weight:1000;
  color:var(--orange);
  letter-spacing:.6px;
}
.kanban-card-ref .premium-lead-badge{margin-left:4px}
.kanban-card-firma{
  font-size:13px;
  font-weight:900;
  color:var(--navy);
  line-height:1.3;
  display:-webkit-box;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  white-space:normal;
}
.kanban-card-location{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-top:0;
  flex-wrap:wrap;
}
.kanban-tag{
  display:inline-flex;
  align-items:center;
  padding:4px 9px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  background:rgba(27, 42, 74, 0.05);
  color:var(--gray-700);
  border:1px solid rgba(27, 42, 74, 0.08);
}
.kanban-tag.plz{
  background:rgba(244, 123, 32, 0.08);
  border-color:rgba(244, 123, 32, 0.18);
  color:var(--orange-dark);
  max-width:100%;
  white-space:nowrap;
}
.kanban-card-revenue{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:0;
  margin-left:auto;
}
.kanban-card-revenue-label{
  font-size:8px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.35px;
  text-transform:uppercase;
  color:var(--text-light);
}
.kanban-card-revenue-value{
  font-size:11px;
  line-height:1.2;
  font-weight:1000;
  color:var(--orange);
  white-space:nowrap;
}
.kanban-column-collapsed .kanban-card{
  border-style:dashed;
}
.kanban-empty{
  padding:20px 10px;
  text-align:center;
  color:var(--text-light);
  font-size:12px;
  font-weight:700;
}
.kanban-card.dragging{opacity:0.5;transform:rotate(2deg)}
.kanban-column.drag-over{
  background:rgba(244, 123, 32, 0.06);
  border-color:rgba(244, 123, 32, 0.25);
}

/* Input group (e.g., € amount) */
.input-group{
  display:flex;
  align-items:stretch;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:var(--white);
  overflow:hidden;
}
.input-group:focus-within{border-color:rgba(244,123,32,.55)}
.input-prefix,.input-suffix{
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  font-weight:900;
  color:var(--navy);
  background:rgba(27,42,74,.03);
}
.input-prefix{border-right:1px solid var(--gray-200)}
.input-suffix{border-left:1px solid var(--gray-200)}
.input-group .input{
  border:none !important;
  border-radius:0 !important;
  flex:1;
  padding:12px 14px;
}
.input-group .input:focus{outline:none}
.input-right{text-align:right}

/* Modern file picker (PDF upload) */
.file-picker{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:var(--white);
}
.file-picker:focus-within{border-color:rgba(244,123,32,.55)}
.file-btn{
  white-space:nowrap;
  font-size:13px;
  padding:10px 14px;
}
.file-name{
  min-width:0;
  flex:1;
  font-weight:800;
  font-size:14px;
  color:var(--navy);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.file-sub{
  margin-top:6px;
  color:var(--text-light);
  font-size:12px;
  font-weight:700;
}

.note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(27,42,74,.10);
  background:rgba(27,42,74,.04);
  color:var(--navy);
  font-size:14px;
}
.warn{
  border-color:rgba(220,53,69,.25);
  background:rgba(220,53,69,.06);
}

.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{padding:12px 12px;border-bottom:1px solid var(--gray-200);text-align:left;font-size:14px;vertical-align:top}
.table th{font-size:12px;color:var(--text-light);text-transform:uppercase;letter-spacing:1px}
.table tr:hover td{background:rgba(244,123,32,.03)}
.table tr.no-hover:hover td{background:transparent}
.portal-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.portal-table-wrap .table{min-width:560px}
.requests-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.requests-table-wrap .table{
  min-width:0;
  width:100%;
  table-layout:fixed;
}

/* Spaltenbreiten der Anfragen-Tabelle */
.requests-table-wrap .table th:nth-child(1),
.requests-table-wrap .table td:nth-child(1){width:130px}

.requests-table-wrap .table th:nth-child(2),
.requests-table-wrap .table td:nth-child(2){width:17%}

.requests-table-wrap .table th:nth-child(3),
.requests-table-wrap .table td:nth-child(3){width:17%}

.requests-table-wrap .table th:nth-child(4),
.requests-table-wrap .table td:nth-child(4){
  width:84px;
  white-space:nowrap;
}

.requests-table-wrap .table th:nth-child(5),
.requests-table-wrap .table td:nth-child(5){width:12%}

.requests-table-wrap .table th:nth-child(6),
.requests-table-wrap .table td:nth-child(6){
  width:148px;
  padding-left:8px;
  padding-right:8px;
}

.requests-table-wrap .table td{
  overflow-wrap:break-word;
  word-break:break-word;
  font-size:13px;
  line-height:1.4;
}

.requests-table-wrap .table td .muted{
  font-size:12px;
  line-height:1.35;
}

.requests-table-wrap .table td:nth-child(2) .muted{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.requests-table-wrap .table td:nth-child(6) .pill,
.requests-table-wrap .table td:nth-child(6) [class*="pill"]{
  white-space:nowrap;
}

/* Expandable months dropdown inside tables */
.table-details{
  padding:10px 12px 12px;
}
.table-details summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:rgba(255,255,255,.85);
  font-weight:1000;
  color:var(--navy);
}
.table-details summary::-webkit-details-marker{display:none}
.table-details summary:hover{border-color:rgba(244,123,32,.28)}
.table-details .chev{
  width:14px;height:14px;opacity:.8;flex:0 0 auto;
  transition:transform .18s ease;
}
.table-details[open] .chev{transform:rotate(180deg)}
.table-inner td{
  padding:12px 12px;
  border-bottom:1px solid var(--gray-200);
  font-size:14px;
}
.table-inner tr:last-child td{border-bottom:none}
.click-row{cursor:pointer}
.muted{color:var(--text-light)}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:var(--radius-pill);
  border:1px solid var(--gray-200);
  background:var(--white);
  font-weight:900;font-size:12px;color:var(--navy);
}
.pill.ok{border-color:rgba(39,174,96,.25);background:rgba(39,174,96,.06);color:#1b6e3c}
.pill.bad{border-color:rgba(220,53,69,.25);background:rgba(220,53,69,.06);color:#8a1f2c}
.pill.wait{border-color:rgba(244,123,32,.28);background:rgba(244,123,32,.08);color:var(--orange-dark)}
.pill.warn{border-color:rgba(244,123,32,.34);background:rgba(244,123,32,.10);color:var(--orange-dark)}
.pill.progress{border-color:rgba(21,101,192,.20);background:#E3F2FD;color:#1565C0}

/* Blur locked contact until purchase */
.blurred{
  filter:blur(6px);
  opacity:.65;
  user-select:none;
}
.blurred a{pointer-events:none}

/* Kontakt-Zelle mit Overlay-Buttons */
.contact-cell{
  position:relative;
  min-width:136px;
  text-align:left;
}
.contact-cell.is-locked .contact-cell-inner{
  visibility:hidden;
}
.contact-cell-inner{
  min-height:74px;
  width:min(170px, 100%);
  max-width:170px;
  margin-inline:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  text-align:left;
  gap:2px;
  padding-top:10px;
}
.contact-buy-overlay{
  position:absolute;
  left:8px;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0;
  background:transparent;
  border-radius:8px;
}

/* Small buttons for table actions */
.btn.sm{
  padding:7px 10px;
  font-size:12px;
  font-weight:1000;
}
.btn.ghost{
  background:rgba(255,255,255,.85);
  border-color:rgba(27,42,74,.14);
}
.btn.ghost:hover{border-color:rgba(244,123,32,.28)}
.lead-card-actions .btn-buy,
.contact-buy-overlay .btn-buy{
  min-height:34px;
  padding:6px 8px;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(244,123,32,.16);
}
.lead-action-group{
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  gap:8px;
  width:100%;
}
.contact-buy-overlay .lead-action-group{
  max-width:170px;
}
.contact-buy-overlay .lead-action-group.single-action{
  justify-content:flex-start;
}
.btn-action-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-buy.btn-buy-compact{
  min-width:116px;
  height:34px;
  min-height:34px;
  padding:0 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:0;
  background:#fff;
  border:1px solid #16A34A;
  color:#16A34A;
  box-shadow:0 2px 8px rgba(22,163,74,.08);
  box-sizing:border-box;
}
.btn-buy.btn-buy-compact:hover,
.btn-buy.btn-buy-compact:focus-visible{
  background:#F0FDF4;
  border-color:#16A34A;
  color:#15803D;
  box-shadow:0 2px 8px rgba(22,163,74,.10);
}
.btn-action-price-only{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.btn-action-price{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding-left:8px;
  border-left:1px solid rgba(255,255,255,.30);
  font-size:11px;
  font-weight:1000;
  letter-spacing:0;
}
.btn-reject-link{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(27,42,74,.74);
  padding:0;
  margin:0;
  font:inherit;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
  cursor:pointer;
  box-shadow:none;
  text-align:right;
}
.btn-reject-link .btn-action-label{
  opacity:.82;
}
.btn-reject-link:hover,
.btn-reject-link:focus-visible{
  color:var(--orange-dark);
  text-decoration:underline;
  text-underline-offset:2px;
  outline:none;
}
.btn-reject-compact{
  appearance:none;
  border:1px solid #e6e8ef;
  background:#f7f8fb;
  color:#a6afbd;
  height:34px;
  width:34px;
  min-width:34px;
  padding:0;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(27,42,74,.05);
  transition:width .2s ease, min-width .2s ease, padding .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
  overflow:hidden;
  white-space:nowrap;
  box-sizing:border-box;
}
.btn-reject-compact:hover,
.btn-reject-compact:focus-visible{
  border-color:rgba(220,53,69,.24);
  background:#fff5f5;
  color:#dc3545;
  width:98px;
  min-width:98px;
  padding:0 10px;
  gap:6px;
  outline:none;
}
.btn-reject-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  line-height:1;
  flex:0 0 auto;
}
.btn-reject-label{
  max-width:0;
  opacity:0;
  overflow:hidden;
  font-size:11px;
  font-weight:700;
  transition:max-width .2s ease, opacity .16s ease;
}
.btn-reject-compact:hover .btn-reject-label,
.btn-reject-compact:focus-visible .btn-reject-label{
  max-width:56px;
  opacity:1;
}

/* Modal (purchase gate / confirmations) */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(27,42,74,.30);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:10000;
}
.modal{
  width:min(720px, 100%);
  max-height:min(82vh, 820px);
  overflow:auto;
  border-radius:22px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.96);
  box-shadow:0 20px 70px rgba(0,0,0,.20);
}
.modal-head{
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--gray-200);
}
.modal-title{
  font-size:16px;
  font-weight:1000;
  color:var(--navy);
}
.modal-body{padding:16px 18px}
.modal-actions{
  padding:16px 18px 18px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--gray-200);
}
.modal-x{width:40px;height:40px}
@media(max-width:640px){
  .modal-actions{flex-direction:column}
  .modal-actions .btn{width:100%}
}

.split{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;
}

/* Leads toolbar (badge row + aligned controls row) */
.lead-tools{
  margin-top:14px;
  display:grid;
  grid-template-columns:220px auto minmax(260px, 340px);
  grid-template-areas:
    "filter toggle search";
  gap:10px 12px;
  align-items:end; /* same baseline for controls */
}
.lead-tools .tool-filter{grid-area:filter}
.lead-tools .tool-toggle{grid-area:toggle}
.lead-tools .tool-search{grid-area:search;min-width:260px;max-width:340px;width:100%;justify-self:end}
.lead-tools .tool-toggle .label{visibility:hidden}

@media(max-width:900px), (hover: none) and (pointer: coarse){
  .lead-tools{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "filter toggle"
      "search search";
  }
  .lead-tools .tool-search{min-width:0;max-width:none;width:100%;justify-self:stretch}
  .lead-tools .tool-filter{min-width:0}
  .lead-tools .tool-toggle{justify-self:end}
}

.footer{
  margin-top:18px;
  color:var(--text-light);
  font-size:12px;
}

/* Stats cards */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-top:14px;
}
@media(max-width:1024px){.stats-grid{grid-template-columns:repeat(2, 1fr)}}
@media(max-width:640px){.stats-grid{grid-template-columns:1fr}}
.stat{
  padding:14px;
  border-radius:16px;
  border:1px solid var(--gray-200);
  background:rgba(255,255,255,.78);
}
.stat-label{
  font-size:12px;
  font-weight:1000;
  color:var(--text-light);
  text-transform:uppercase;
  letter-spacing:1.1px;
}
.stat-value{
  margin-top:8px;
  font-size:26px;
  font-weight:1000;
  color:var(--navy);
  letter-spacing:-.6px;
}
.stat-sub{
  margin-top:4px;
  color:var(--text-light);
  font-size:13px;
  font-weight:700;
}

/* Simple chart */
.chart-wrap{margin-top:14px}
.chart-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 0;
}
.chart-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.chart-canvas{
  width:100%;
  height:260px;
  display:block;
  margin-top:10px;
  padding:0 12px 18px;
}
.chart-box{position:relative}
.chart-tooltip{
  position:absolute;
  pointer-events:none;
  z-index:5;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(244,123,32,.25);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  color:var(--navy);
  font-weight:1000;
  font-size:13px;
  max-width:min(260px, 80vw);
  white-space:nowrap;
}
.chart-tooltip .tt-sub{
  display:block;
  margin-top:2px;
  color:var(--text-light);
  font-weight:900;
  font-size:12px;
}
.legend{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--text-light);
  font-weight:800;
  font-size:12px;
}
.legend-dot{
  width:10px;height:10px;border-radius:999px;display:inline-block;
  border:1px solid rgba(0,0,0,.08);
}

/* Responsive visibility helpers */
.mobile-only{display:none}
.desktop-only{display:block}
@media(max-width:768px){
  .mobile-only{display:block}
  .desktop-only{display:none}
}

@media(max-width:1180px){
  .portal-requests-mobile{display:block}
  .portal-requests-desktop{display:none}
  .portal-requests-mobile .lead-card summary{
    flex-wrap:wrap;
  }
  .portal-requests-mobile .lead-card-actions{
    flex-wrap:wrap;
    gap:8px;
    justify-content:stretch;
  }
  .portal-requests-mobile .lead-card-actions .btn{
    flex:1 1 220px;
    min-width:0;
    text-align:center;
    justify-content:center;
  }
}

/* Mobile lead cards */
.lead-cards{display:flex;flex-direction:column;gap:10px}
.lead-card{
  border:1px solid var(--gray-200);
  background:var(--white);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  overflow:hidden;
}
.lead-card summary{
  list-style:none;
  cursor:pointer;
  padding:14px 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.lead-card summary::-webkit-details-marker{display:none}
.lead-card-head{min-width:0;flex:1}
.lead-card-title{font-weight:900;color:var(--navy);line-height:1.2}
.lead-card-title .premium-lead-badge{margin-left:4px}
.lead-card-sub{color:var(--text-light);font-size:13px;margin-top:4px;line-height:1.4}
.lead-card-body{padding:0 14px 14px}
.lead-card-body .line{padding-top:10px;border-top:1px solid var(--gray-200);margin-top:8px}
.lead-contact-list{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.lead-contact-row{display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:start}
.lead-contact-label{font-size:12px;font-weight:800;color:var(--text-light)}
.lead-contact-value{font-size:14px;line-height:1.35;color:var(--gray-700);word-break:break-word}
.lead-card-actions{margin-top:12px;display:flex;justify-content:flex-end}

.textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  padding:12px 14px;
  border-radius:14px;
  border:2px solid var(--gray-200);
  background:var(--white);
  font-size:15px;
  outline:none;
}
.textarea:focus{border-color:rgba(244,123,32,.55)}

/* Lead info block (cooler layout) */
.info-box{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid var(--gray-200);
  background:linear-gradient(180deg, rgba(27,42,74,.03), rgba(255,255,255,.72));
}
.info-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.info-title{
  font-weight:1000;
  color:var(--navy);
  letter-spacing:-.2px;
  font-size:14px;
}
.info-sub{
  color:var(--text-light);
  font-weight:800;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  margin-top:2px;
}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(244,123,32,.25);
  background:rgba(244,123,32,.08);
  color:var(--navy);
  font-weight:900;
  font-size:10px;
  text-align:center;
}
.lead-created-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.lead-age-row{
  display:flex;
  justify-content:flex-start;
  width:100%;
}
.lead-age-badge{
  min-width:72px;
}
.chip-mini.gray{
  border-color:rgba(27,42,74,.12);
  background:rgba(27,42,74,.05);
}
.chip-mini.green{background:rgba(39,174,96,.1);color:#27AE60;border-color:rgba(39,174,96,.22)}
.chip-mini.orange{background:rgba(244,123,32,.1);color:#F47B20;border-color:rgba(244,123,32,.25)}

@media (max-width: 640px) {
  .dd-panel{
    position:static;
    max-height:none;
    overflow:visible;
  }
  .dd-country{
    border:1px solid var(--gray-200);
    border-radius:var(--radius-sm);
    margin-bottom:8px;
  }
  .dd-country-head{
    padding:12px 14px;
    cursor:pointer;
    font-weight:1000;
  }
  .dd-country-body{
    padding:8px 14px 14px;
  }
  .region-grid{
    grid-template-columns:1fr !important;
  }
}
.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 12px;
  margin-top:12px;
}
@media(max-width:640px){
  .info-grid{grid-template-columns:1fr}
}
.info-item{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(27,42,74,.10);
  background:rgba(255,255,255,.74);
}
.info-item.full{grid-column:1 / -1}
.info-label{
  font-size:11px;
  font-weight:900;
  color:var(--text-light);
  text-transform:uppercase;
  letter-spacing:1.1px;
}
.info-value{
  margin-top:4px;
  font-weight:800;
  color:var(--navy);
  line-height:1.3;
  word-break:break-word;
  font-size:13px;
}

@media(max-width:768px){
  .btn.sm{
    padding:11px 14px;
    font-size:14px;
    min-height:44px;
  }
  .btn.primary{padding:14px 20px}

  /* Info grid earlier wrap */
  .info-grid{grid-template-columns:1fr}

  /* Modal as bottom-sheet */
  .modal-backdrop{
    align-items:flex-end;
    padding:0;
  }
  .modal{
    border-radius:20px 20px 0 0;
    max-height:90vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    width:100%;
    animation:slideUpModal .3s ease;
  }
  .modal-body{padding:24px 20px}
  .modal-actions{
    padding:16px 20px;
    padding-bottom:max(16px, env(safe-area-inset-bottom));
  }
  @keyframes slideUpModal{from{transform:translateY(100%)}to{transform:translateY(0)}}

  /* Dashboard cards: actions touch friendly */
  .lead-card-actions{
    flex-wrap:wrap;
    gap:8px;
    justify-content:stretch;
  }
  .lead-card-actions .btn{
    flex:1;
    min-width:0;
    text-align:center;
    justify-content:center;
  }
}
@media (max-width: 900px) {
  .premium-subscription-layout{
    gap:14px;
  }
  .premium-option-grid,
  .premium-duration-grid{
    grid-template-columns:1fr;
  }
  .premium-status-card{
    gap:14px;
  }
  .premium-status-head{
    align-items:flex-start;
    justify-content:flex-start;
  }
  .premium-status-body{
    display:block;
  }
  .premium-status-title{
    font-size:24px;
    max-width:none;
  }
  .premium-status-selection{
    width:100%;
    min-width:0;
  }
  .premium-status-actions{
    justify-content:flex-start;
  }
  .premium-selection-summary-compact{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .premium-pricing-grid {
    grid-template-columns:repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .premium-details{
    grid-template-columns:1fr;
    width:100%;
  }
  .premium-portfolio-meta{
    grid-template-columns:1fr;
  }
  .premium-portfolio-item{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .premium-portfolio-side{
    width:100%;
    text-align:left;
  }
  .premium-status-title{
    font-size:22px;
    text-wrap:pretty;
  }
  .premium-selection-summary-compact{
    grid-template-columns:1fr;
  }
  .premium-pricing-grid {
    grid-template-columns:1fr;
  }
  .premium-banner{
    align-items:flex-start;
  }
  .premium-remaining{
    margin-left:0;
    width:100%;
  }
}

