/* ============================================================
   HostHub Theme - Main Stylesheet v1.0
   A next-generation professional WHMCS theme
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* --- CSS Custom Properties --- */
:root {
  --hh-primary:        #0061f2;
  --hh-primary-dark:   #0050cc;
  --hh-primary-light:  #e8f0fe;
  --hh-accent:         #ffb822;
  --hh-accent-dark:    #e6a31e;
  --hh-secondary:      #1e293b;
  --hh-surface:        #f8fafc;
  --hh-white:          #ffffff;
  --hh-border:         #e2e8f0;
  --hh-text:           #475569;
  --hh-text-dark:      #1e293b;
  --hh-text-muted:     #94a3b8;
  --hh-success:        #10b981;
  --hh-danger:         #ef4444;
  --hh-warning:        #f59e0b;
  --hh-header-height:  80px;
  --hh-radius:         12px;
  --hh-radius-sm:      8px;
  --hh-radius-lg:      20px;
  --hh-shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --hh-shadow:         0 4px 16px -2px rgba(0,0,0,.08), 0 2px 8px -2px rgba(0,0,0,.04);
  --hh-shadow-lg:      0 20px 40px -6px rgba(0,0,0,.12);
  --hh-shadow-primary: 0 8px 24px rgba(0,97,242,.25);
  --hh-transition:     all 0.2s cubic-bezier(0.4,0,0.2,1);
  --hh-font-sans:      'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hh-font-heading:   'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--hh-font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hh-text);
  background-color: var(--hh-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--hh-header-height);
}

a {
  color: var(--hh-primary);
  text-decoration: none;
  transition: var(--hh-transition);
}
a:hover { text-decoration: none; color: var(--hh-primary-dark); }
a:focus { outline: 2px solid var(--hh-primary); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--hh-font-heading);
  color: var(--hh-text-dark);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* --- Layout Container --- */
.hh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
#hh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--hh-header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hh-border);
  box-shadow: var(--hh-shadow-sm);
  transition: var(--hh-transition);
}

.hh-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.hh-logo { display: flex; align-items: center; flex-shrink: 0; }
.hh-logo-img { height: 40px; width: auto; }
.hh-logo-text {
  font-family: var(--hh-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hh-secondary);
  letter-spacing: -0.03em;
}
.hh-logo-text strong { color: var(--hh-primary); }
.hh-logo-dot { color: var(--hh-accent); }

/* Primary Nav */
.hh-nav { flex: 1; }
.hh-nav-primary {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}
.hh-nav-item { position: relative; }
.hh-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hh-text);
  border-radius: var(--hh-radius-sm);
  transition: var(--hh-transition);
  white-space: nowrap;
}
.hh-nav-link:hover, .hh-nav-link:focus {
  color: var(--hh-primary);
  background: var(--hh-primary-light);
  text-decoration: none;
}
.hh-nav-link.hh-active { color: var(--hh-primary); background: var(--hh-primary-light); }

/* Dropdown */
.hh-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow-lg);
  list-style: none;
  padding: 8px;
  margin: 0;
  z-index: 100;
}
.hh-has-dropdown:hover .hh-dropdown,
.hh-has-dropdown:focus-within .hh-dropdown { display: block; }
.hh-dropdown li a {
  display: block;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hh-text);
  border-radius: var(--hh-radius-sm);
}
.hh-dropdown li a:hover { background: var(--hh-surface); color: var(--hh-primary); }

/* Header actions */
.hh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.hh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--hh-radius-sm);
  transition: var(--hh-transition);
}
.hh-hamburger:hover { background: var(--hh-surface); }
.hh-hamburger span {
  display: block;
  height: 2px;
  background: var(--hh-text-dark);
  border-radius: 2px;
  transition: var(--hh-transition);
  transform-origin: center;
}
.hh-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hh-hamburger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hh-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Announcement bar */
.hh-announcement-bar {
  background: var(--hh-primary);
  color: var(--hh-white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}
.hh-bar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.hh-bar-close:hover { opacity: 1; }

/* Promo bar */
.hh-promo-bar {
  background: var(--hh-accent);
  color: var(--hh-secondary);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--hh-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--hh-transition);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
}
.hh-btn:focus { outline: 2px solid var(--hh-primary); outline-offset: 2px; }

