/* HostingPro Theme CSS (FULL / cleaned)
   - Unifies duplicated rules
   - Makes ALL pages full width (including WHMCS .container)
   - Scopes Service Details styles so they don't override global .hp-card/.hp-empty
   - Keeps your existing visual (Home + Services UX Pilot)
*/

:root{
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6eaf2;

  --brand: #6b3cc9;

  --shadow: 0 10px 24px rgba(15, 23, 42, .08);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, .06);

  /* utility */
  --blue-50: #eff6ff;
  --green-50: #ecfdf5;
  --orange-50: #fff7ed;
  --red-50: #fef2f2;

  --card-soft: #f8fafc;

  /* icon helpers */
  --ico-blue: #0ea5e9;
  --ico-green: #22c55e;
  --ico-orange: #f97316;
  --ico-red: #ef4444;
}

html, body{
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

a{ color: inherit; }
*{ box-sizing: border-box; }

/* ==================================
   GLOBAL: make WHMCS pages FULL WIDTH
   (Six templates often wrap content in .container)
================================== */
.hp-content .container,
.hp-content .container-fluid,
.hp-content .container-sm,
.hp-content .container-md,
.hp-content .container-lg,
.hp-content .container-xl,
.hp-content .container-xxl{
  width: 100%;
  max-width: none !important;
}

/* If some pages have a centered wrapper */
.hp-content .main-content,
.hp-content .main-body,
.hp-content .content-wrapper{
  max-width: none !important;
  width: 100%;
}

/* ==================================
   Layout base
================================== */
.hp-layout{
  display:flex;
  min-height:100vh;
  background: var(--bg);
}

/* ==================================
   MUDA A COR DO MENU PRINCIPAL LADO ESQUERDO
================================== */
.hp-sidebar {
  width: 260px;
  background: linear-gradient(
    180deg,
    #0F0D2B 0%,
    #1E1B3A 20%,
    #3D2E6B 45%,
    #2D2755 65%,
    #1A1535 85%,
    #0F0D2B 100%
  );
  color: #fff;
  padding: 18px 14px;
  position: relative;
  overflow: hidden;
}

/* Grid tech */
.hp-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px);
  background-size: 35px 35px;
  pointer-events: none;
  z-index: 0;
}

/* Glow laranja mais visível */
.hp-sidebar::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(30px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Pontos tech (partículas) */
.hp-sidebar .tech-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(249, 115, 22, 0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(99, 102, 241, 0.20) 1px, transparent 1px),
    radial-gradient(circle, rgba(249, 115, 22, 0.15) 1.5px, transparent 1.5px);
  background-size: 80px 90px, 120px 130px, 60px 70px;
  background-position: 10px 10px, 40px 60px, 70px 30px;
  pointer-events: none;
  z-index: 0;
  animation: driftDots 20s linear infinite;
}

.hp-sidebar > * {
  position: relative;
  z-index: 1;
}

/* Animação do glow pulsando */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Animação dos pontos se movendo sutilmente */
@keyframes driftDots {
  0% { background-position: 10px 10px, 40px 60px, 70px 30px; }
  100% { background-position: 10px 100px, 40px 160px, 70px 130px; }
}



.hp-brand{
  height: 140px;            /* antes: 320px */
  padding-top: 22px;        /* antes: 30px */
  padding-bottom: 14px;     /* antes: 20px */
  overflow: hidden;         /* melhor: evita “vazar” */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-brand-logo{
  width: 100%;
  max-width: 210px;         /* antes: 240px */
  height: 170px;            /* antes: 100% */
  background: url("./logo_template.png") no-repeat center;
  background-size: contain; /* antes: 140% */
}

/* Se ainda parecer pequeno, aumente a altura: 110px / 120px */
@media (max-width: 860px){
  .hp-brand-logo{ height: 82px; }     /* mobile um pouco menor */
}

.hp-brand-name{
  font-weight:900;
  letter-spacing: .2px;
}

.hp-brand-sub{
  opacity:.85;
  font-size:12px;
}

.hp-nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}

.hp-nav-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  opacity:.95;
}

.hp-nav-item:hover{
  background:rgba(255,255,255,.12);
}

.hp-nav-divider{
  height:1px;
  background:rgba(255,255,255,.18);
  margin:10px 8px;
}

/* Online badge (green dot) for chat */
.hp-badge-online{
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  animation: hp-online-pulse 2s ease-in-out infinite;
}
@keyframes hp-online-pulse{
  0%, 100%{ box-shadow: 0 0 6px rgba(34,197,94,.6); }
  50%{ box-shadow: 0 0 12px rgba(34,197,94,.9); }
}

.hp-ico{
  width:18px;
  display:inline-flex;
  justify-content:center;
}

.hp-main{
  flex:1;
  padding:18px 22px;
}

.hp-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
}

.hp-page-title{
  font-weight:900;
  font-size:18px;
}

.hp-page-subtitle{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.hp-content{
  padding:24px 28px;
  max-width:none;
  width:100%;
  margin:0;
  flex:1 0 auto;
}

/* Buttons */
.hp-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  border:0;
  cursor:pointer;
}

.hp-btn-primary{
  background:var(--brand);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
}

.hp-btn-ghost{
  background:#fff;
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
  color: var(--text);
}

/* ==================================
   Auth pages (login, register, reset)
   Hide sidebar, topbar, bottom nav
================================== */
.hp-auth-page .hp-sidebar,
.hp-auth-page .hp-sidebar-overlay,
.hp-auth-page .hp-topbar,
.hp-auth-page .hp-bottom-nav,
.hp-auth-page .hp-app-footer{
  display: none !important;
}
.hp-auth-page .hp-layout{
  display: block;
}
.hp-auth-page .hp-main{
  padding: 0 !important;
  min-height: 100vh;
}

/* Footer (full width) */
.hp-footer{
  width:100%;
  margin:18px 0;
  color:var(--muted);
  padding:0 22px;
}

/* ==================================
   Login — Clean Centered
================================== */
.hp-login-scene{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:calc(100vh - 120px);
  padding:32px 16px;
}

.hp-login-card{
  width:420px;
  max-width:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:0 36px 36px;
  position:relative;
  overflow:hidden;
  box-shadow:0 8px 40px rgba(0,0,0,.06);
}

/* Animated gradient accent bar */
.hp-login-accent{
  height:4px;
  background:linear-gradient(90deg, var(--brand), #6366f1, #0ea5e9, var(--brand));
  background-size:300% 100%;
  animation:hp-accent-slide 4s ease infinite;
}
@keyframes hp-accent-slide{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Logo / Icon */
.hp-login-icon-wrap{
  display:flex;
  justify-content:center;
  margin-top:28px;
  margin-bottom:8px;
}
.hp-login-logo{
  max-width: 200px;
  height: auto;
}
.hp-login-icon{
  width:56px; height:56px;
  border-radius:16px;
  background:linear-gradient(135deg, var(--brand), #6366f1);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  color:#fff;
  box-shadow:0 6px 20px rgba(37,99,235,.25);
}

.hp-login-title{
  text-align:center;
  font-size:24px;
  font-weight:800;
  color:var(--text);
  margin:14px 0 4px;
  letter-spacing:-.3px;
}
.hp-login-sub{
  text-align:center;
  font-size:13px;
  color:var(--muted);
  margin:0 0 24px;
}

/* Form */
.hp-login-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.hp-login-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.hp-login-label{
  font-size:13px;
  font-weight:700;
  color:var(--text);
}
.hp-login-input-box{
  position:relative;
}
.hp-login-input-ico{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#b0b8c9;
  font-size:14px;
  pointer-events:none;
  transition:color .2s;
}
.hp-login-input-box:focus-within .hp-login-input-ico{
  color:var(--brand);
}
.hp-login-input{
  width:100% !important;
  height:46px !important;
  padding:0 14px 0 40px !important;
  border:1.5px solid var(--line) !important;
  border-radius:12px !important;
  font-size:14px !important;
  background:#fafbfc !important;
  outline:none !important;
  transition:border-color .2s, box-shadow .2s, background .2s !important;
}
.hp-login-input:focus{
  border-color:var(--brand) !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.1) !important;
  background:#fff !important;
}

/* Meta row */
.hp-login-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.hp-login-remember{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--text);
  cursor:pointer;
}
.hp-login-remember input{
  accent-color:var(--brand);
}
.hp-login-forgot{
  font-size:13px;
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}
.hp-login-forgot:hover{
  text-decoration:underline;
}

/* Button */
.hp-login-btn{
  width:100%;
  height:48px;
  border:none !important;
  border-radius:12px !important;
  background:var(--brand) !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:700 !important;
  cursor:pointer;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .15s, box-shadow .2s !important;
  box-shadow:0 4px 16px rgba(37,99,235,.25) !important;
}
.hp-login-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 24px rgba(37,99,235,.35) !important;
}
.hp-login-btn:active{
  transform:translateY(0);
}
.hp-login-btn-arrow{
  transition:transform .2s;
}
.hp-login-btn:hover .hp-login-btn-arrow{
  transform:translateX(3px);
}

/* Footer */
.hp-login-footer{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:14px;
  color:var(--muted);
}
.hp-login-footer a{
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
  margin-left:4px;
}
.hp-login-footer a:hover{
  text-decoration:underline;
}

/* Login — app badges */
.hp-login-apps{
  margin-top:18px;
  text-align:center;
}
.hp-login-apps-label{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px;
}
.hp-login-apps-badges{
  display:flex;
  justify-content:center;
  gap:10px;
}
.hp-login-apps-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  background:var(--brand);
  color:#fff;
  transition:opacity .2s;
}
.hp-login-apps-badge:hover{
  opacity:.85;
  color:#fff;
  text-decoration:none;
}
.hp-login-apps-badge i{
  font-size:14px;
}
.hp-login-apps-badge-android{
  background:#34a853;
}

/* Remove old classes */
.hp-auth-wrap, .hp-auth-card, .hp-auth-hero{ display:none; }

.hp-muted{ color:var(--muted); }

.hp-link{
  color: #5b4bd0;
  text-decoration:none;
  font-weight:700;
}

.hp-link:hover{ text-decoration:underline; }

