/* Page frame */
.ltly-wrap { padding: 18px 20px 22px; max-width: 1400px; }

.ltly-topbar{
  display:flex; align-items:center; 
  justify-content:space-between;
  margin-bottom: 28px;
}
.ltly-brand{
  display:flex; flex-direction:column; gap:2px;
}
.ltly-brand .title{
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  padding: 9px 0 4px;
  line-height: 1.3;
}
.ltly-brand .sub{
  font-size: 12px; color: #6b7280;
}

.ltly-actions{ display:flex; gap:10px; align-items:center; }
.ltly-btn.secondary {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

.ltly-page{
  padding: 18px 24px 28px;
  background: #ffffff;
}

/* Top Create button */
.ltly-create-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding:0 42px;
  border-radius:10px;
  font-weight:800;
  letter-spacing:.6px;
  text-decoration:none;
  color:#fff !important;
  background:#7fd10f;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  line-height:10px;
  gap:4px;
  align-items:center;

}
.ltly-create-btn span{font-size: 1.2rem;margin-top:-4px;}
.ltly-create-btn:hover{ filter: brightness(.98); }

/* Panels */
.ltly-panel{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  padding: 18px 18px;
  margin-bottom: 18px;
}
.ltly-filter-panel{ padding: 22px; }
.ltly-table-panel{ padding: 18px; }