.hh-btn-primary {
  background: var(--hh-primary);
  color: var(--hh-white);
  box-shadow: var(--hh-shadow-primary);
}
.hh-btn-primary:hover {
  background: var(--hh-primary-dark);
  color: var(--hh-white);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,97,242,.35);
}

.hh-btn-accent {
  background: var(--hh-accent);
  color: var(--hh-secondary);
  box-shadow: 0 8px 20px rgba(255,184,34,.35);
}
.hh-btn-accent:hover {
  background: var(--hh-accent-dark);
  color: var(--hh-secondary);
  transform: translateY(-1px);
}

.hh-btn-ghost {
  background: transparent;
  color: var(--hh-text);
  border: 1.5px solid var(--hh-border);
}
.hh-btn-ghost:hover {
  color: var(--hh-primary);
  border-color: var(--hh-primary);
  background: var(--hh-primary-light);
}

.hh-btn-outline {
  background: transparent;
  color: var(--hh-primary);
  border: 2px solid var(--hh-primary);
}
.hh-btn-outline:hover {
  background: var(--hh-primary);
  color: var(--hh-white);
  transform: translateY(-1px);
}

.hh-btn-lg { padding: 14px 32px; font-size: 1rem; }
.hh-btn-sm { padding: 7px 16px; font-size: 0.8125rem; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hh-hero {
  background: var(--hh-secondary);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,97,242,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hh-hero-content { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,184,34,.15);
  color: var(--hh-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,184,34,.3);
  margin-bottom: 24px;
}
.hh-hero h1 {
  color: var(--hh-white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hh-hero h1 span { color: var(--hh-accent); }
.hh-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Domain search widget */
.hh-domain-search {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 32px;
  transition: var(--hh-transition);
}
.hh-domain-search:focus-within {
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 0 0 4px rgba(0,97,242,.2);
}
.hh-domain-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--hh-white);
  font-family: var(--hh-font-sans);
}
.hh-domain-search input::placeholder { color: rgba(255,255,255,.5); }
.hh-domain-search button {
  background: var(--hh-accent);
  color: var(--hh-secondary);
  border: none;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--hh-transition);
  font-family: var(--hh-font-sans);
  white-space: nowrap;
  flex-shrink: 0;
}
.hh-domain-search button:hover { background: var(--hh-accent-dark); transform: scale(1.02); }

.hh-tld-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hh-tld-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.hh-section { padding: 80px 0; }
.hh-section-sm { padding: 48px 0; }
.hh-section-lg { padding: 120px 0; }
.hh-section-white { background: var(--hh-white); }
.hh-section-surface { background: var(--hh-surface); }
.hh-section-dark { background: var(--hh-secondary); color: var(--hh-white); }

