.fne-v15-wrap{max-width:1220px;margin:0 auto;font-family:Inter,Arial,sans-serif;color:#1f2937}
.fne-v15-card{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border:1px solid #e5edf5;border-radius:20px;padding:28px;margin-bottom:20px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.fne-v15-card h2{font-size:32px;line-height:1.1;margin:0 0 22px 0;color:#0f172a}
.fne-v15-card h3{margin-top:24px;margin-bottom:14px;font-size:20px;color:#111827}
.fne-v15-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
.fne-v15-wrap label{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:14px;color:#334155}
.fne-v15-wrap input{padding:10px 12px;border:1px solid #d9e4ef;border-radius:14px;min-height:48px;font-size:16px;width:100%;box-sizing:border-box;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
.fne-v15-wrap input:focus{outline:none;border-color:#7c9cff;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.fne-v15-table-wrap{overflow:visible}
.fne-v15-input-table,.fne-v15-result-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e8eef5;border-radius:18px;overflow:hidden}
.fne-v15-input-table th,.fne-v15-result-table th{background:#f8fafc;color:#475569;font-size:13px;text-transform:uppercase;letter-spacing:.05em}
.fne-v15-input-table th,.fne-v15-input-table td,.fne-v15-result-table th,.fne-v15-result-table td{padding:14px 12px;border-bottom:1px solid #e4ebf2;text-align:left;white-space:normal;word-break:break-word}
.fne-v15-result-table tr:hover td{background:#fbfdff}
.fne-calc-btn,.fne-toggle-btn{background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);color:#fff;border:none;border-radius:14px;padding:14px 22px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 10px 20px rgba(37,99,235,.18)}
.fne-toggle-wrap{margin-top:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.fne-toggle-note{margin:0;color:#64748b;font-size:13px}
.fne-summary-cards{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1fr;gap:16px;margin:0 0 18px}
.fne-summary-card{background:#ffffff;border:1px solid #e7eef6;border-radius:18px;padding:18px 20px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.fne-summary-card.hero-card{background:linear-gradient(135deg,#eff6ff 0%,#ffffff 100%);border-color:#cfe0ff}
.fne-summary-card span{display:block;color:#64748b;font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.fne-summary-card strong{display:block;font-size:30px;line-height:1.05;color:#0f172a}
.fne-summary-card small{display:block;margin-top:6px;color:#64748b;font-size:13px}
.fne-table{width:100%;table-layout:fixed}
.fne-basic{display:table-cell}
.fne-advanced{display:none}
.show-advanced .fne-advanced{display:table-cell !important}
@media (max-width:1200px){
  .fne-v15-grid,.fne-summary-cards{grid-template-columns:1fr 1fr}
}
@media (max-width:700px){
  .fne-v15-grid,.fne-summary-cards{grid-template-columns:1fr}
  .fne-v15-card{padding:18px;border-radius:16px}
  .fne-v15-card h2{font-size:26px}
  .fne-v15-result-table th,.fne-v15-result-table td{font-size:12px;padding:10px 8px}
}

.fne-v17-gate{max-width:860px;margin:24px auto;padding:24px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;font-family:Arial,sans-serif}
.fne-v17-msg{padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb;margin-bottom:12px}
.fne-v17-consent{display:flex;gap:8px;align-items:flex-start}.fne-v17-consent input{width:auto;margin-top:3px}
.fne-v17-top{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.fne-v17-card{padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#f8fafc}.fne-v17-card span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;margin-bottom:6px}.fne-v17-card strong{font-size:24px;color:#111827}
@media (max-width:700px){.fne-v17-top{grid-template-columns:1fr}}


.fne-subscription-note{
  padding:10px 14px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:10px;
  display:inline-block;
  margin-right:12px;
}
.fne-excel-btn{
  background:#0f766e;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  margin-left:10px;
}
.fne-excel-btn:hover{ opacity:0.92; }

.fne-th-tip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:help;
  position:relative;
}
.fne-tip-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:50%;
  font-size:11px;
  line-height:1;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  font-weight:700;
}
.fne-table th .fne-th-tip:hover{
  color:#1d4ed8;
}

.fne-profi-switch-wrap{
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  background:#f8fbff;
  border-radius: 12px;
}
.fne-profi-switch-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:#1e3a8a;
}
.fne-profi-note{
  margin-top:8px;
  font-size:13px;
  color:#475569;
}
.fne-profi-grid{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap:14px;
}
@media (max-width: 900px){
  .fne-profi-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.fne-profi-monthly-production{
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  background: #ffffff;
  border-radius: 12px;
}

.fne-profi-grid.is-visible,
.fne-profi-monthly-production.is-visible{
  animation: fneProfiFade .22s ease-out;
}
.fne-profi-switch-wrap.is-active{
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(59,130,246,.08);
}
.fne-profi-monthly-production{
  scroll-margin-top: 100px;
}
@keyframes fneProfiFade{
  from{opacity:0; transform:translateY(-4px);}
  to{opacity:1; transform:translateY(0);}
}


/* ===== UI Upgrade overrides ===== */
.fne-v15-wrap,.fne-v17-wrap{color:#0f172a}
.fne-v15-card{background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid #dbe4ee;box-shadow:0 12px 30px rgba(15,23,42,.07)}
.fne-v15-card h2{font-weight:800;letter-spacing:-.02em}
.fne-v15-wrap label{color:#0f172a;font-size:15px}
.fne-v15-wrap input,
.fne-v17-wrap input[type="number"],
.fne-v17-wrap input[type="text"],
.fne-v17-wrap input[type="email"],
.fne-v17-wrap select{
  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid #cbd5e1 !important;
  border-radius:14px !important;
  min-height:48px;
  font-size:16px !important;
  font-weight:600 !important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.03);
}
.fne-v15-wrap input::placeholder,
.fne-v17-wrap input::placeholder{color:#94a3b8 !important;opacity:1}
.fne-v15-wrap input:focus,
.fne-v17-wrap input[type="number"]:focus,
.fne-v17-wrap input[type="text"]:focus,
.fne-v17-wrap input[type="email"]:focus,
.fne-v17-wrap select:focus{
  outline:none !important;
  border-color:#22c55e !important;
  box-shadow:0 0 0 4px rgba(34,197,94,.12) !important;
}
.fne-v17-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border:1px solid #dbe4ee !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  padding:18px 18px !important;
}
.fne-v17-card span{color:#64748b !important;font-size:12px !important;font-weight:700 !important;letter-spacing:.04em;text-transform:uppercase}
.fne-v17-card strong{color:#0f172a !important;font-weight:800 !important;line-height:1.2}
.fne-subscription-status.status-active,
.fne-subscription-end.has-date,
.fne-remaining-count.is-unlimited{color:#16a34a !important}
.fne-profi-switch-wrap{
  padding:16px 18px !important;
  border:1px solid rgba(34,197,94,.18) !important;
  background:linear-gradient(180deg,rgba(34,197,94,.08) 0%,rgba(34,197,94,.03) 100%) !important;
  border-radius:18px !important;
}
.fne-profi-switch-label{color:#0f172a !important;font-weight:700 !important}
.fne-profi-note{color:#475569 !important;line-height:1.55}
.fne-profi-grid{
  gap:16px !important;
}
.fne-profi-monthly-production{
  border:1px solid rgba(34,197,94,.18) !important;
  background:#ffffff !important;
  border-radius:18px !important;
}
.fne-v15-input-table,.fne-v15-result-table{
  border:1px solid #dbe4ee !important;
  border-radius:18px !important;
  overflow:hidden;
}
.fne-v15-input-table th,.fne-v15-result-table th{background:#f8fafc !important;color:#64748b !important;font-size:12px !important}
.fne-v15-input-table td,.fne-v15-result-table td{color:#0f172a !important}
.fne-calc-btn,.fne-toggle-btn,.fne-excel-btn{
  border-radius:14px !important;
  min-height:50px;
  font-size:16px !important;
  font-weight:800 !important;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fne-calc-btn{
  background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%) !important;
  box-shadow:0 12px 28px rgba(34,197,94,.24) !important;
}
.fne-calc-btn:hover,.fne-toggle-btn:hover,.fne-excel-btn:hover{transform:translateY(-1px)}
.fne-toggle-btn{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%) !important;box-shadow:0 10px 24px rgba(15,23,42,.18) !important}
.fne-excel-btn{background:linear-gradient(135deg,#0f766e 0%,#0d9488 100%) !important;box-shadow:0 10px 24px rgba(13,148,136,.18) !important}
.fne-v17-gate{
  border:1px solid #dbe4ee !important;
  border-radius:20px !important;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
}
.fne-v17-msg{background:#f8fafc !important;border:1px solid #e2e8f0 !important;color:#334155 !important}
.fne-v17-consent{color:#475569}
.fne-v17-consent input{accent-color:#22c55e}
.fne-v17-plan-email-input{background:#fff !important;color:#0f172a !important;border:1px solid #cbd5e1 !important;border-radius:14px !important;min-height:48px;padding:10px 14px !important}
.fne-v17-plan-submit{
  background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  min-height:48px;
  padding:12px 22px !important;
  font-weight:800 !important;
  box-shadow:0 12px 28px rgba(34,197,94,.24) !important;
}
@media (max-width:700px){
  .fne-v17-card strong{font-size:20px !important}
  .fne-v15-wrap input,.fne-v17-wrap input[type="number"],.fne-v17-wrap input[type="text"],.fne-v17-wrap input[type="email"],.fne-v17-wrap select{min-height:44px;font-size:15px !important}
}


/* Hide basic fields in browser view when Profi mode is active */
.fne-basic-mode.is-hidden-by-profi {
  display: none !important;
}


/* ===== Access gate readability upgrade ===== */
.fne-v17-gate{
  max-width: 860px;
  margin: 24px auto;
  padding: 28px !important;
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.08) !important;
  color:#0f172a !important;
}
.fne-v17-gate h3{
  margin:0 0 14px 0;
  color:#0f172a !important;
  font-size:32px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.02em;
}
.fne-v17-gate p{
  color:#475569 !important;
  font-size:17px !important;
  line-height:1.7 !important;
  font-weight:500 !important;
  margin:0 0 18px 0;
}
.fne-v17-gate form{
  display:block;
}
.fne-v17-gate label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#334155 !important;
  font-size:15px !important;
  font-weight:700 !important;
  margin-bottom:14px;
}
.fne-v17-gate input[type="email"]{
  background:#ffffff !important;
  color:#0f172a !important;
  border:2px solid #cbd5e1 !important;
  border-radius:14px !important;
  min-height:54px;
  padding:0 16px !important;
  font-size:16px !important;
  font-weight:600 !important;
  box-shadow:none !important;
}
.fne-v17-gate input[type="email"]::placeholder{
  color:#94a3b8 !important;
  opacity:1;
}
.fne-v17-gate input[type="email"]:focus{
  border-color:#22c55e !important;
  box-shadow:0 0 0 4px rgba(34,197,94,.12) !important;
  outline:none !important;
}
.fne-v17-gate .fne-v17-consent{
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  gap:10px !important;
  color:#334155 !important;
  font-size:14px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
  margin:2px 0 18px !important;
}
.fne-v17-gate .fne-v17-consent input{
  width:16px !important;
  height:16px !important;
  accent-color:#22c55e;
  margin-top:3px;
  flex:0 0 auto;
}
.fne-v17-gate button[type="submit"]{
  background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%) !important;
  color:#ffffff !important;
  border:0 !important;
  border-radius:14px !important;
  min-height:50px;
  padding:14px 24px !important;
  font-size:16px !important;
  font-weight:800 !important;
  box-shadow:0 12px 28px rgba(34,197,94,.22) !important;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fne-v17-gate button[type="submit"]:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(34,197,94,.28) !important;
}
.fne-v17-msg{
  background:#f8fafc !important;
  border:1px solid #e2e8f0 !important;
  color:#334155 !important;
  border-radius:12px !important;
  padding:12px 14px !important;
  margin-bottom:14px !important;
}
@media (max-width:700px){
  .fne-v17-gate{padding:20px !important;border-radius:18px !important;}
  .fne-v17-gate h3{font-size:26px;}
  .fne-v17-gate p{font-size:15px !important;line-height:1.6 !important;}
  .fne-v17-gate input[type="email"]{min-height:48px;font-size:15px !important;}
  .fne-v17-gate button[type="submit"]{width:100%;}
}