/* Filter row */
.ltly-filter-row{
  display:flex;
  align-items:flex-end;
  gap: 26px;
  flex-wrap: wrap;
}
.ltly-field{
  min-width: 360px;
}
.ltly-label{
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ltly-input{
  width:100%;
  height:52px;
  border:1px solid #dfe6f1;
  border-radius:10px;
  padding: 0 14px;
  font-size:14px;
  background:#fff;
}
.ltly-input:focus{
  outline:none;
  border-color:#b8c7e6;
  box-shadow: 0 0 0 4px rgba(44,74,125,.10);
}
.ltly-input-icon{
  position:relative;
}
.ltly-cal-ico{
  position:absolute;
  right:12px;
  top:50%;
  transform: translateY(-50%);
  opacity:.6;
}

/* Apply/Reset buttons */
.ltly-actions-right{ display:flex; align-items:center; margin-left:auto; }
.ltly-action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:54px;
  min-width: 220px;
  padding:0 20px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.5px;
  text-decoration:none;
  border: none;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.ltly-apply{
  color:#fff;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
  margin-right: 0px;
}
.ltly-reset{
  color:#fff !important;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
}

/* Table toolbar */
.ltly-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 6px 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.ltly-show{
  display:flex;
  align-items:center;
  gap:12px;
  color: #6b7280;
  font-size: 12px;
}
.ltly-inline{ display:inline; margin:0; }
.ltly-mini-select{
  height:40px;
  border-radius:3px;
  border:1px solid #dfe6f1;
  padding: 0 12px;
  background:#fff;
}
.ltly-searchbar{ margin:0; }
.ltly-search{
  width: 280px;
  height:42px;
  border-radius:12px;
  border:1px solid #dfe6f1;
  padding: 0 14px;
  font-size:14px;
}
.ltly-search:focus{
  outline:none;
  border-color:#b8c7e6;
  box-shadow: 0 0 0 4px rgba(44,74,125,.10);
}

/* Table */
.ltly-table-wrap{ overflow:auto;border: 1px solid #eef2f7;
    border-radius: 3px; }
.ltly-table{
  width:100%;
  border-collapse: collapse;
  background:#fff;
}
.ltly-table thead th{
  text-align:left;
  font-size:12px;white-space: nowrap;
  background: #f9fafb;
  font-weight: 700;
  border-bottom: 1px solid #eef2f7;
  color: #2c3338;
}
.ltly-table tbody td{
  padding: 18px 14px;
  border-bottom:1px solid #eef2f7;
  vertical-align:middle;
  font-size:14px;
}
.ltly-center{ text-align:center; }
.ltly-empty{
  text-align:center;
  padding: 26px 14px !important;
  color:#6b7280;
}

/* Links colors like screenshot */
.ltly-link-blue{
  color:#0ea5e9;
  text-decoration:none;
  font-weight:600;
}
.ltly-link-blue:hover{ text-decoration:underline; }
.ltly-link-green{
  color:#7aa90d;
  text-decoration:none;
  font-weight:700;
}
.ltly-link-green:hover{ text-decoration:underline; }

.ltly-sub-actions{
  margin-top: 6px;
  font-size: 13px;
  color:#6b7280;
}
.ltly-sub-actions a{
  color:#6b7280;
  text-decoration:none;
}
.ltly-sub-actions a:hover{ text-decoration:underline; }
.ltly-dot{ margin: 0 6px; opacity:.6; }
.ltly-danger{ color:#dc2626 !important; }

/* Copy mini */
.ltly-copy-mini{
  border:none;
  background:transparent;
  padding:0;
  color:#6b7280;
  cursor:pointer;
  font-size:13px;
}
.ltly-copy-mini:hover{ text-decoration:underline; }

/* Muted date */
.ltly-muted-td{
  color:#64748b;
  white-space:nowrap;
}

/* Pagination */
.ltly-pagination{
  margin-top: 14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
.ltly-pagination a{
  text-decoration:none;
  padding:8px 12px;
  border:1px solid #e6eef8;
  border-radius:12px;
  color:#334155;
}
.ltly-pagination a.active{
  background:#2c4a7d;
  border-color:#2c4a7d;
  color:#fff;
}


/* ===== Create/Edit page like screenshot ===== */

.ltly-tabs{
  display: flex;
  gap: 13px;
  padding: 10px 1px 8px;
  align-items: center;
}
.ltly-tab{
  border:none;
  background: transparent;
  font-size: 22px;
  color:#585858;
  cursor:pointer;
  padding: 10px 14px;
  border-radius: 12px;
}
.ltly-tab.active{
  background: #c9ebd457;
  color: #13796f;
}

.ltly-tab-panel{ display:none; }
.ltly-tab-panel.active{ display:block;
    background: #fcfcfc;
    padding: 1rem;
    border-radius:3px;
}

.ltly-fieldblock{
  margin: 18px 0;
}
.ltly-label3{
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ltly-req{ color:#ef4444; margin-left: 4px; }

.ltly-input3{
  width:100%;
  height: 56px;
  border-radius: 6px;
  border:1px solid #cfd8e3;
  padding: 0 14px;
  font-size: 20px;
  background:#fff;
}
.ltly-input3:focus{
  outline:none;
  border-color:#9fb2cf;
  box-shadow: 0 0 0 4px rgba(44,74,125,.10);
}

/* URL row like screenshot */
.ltly-url-row{
  display:grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 18px;
  align-items:center;
  margin: 14px 0;
}
.ltly-vars-btn{
  height:56px;
  border-radius: 8px;
  border: 2px solid #7d8fb8;
  background:#fff;
  font-weight: 800;
  font-size: 18px;
  color:#6b7aa3;
  cursor:pointer;
}
.ltly-weight-input{ text-align:left; }

.ltly-add-url{
  margin-bottom: 14px;
  height: 72px;
  width: 160px;
  border-radius: 12px;
  border:none;
  cursor:pointer;
  font-weight: 900;
  font-size: 22px;
  color:#fff;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* Upgrade panel (PrettyLinks-like) */
.ltly-upgrade-pro{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:10px;
  padding:26px 24px 22px;
  max-width:980px;
  margin: 18px auto;
}

.ltly-up-hero{
  background:#fff;
  border-radius:8px;
  padding:18px 18px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.ltly-up-logo{
  font-size:56px;
  line-height:1;
  font-weight:300;
  letter-spacing:1px;
  color: #147c72;
  position:relative;
}

.ltly-up-badge{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background:#7c8aa7;
  color:#fff;
  vertical-align:top;
  margin-left:10px;
  transform: translateY(0px);
}

.ltly-up-tagline{
  text-align:center;
  margin:18px 0 10px;
  font-size:22px;
  color:#fff;
}

.ltly-up-sub{
  text-align:center;
  margin: 0px 0 30px;
  font-size:18px;
  color: #f7f7f7;
}

.ltly-up-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  justify-content:center;
  max-width:100%;
  margin:0 auto;
}

.ltly-up-list{
  list-style:none;
  padding:0;
  margin:0;
}

.ltly-up-list li{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0px 0;
}

.ltly-up-check{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.ltly-up-pill{
  background:#cfcfcf;
  padding:10px 14px;
  border-radius:2px;
  font-size:16px;
  color:#ffffff;
  display:inline-block;
  width: 100%;
}

.ltly-up-cta-wrap{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid #efefef2e;
  display:flex;
  justify-content:center;
}

.ltly-up-cta{
  background:#f39c12;
  color:#fff !important;
  text-decoration:none;
  font-size:22px;
  font-weight:800;
  padding:18px 34px;
  border-radius:10px;
  display:inline-block;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.ltly-up-cta:hover{
  filter: brightness(0.95);
}

@media (max-width: 860px){
  .ltly-up-logo{ font-size:40px; }
  .ltly-up-grid{ grid-template-columns:1fr; }
  .ltly-up-cta{ font-size:22px; width:100%; text-align:center; }
}

.ltly-rowlabel{
  display:flex;
  align-items:center;
  gap: 10px;
}
.ltly-info{
  width: 12px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 400;
  color: #fff;
  font-size: 9px;
  background: #393b41;
  margin-top: -9px;
  margin-left: -4px;
}
/* Remove URL button */
.ltly-url-row {
  position: relative;
}

/* If your URL row currently has 2 columns, make it 3 to fit remove */
.ltly-url-row{
  display:grid;
  grid-template-columns: 1fr 140px 48px; /* url | weight | remove */
  gap: 14px;
  align-items:center;
}



.ltly-remove-url{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e6eef8;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #ef4444;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.ltly-remove-url:hover{
  background: #fff5f5;
}
/* bottom buttons */
.ltly-actions2{
  display:flex;
  gap: 16px;
  margin-top: 14px;
}
.ltly-save-btn{
  height: 78px;
  padding:0 15px;
  border-radius: 14px;
  border:none;
  cursor:pointer;
  font-weight: 900;
  font-size: 20px;
  color:#fff;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.ltly-save-btn.alt{
  min-width: 340px;
}

/* Hide extra options (still saved) */
.ltly-hidden{
  display:none;
}

/* Upgrade box */
.ltly-upgrade{
  margin-top: 18px;
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  padding: 22px;
}
.ltly-up-title{
  font-size: 20px;
  font-weight: 900;
  color:#16233c;
}
.ltly-up-text{
  margin-top: 10px;
  color:#6b7280;
  font-size: 15px;
}
.ltly-up-btn{
  margin-top: 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration:none;
  color:#fff !important;
  font-weight: 900;
  letter-spacing:.4px;
  background:#2c4a7d;
}

.daterangepicker{
  left: 300px !important;
}

/* Responsive */
@media (max-width: 1100px){
  .ltly-field{ min-width: 280px; }
  .ltly-action-btn{ min-width: 180px; }
}


/* =========================================================
   LinksTrackly Mini Tracker - GLOBAL UI SCALE FIX
   Applies ONLY on plugin admin pages (not whole WP admin)
   ========================================================= */

/* WP adds body classes like:
   - toplevel_page_ltly_links
   - linkstrackly_page_ltly_reports  (depends on menu slug)
   - ltly_links_page_ltly_reports    (sometimes WP formats like this)
   We'll cover common patterns safely by using id + our wrappers.
*/

/* Force sane base typography inside plugin pages */
body.toplevel_page_ltly_links .ltly-page,
body.toplevel_page_ltly_links .ltly-panel,
body.toplevel_page_ltly_links .ltly-card,
body.toplevel_page_ltly_links .ltly-wrap,
body.toplevel_page_ltly_links .ltly-table,

body.admin_page_ltly_links .ltly-page,
body.admin_page_ltly_reports .ltly-page,
body.admin_page_ltly_settings .ltly-page,
body.admin_page_ltly_links .ltly-panel,
body.admin_page_ltly_reports .ltly-panel,
body.admin_page_ltly_settings .ltly-panel,

body[class*="page_ltly_"] .ltly-page,
body[class*="page_ltly_"] .ltly-panel,
body[class*="page_ltly_"] .ltly-card,
body[class*="page_ltly_"] .ltly-wrap,
body[class*="page_ltly_"] .ltly-table {
  font-size: 14px;
  line-height: 1.35;
}

/* Reduce overall paddings so it doesn't feel “zoomed” */
body[class*="page_ltly_"] .ltly-page,
body.toplevel_page_ltly_links .ltly-page {
  padding: 14px 18px 18px !important;
}

/* Panels/cards */
body[class*="page_ltly_"] .ltly-panel,
body[class*="page_ltly_"] .ltly-card {
  border-radius: 14px !important;
  padding: 16px !important;
}

/* Header / topbar buttons */
body[class*="page_ltly_"] .ltly-create-btn {
    height: 33px !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    border-radius: 3px !important;
    font-weight: 600;
    text-transform: capitalize !important;
    background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
}

body[class*="page_ltly_"] .ltly-action-btn {
  height: 33px !important;
  min-width: 90px !important;
  font-size: 14px !important;
  border-radius: 3px !important;
  font-weight: 600;
  border: 1px solid #32d057;
}

body[class*="page_ltly_"] a.ltly-action-btn{
  color: #32d057;
}

/* Inputs/selects/search */
body[class*="page_ltly_"] .ltly-input,
body[class*="page_ltly_"] .ltly-search,
body[class*="page_ltly_"] .ltly-mini-select,
body[class*="page_ltly_"] .ltly-input2,
body[class*="page_ltly_"] .ltly-input3 {
  height: 33px !important;
  font-size: 14px !important;
  border-radius: 3px !important;
  border: 1px solid #e5e7eb;
  padding: 0 12px;
  background: #fff;
  outline: none;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
  max-width: 100%;
}


body[class*="page_ltly_"] .ltly-label,
body[class*="page_ltly_"] .ltly-label2,
body[class*="page_ltly_"] .ltly-label3 {
  /* font-size: 14px !important; */
  margin-bottom: 8px !important;
}
body[class*="page_ltly_"] .daterangepicker select.monthselect, body[class*="page_ltly_"] .daterangepicker select.yearselect{
  border-radius:3px;
  border:1px solid #dfe6f1;
  padding: 0 12px;
  background:#fff;
}

/* Tabs (edit page) */
body[class*="page_ltly_"] .ltly-tab {
  font-size: 14px !important;
  padding: 8px 12px !important;
  border-radius: 3px !important;
  background: #fcfcfc;
  font-weight: 500;
}
body[class*="page_ltly_"] .ltly-tab.active {
  background: #c9ebd457 !important;
}

/* URL row (edit page) */
body[class*="page_ltly_"] .ltly-url-row {
  grid-template-columns: 1fr 120px 100px !important;
  gap: 12px !important;
}
body[class*="page_ltly_"] .ltly-vars-btn {
  height: 44px !important;
  font-size: 13px !important;
}
body[class*="page_ltly_"] .ltly-add-url {
  height: 33px !important;
  min-width: 90px !important;
  font-size: 14px !important;
  border-radius: 3px !important;
  width: max-content;
  font-weight: 600;
}

/* Save buttons (edit page) */
body[class*="page_ltly_"] .ltly-save-btn {
  height: 33px !important;
  font-size: 14px !important;
  border-radius: 3px !important;
  font-weight: 600;
}
body[class*="page_ltly_"] .ltly-save-btn.alt {
  min-width: 90px !important;
}

/* Table sizing (list + reports) */
body[class*="page_ltly_"] .ltly-table thead th {
  font-size: 12px !important;
  padding: 12px 12px !important;
}
body[class*="page_ltly_"] .ltly-table tbody td {
  font-size: 14px !important;
  padding: 12px !important;
}

/* Pagination buttons */
body[class*="page_ltly_"] .ltly-pagination a {
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
/* daterangepicker look like screenshot */
.daterangepicker{
  border-radius: 3px !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
  border: 0px solid #e6eef8 !important;
}
.daterangepicker .ranges li{
  padding: 8px 14px !important;
  font-size: 13px !important;
  border-radius: 0px !important;
}
.daterangepicker .ranges li.active{
  background: #2ec45a !important;
  color: #fff !important;
}
.daterangepicker .calendar-table{
  border: none !important;
}
.daterangepicker .drp-calendar.left .calendar-table,
.daterangepicker .drp-calendar.right .calendar-table{
  border-radius: 4px !important;
}
.daterangepicker .calendar-table th{
  font-size: 12px !important;
  color: #667085 !important;
}
.daterangepicker td.active,
.daterangepicker td.active:hover{
  background-color:#2ec45a !important;
  border-color:#2ec45a !important;
  border:none;
}
.daterangepicker .drp-buttons{
  padding: 14px 16px !important;
}
.daterangepicker .calendar-table th, .daterangepicker .calendar-table td{
  width:35px;
  height:30px!important
}
.daterangepicker .drp-buttons .btn{
  margin-left: 8px;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  height: 33px;
  border-radius: 3px !important;
  min-width: 90px;
  font-weight: 600;
}
.daterangepicker .drp-buttons .btn.applyBtn{
  background-color:#2ec45a !important;
  border-color:#2ec45a !important;
}
/* Small helper text */
body[class*="page_ltly_"] .ltly-muted,
body[class*="page_ltly_"] .ltly-help,
body[class*="page_ltly_"] .ltly-up-text {
  font-size: 12px !important;
}

/* Prevent huge shadows/padding from making it feel “bigger” */
body[class*="page_ltly_"] .ltly-panel,
body[class*="page_ltly_"] .ltly-card {
  box-shadow: 0 6px 20px rgba(0,0,0,.10) !important;
}

/* =============================================
   Reports Page Styles (moved from reports.php)
   ============================================= */
.ltly-wrap { padding: 18px 20px 22px; max-width: 1400px; }

.ltly-topbar{
  display:flex; align-items:center;
  justify-content:space-between;
  margin-bottom: 28px;
}
.ltly-brand{
  display:flex; flex-direction:column; gap:2px;
}
.ltly-brand .title{
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  padding: 9px 0 4px;
  line-height: 1.3;
}
.ltly-brand .sub{
  font-size: 12px; color: #6b7280;
}
.ltly-actions{ display:flex; gap:10px; align-items:center; }

.ltly-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow: 0 6px 24px rgba(16,24,40,.06);
  overflow:hidden;
}

.ltly-toolbar{
  display:flex; flex-wrap:wrap;
  gap:10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  align-items:center;
}

.ltly-field{
  display:flex; flex-direction:column; gap:5px;
  min-width: 170px;
}
.ltly-field label{
  font-size: 11px;
  color:#6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ltly-field select,
.ltly-field input[type="text"]{
  height: 33px;
  border-radius: 3px;
  border:1px solid #e5e7eb;
  padding: 0 12px;
  background:#fff;
  outline:none;
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}
.ltly-field select:focus,
.ltly-field input[type="text"]:focus{
  border-color:#93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.ltly-field.ltly-range{ min-width: 290px; }

.ltly-spacer{ flex:1; }

.ltly-meta{
  display:flex; align-items:center; gap:10px;
  font-size: 13px;
  color:#6b7280;
  padding-right: 6px;
}
.ltly-pill{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#f3f4f6;
  color:#111827;
  font-weight: 600;
  font-size: 12px;
}

.ltly-btn{
  height: 33px !important;
  border-radius: 3px !important;
  padding: 0 14px !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  font-weight: 600 !important;
  color:#fff !important;
  border-color:#fff !important;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%) !important;
  justify-content: center;
  width: max-content;
  min-width:90px;
}
.ltly-btn.secondary{
  background:#fff !important;
  border:1px solid #e5e7eb !important;
  color:#111827 !important;
}

.ltly-table-wrap{ padding: 10px 12px 14px; }
.ltly-table{
  border:1px solid #eef2f7;
  border-radius: 3px;
  overflow:hidden;
}
.ltly-table table{ margin:0; border:none; }
.ltly-table thead th{
  background:#f9fafb;
  color:#111827;
  font-weight: 700;
  border-bottom:1px solid #eef2f7;
  padding: 12px 10px;
}
.ltly-table tbody td{
  padding: 12px 10px;
  border-bottom:1px solid #f1f5f9;
  vertical-align: top;
}
.ltly-table tbody tr:hover td{
  background:#fbfdff;
}
.ltly-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.ltly-url{ max-width: 520px; word-break: break-all; color:#111827; }
.ltly-badge{
  display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px;
  font-size:12px; font-weight:700;
  border:1px solid #e5e7eb;
  background:#fff;
}
.ltly-badge.yes{ background:#ecfdf5; border-color:#bbf7d0; color:#065f46; }
.ltly-badge.no{ background:#fff; }
.ltly-device{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600;
  color:#111827;
}
.ltly-muted{ color:#6b7280;text-align:center;background:white; }

/* =============================================
   Link Edit Page Styles (moved from link-edit.php)
   ============================================= */
.ltly-upgrade-pro{
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .15);
  border: 1px solid rgba(255,255,255,.18);
}

.ltly-up-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}

.ltly-up-logo{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.ltly-up-badge{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgb(20 124 114);
}

.ltly-up-tagline{
  text-transform:capitalize;
  font-size: 24px;
  font-weight: 700;
  margin: 15px 0 0px;
}

.ltly-up-sub{
  font-size: 13px;
  opacity: .95;
  margin-bottom: 25px;
}

.ltly-up-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.ltly-up-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ltly-up-list li{
  display:flex;
  align-items:center;
  gap:10px;
}

.ltly-up-check{
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  flex: 0 0 22px;
}

.ltly-up-pill{
  display:inline-flex;
  padding: 10px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 700;
  line-height: 1.25;
  width:100%;
}

.ltly-up-cta-wrap{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

.ltly-up-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 62px;
  border-radius: 8px;
  text-decoration:none;
  font-weight: 900;
  color:#0b1220;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

.ltly-up-cta:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
}

.ltly-up-cta{
  color:#fff;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}

/* Modal base */
.ltly-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.ltly-modal.is-open{ display: block; }

.ltly-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .38);
}

.ltly-modal-card{
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: 16vh auto 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  animation: ltlyPop .18s ease-out;
}

.ltly-modal-topbar{
  height: 4px;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
}

.ltly-modal-body{
  padding: 26px 26px 22px;
}

.ltly-modal-title{
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.ltly-modal-text{
  font-size: 15px;
  color: #585858;
  line-height: 1.45;
  margin-bottom: 25px;
}

.ltly-modal-actions{
  display:flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.ltly-modal-btn{
  height: 33px;
  padding: 0 16px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  min-width: 90px;
}

.ltly-modal-btn.primary{
  color: #fff;
  background: linear-gradient(90deg, #147b73 0%, #33d256 100%);
  box-shadow: 0 12px 22px rgba(34,197,94,.22);
}

.ltly-modal-btn.ghost{
  color: #111827 !important;
  background: #e5e7eb;
}

.ltly-modal-btn:hover{ transform: translateY(-1px); }
.ltly-back-btn{
  text-decoration: none;
  color:#585858;
}
.ltly-back-btn:hover{
  color:#000;
}

@keyframes ltlyPop{
  from{ transform: translateY(8px); opacity: .6; }
  to{ transform: translateY(0); opacity: 1; }
}

@media (max-width: 960px){
  .ltly-up-grid{ grid-template-columns: 1fr; }
}
body.ltly-modal-open { overflow: hidden; }

/* =============================================
   Cloak/Redirect Iframe Styles (moved from class-redirect.php)
   ============================================= */
.ltly-cloak-html,
.ltly-cloak-body {
  margin: 0;
  height: 100%;
}
.ltly-cloak-iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.ltly-ml-8 {
    margin-left: 8px;
}

.ltly-text-no-decoration {
    text-decoration: none;
}