.hh-section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.hh-section-header .hh-eyebrow {
  display: inline-block;
  color: var(--hh-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hh-section-header h2 { margin-bottom: 16px; }
.hh-section-header p { color: var(--hh-text); font-size: 1.0625rem; margin: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.hh-card {
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-lg);
  padding: 32px;
  transition: var(--hh-transition);
  position: relative;
}
.hh-card:hover {
  box-shadow: var(--hh-shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0,97,242,.2);
}
.hh-card-featured {
  background: var(--hh-primary);
  border-color: var(--hh-primary);
  color: var(--hh-white);
  transform: translateY(-8px);
}
.hh-card-featured:hover { transform: translateY(-12px); }
.hh-card-featured h1,
.hh-card-featured h2,
.hh-card-featured h3,
.hh-card-featured h4,
.hh-card-featured h5 { color: var(--hh-white); }

/* Pricing card badge */
.hh-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hh-badge-accent { background: var(--hh-accent); color: var(--hh-secondary); }
.hh-badge-primary { background: var(--hh-primary-light); color: var(--hh-primary); }
.hh-badge-success { background: #d1fae5; color: #065f46; }
.hh-badge-danger  { background: #fee2e2; color: #991b1b; }

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.hh-grid { display: grid; gap: 24px; }
.hh-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hh-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hh-grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Flexbox helpers */
.hh-flex { display: flex; }
.hh-flex-center { display: flex; align-items: center; justify-content: center; }
.hh-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hh-gap-sm { gap: 8px; }
.hh-gap { gap: 16px; }
.hh-gap-lg { gap: 32px; }

/* ============================================================
   PRICING TABLE
   ============================================================ */
.hh-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.hh-pricing-card { display: flex; flex-direction: column; }
.hh-pricing-header { margin-bottom: 24px; }
.hh-pricing-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.hh-pricing-desc { font-size: 0.875rem; color: var(--hh-text-muted); margin: 0; }
.hh-pricing-price { margin-bottom: 24px; }
.hh-pricing-amount {
  font-family: var(--hh-font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--hh-text-dark);
  line-height: 1;
}
.hh-card-featured .hh-pricing-amount { color: var(--hh-white); }
.hh-pricing-period { font-size: 0.875rem; color: var(--hh-text-muted); }
.hh-card-featured .hh-pricing-period { color: rgba(255,255,255,.7); }
.hh-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hh-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}
.hh-pricing-features li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hh-success);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}
.hh-card-featured .hh-pricing-features li::before { background-color: var(--hh-accent); }
.hh-pricing-divider {
  border: none;
  border-top: 1px solid var(--hh-border);
  margin: 0 0 24px;
}
.hh-card-featured .hh-pricing-divider { border-color: rgba(255,255,255,.2); }

/* ============================================================
   FEATURE ICONS
   ============================================================ */
.hh-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--hh-radius);
  background: var(--hh-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.hh-feature-title { font-size: 1.0625rem; margin-bottom: 10px; }
.hh-feature-desc { font-size: 0.9375rem; color: var(--hh-text); margin: 0; }

/* ============================================================
   HOMEPAGE SHORTCUTS
   ============================================================ */
.hh-shortcuts {
  background: var(--hh-white);
  border-bottom: 1px solid var(--hh-border);
  padding: 0;
}
.hh-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--hh-border);
}
.hh-shortcut-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--hh-border);
  transition: var(--hh-transition);
  text-decoration: none !important;
  color: inherit;
}
.hh-shortcut-item:hover {
  background: var(--hh-primary-light);
}
.hh-shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--hh-radius);
  background: var(--hh-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hh-shortcut-item:hover .hh-shortcut-icon { background: var(--hh-primary); color: var(--hh-white); }
.hh-shortcut-text strong { display: block; color: var(--hh-text-dark); font-weight: 700; font-size: 0.9375rem; margin-bottom: 2px; }
.hh-shortcut-text span { font-size: 0.8125rem; color: var(--hh-text-muted); }

/* ============================================================
   WHMCS BOOTSTRAP OVERRIDE (client area integration)
   ============================================================ */
#main-menu { display: none; } /* HostHub uses its own header */
#home-banner { display: none; }
.home-shortcuts { display: none; }

#main-body { padding: 40px 0; }

.navbar-default { display: none !important; }

.panel { border: none; border-radius: var(--hh-radius); box-shadow: var(--hh-shadow); overflow: hidden; }
.panel-heading { background: var(--hh-secondary) !important; color: var(--hh-white) !important; border: none !important; padding: 16px 24px; font-family: var(--hh-font-heading); font-weight: 700; font-size: 0.9375rem; }
.panel-body { padding: 24px; }
.panel-primary { border: 1px solid var(--hh-border); }

.btn { border-radius: 999px !important; font-weight: 600; font-family: var(--hh-font-sans); transition: var(--hh-transition); }
.btn-primary { background: var(--hh-primary) !important; border-color: var(--hh-primary) !important; box-shadow: var(--hh-shadow-primary); }
.btn-primary:hover { background: var(--hh-primary-dark) !important; border-color: var(--hh-primary-dark) !important; transform: translateY(-1px); }
.btn-default { background: var(--hh-white) !important; border-color: var(--hh-border) !important; color: var(--hh-text) !important; }
.btn-default:hover { border-color: var(--hh-primary) !important; color: var(--hh-primary) !important; }
.btn-success { background: var(--hh-success) !important; border-color: var(--hh-success) !important; }
.btn-danger  { background: var(--hh-danger)  !important; border-color: var(--hh-danger)  !important; }

.form-control {
  border: 1.5px solid var(--hh-border) !important;
  border-radius: var(--hh-radius-sm) !important;
  padding: 10px 14px !important;
  font-family: var(--hh-font-sans);
  font-size: 0.9375rem !important;
  color: var(--hh-text-dark) !important;
  background: var(--hh-white) !important;
  transition: var(--hh-transition);
}
.form-control:focus {
  border-color: var(--hh-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,97,242,.12) !important;
  outline: none;
}
.form-control::placeholder { color: var(--hh-text-muted) !important; }

label { font-weight: 600; font-size: 0.875rem; color: var(--hh-text-dark); margin-bottom: 6px; display: block; }

.alert {
  border: none !important;
  border-radius: var(--hh-radius) !important;
  padding: 14px 18px !important;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #d1fae5 !important; color: #065f46 !important; }
.alert-danger, .alert-error { background: #fee2e2 !important; color: #991b1b !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; }
.alert-info  { background: var(--hh-primary-light) !important; color: #1e40af !important; }

.table thead th {
  background: var(--hh-surface) !important;
  font-family: var(--hh-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hh-text-muted) !important;
  border-bottom: 2px solid var(--hh-border) !important;
  padding: 12px 16px !important;
}
.table td { padding: 14px 16px !important; border-color: var(--hh-border) !important; vertical-align: middle !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--hh-surface) !important; }
.table-hover > tbody > tr:hover { background: var(--hh-primary-light) !important; }

/* Breadcrumbs */
.breadcrumb {
  background: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  font-size: 0.875rem;
}
.breadcrumb > li + li::before { color: var(--hh-text-muted) !important; }
.breadcrumb .active { color: var(--hh-text-muted); }

/* Sidebar */
.sidebar .panel { border-radius: var(--hh-radius-lg); }
.sidebar .list-group-item {
  border: none !important;
  padding: 11px 16px !important;
  font-size: 0.9375rem;
  border-radius: var(--hh-radius-sm) !important;
  margin-bottom: 2px;
  font-weight: 500;
}
.sidebar .list-group-item:hover { background: var(--hh-primary-light) !important; color: var(--hh-primary) !important; }
.sidebar .list-group-item.active { background: var(--hh-primary) !important; color: var(--hh-white) !important; border-color: var(--hh-primary) !important; }

/* Pagination */
.pagination > li > a {
  border-radius: var(--hh-radius-sm) !important;
  color: var(--hh-primary) !important;
  border-color: var(--hh-border) !important;
  margin: 0 2px;
  font-weight: 600;
}
.pagination > .active > a { background: var(--hh-primary) !important; border-color: var(--hh-primary) !important; }

/* Tabs */
.nav-tabs { border-bottom: 2px solid var(--hh-border) !important; }
.nav-tabs > li > a {
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--hh-text) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 20px !important;
  border-radius: 0 !important;
  margin-bottom: -2px;
  transition: var(--hh-transition);
}
.nav-tabs > li > a:hover { color: var(--hh-primary) !important; background: none !important; border-bottom-color: var(--hh-primary) !important; }
.nav-tabs > li.active > a { color: var(--hh-primary) !important; border-bottom-color: var(--hh-primary) !important; background: none !important; font-weight: 700; }

/* Admin masquerade banner */
.admin-banner {
  background: var(--hh-warning);
  text-align: center;
  padding: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hh-secondary);
}

/* Page header */
.page-header {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}
.page-header h1 { font-size: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#hh-footer {
  margin-top: auto;
}

.hh-footer-top {
  background: var(--hh-secondary);
  padding: 72px 0 48px;
}

.hh-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.hh-footer-brand {}

.hh-footer-logo { display: inline-flex; margin-bottom: 16px; }
.hh-footer-logo img { height: 36px; width: auto; }
.hh-footer-logo-text { color: var(--hh-white); }

.hh-footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.hh-social-links {
  display: flex;
  gap: 10px;
}
.hh-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 0.875rem;
  transition: var(--hh-transition);
}
.hh-social-links a:hover { background: var(--hh-primary); border-color: var(--hh-primary); color: var(--hh-white); transform: translateY(-2px); }