/* ==================================
   Dashboard (Home)
   NOTE: was max-width 1200; now FULL WIDTH globally
================================== */
.hp-dashboard{
  max-width: none;
  width: 100%;
  margin: 0;
}

.hp-dash-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin: 4px 0 14px;
}

.hp-dash-title{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.hp-dash-subtitle{
  color: var(--muted);
  margin-top: 4px;
}

.hp-dash-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Top metrics (4) */
.hp-metrics{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  margin: 10px 0 16px;
}

.hp-metric{
  color:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow-soft);
  position:relative;
  overflow:hidden;
}

.hp-metric:before{
  content:"";
  position:absolute;
  inset:-40px -40px auto auto;
  width:140px;
  height:140px;
  background: rgba(255,255,255,.14);
  border-radius: 40px;
  transform: rotate(18deg);
}

.hp-grad-1{ background: linear-gradient(135deg,#38bdf8,#5b4bd0); }
.hp-grad-2{ background: linear-gradient(135deg,#34d399,#22c55e); }
.hp-grad-3{ background: linear-gradient(135deg,#fb7185,#f59e0b); }
.hp-grad-4{ background: linear-gradient(135deg,#a855f7,#fb7185); }

.hp-metric-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
  z-index:1;
}

.hp-metric-icon{
  width:38px;
  height:38px;
  border-radius:12px;
  background: rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}

/* shared pill */
.hp-pill{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.18);
}

.hp-metric-value{
  font-size:34px;
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1.05;
  margin-top:14px;
  position:relative;
  z-index:1;
  color:#fff;
}

a.hp-metric, a.hp-metric:hover, a.hp-metric:focus, a.hp-metric:visited, a.hp-metric:active{
  text-decoration:none !important;
  color:#fff !important;
}
a.hp-metric{
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
a.hp-metric:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  filter: brightness(1.08);
}

.hp-metric-label{
  margin-top:6px;
  font-size:13px;
  font-weight:500;
  letter-spacing:-0.01em;
  opacity:.92;
  position:relative;
  z-index:1;
}

/* ==================================
   Grids
================================== */
.hp-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:16px;
  margin-top: 6px;
}

.hp-grid-equal{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top: 16px;
}

.hp-grid-wide{
  margin-top: 16px;
}

/* Card (global, used everywhere) */
.hp-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

/* equal height helper */
.hp-card.hp-equal{
  display:flex;
  flex-direction:column;
}
.hp-card.hp-equal .hp-card-head{
  flex:0 0 auto;
  margin-bottom: 12px;
}
.hp-card.hp-equal .hp-card-body{
  flex:1 1 auto;
  min-height: 0;
  display:flex;
  flex-direction:column;
}

.hp-span-2{ grid-column: span 2; }

.hp-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom: 12px;
}

.hp-card-head-sm{ margin-top: 14px; }

.hp-card-title{ font-weight: 700; font-size: 16px; }

.hp-card-sub{
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

/* Placeholder */
.hp-empty{
  color: var(--muted);
  background: var(--card-soft);
  border:1px dashed var(--line);
  border-radius:14px;
  padding:14px;
  font-size:13px;
}

/* ==================================
   Responsive
================================== */
@media (max-width: 1100px){
  .hp-metrics{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== MOBILE HAMBURGER + MOBILE NOTIF ========== */
.hp-mobile-notif{
  display: none;  /* hidden on desktop */
}
.hp-mobile-toggle{
  display:none;
  background:none;
  border:none;
  font-size:20px;
  color:var(--text);
  cursor:pointer;
  padding:6px;
  border-radius:10px;
  line-height:1;
}
.hp-mobile-toggle:hover{ background:var(--bg); }

/* Home button - mobile only */
.hp-mobile-home{
  display:none;
  font-size:18px;
  color:var(--text);
  text-decoration:none;
  padding:6px;
  border-radius:10px;
  line-height:1;
}
.hp-mobile-home:hover{ background:var(--bg); color:var(--brand); }

/* ========== SIDEBAR OVERLAY ========== */
.hp-sidebar-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:998;
  opacity:0;
  transition:opacity .3s ease;
}
.hp-sidebar-overlay.is-active{
  display:block;
  opacity:1;
}

@media (max-width: 860px){
  /* Show hamburger and home buttons */
  .hp-mobile-toggle{ display:flex; }
  .hp-mobile-home{ display:flex; }

  /* Hide sidebar completely on mobile */
  .hp-sidebar{
    display:none !important;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:280px;
    z-index:999;
    box-shadow:none;
  }
  .hp-sidebar.is-open{
    display:flex !important;
    box-shadow:4px 0 24px rgba(0,0,0,.2);
  }

  /* Main content */
  .hp-main{ padding:14px 12px; }

  .hp-grid{ grid-template-columns: 1fr; }
  .hp-grid-equal{ grid-template-columns: 1fr; }

  .hp-span-2{ grid-column: auto; }
  .hp-dash-head{ flex-direction:column; align-items:stretch; }
  .hp-dash-actions{ justify-content:flex-end; }

  .hp-footer{ padding: 0 12px; }

  /* Hide subtitle on mobile for more space */
  .hp-page-subtitle{ display:none; }

  /* Topbar mobile layout */
  .hp-topbar{
    flex-wrap:wrap;
    gap:12px;
    padding:16px 14px !important;
  }
  .hp-topbar-left{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
  }
  .hp-page-title{
    font-size:18px !important;
    flex:1;
    min-width:0;
  }
  .hp-topbar-right{
    width:100%;
    justify-content:space-between;
  }
  .hp-icon-btn{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .hp-btn-primary{
    font-size:13px !important;
    padding:10px 14px !important;
    border-radius:12px !important;
  }
}

/* ==================================
   Lists (legacy)
================================== */
.hp-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hp-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-soft);

  text-decoration:none;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.hp-row:hover{
  background:#eef2ff;
  border-color:#d7ddff;
  transform: translateY(-1px);
}

.hp-row-left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width: 0;
}

.hp-row-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  flex-shrink: 0;
}

.hp-row-title{
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.hp-row-sub{
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.hp-row-amount{ font-weight: 700; font-size: 13px; }

.hp-row-status{
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  color: var(--text);
}

@media (max-width: 860px){
  .hp-row-title, .hp-row-sub{ max-width: 240px; }
}

/* ==================================
   Services (home cards)
================================== */
.hp-services-cards{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hp-svc-card{
  display:block;
  text-decoration:none;
  border: 1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.hp-svc-card:hover{
  transform: translateY(-1px);
  border-color:#d7ddff;
  box-shadow: var(--shadow);
}

.hp-svc-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.hp-svc-ico{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--blue-50);
  border: 1px solid rgba(59,130,246,.20);
  flex-shrink:0;
  font-size: 18px;
}

.hp-services-cards .hp-svc-card:nth-child(1) .hp-svc-ico{
  background: rgba(56,189,248,.18);
  border-color: rgba(56,189,248,.25);
}
.hp-services-cards .hp-svc-card:nth-child(2) .hp-svc-ico{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.25);
}
.hp-services-cards .hp-svc-card:nth-child(3) .hp-svc-ico{
  background: rgba(249,115,22,.18);
  border-color: rgba(249,115,22,.25);
}

.hp-svc-main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  flex:1;
}

.hp-svc-title{
  font-weight: 500;
  font-size: 14px;
  line-height:1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-svc-sub{
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-svc-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  flex-shrink:0;
}

.hp-svc-nextdue{
  color: var(--muted);
  font-size: 12px;
  font-weight:700;
}

/* Badges */
.hp-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--text);
}

.hp-badge-active{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#166534;
}

.hp-badge-warning{
  background:#ffedd5;
  border-color:#fed7aa;
  color:#9a3412;
}

.hp-badge-danger{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}

.hp-badge-muted{
  background:#f1f5f9;
  border-color:#e2e8f0;
  color:#334155;
}

/* bars */
.hp-svc-bars{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.hp-svc-bar{
  display:grid;
  grid-template-columns: 1fr;
  gap:6px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--card-soft);
}

.hp-svc-bar-label{
  font-size:12px;
  font-weight:700;
  color: var(--muted);
}

.hp-svc-bar-track{
  height:8px;
  border-radius:999px;
  background:#eaeef6;
  overflow:hidden;
}

.hp-svc-bar-fill{
  height:100%;
  border-radius:999px;
  background: var(--brand);
}

.hp-svc-bar-value{
  font-size:12px;
  font-weight:900;
  color: var(--text);
}
.hp-svc-bar-sub{
  font-weight:400;
  color: var(--muted);
}

/* Streaming na home: Source URI em linha inteira */
.hp-svc-bars-streaming {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hp-svc-bar-wide {
  grid-column: 1 / -1;
}
.hp-svc-bar-uri {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 11px !important;
  font-family: monospace;
  line-height: 1.4;
  font-weight: 600;
}

@media (max-width: 860px){
  .hp-svc-bars, .hp-svc-bars-streaming { grid-template-columns: 1fr; }
}

/* ==================================
   Invoices (home)
================================== */
.hp-invoices{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hp-inv-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,.85);
  background: #fff;

  text-decoration:none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.hp-inv-card:hover{
  transform: translateY(-1px);
  border-color:#d7ddff;
  box-shadow: var(--shadow-soft);
}

.hp-inv-card:has(.hp-badge-unpaid){
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.22);
}
.hp-inv-card:has(.hp-badge-overdue){
  background: rgba(249,115,22,.07);
  border-color: rgba(249,115,22,.22);
}
.hp-inv-card:has(.hp-badge-paid){
  background: rgba(34,197,94,.06);
  border-color: rgba(34,197,94,.22);
}

@supports not selector(:has(*)){
  .hp-inv-card{ background:#fff; }
}

.hp-inv-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.hp-inv-ico{
  width:42px;
  height:42px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;
  flex-shrink:0;
  font-size: 18px;
}

.hp-inv-card:has(.hp-badge-unpaid) .hp-inv-ico{ background: rgba(239,68,68,.95); color:#fff; }
.hp-inv-card:has(.hp-badge-overdue) .hp-inv-ico{ background: rgba(249,115,22,.95); color:#fff; }
.hp-inv-card:has(.hp-badge-paid) .hp-inv-ico{ background: rgba(34,197,94,.95); color:#fff; }

.hp-inv-main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.hp-inv-title{
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.hp-inv-sub{
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.hp-inv-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  flex-shrink:0;
}

.hp-inv-amount{ font-weight: 700; font-size: 14px; }

.hp-badge-paid{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color:#166534;
}

.hp-badge-unpaid{
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.25);
  color:#9a3412;
}

.hp-badge-overdue{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
  color:#991b1b;
}

/* Tickets badges */
.hp-badge-warn{
  background:#fef9c3;
  border-color:#fde68a;
  color:#92400e;
}

.hp-badge-info{
  background:#dbeafe;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

@media (max-width: 860px){
  .hp-inv-title, .hp-inv-sub{ max-width: 220px; }
}

/* ==================================
   Quick actions
================================== */
.hp-quick{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hp-quick-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f1f5f9;

  text-decoration:none;
  font-weight: 700;          /* era 900 */
  font-size: 15px;           /* deixa mais “template” */
  letter-spacing: 0;         /* garante que não fique “pesado” */
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

/* Botões normais: texto sempre escuro */

.hp-quick-btn:hover,
.hp-quick-btn:focus{
  text-decoration: none !important;
  color: var(--text) !important;
}

/* Botão roxo: texto SEMPRE branco (inclusive hover) */
.hp-quick-btn.hp-quick-primary{
  color: #fff !important;
  text-decoration: none !important;
}
.hp-quick-btn.hp-quick-primary:hover,
.hp-quick-btn.hp-quick-primary:focus{
  color: #fff !important;
  text-decoration: none !important;
}

/* ✅ botão roxo: texto sempre branco */
.hp-quick-primary,
.hp-quick-primary:hover,
.hp-quick-primary:focus{
  text-decoration:none !important;
  color:#fff !important;
}

.hp-quick-btn:hover,
.hp-quick-btn:focus,
.hp-quick-btn:active{
  text-decoration: none !important;
  color: inherit !important;
}

.hp-quick-btn:hover{
  background:#e9eef7;
  border-color:#d7ddff;
  transform: translateY(-1px);
}

.hp-quick-primary{
  background: rgba(107,60,201,.92);
  border-color: rgba(107,60,201,.35);
  color:#fff;
}

.hp-quick-primary:hover{
  background: rgba(107,60,201,1);
  border-color: rgba(107,60,201,.45);
}

.hp-quick-ico{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,.06);
  flex-shrink:0;
  font-size: 16px;
  color: var(--text);
}

.hp-quick-primary .hp-quick-ico{
  background: rgba(255,255,255,.22);
  color:#fff;
}

.hp-quick-text{
  flex:1;
  min-width:0;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  font-weight: 500;          /* força o texto do botão a não ficar 900 */
}

.hp-quick-arrow{
  font-weight: 700;          /* era 900 */
  opacity:.9;
}

/* ==================================
   Announcements
================================== */
.hp-divider{
  height:1px;
  background: var(--line);
  margin: 14px 0;
}

.hp-ann-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hp-ann-card{
  display:block;
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  background:#eef2ff;
  position:relative;
  overflow:hidden;
}

.hp-ann-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#5b4bd0;
}

.hp-ann-meta{ color: var(--muted); font-size:12px; margin-bottom:4px; }
.hp-ann-title{ font-weight: 500; font-size: 13.5px; }

.hp-ann-green{ background:#ecfdf5; }
.hp-ann-green:before{ background:#22c55e; }

.hp-ann-blue{ background:#eff6ff; }
.hp-ann-blue:before{ background:#5b4bd0; }

.hp-ann-orange{ background:#fff7ed; }
.hp-ann-orange:before{ background:#f97316; }

/* ==================================
   Tickets (home cards)
================================== */
.hp-tickets{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hp-ticket-card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow-soft);
}

.hp-ticket-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.hp-ticket-title{
  font-weight:600;
  font-size:14px;
  line-height:1.25;
  min-width:0;
}

.hp-ticket-meta{
  color: var(--muted);
  font-size:12.5px;
  margin-top:6px;
}

.hp-ticket-snippet{
  color: var(--text);
  font-size:13px;
  margin-top:10px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.hp-ticket-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
}

.hp-ticket-assignee{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size:12.5px;
  font-weight:800;
}

.hp-avatar{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;
  border:1px solid var(--line);
}

.hp-ticket-link{
  color:#5b4bd0;
  text-decoration:none;
  font-weight:900;
}

.hp-ticket-link:hover{ text-decoration:underline; }

/* ==================================
   Services page (UX Pilot style)
================================== */
.hp-sv-page { display: block; }
.hp-sv-header { margin-bottom: 16px; }
.hp-sv-title { font-size: 22px; font-weight: 800; color: #111827; }
.hp-sv-subtitle { margin-top: 4px; font-size: 13px; color: #6b7280; }

/* Stats */
.hp-sv-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}
@media (max-width: 1200px) { .hp-sv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .hp-sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hp-sv-stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
}
.hp-sv-stat-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hp-sv-stat-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.hp-sv-grad-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.hp-sv-grad-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.hp-sv-grad-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.hp-sv-grad-red { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.hp-sv-grad-purple { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color:#111827; }

.hp-sv-stat-num { font-size: 22px; font-weight: 700; color: #111827; }
.hp-sv-stat-label { font-size: 12px; font-weight: 800; color: #374151; }
.hp-sv-stat-hint { font-size: 11px; color: #9ca3af; margin-top: -6px; }

/* Controls */
.hp-sv-controls {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.06);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-sv-filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hp-sv-filter {
  display:inline-flex; align-items:center; gap:8px;
  padding: 9px 12px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(17,24,39,0.06);
  cursor: pointer;
  user-select: none;
}
.hp-sv-filter:hover { background:#e9eefb; }
.hp-sv-filter.is-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.hp-sv-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.hp-sv-search {
  position: relative;
  width: 260px;
  max-width: 100%;
}
.hp-sv-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  outline: none;
  font-weight: 700;
  font-size: 12px;
  background: #fff;
}
.hp-sv-search input:focus { border-color: #667eea; }
.hp-sv-search .hp-sv-search-ico {
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  opacity: .55;
}
.hp-sv-sort select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  outline: none;
  font-weight: 800;
  font-size: 12px;
  background: #fff;
}
.hp-sv-sort select:focus { border-color: #667eea; }

/* List + cards */
.hp-sv-list { display:flex; flex-direction:column; gap: 12px; }
.hp-sv-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
  border: 2px solid transparent;
  transition: all .2s ease;
}
.hp-sv-card:hover { border-color: rgba(102,126,234,0.65); transform: translateY(-2px); }

.hp-sv-card-top {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 900px) { .hp-sv-card-top { flex-direction: column; } }

.hp-sv-left { display:flex; align-items:flex-start; gap: 12px; flex: 1; min-width: 0; }
.hp-sv-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.hp-sv-right {
  text-align:right;
  min-width: 180px;
}
@media (max-width: 900px) { .hp-sv-right { text-align:left; } }

.hp-sv-name-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hp-sv-name { font-size: 16px; font-weight: 700; color:#111827; line-height: 1.2; }

.hp-sv-meta {
  margin-top: 6px;
  display:flex; align-items:center; gap: 14px; flex-wrap:wrap;
  color:#6b7280;
  font-size: 12px;
  font-weight: 700;
}
.hp-sv-meta span { display:inline-flex; align-items:center; gap: 8px; }

.hp-sv-badge {
  display:inline-flex; align-items:center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(17,24,39,0.08);
}
.hp-sv-badge .hp-sv-badge-dot { width: 6px; height: 6px; border-radius: 999px; }
.hp-sv-badge-active { background:#dcfce7; color:#166534; }
.hp-sv-badge-active .hp-sv-badge-dot { background:#22c55e; }
.hp-sv-badge-pending { background:#fef9c3; color:#854d0e; }
.hp-sv-badge-pending .hp-sv-badge-dot { background:#f59e0b; }
.hp-sv-badge-suspended { background:#fee2e2; color:#991b1b; }
.hp-sv-badge-suspended .hp-sv-badge-dot { background:#ef4444; }
.hp-sv-badge-other { background:#eef2ff; color:#3730a3; }
.hp-sv-badge-other .hp-sv-badge-dot { background:#6366f1; }

/* Metrics */
.hp-sv-metrics {
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1000px) { .hp-sv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hp-sv-metrics { grid-template-columns: 1fr; } }

.hp-sv-metric {
  background: #f9fafb;
  border: 1px solid rgba(17,24,39,0.06);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
}
.hp-sv-metric-label { font-size: 11px; font-weight: 700; color:#6b7280; }
.hp-sv-metric-value {
  margin-top: 6px;
  display:flex; align-items:baseline; justify-content:space-between; gap: 10px;
  font-weight: 700;
  min-width: 0;
}
.hp-sv-metric-value .hp-sv-metric-big { font-size: 13px; color:#111827; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.hp-sv-metric-value .hp-sv-metric-small { font-size: 11px; color:#6b7280; font-weight: 800; flex-shrink:0; }
.hp-sv-bar {
  height: 6px;
  background: rgba(17,24,39,0.08);
  border-radius: 999px;
  overflow:hidden;
  margin-top: 8px;
}
.hp-sv-bar > span { display:block; height:100%; width:0%; border-radius:999px; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

/* Streaming: layout especial com Source URI em linha inteira */
.hp-sv-metrics-streaming {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hp-sv-metrics-streaming .hp-sv-metric-wide {
  grid-column: 1 / -1;
}
.hp-sv-metric-uri {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 12px !important;
  font-family: monospace;
  line-height: 1.4;
}
@media (max-width: 1000px) { .hp-sv-metrics-streaming { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hp-sv-metrics-streaming { grid-template-columns: 1fr; } }


/* Footer actions */
.hp-sv-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17,24,39,0.06);
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  flex-wrap: wrap;
}
.hp-sv-tags { display:flex; align-items:center; gap: 8px; flex-wrap:wrap; }
.hp-sv-tag {
  display:inline-flex; align-items:center; gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(17,24,39,0.06);
}
.hp-sv-tag-blue { background:#eff6ff; color:#1d4ed8; }
.hp-sv-tag-green { background:#ecfdf5; color:#047857; }
.hp-sv-tag-purple { background:#f5f3ff; color:#6d28d9; }
.hp-sv-tag-orange { background:#fff7ed; color:#9a3412; }
.hp-sv-tag-red { background:#fef2f2; color:#991b1b; }

.hp-sv-btns { display:flex; gap: 10px; flex-wrap:wrap; }
.hp-sv-btn {
  display:inline-flex; align-items:center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(17,24,39,0.06);
  background:#f3f4f6;
  color:#374151;
  text-decoration:none;
}
.hp-sv-btn:hover { filter: brightness(0.98); }
.hp-sv-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;
  border-color: rgba(255,255,255,0.12);
}

.hp-sv-empty {
  background:#fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(17,24,39,0.06);
  color:#6b7280;
  font-weight: 700;
}

.hp-sv-money { font-size: 20px; font-weight: 700; color:#667eea; margin-top: 6px; }
.hp-sv-when { font-size: 12px; font-weight: 800; color:#6b7280; }

/* Pagination (single, no duplicates) */
/* Pagination (MANUAL - clientareaproducts.tpl uses .hp-sv-pagebtn, not .pagination) */
.hp-sv-pagination{
  margin-top: 16px;
}

.hp-sv-pagination-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17,24,39,.04);
}

.hp-sv-pages{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  flex:1;
}

.hp-sv-pagebtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;

  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;

  font-weight: 700;
  font-size: 13px;
  color: #374151;

  text-decoration: none !important;   /* mata sublinhado global */
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.hp-sv-pagebtn:hover{
  text-decoration: none !important;
  border-color: rgba(99,102,241,.55);
  color: #4f46e5;
  background: rgba(99,102,241,.06);
  transform: translateY(-1px);
}

.hp-sv-pagebtn.is-active{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(102,126,234,.22);
}

.hp-sv-pagebtn.is-disabled{
  opacity: .55;
  pointer-events:none;
}

.hp-sv-pagebtn-primary{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color:#fff;
}

.hp-sv-pagination-hint{
  margin-top: 10px;
  font-size: 12px;
  color:#64748b;
  font-weight: 800;
}
.hp-sv-pagination-hint strong{
  color:#0f172a;
  font-weight: 700;
}

@media (max-width: 680px){
  .hp-sv-pagination-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .hp-sv-pages{ justify-content:flex-start; }
}

/* ==================================
   Service Details (scoped so it won't break global cards)
   Wrap your product details template with a div that has class "hp-sd-page"
   (your CSS already uses hp-sd-* classes; this just avoids overriding .hp-card globally)
================================== */
.hp-sd-page .hp-breadcrumb{
  display:flex; align-items:center; gap:10px;
  font-size:13px; color:#6b7280;
  margin:6px 0 14px;
}
.hp-sd-page .hp-breadcrumb a{ color:#6b7280; text-decoration:none; }
.hp-sd-page .hp-breadcrumb a:hover{ color:#4f46e5; }
.hp-sd-page .hp-bc-sep{ color:#cbd5e1; }
.hp-sd-page .hp-bc-current{ color:#111827; font-weight:600; }

.hp-sd-page .hp-sd-header{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:16px; padding:6px 0 8px;
}
.hp-sd-page .hp-sd-title-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hp-sd-page .hp-sd-title{
  margin:0; font-size:24px; line-height:1.1; font-weight:800; color:#0f172a;
}
.hp-sd-page .hp-sd-sub{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:8px; }
.hp-sd-page .hp-sd-subitem{ font-size:13px; color:#64748b; }
.hp-sd-page .hp-sd-subsep{ width:4px; height:4px; border-radius:99px; background:#cbd5e1; }

.hp-sd-page .hp-sd-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }

/* Pills */
.hp-sd-page .hp-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:700; border:1px solid transparent;
  background: #fff;
}
.hp-sd-page .hp-pill-dot{ width:7px; height:7px; border-radius:99px; background:currentColor; opacity:.9; }
.hp-sd-page .hp-pill-success{ background:#ecfdf5; color:#047857; border-color:#bbf7d0; }
.hp-sd-page .hp-pill-warning{ background:#fffbeb; color:#b45309; border-color:#fde68a; }
.hp-sd-page .hp-pill-danger{ background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.hp-sd-page .hp-pill-muted{ background:#f1f5f9; color:#334155; border-color:#e2e8f0; }

/* Tiles */
.hp-sd-page .hp-sd-tiles{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
.hp-sd-page .hp-tile{
  background:#fff; border:1px solid #e6ebf2; border-radius:14px;
  padding:14px 14px 12px;
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}
.hp-sd-page .hp-tile-k{ font-size:11px; color:#64748b; text-transform:uppercase; letter-spacing:.06em; }
.hp-sd-page .hp-tile-v{ margin-top:6px; font-size:16px; font-weight:800; color:#0f172a; }
.hp-sd-page .hp-tile-s{ margin-top:4px; font-size:12px; color:#64748b; }
.hp-sd-page .hp-tile-actions{
  display:flex; flex-direction:column; gap:10px; justify-content:center;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.hp-sd-page .hp-mini-action{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  background:#fff; border:1px solid #e6ebf2;
  color:#334155; text-decoration:none; font-weight:700; font-size:13px;
}
.hp-sd-page .hp-mini-action:hover{ border-color:#c7d2fe; color:#4f46e5; }
.hp-sd-page .hp-mini-action-muted{ opacity:.7; }

/* Grid */
.hp-sd-page .hp-sd-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:12px;
}

/* Card header inside service details */
.hp-sd-page .hp-card{
  padding: 0;
  overflow:hidden;
}
.hp-sd-page .hp-card-h{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:10px; padding:14px 16px;
  border-bottom:1px solid #eef2f7;
}
.hp-sd-page .hp-card-title{ font-size:14px; font-weight:900; color:#0f172a; }
.hp-sd-page .hp-card-meta{ font-size:12px; color:#94a3b8; }

.hp-sd-page .hp-kv{ padding:14px 16px 16px; }
.hp-sd-page .hp-kv-row{
  display:grid; grid-template-columns: 170px 1fr;
  gap:12px; padding:10px 0;
  border-bottom:1px dashed #eef2f7;
}
.hp-sd-page .hp-kv-row:last-child{ border-bottom:none; }
.hp-sd-page .hp-kv-k{ font-size:12px; color:#64748b; font-weight:700; }
.hp-sd-page .hp-kv-v{ font-size:13px; color:#0f172a; font-weight:700; overflow-wrap:anywhere; }

.hp-sd-page .hp-usage{ padding:14px 16px 16px; }
.hp-sd-page .hp-usage-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hp-sd-page .hp-usage-k{ font-size:13px; color:#0f172a; font-weight:800; }
.hp-sd-page .hp-usage-v{ font-size:12px; color:#64748b; font-weight:700; }

.hp-sd-page .hp-bar{
  height:10px; border-radius:999px; background:#eef2f7; overflow:hidden;
  margin-top:8px;
}
.hp-sd-page .hp-bar-fill{
  height:100%;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  border-radius:999px;
  min-width:2%;
}

.hp-sd-page .hp-module-area{ padding:14px 16px 16px; }

/* Responsive (service details) */
@media (max-width: 1100px){
  .hp-sd-page .hp-sd-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-sd-page .hp-sd-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .hp-sd-page .hp-sd-header{ flex-direction:column; align-items:stretch; }
  .hp-sd-page .hp-sd-actions{ justify-content:flex-start; }
  .hp-sd-page .hp-sd-tiles{ grid-template-columns: 1fr; }
}


/* =========================
   HostingPro Layout Core
   (move all CSS out of header.tpl)
========================= */

.hp-layout{ display:flex; min-height:100vh; background: var(--bg); }

.hp-main{ flex:1; min-width:0; display:flex; flex-direction:column; }

/* topbar */
.hp-topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background:#fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
  padding: 18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* content always full width */
.hp-content{
  padding: 24px 28px;
  max-width: none;
  width: 100%;
  margin: 0;
  flex: 1 0 auto;
}

/* (footer styles moved to bottom of file) */

@media (max-width: 860px){
  .hp-topbar{ padding: 14px 12px; }
  .hp-content{ padding: 14px 12px; }
}

.hp-topbar-right{ display:flex; align-items:center; gap:12px; }
.hp-icon-btn{
  width:42px; height:42px; border-radius:14px;
  background:#f3f4f6; border:1px solid #e5e7eb;
  display:inline-flex; align-items:center; justify-content:center;
  color:#4b5563; text-decoration:none; position:relative;
  transition: all .2s ease;
}
.hp-icon-btn:hover{ background:#eef2ff; border-color:#c7d2fe; transform: translateY(-1px); }
.hp-dot{ position:absolute; top:10px; right:10px; width:8px; height:8px; background:#ef4444; border-radius:999px; border:2px solid #fff; }

/* ── Notification dropdown ── */
.hp-notif-wrap{ position:relative; }
.hp-notif-badge{
  position:absolute; top:-4px; right:-4px;
  min-width:18px; height:18px; border-radius:999px;
  background:var(--brand,#6b3cc9); color:#fff;
  font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  padding:0 4px; border:2px solid #fff;
}
.hp-notif-dropdown{
  display:none; position:absolute; right:0; top:calc(100% + 8px);
  width:380px; max-height:480px;
  background:#fff; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04);
  z-index:9999; overflow:hidden;
  animation: hpNotifSlide .2s ease;
}
.hp-notif-dropdown.is-open{ display:block; }
@keyframes hpNotifSlide{
  from{ opacity:0; transform:translateY(-8px); }
  to{ opacity:1; transform:translateY(0); }
}
.hp-notif-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 20px; border-bottom:1px solid var(--line,#e6eaf2);
}
.hp-notif-header-title{ font-weight:700; font-size:15px; color:var(--text); }
.hp-notif-header-link{ font-size:13px; color:var(--brand); text-decoration:none; font-weight:500; }
.hp-notif-header-link:hover{ text-decoration:underline; }

.hp-notif-list{ max-height:340px; overflow-y:auto; }
.hp-notif-item{
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 20px; text-decoration:none; color:var(--text);
  transition:background .15s;
}
.hp-notif-item:hover{ background:#f8fafc; }
.hp-notif-item-ico{
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; flex-shrink:0;
  background:#f3f4f6;
}
.hp-notif-item-body{ flex:1; min-width:0; }
.hp-notif-item-title{ display:block; font-size:13px; font-weight:600; line-height:1.3; color:var(--text); }
.hp-notif-item-desc{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.hp-notif-empty{
  padding:32px 20px; text-align:center;
  color:var(--muted); font-size:14px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.hp-notif-empty i{ font-size:28px; opacity:.4; }

.hp-notif-footer{
  padding:12px 20px; border-top:1px solid var(--line,#e6eaf2);
  text-align:center;
}
.hp-notif-footer a{
  font-size:13px; font-weight:600; color:var(--brand);
  text-decoration:none;
}
.hp-notif-footer a:hover{ text-decoration:underline; }

@media(max-width:480px){
  .hp-notif-dropdown{
    position:fixed !important;
    left:12px;
    right:12px;
    top:auto;
    width:auto;
    max-height:70vh;
  }
  .hp-usermenu-dropdown{
    position:fixed !important;
    left:12px;
    right:12px;
    top:auto;
    width:auto;
  }
}

/* ── User menu dropdown ── */
.hp-usermenu-wrap{ position:relative; }
.hp-usermenu-dropdown{
  display:none; position:absolute; right:0; top:calc(100% + 8px);
  width:280px;
  background:#fff; border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04);
  z-index:9999; overflow:hidden;
  animation: hpNotifSlide .2s ease;
}
.hp-usermenu-dropdown.is-open{ display:block; }

.hp-usermenu-header{
  display:flex; align-items:center; gap:12px;
  padding:16px 20px;
}
.hp-usermenu-avatar{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand,#6b3cc9), #a78bfa);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:18px; flex-shrink:0;
}
.hp-usermenu-info{ min-width:0; }
.hp-usermenu-name{ display:block; font-size:14px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hp-usermenu-email{ display:block; font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.hp-usermenu-divider{ height:1px; background:var(--line,#e6eaf2); margin:0; }

.hp-usermenu-nav{ padding:8px 0; }
.hp-usermenu-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 20px; font-size:13px; font-weight:500;
  color:var(--text); text-decoration:none;
  transition:background .15s;
}
.hp-usermenu-item:hover{ background:#f8fafc; color:var(--brand); }
.hp-usermenu-item i{ width:18px; text-align:center; font-size:14px; color:var(--muted); }
.hp-usermenu-item:hover i{ color:var(--brand); }

.hp-usermenu-logout{
  padding:12px 20px; color:#ef4444 !important;
}
.hp-usermenu-logout i{ color:#ef4444 !important; }
.hp-usermenu-logout:hover{ background:#fef2f2; }

/* Cart badge */
.hp-cart-btn{ position: relative; }
.hp-cart-badge{
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
}

/* Primary button brand override */
.hp-btn-primary{
  background: var(--brand) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}


/* ================================
   v3 overrides (no CSS inline)
   - NetHorizontes brand + full width + sticky footer
   ================================ */

/* Topbar refinements */
.hp-topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

/* Ensure main uses remaining height so footer sits at bottom */
.hp-main{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:100vh;
}

/* (footer styles moved to bottom of file) */

@media (max-width: 860px){
  .hp-sidebar{ display:none; }
  .hp-main{ min-height: auto; overflow-x: hidden; max-width: 100%; }
  .hp-content{ padding: 16px 12px; overflow-x: hidden; max-width: 100%; }
}

/* =========================================================
   HostingPro - Layout overrides (sem CSS no tpl)
   - Sidebar cor NetHorizontes (#997700)
   - Logo: logo_template.png (mesma pasta do theme.css)
   - Conteudo full width
   - Footer sempre no rodape e alinhado ao conteudo
   ========================================================= */

html, body{ height: 100%; }

.hp-layout{ min-height: 100vh; }

.hp-main{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hp-content{
  flex: 1 0 auto;
  padding: 24px 28px;
  max-width: none;
  width: 100%;
  margin: 0;
}

@media (max-width: 860px){
  .hp-content{ padding: 14px 12px; }
}

/* =============================================
   Footer global (compacto, 2 linhas)
   ============================================= */
.hp-app-footer{
  width: 100%;
  background: #f9fafb;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.hp-app-footer-inner{
  max-width: none;
  margin: 0;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

@media (min-width: 861px){
  .hp-app-footer-inner{ padding-left: calc(260px + 28px); padding-right: 28px; }
}
@media (max-width: 860px){
  .hp-app-footer-inner{ padding: 0 16px; }
}

/* Linha 1: logo + contatos + instagram */
.hp-footer-row{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.hp-footer-logo{
  height: 40px;
  width: auto;
}

.hp-footer-contact{
  color: #6b7280;
  text-decoration: none;
  transition: color .2s;
}

.hp-footer-contact:hover{ color: #667eea; }

.hp-footer-contact i{
  margin-right: 3px;
  color: #667eea;
}

.hp-footer-sep{
  margin: 0 10px;
  opacity: .3;
}

/* Linha 2: copyright + links */
.hp-footer-bottom{
  font-size: 12px;
  color: #9ca3af;
}

.hp-footer-bottom a{
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color .2s, text-decoration-color .2s;
}

.hp-footer-bottom a:hover{
  color: #667eea;
  text-decoration-color: #667eea;
}

.hp-footer-sep-light{
  margin: 0 8px;
  opacity: .3;
}

/* Seletor de idioma */
.hp-footer-lang{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
}

.hp-footer-lang i{ font-size: 12px; }

.hp-footer-lang-select{
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.hp-footer-lang-select:hover{ color: #667eea; }

/* Mobile footer */
@media (max-width: 860px){
  .hp-footer-row{ display: flex; flex-direction: column; gap: 6px; }
  .hp-footer-row .hp-footer-sep{ display: none; }
  .hp-footer-bottom{ display: flex; flex-direction: column; gap: 4px; }
  .hp-footer-bottom .hp-footer-sep-light{ display: none; }
}

/* ===========================
   Sidebar profile (avatar) — modelo do print
   =========================== */

/* garante layout e evita "vazamentos" */
.hp-sidebar{
  display:flex;
  flex-direction:column;
  min-height: 100vh;
  overflow: hidden; /* impede imagem/elementos saírem fora */
}

/* nav ocupa o espaço e permite scroll só no menu */
.hp-nav{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* bloco do perfil no rodapé */
.hp-sb-profile{
  flex: 0 0 auto;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}

/* o card roxo */
.hp-sb-profile-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  text-decoration:none;
  color:#fff;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);

  overflow: hidden; /* corta qualquer coisa que tente vazar */
}

.hp-sb-profile-card:hover{
  background: rgba(255,255,255,.14);
}

/* avatar */
.hp-sb-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow:hidden;
  flex: 0 0 44px;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
}

.hp-sb-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* textos */
.hp-sb-meta{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 2px;
  flex: 1 1 auto;
}

.hp-sb-name{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.hp-sb-email{
  font-weight: 600;
  font-size: 13px;
  opacity: .85;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* chevron */
.hp-sb-chevron{
  flex: 0 0 auto;
  opacity: .9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(0,0,0,.10);
}

/* mobile: esconde sidebar (se você já faz isso, mantém; se não, fica ok) */
@media (max-width: 860px){
  .hp-sb-profile{ display:block; }
}

/* NAV - garante estilo do mock no hover/active */
.hp-nav-item{
  color: rgba(255,255,255,.92) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.hp-nav-item i,
.hp-nav-item .hp-ico{
  color: rgba(255,255,255,.92) !important;
}

/* Hover: pill translúcido + mantém texto/ícone brancos */
.hp-nav-item:hover{
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  transform: none; /* se quiser remover "pulo" */
}

.hp-nav-item:hover i,
.hp-nav-item:hover .hp-ico{
  color: #fff !important;
}

/* Ativo: pill um pouco mais forte */
.hp-nav-item.is-active{
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
}

.hp-nav-item.is-active i,
.hp-nav-item.is-active .hp-ico{
  color: #fff !important;
}

/* Opcional: deixar o "pill" mais parecido com o mock (mais alto e suave) */
.hp-nav-item{
  border-radius: 16px;
  padding: 12px 14px;
}

/* Badge "NOVIDADE" no menu lateral */
.hp-nav-label-wrap{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.hp-badge-new{
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  line-height: 1.4;
  animation: hp-badge-pulse 2s ease-in-out infinite;
}
@keyframes hp-badge-pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.65; }
}

a:hover{
  text-decoration: none;
}

.hp-link:hover{
  text-decoration: underline;
}

/* ==================================
   Invoices page (clientareainvoices.tpl)
================================== */

.hp-inv-page{ width:100%; }

.hp-inv-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.hp-inv-sub{ margin-top:4px; font-size:13px; color:#6b7280; font-weight:600; }

.hp-inv-head-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

/* Stats */
.hp-inv-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin: 10px 0 14px;
}
.hp-inv-stat{
  border-radius: 18px;
  padding: 16px;
  color:#fff;
  box-shadow: 0 16px 36px rgba(17,24,39,.10);
  position: relative;
  overflow: hidden;
}
.hp-inv-stat::before{
  content:'';
  position:absolute;
  top:-45%;
  right:-45%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
}
.hp-inv-stat-top{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:10px; position:relative; z-index:1; }
.hp-inv-stat-ico{
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  backdrop-filter: blur(8px);
}
.hp-inv-pill{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.hp-inv-stat-big{ font-size: 26px; font-weight: 700; position:relative; z-index:1; }
.hp-inv-stat-label{ margin-top:2px; font-size: 12px; font-weight: 800; opacity:.92; position:relative; z-index:1; }
.hp-inv-stat-hint{
  margin-top: 10px;
  font-size: 11px;
  opacity: .88;
  display:flex; align-items:center; gap:8px;
  position:relative; z-index:1;
}
.hp-inv-stat-hint i{ opacity:.95; }

.hp-inv-grad-blue{ background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.hp-inv-grad-red{ background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.hp-inv-grad-green{ background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.hp-inv-grad-orange{ background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

@media (max-width: 860px){
  /* Cards: grid 2 columns */
  .hp-inv-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
  }
  .hp-inv-stat{
    padding:14px;
  }
  .hp-inv-stat-big{ font-size:20px; }
  .hp-inv-stat-label{ font-size:11px; }
  .hp-inv-stat-ico{ width:36px; height:36px; font-size:15px; }

  /* Table: responsive card layout */
  .hp-inv-table thead{ display:none; }
  .hp-inv-table,
  .hp-inv-table tbody,
  .hp-inv-table tr,
  .hp-inv-table td{ display:block; width:100%; }
  .hp-inv-table tbody tr{
    padding:12px 14px;
    border-bottom:1px solid #eef2f7;
    position:relative;
  }
  .hp-inv-table tbody td{
    padding:3px 0;
    border-bottom:none;
    font-size:13px;
  }
  .hp-inv-table tbody td:before{
    content:attr(data-label);
    font-size:11px;
    font-weight:700;
    color:#6b7280;
    text-transform:uppercase;
    display:block;
    margin-bottom:2px;
  }
  /* Hide checkbox column on mobile */
  .hp-inv-table td.hp-inv-check,
  .hp-inv-table th.hp-inv-check{ display:none; }
}

/* Controls */
.hp-inv-controls{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 10px 24px rgba(17,24,39,.04);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}
.hp-inv-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.hp-inv-filter{
  border:1px solid #e5e7eb;
  background:#f3f4f6;
  color:#374151;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  text-decoration:none;
}
.hp-inv-filter:hover{
  transform: translateY(-1px);
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.08);
  color:#111827;
}
.hp-inv-filter.is-active{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color:#fff;
  box-shadow: 0 10px 18px rgba(102,126,234,.20);
}
.hp-inv-filter-count{ opacity:.9; font-weight:900; }

.hp-inv-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.hp-inv-search{
  position:relative;
  display:flex;
  align-items:center;
}
.hp-inv-search i{
  position:absolute;
  left: 12px;
  color:#94a3b8;
  font-size: 14px;
}
.hp-inv-search input{
  padding: 10px 12px 10px 34px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background:#fff;
  font-weight: 800;
  font-size: 12px;
  outline:none;
  width: 260px;
  max-width: 70vw;
}
.hp-inv-search input:focus{
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}

/* Table */
.hp-inv-table-wrap{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17,24,39,.04);
  overflow:hidden;
}
.hp-inv-table-scroll{ overflow:auto; }
.hp-inv-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
}
.hp-inv-table thead th{
  background:#f8fafc;
  color:#6b7280;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 14px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}
.hp-inv-table tbody td{
  padding: 14px 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  font-size: 13px;
  color:#111827;
}
.hp-inv-row{ cursor:pointer; transition: background .12s ease, transform .12s ease; }
.hp-inv-row:hover{ background:#f9fafb; transform: scale(1.003); }

.hp-inv-col-check{ width: 44px; }
.hp-inv-col-actions{ width: 230px; }
.hp-inv-col-money{ white-space:nowrap; }
.hp-inv-muted{ color:#64748b; font-weight:800; }

.hp-inv-hidden{ display:none; } /* usado p/ manter ordenação sem datatables */

/* Invoice number cell */
.hp-inv-num{
  display:flex;
  align-items:center;
  gap:10px;
}
.hp-inv-ico{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#475569;
}
.hp-inv-num-main{ font-weight: 700; color:#111827; line-height:1.1; }
.hp-inv-num-sub{ font-size: 11px; font-weight: 800; color:#94a3b8; margin-top:3px; }

/* Status badges */
.hp-inv-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.hp-inv-badge-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: .95;
}
.hp-inv-badge-paid{ background:#ecfdf5; color:#047857; border-color:#bbf7d0; }
.hp-inv-badge-unpaid{ background:#fef2f2; color:#b91c1c; border-color:#fecaca; }
.hp-inv-badge-cancelled{ background:#f1f5f9; color:#334155; border-color:#e2e8f0; }
.hp-inv-badge-muted{ background:#f1f5f9; color:#334155; border-color:#e2e8f0; }

/* Actions */
.hp-inv-actions-row{ display:flex; align-items:center; gap:8px; justify-content:flex-end; }
.hp-inv-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  text-decoration:none;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color:#111827;
}
.hp-inv-btn-primary{
  border: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;
  box-shadow: 0 10px 18px rgba(102,126,234,.18);
}
.hp-inv-btn-soft{ background:#f3f4f6; color:#111827; }
.hp-inv-btn.is-disabled{ opacity:.65; cursor: default; pointer-events:none; }

.hp-inv-ico-btn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background:#fff;
  color:#4b5563;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.hp-inv-ico-btn:hover{
  background: rgba(99,102,241,.06);
  border-color: rgba(99,102,241,.45);
  transform: translateY(-1px);
}

/* Invoices Pagination (manual) */
.hp-inv-pagination{
  margin-top: 12px;
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}
.hp-inv-pagination-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.hp-inv-pages{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }

.hp-inv-pagebtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  color: #374151;
  background: #fff;
  text-decoration:none;
}
.hp-inv-pagebtn:hover{
  border-color: rgba(99,102,241,.55);
  color: #4f46e5;
  background: rgba(99,102,241,.06);
}
.hp-inv-pagebtn.is-active{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(102,126,234,.18);
}
.hp-inv-pagebtn.is-disabled{
  opacity: .55;
  cursor: default;
  pointer-events:none;
}
.hp-inv-pagebtn-primary{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
}
.hp-inv-pagination-hint{
  margin-top: 10px;
  text-align:center;
  font-size: 12px;
  color:#6b7280;
  font-weight: 700;
}

/* ===== Card Ações do serviço ===== */
.hp-actions-card .hp-card-b{
  padding:16px;
}

.hp-actions-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 900px){
  .hp-actions-grid{ grid-template-columns: 1fr; }
}

.hp-act{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 14px;
  border-radius:16px;
  text-decoration:none;
  border:1px solid #e5e7eb;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.hp-act:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  border-color:#cbd5e1;
}

.hp-act-ico{
  width:44px;height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  color:#334155;
  flex:0 0 auto;
}

.hp-act-txt{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.hp-act-title{
  font-weight:900;
  color:#111827;
  line-height:1.15;
}

.hp-act-sub{
  font-weight:700;
  color:#6b7280;
  font-size:12px;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* variações */
.hp-act-soft{
  background:#fff;
}

.hp-act-danger{
  border-color:#fecaca;
  background:#fff;
}

.hp-act-danger .hp-act-ico{
  border-color:#fecaca;
  background:#fff5f5;
  color:#b91c1c;
}

.hp-act-danger:hover{
  border-color:#fca5a5;
  background:#fffafa;
}

.hp-act.is-disabled{
  opacity:.55;
  pointer-events:none;
}

/* ── Fix intl-tel-input truncation ── */
.intl-tel-input {
  display: block !important;
  width: 100% !important;
}
.intl-tel-input input,
.intl-tel-input input[type=tel],
.intl-tel-input input[type=text],
.intl-tel-input input.form-control {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.intl-tel-input.separate-dial-code input,
.intl-tel-input.separate-dial-code input[type=tel] {
  padding-left: 84px !important;
}
.intl-tel-input .selected-flag {
  overflow: visible !important;
}

/* ── Fix select/input truncation in hp-card ── */
.hp-card select.form-control,
.hp-card input.form-control {
  max-width: none !important;
  width: 100% !important;
  text-overflow: ellipsis;
}

/* ==================================
   BOTTOM NAV BAR — Mobile Only
   Inspiração: app-style tab bar
================================== */
.hp-bottom-nav{
  display: none; /* hidden on desktop */
}

@media (max-width: 860px){
  .hp-bottom-nav{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  }

  .hp-bnav-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: color .2s, background .2s;
    position: relative;
  }

  .hp-bnav-item i{
    font-size: 20px;
    transition: transform .2s;
  }

  .hp-bnav-item:active{
    color: var(--brand);
    transform: scale(.92);
    transition: color .05s, transform .05s;
  }

  .hp-bnav-item:active i{
    transform: scale(1.1);
    transition: transform .05s;
  }

  .hp-bnav-item.is-active{
    color: var(--brand);
  }

  .hp-bnav-item.is-active i{
    transform: scale(1.1);
  }

  .hp-bnav-item.is-active::before{
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--brand);
    border-radius: 0 0 4px 4px;
  }

  /* ── Mobile topbar simplification ── */

  /* Hide the right side buttons row on mobile (bell is now in topbar-left) */
  .hp-topbar-right{
    display: none !important;
  }

  /* Show mobile notification bell */
  .hp-mobile-notif{
    display: flex !important;
    margin-left: auto;
    position: relative;
  }
  .hp-mobile-notif .hp-icon-btn{
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .hp-mobile-notif .hp-notif-dropdown{
    right: 0;
    left: auto;
    min-width: 300px;
  }

  /* Topbar: only hamburger + title, cleaner */
  .hp-topbar{
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 -12px;
    padding: 12px 16px !important;
  }

  .hp-topbar-left{
    width: 100%;
    gap: 12px;
  }

  .hp-page-title{
    font-size: 16px !important;
    font-weight: 800;
  }

  /* Hide mobile home button (redundant with bottom nav) */
  .hp-mobile-home{
    display: none !important;
  }

  /* Add padding to main so content doesn't hide behind bottom nav */
  .hp-main{
    padding-bottom: 80px !important;
  }

  /* Hide footer on mobile (bottom nav replaces it) */
  .hp-app-footer{
    padding-bottom: 70px;
  }
}

/* ==================================
   GLOBAL: Hide floating chat widget (all screens)
   Chat is now accessible via sidebar menu
================================== */
#tawk-bubble-container,
#tawk-default,
.tawk-min-container,
#jvlabelWrap,
.jivo-iframe-container,
#crisp-chatbox,
#hubspot-messages-iframe-container,
.intercom-lightweight-app,
.drift-frame-controller,
#launcher,
[class*="chat-widget"],
[class*="chatWidget"],
[id*="chat-widget"],
[id*="chatWidget"],
[class*="chat-bubble"],
[class*="chatBubble"],
[id*="chat-bubble"],
[id*="chatBubble"],
[class*="wai-chat"],
[id*="wai-chat"],
[class*="wai_chat"],
[id*="wai_chat"],
[class*="whatsapp-chat"],
[id*="whatsapp-chat"],
[class*="whatsapp_chat"],
[id*="whatsapp_chat"],
iframe[title*="chat" i],
iframe[title*="Chat" i],
div[style*="position: fixed"][style*="bottom"][style*="right"][style*="z-index"]:not(.hp-bottom-nav):not(.hp-layout):not(.hp-sidebar){
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================
   Loading overlay — feedback visual de navegação (MOBILE ONLY)
   ========================================================== */
.hp-loading{
  display: none;
}

@media (max-width: 860px){
  .hp-loading{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .hp-loading.is-active{
    opacity: 1;
    pointer-events: auto;
  }
}

/* Wrapper: posiciona ring + cloud sobrepostos */
.hp-loading-wrap{
  position: relative;
  width: 100px;
  height: 100px;
}

/* Ring girando — puro CSS, funciona em qualquer browser */
.hp-loading-ring{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(167, 139, 250, .2);
  border-top-color: #6b3cc9;
  border-right-color: #a78bfa;
  animation: hpRingSpin 1.2s linear infinite;
}

/* Cloud centralizada dentro do ring */
.hp-loading-cloud{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 42px;
  transform: translate(-50%, -50%);
  animation: hpCloudPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(107, 60, 201, .35));
}

.hp-loading-cloud svg{
  width: 100%;
  height: 100%;
}

.hp-loading-text{
  font-size: 14px;
  font-weight: 700;
  color: var(--brand, #6b3cc9);
  letter-spacing: .02em;
}

/* Ring spins */
@keyframes hpRingSpin{
  100% { transform: rotate(360deg); }
}

/* Cloud breathes */
@keyframes hpCloudPulse{
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

/* ==========================================================
   Loading overlay — DESKTOP (aditivo, não toca na regra mobile)
   Espelha as mesmas regras mas só para telas > 860px.
   O JS do footer só ativa no desktop com delay, pra evitar flash.
   ========================================================== */
@media (min-width: 861px){
  .hp-loading{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .hp-loading.is-active{
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================
   Timeline de Vencimentos — clientareahome
   ========================================================== */
.hp-tl-card .hp-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hp-tl-badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Barra temporal ──────────────────────────────── */
.hp-tl-bar-wrap{
  padding: 64px 14px 72px 14px;
}

.hp-tl-bar{
  position: relative;
  height: 14px;
}

.hp-tl-bar-line{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(90deg, #c7d2fe 0%, #e0e7ff 50%, #ede9fe 100%);
  border-radius: 999px;
}

.hp-tl-bar-tick{
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  background: rgba(91, 75, 208, .25);
  pointer-events: none;
}

.hp-tl-bar-tick > span{
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  white-space: nowrap;
}

/* ── Marcadores consolidados por data ────────────── */
.hp-tl-marker{
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
}

.hp-tl-marker-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5b4bd0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(91, 75, 208, .35);
  margin: 0 auto;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hp-tl-marker:hover .hp-tl-marker-dot{
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(91, 75, 208, .45);
}

.hp-tl-marker-label{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
  white-space: nowrap;
  pointer-events: none;
}

.hp-tl-marker-label::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

/* Marcador acima da linha */
.hp-tl-marker-top .hp-tl-marker-label{
  bottom: calc(100% + 14px);
}
.hp-tl-marker-top .hp-tl-marker-label::after{
  top: 100%;
  border-top: 6px solid #fff;
  filter: drop-shadow(0 1px 0 #e5e7eb);
}

/* Marcador abaixo da linha */
.hp-tl-marker-bottom .hp-tl-marker-label{
  top: calc(100% + 14px);
}
.hp-tl-marker-bottom .hp-tl-marker-label::after{
  bottom: 100%;
  border-bottom: 6px solid #fff;
  filter: drop-shadow(0 -1px 0 #e5e7eb);
}

.hp-tl-marker-value{
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
}

.hp-tl-marker-date{
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.1;
}

/* Empty state da timeline */
.hp-tl-empty{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 12px;
  font-weight: 500;
}

.hp-tl-empty i{
  font-size: 18px;
}

/* Responsive mobile */
@media (max-width: 860px){
  .hp-tl-bar-wrap{
    padding: 56px 6px 64px 6px;
  }
  .hp-tl-bar-tick > span{
    font-size: 9px;
  }
  .hp-tl-marker-label{
    padding: 4px 7px;
  }
  .hp-tl-marker-value{
    font-size: 11px;
  }
  .hp-tl-marker-date{
    font-size: 9px;
  }
  .hp-tl-marker-top .hp-tl-marker-label{
    bottom: calc(100% + 10px);
  }
  .hp-tl-marker-bottom .hp-tl-marker-label{
    top: calc(100% + 10px);
  }
}

/* ==========================================================
   Saúde do Servidor — clientareaproductdetails (Status Page)
   Fallback do card "Uso de Recursos" quando o módulo
   do servidor não retorna dados nativos de consumo.
   ========================================================== */
.hp-srvstatus .hp-card-h{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hp-srvstatus .hp-card-sub{
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-weight: 500;
  margin-top: 2px;
  word-break: break-all;
}

.hp-srvstatus-body{
  padding: 12px 14px 14px 14px;
}

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

.hp-srvstatus-main{
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.hp-srvstatus-dot{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, .22);
  flex-shrink: 0;
}

.hp-srvstatus-label{
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-right: auto;
}

.hp-srvstatus-uptime{
  font-size: 12px;
  color: var(--muted, #6b7280);
  flex-shrink: 0;
}

.hp-srvstatus-uptime strong{
  color: #111827;
  font-weight: 700;
}

/* Variações por status */
.hp-srvstatus-ok .hp-srvstatus-dot{
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
  animation: hp-pulse-ok 2s ease-in-out infinite;
}
.hp-srvstatus-ok .hp-srvstatus-main{
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hp-srvstatus-warn .hp-srvstatus-dot{
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .22);
}
.hp-srvstatus-warn .hp-srvstatus-main{
  background: #fffbeb;
  border-color: #fde68a;
}

.hp-srvstatus-bad .hp-srvstatus-dot{
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .22);
}
.hp-srvstatus-bad .hp-srvstatus-main{
  background: #fff7ed;
  border-color: #fed7aa;
}

.hp-srvstatus-crit .hp-srvstatus-dot{
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .25);
  animation: hp-pulse-crit 1.2s ease-in-out infinite;
}
.hp-srvstatus-crit .hp-srvstatus-main{
  background: #fef2f2;
  border-color: #fecaca;
}

@keyframes hp-pulse-ok{
  0%, 100%{ box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
  50%     { box-shadow: 0 0 0 6px rgba(34, 197, 94, .10); }
}
@keyframes hp-pulse-crit{
  0%, 100%{ box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
  50%     { box-shadow: 0 0 0 7px rgba(239, 68, 68, .10); }
}

/* Blocos de incidente / manutenção */
.hp-srvstatus-incidents,
.hp-srvstatus-maint{
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.hp-srvstatus-incidents{
  border-color: #fecaca;
  background: #fef2f2;
}

.hp-srvstatus-maint{
  border-color: #fde68a;
  background: #fffbeb;
}

.hp-srvstatus-sectitle{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.hp-srvstatus-incidents .hp-srvstatus-sectitle{
  color: #b91c1c;
}

.hp-srvstatus-maint .hp-srvstatus-sectitle{
  color: #b45309;
}

.hp-srvstatus-incident{
  padding: 8px 0;
  border-top: 1px dashed rgba(0, 0, 0, .08);
}

.hp-srvstatus-incident:first-of-type{
  border-top: 0;
  padding-top: 2px;
}

.hp-srvstatus-incident-title{
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}

.hp-srvstatus-incident-meta{
  font-size: 11px;
  color: var(--muted, #6b7280);
  margin-top: 2px;
}

/* Estado "tudo limpo" */
.hp-srvstatus-clean{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 500;
}

.hp-srvstatus-clean i{
  font-size: 13px;
}

/* Responsive mobile */
@media (max-width: 860px){
  .hp-srvstatus-main{
    padding: 12px;
  }
  .hp-srvstatus-label{
    font-size: 13px;
    flex: 1 1 100%;
  }
  .hp-srvstatus-uptime{
    flex: 1 1 100%;
    font-size: 11px;
  }
}


/* ==========================================================
   Apps Page — showcase premium com animacoes
   ========================================================== */

/* -- Scroll Reveal -----------------------------------------*/
.hp-apps-reveal{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.hp-apps-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.hp-apps-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  overflow: hidden;
}

/* ── HERO ──────────────────────────────────────────── */
.hp-apps-hero{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 52px;
  margin-bottom: 56px;
  min-height: 460px;
}

.hp-apps-hero-bg{
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #312e81 0%, #5b21b6 30%, #7c3aed 55%, #a855f7 80%, #c084fc 100%);
  z-index: 0;
}

/* Orbs animados no fundo */
.hp-apps-hero-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: 1;
}
.hp-apps-orb-1{
  width: 400px; height: 400px;
  background: #818cf8;
  top: -100px; left: -80px;
  animation: hp-orb-float 8s ease-in-out infinite;
}
.hp-apps-orb-2{
  width: 300px; height: 300px;
  background: #f0abfc;
  bottom: -60px; right: -40px;
  animation: hp-orb-float 10s ease-in-out infinite reverse;
}
.hp-apps-orb-3{
  width: 200px; height: 200px;
  background: #fde68a;
  top: 40%; left: 50%;
  animation: hp-orb-float 12s ease-in-out infinite 2s;
}

@keyframes hp-orb-float{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  33%{ transform: translate(30px, -20px) scale(1.05); }
  66%{ transform: translate(-20px, 15px) scale(.95); }
}

.hp-apps-hero-content{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 52px;
}

.hp-apps-hero-text{
  flex: 1 1 0%;
}

/* Chip com pulse */
.hp-apps-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 22px;
  position: relative;
}
.hp-apps-chip-pulse{
  position: absolute;
  left: -2px; top: -2px; right: -2px; bottom: -2px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  animation: hp-chip-pulse 2.5s ease-out infinite;
}
@keyframes hp-chip-pulse{
  0%{ opacity: 1; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.25); }
}

.hp-apps-hero-title{
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 18px 0;
  letter-spacing: -.01em;
}

.hp-apps-gradient-text{
  background: linear-gradient(90deg, #fde68a 0%, #f9a8d4 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-apps-hero-sub{
  font-size: 15px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin: 0 0 24px 0;
  max-width: 480px;
}

/* Stats bar */
.hp-apps-stats{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 14px 20px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  max-width: 680px;
}
.hp-apps-stat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.hp-apps-stat-num{
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.hp-apps-stat-num i{
  font-size: 16px;
}
.hp-apps-stat-label{
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hp-apps-stat-divider{
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* Store badges */
.hp-apps-hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-apps-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.hp-apps-badge:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  color: #fff;
  text-decoration: none;
}
.hp-apps-badge i{ font-size: 28px; }
.hp-apps-badge-sup{
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: .75;
  line-height: 1;
}
.hp-apps-badge-store{
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.hp-apps-badge-android{
  background: linear-gradient(135deg, #34a853, #0f9d58);
}

.hp-apps-badge-glow{
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 20px rgba(79,70,229,.4);
}
.hp-apps-badge-glow:hover{
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 12px 36px rgba(79,70,229,.55);
}

/* Phone mockup com glow e float */
.hp-apps-hero-phone{
  flex: 0 0 260px;
  position: relative;
}

.hp-apps-phone-glow{
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.4) 0%, transparent 65%);
  z-index: 0;
  animation: hp-phone-glow 4s ease-in-out infinite alternate;
}
@keyframes hp-phone-glow{
  0%{ opacity: .5; transform: scale(.95); }
  100%{ opacity: .8; transform: scale(1.05); }
}

.hp-apps-phone-frame{
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #0a0a0a;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  z-index: 1;
  animation: hp-phone-float 5s ease-in-out infinite;
}
@keyframes hp-phone-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

.hp-apps-phone-notch{
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.hp-apps-phone-screen{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33px;
}

/* Notificacoes flutuantes */
.hp-apps-float-notif{
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}
.hp-apps-float-notif i{
  font-size: 14px;
  color: #7c3aed;
}

.hp-apps-float-1{
  top: 18%;
  right: -40px;
  animation: hp-float-1 6s ease-in-out infinite;
}
.hp-apps-float-2{
  bottom: 22%;
  left: -50px;
  animation: hp-float-2 7s ease-in-out infinite 1s;
}

@keyframes hp-float-1{
  0%, 100%{ transform: translateY(0) rotate(2deg); opacity: .9; }
  50%{ transform: translateY(-8px) rotate(-1deg); opacity: 1; }
}
@keyframes hp-float-2{
  0%, 100%{ transform: translateY(0) rotate(-2deg); opacity: .85; }
  50%{ transform: translateY(6px) rotate(1deg); opacity: 1; }
}

/* ── Sections ──────────────────────────────────────── */
.hp-apps-section{
  margin-bottom: 56px;
}

.hp-apps-section-header{
  text-align: center;
  margin-bottom: 36px;
}
.hp-apps-section-label{
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.hp-apps-section-header h2{
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.hp-apps-section-header p{
  font-size: 15px;
  color: #64748b;
  margin: 0 auto;
  max-width: 520px;
}

/* ── Steps (Como Funciona) ─────────────────────────── */
.hp-apps-steps{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.hp-apps-step{
  flex: 0 0 220px;
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hp-apps-step:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.hp-apps-step-num{
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.hp-apps-step-icon{
  font-size: 28px;
  color: #7c3aed;
  margin-bottom: 14px;
}

.hp-apps-step h3{
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.hp-apps-step p{
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.hp-apps-step-arrow{
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-top: 48px;
  color: #c7d2fe;
  font-size: 20px;
}

/* ── Features grid ─────────────────────────────────── */
.hp-apps-features{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hp-apps-feat{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, border-color .2s ease;
}
.hp-apps-feat::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7c3aed, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.hp-apps-feat:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
  border-color: #c7d2fe;
}
.hp-apps-feat:hover::before{
  opacity: 1;
}

.hp-apps-feat-icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 18px;
  transition: transform .3s ease;
}
.hp-apps-feat:hover .hp-apps-feat-icon{
  transform: scale(1.1) rotate(-4deg);
}
.hp-apps-feat-purple{ background: linear-gradient(135deg, #7c3aed, #6366f1); }
.hp-apps-feat-blue{ background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hp-apps-feat-green{ background: linear-gradient(135deg, #22c55e, #16a34a); }
.hp-apps-feat-orange{ background: linear-gradient(135deg, #f97316, #ea580c); }
.hp-apps-feat-red{ background: linear-gradient(135deg, #ef4444, #dc2626); }
.hp-apps-feat-indigo{ background: linear-gradient(135deg, #6366f1, #4f46e5); }

.hp-apps-feat h3{
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.hp-apps-feat p{
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ── Screenshots carousel ──────────────────────────── */
.hp-apps-screens-wrap{
  position: relative;
}
.hp-apps-screens-fade{
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.hp-apps-screens-fade-l{
  left: 0;
  background: linear-gradient(90deg, #f3f4f6, transparent);
}
.hp-apps-screens-fade-r{
  right: 0;
  background: linear-gradient(270deg, #f3f4f6, transparent);
}

.hp-apps-screens{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 8px 28px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
}
.hp-apps-screens::-webkit-scrollbar{ display: none; }
.hp-apps-screens.is-dragging{ cursor: grabbing; scroll-snap-type: none; }

.hp-apps-screen-item{
  flex: 0 0 200px;
  scroll-snap-align: center;
  transition: transform .3s ease;
}
.hp-apps-screen-item:hover{
  transform: scale(1.04);
}

.hp-apps-screen-item img{
  width: 100%;
  border-radius: 22px;
  border: 3px solid #1e1b4b;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* ── Comparativo ───────────────────────────────────── */
.hp-apps-compare{
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

.hp-apps-compare-col{
  flex: 1;
  padding: 36px 30px;
  position: relative;
}

.hp-apps-compare-col h3{
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 20px 0;
  text-align: center;
}

.hp-apps-compare-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f1f5f9;
  color: #64748b;
  margin: 0 auto 14px auto;
}

.hp-apps-compare-highlight{
  background: linear-gradient(165deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
  border-left: 1px solid #e5e7eb;
}
.hp-apps-compare-highlight .hp-apps-compare-icon{
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79,70,229,.3);
}

.hp-apps-compare-badge{
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hp-apps-compare-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-apps-compare-col li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.hp-apps-compare-col li:last-child{ border-bottom: 0; }
.hp-apps-compare-col li i{
  font-size: 13px;
  color: #22c55e;
  width: 18px;
  text-align: center;
}

.hp-apps-compare-miss{
  color: #9ca3af !important;
  font-weight: 500 !important;
}
.hp-apps-compare-miss i{ color: #d1d5db !important; }

.hp-apps-compare-new i{ color: #7c3aed !important; }
.hp-apps-compare-new span{
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hp-apps-compare-vs{
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-lr;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: .08em;
  background: #f8fafc;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

/* ── Compatibilidade ───────────────────────────────── */
.hp-apps-compat{
  display: flex;
  gap: 16px;
}

.hp-apps-compat-item{
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hp-apps-compat-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.hp-apps-compat-active{
  border-color: #c7d2fe;
}

.hp-apps-compat-glow{
  position: absolute;
  top: -50px; right: -50px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(124,58,237,.12), transparent 70%);
  pointer-events: none;
}

.hp-apps-compat-item > i{
  font-size: 36px;
  color: #0f172a;
  flex-shrink: 0;
  margin-top: 2px;
}
.hp-apps-compat-item strong{
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.hp-apps-compat-item span{
  display: block;
  font-size: 13px;
  color: #64748b;
}

.hp-apps-compat-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hp-apps-compat-link:hover{
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,70,229,.35);
  text-decoration: none;
}

.hp-apps-compat-badge{
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px !important;
  font-weight: 700;
}

.hp-apps-compat-soon{
  opacity: .6;
}

/* ── CTA final ─────────────────────────────────────── */
.hp-apps-cta{
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 35%, #312e81 65%, #4338ca 100%);
  padding: 60px 36px;
  text-align: center;
  margin-bottom: 36px;
  overflow: hidden;
}

.hp-apps-cta-glow{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.25), transparent 60%);
  pointer-events: none;
}

.hp-apps-cta-content{
  position: relative;
  z-index: 1;
}

.hp-apps-cta-icon{
  font-size: 44px;
  color: rgba(255,255,255,.25);
  margin-bottom: 16px;
}

.hp-apps-cta h2{
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.hp-apps-cta p{
  font-size: 15px;
  color: rgba(255,255,255,.65);
  margin: 0 0 28px 0;
}

/* ── Responsivo mobile ─────────────────────────────── */
@media (max-width: 860px){
  .hp-apps-hero{
    padding: 40px 24px;
    min-height: auto;
  }
  .hp-apps-hero-content{
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .hp-apps-hero-title{
    font-size: 28px;
  }
  .hp-apps-hero-sub{
    max-width: none;
    font-size: 14px;
  }
  .hp-apps-hero-badges{
    justify-content: center;
  }

  .hp-apps-stats{
    max-width: none;
    justify-content: center;
  }

  .hp-apps-hero-phone{ flex: 0 0 auto; }
  .hp-apps-phone-frame{ width: 200px; }
  .hp-apps-phone-glow{ display: none; }
  .hp-apps-float-notif{ display: none; }

  .hp-apps-steps{
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .hp-apps-step{ flex: none; width: 100%; max-width: 340px; }
  .hp-apps-step-arrow{
    transform: rotate(90deg);
    margin-top: 0;
    padding: 4px 0;
  }

  .hp-apps-features{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hp-apps-feat{ padding: 22px 20px; }

  .hp-apps-section-header h2{ font-size: 24px; }

  .hp-apps-compare{
    flex-direction: column;
  }
  .hp-apps-compare-vs{
    writing-mode: horizontal-tb;
    padding: 10px 0;
    border-left: 0; border-right: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }
  .hp-apps-compare-highlight{
    border-left: 0;
    border-top: 0;
  }
  .hp-apps-compare-col{ padding: 24px 20px; }

  .hp-apps-compat{ flex-direction: column; }

  .hp-apps-cta{
    padding: 40px 20px;
  }
  .hp-apps-cta h2{ font-size: 22px; }

  .hp-apps-screen-item{ flex: 0 0 170px; }
  .hp-apps-screens-fade{ width: 30px; }
}