.hh-footer-col {}

.hh-footer-heading {
  color: var(--hh-white);
  font-family: var(--hh-font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hh-footer-links li a {
  color: rgba(255,255,255,.6);
  font-size: 0.9375rem;
  transition: var(--hh-transition);
}
.hh-footer-links li a:hover { color: var(--hh-white); padding-left: 4px; }

/* Footer bottom bar */
.hh-footer-bottom {
  background: rgba(0,0,0,.25);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.hh-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hh-footer-copyright {
  color: rgba(255,255,255,.45);
  font-size: 0.875rem;
  margin: 0;
}
.hh-footer-legal {
  display: flex;
  gap: 20px;
}
.hh-footer-legal a {
  color: rgba(255,255,255,.45);
  font-size: 0.875rem;
}
.hh-footer-legal a:hover { color: var(--hh-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --hh-header-height: 70px; }
  body { padding-top: var(--hh-header-height); }

  .hh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--hh-white); border-top: 1px solid var(--hh-border); box-shadow: var(--hh-shadow-lg); padding: 16px; z-index: 999; }
  .hh-nav.hh-nav-open { display: block; }
  .hh-nav-primary { flex-direction: column; gap: 4px; }
  .hh-nav-link { padding: 12px 16px; }
  .hh-dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; }
  .hh-nav-open .hh-has-dropdown .hh-dropdown { display: block; }

  .hh-hamburger { display: flex; }
  .hh-header-actions .hh-btn { display: none; }
  .hh-header-actions .hh-btn:first-child { display: inline-flex; }
  #hh-header { position: relative; }

  .hh-hero { padding: 60px 0 48px; }
  .hh-hero h1 { font-size: 2rem; }
  .hh-domain-search { flex-direction: column; }
  .hh-domain-search button { width: 100%; justify-content: center; }

  .hh-section { padding: 56px 0; }
  .hh-grid-3, .hh-grid-2 { grid-template-columns: 1fr; }
  .hh-shortcuts-grid { grid-template-columns: repeat(2,1fr); }
  .hh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hh-footer-bottom-inner { flex-direction: column; text-align: center; }
  .hh-pricing-card.hh-card-featured { transform: none; }
}

@media (max-width: 480px) {
  .hh-container { padding: 0 16px; }
  .hh-shortcuts-grid { grid-template-columns: 1fr; }
  .hh-tld-pills { display: none; }
  h1 { font-size: 1.75rem; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.hh-text-center { text-align: center; }
.hh-text-right  { text-align: right; }
.hh-text-muted  { color: var(--hh-text-muted); }
.hh-text-primary { color: var(--hh-primary); }
.hh-text-white  { color: var(--hh-white); }
.hh-text-dark   { color: var(--hh-text-dark); }

.hh-mt-0  { margin-top: 0; }
.hh-mt-sm { margin-top: 8px; }
.hh-mt    { margin-top: 16px; }
.hh-mt-lg { margin-top: 32px; }
.hh-mb-0  { margin-bottom: 0; }
.hh-mb-sm { margin-bottom: 8px; }
.hh-mb    { margin-bottom: 16px; }
.hh-mb-lg { margin-bottom: 32px; }

.hh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hh-divider { border: none; border-top: 1px solid var(--hh-border); margin: 24px 0; }

/* ============================================================
   INVOICE / QUOTE (print safe)
   ============================================================ */
@media print {
  #hh-header, #hh-footer, .hh-shortcuts, .sidebar { display: none !important; }
  body { padding-top: 0; background: white; }
}
