/* ============================================================
   STARHOST FOSSBILLING THEME — main.css
   1:1 Brutalist / Neo-Brutalist styling from G4FP
   Clean high-contrast borders, bold typography, glassmorphism hero
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root,
html[data-bs-theme="light"],
body[data-bs-theme="light"] {
  --sh-bg:               #ffffff;
  --sh-bg-card:          #ffffff;
  --sh-text:             #000000;
  --sh-text-muted:       #555555;
  --sh-border:           #000000;
  --sh-border-color:     #000000;
  --sh-border-w:         2px;
  --sh-border-thick:     4px;
  
  --sh-btn-bg:           #000000;
  --sh-btn-text:         #ffffff;
  --sh-btn-hover-bg:     #ffffff;
  --sh-btn-hover-text:   #000000;
  
  --sh-hero-card-bg:     rgba(255, 255, 255, 0.65);
  --sh-hero-card-border: rgba(255, 255, 255, 0.5);
  --sh-hero-overlay:     rgba(255, 255, 255, 0.3);
  
  --sh-nav-bg:           #ffffff;
  --sh-footer-bg:        #ffffff;
  --sh-footer-bottom-bg: #000000;
  --sh-footer-bottom-text:#ffffff;
}

html[data-bs-theme="dark"],
html.dark,
body[data-bs-theme="dark"],
body.dark,
[data-bs-theme="dark"] {
  --sh-bg:               #090a0f;
  --sh-bg-card:          #111218;
  --sh-text:             #ffffff;
  --sh-text-muted:       #a1a1aa;
  --sh-border:           #ffffff;
  --sh-border-color:     #ffffff;
  
  --sh-btn-bg:           #ffffff;
  --sh-btn-text:         #000000;
  --sh-btn-hover-bg:     #000000;
  --sh-btn-hover-text:   #ffffff;
  
  --sh-hero-card-bg:     rgba(17, 18, 24, 0.85);
  --sh-hero-card-border: rgba(255, 255, 255, 0.2);
  --sh-hero-overlay:     rgba(0, 0, 0, 0.65);
  
  --sh-nav-bg:           #090a0f;
  --sh-footer-bg:        #090a0f;
  --sh-footer-bottom-bg: #000000;
  --sh-footer-bottom-text:#ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--sh-bg);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--sh-bg) !important;
  color: var(--sh-text) !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Kill default tabler styles */
.page-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.page-body {
  padding: 0 !important;
  margin: 0 !important;
}
.page-header {
  display: none !important;
}

.container, .sh-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   HEADER / NAVBAR (1:1 G4FP Header)
   fixed top-0 left-0 w-full z-50 py-4 px-6 bg-white border-b-4 border-black
   ============================================================ */
#sh-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--sh-nav-bg);
  border-bottom: var(--sh-border-thick) solid var(--sh-border-color);
  padding: 16px 24px;
  box-sizing: border-box;
}

.sh-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo: Star[host] */
.sh-logo {
  text-decoration: none;
  font-size: 1.875rem; /* text-3xl */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  color: var(--sh-text);
  display: inline-flex;
  align-items: center;
}

.sh-logo-text {
  color: var(--sh-text);
}

.sh-logo-badge,
.sh-logo .highlight {
  background-color: var(--sh-btn-bg);
  color: var(--sh-btn-text);
  padding: 0 6px;
  margin-left: 2px;
  display: inline-block;
}

/* Nav links */
.sh-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-nav-links a {
  color: var(--sh-text);
  text-decoration: none;
  padding: 4px 8px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.sh-nav-links a:hover {
  background-color: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

.sh-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons 1:1 G4FP Brutalist Button */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  border: 2px solid var(--sh-border-color) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.875rem;
  padding: 8px 24px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.5;
  box-shadow: none !important;
}

.sh-btn-primary {
  background-color: var(--sh-btn-bg) !important;
  color: var(--sh-btn-text) !important;
}
.sh-btn-primary:hover {
  background-color: var(--sh-btn-hover-bg) !important;
  color: var(--sh-btn-hover-text) !important;
}

.sh-btn-outline {
  background-color: transparent !important;
  color: var(--sh-text) !important;
}
.sh-btn-outline:hover {
  background-color: var(--sh-btn-bg) !important;
  color: var(--sh-btn-text) !important;
}

.sh-btn-lg {
  padding: 14px 32px !important;
  font-size: 1.125rem !important;
  height: 56px;
}

.sh-btn-sm {
  padding: 6px 16px !important;
  font-size: 0.75rem !important;
}

/* Dark mode toggle */
.sh-dark-toggle {
  background: transparent;
  border: 2px solid var(--sh-border-color);
  color: var(--sh-text);
  border-radius: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.sh-dark-toggle:hover {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}
.sh-dark-toggle .icon-sun  { display: none; }
.sh-dark-toggle .icon-moon { display: block; }
html[data-bs-theme="dark"] .sh-dark-toggle .icon-sun,
html.dark .sh-dark-toggle .icon-sun { display: block; }
html[data-bs-theme="dark"] .sh-dark-toggle .icon-moon,
html.dark .sh-dark-toggle .icon-moon { display: none; }

/* User dropdown */
.sh-user-dropdown {
  position: relative;
}
.sh-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--sh-border-color);
  border-radius: 0;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--sh-text);
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
}
.sh-user-btn:hover {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}
.sh-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  border-radius: 0;
  padding: 0;
  min-width: 180px;
  display: none;
  z-index: 100;
}
.sh-user-dropdown:hover .sh-dropdown-menu {
  display: block;
}
.sh-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sh-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sh-border-color);
}
.sh-dropdown-menu a:last-child {
  border-bottom: none;
}
.sh-dropdown-menu a:hover {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

/* Mobile Hamburger */
.sh-hamburger {
  display: none;
  background: transparent;
  border: 2px solid var(--sh-border-color);
  color: var(--sh-text);
  padding: 6px 8px;
  cursor: pointer;
}
.sh-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--sh-nav-bg);
  border-bottom: 4px solid var(--sh-border-color);
  padding: 16px 24px;
}
.sh-mobile-menu.open {
  display: flex;
}
.sh-mobile-menu a {
  padding: 10px 0;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--sh-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sh-border-color);
}

/* ============================================================
   HERO SECTION (1:1 G4FP Hero.js)
   min-h-[90vh] flex items-center justify-center overflow-hidden bg-background pt-24
   ============================================================ */
.sh-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
  background: var(--sh-bg);
}

.sh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.sh-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--sh-hero-overlay);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sh-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background-color: var(--sh-hero-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px; /* rounded-3xl */
  border: 1px solid var(--sh-hero-card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sh-hero-title {
  font-size: 3.5rem; /* text-5xl md:text-7xl */
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #000000;
  line-height: 1.1;
  margin: 0 0 24px 0;
}

html[data-bs-theme="dark"] .sh-hero-title,
html.dark .sh-hero-title {
  color: #ffffff;
}

.sh-hero-desc-box {
  font-size: 1.25rem; /* text-xl */
  color: #000000;
  font-weight: 700;
  line-height: 1.6;
  border: 2px solid #000000;
  padding: 16px;
  background-color: #ffffff;
  margin: 0 auto 32px auto;
  max-width: 650px;
}

html[data-bs-theme="dark"] .sh-hero-desc-box,
html.dark .sh-hero-desc-box {
  color: #ffffff;
  background-color: #111218;
  border-color: #ffffff;
}

.sh-hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   WHY CHOOSE SECTION (1:1 G4FP page.js)
   py-24 px-6 bg-white border-y-2 border-black
   ============================================================ */
.sh-why-section {
  padding: 96px 24px;
  background-color: var(--sh-bg);
  border-top: 2px solid var(--sh-border-color);
  border-bottom: 2px solid var(--sh-border-color);
}

.sh-why-header {
  max-width: 768px;
  margin: 0 auto 64px auto;
  text-align: center;
}

.sh-why-title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 900;
  text-transform: uppercase;
  color: var(--sh-text);
  margin-bottom: 16px;
}

.sh-why-badge {
  font-size: 1.25rem;
  color: var(--sh-text);
  font-weight: 700;
  border: 2px solid var(--sh-border-color);
  padding: 16px;
  display: inline-block;
  background: var(--sh-bg-card);
}

.sh-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.sh-why-card {
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  padding: 32px;
  text-align: center;
  transition: all 0.2s ease;
}

.sh-why-card:hover {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

.sh-why-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-text);
  margin: 0 auto 24px auto;
  transition: all 0.2s ease;
}

.sh-why-card:hover .sh-why-icon-wrap {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
  border-color: var(--sh-btn-text);
}

.sh-why-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sh-why-card p {
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PRICING / PLANS SECTION (1:1 G4FP PricingCard.js)
   Brutalist cards, square badges, diamond dot, € big typography
   ============================================================ */
.sh-pricing-section {
  padding: 96px 24px;
  background-color: var(--sh-bg);
}

.sh-pricing-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 64px auto;
  border: 4px solid var(--sh-border-color);
  padding: 56px 40px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--sh-bg-card);
}

.sh-pricing-header h1, .sh-pricing-header h2 {
  font-size: 3.25rem; /* text-5xl md:text-6xl */
  font-weight: 900;
  text-transform: uppercase;
  color: var(--sh-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.sh-pricing-header .highlight-pill {
  display: inline-block;
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
  padding: 4px 20px;
  margin-left: 8px;
}

.sh-pricing-header p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sh-text);
  margin: 0;
  line-height: 1.6;
  max-width: 680px;
}

/* Pricing category tabs */
.sh-pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.sh-pricing-tab {
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  color: var(--sh-text);
  padding: 10px 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sh-pricing-tab:hover,
.sh-pricing-tab.active {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

.sh-pricing-category {
  display: none;
}
.sh-pricing-category.active {
  display: block;
}

/* Pricing Cards Grid (G4FP PricingCard) */
.sh-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.sh-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  color: var(--sh-text);
  transition: transform 0.2s ease;
  border-radius: 0;
}

.sh-plan-card:hover {
  transform: translateY(-4px);
}

.sh-plan-card.featured,
.sh-plan-card.highlight {
  border: 4px solid var(--sh-border-color);
}

.sh-plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
  padding: 4px 16px;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid var(--sh-border-color);
  text-transform: uppercase;
}

.sh-plan-header {
  padding: 24px;
  border-bottom: 2px solid var(--sh-border-color);
}

.sh-plan-ram-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sh-plan-diamond {
  width: 20px;
  height: 20px;
  background: var(--sh-btn-bg);
  transform: rotate(45deg);
}

.sh-plan-name {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--sh-text);
  margin: 0;
}

.sh-plan-rec {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sh-text-muted);
  min-height: 40px;
  margin: 0;
}

.sh-plan-body {
  padding: 24px;
  flex-grow: 1;
}

.sh-plan-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--sh-border-color);
}

.sh-plan-price-row {
  display: flex;
  align-items: flex-end;
  color: var(--sh-text);
  margin-bottom: 8px;
}

.sh-plan-currency {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 4px;
}

.sh-plan-price {
  font-size: 3.75rem; /* text-6xl */
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sh-plan-period {
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.sh-plan-bill-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sh-text);
  margin: 0;
}

.sh-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sh-plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sh-text);
}

.sh-plan-footer {
  padding: 24px;
  border-top: 2px solid var(--sh-border-color);
}

.sh-plan-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sh-border-color);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  background: var(--sh-bg-card);
  color: var(--sh-text);
  box-sizing: border-box;
}

.sh-plan-card.featured .sh-plan-cta {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

.sh-plan-cta:hover {
  background: var(--sh-btn-bg) !important;
  color: var(--sh-btn-text) !important;
}

.sh-plan-card.featured .sh-plan-cta:hover {
  background: var(--sh-btn-hover-bg) !important;
  color: var(--sh-btn-hover-text) !important;
}

/* ============================================================
   FOOTER (1:1 G4FP Footer.js)
   mt-24 border-t-4 border-black bg-white pt-20 pb-20
   ============================================================ */
#sh-footer {
  margin-top: 96px;
  border-top: 4px solid var(--sh-border-color);
  background-color: var(--sh-footer-bg);
  padding-top: 80px;
  padding-bottom: 0;
  position: relative;
  z-index: 10;
}

.sh-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

.sh-footer-brand p {
  font-weight: 700;
  line-height: 1.6;
  border-left: 4px solid var(--sh-border-color);
  padding-left: 16px;
  margin-top: 16px;
  color: var(--sh-text);
  max-width: 300px;
}

.sh-footer-col h4 {
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 24px 0;
  border-bottom: 2px solid var(--sh-border-color);
  padding-bottom: 8px;
  display: inline-block;
  color: var(--sh-text);
}

.sh-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-footer-col a {
  color: var(--sh-text);
  font-weight: 700;
  text-decoration: none;
  padding: 2px 4px;
  display: inline-block;
  transition: all 0.15s ease;
}

.sh-footer-col a:hover {
  background-color: var(--sh-btn-bg);
  color: var(--sh-btn-text);
}

.sh-footer-bottom {
  border-top: 2px solid var(--sh-border-color);
  background: var(--sh-footer-bottom-bg);
  color: var(--sh-footer-bottom-text);
  padding: 20px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.sh-footer-bottom a {
  color: var(--sh-footer-bottom-text);
  text-decoration: underline;
}

/* ============================================================
   CLIENT AREA & AUTH PAGES
   ============================================================ */
.sh-card {
  background: var(--sh-bg-card);
  border: 2px solid var(--sh-border-color);
  padding: 24px;
  border-radius: 0;
  margin-bottom: 24px;
}

.sh-client-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.sh-sidebar {
  border: 2px solid var(--sh-border-color);
  background: var(--sh-bg-card);
  padding: 16px;
}

.sh-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sh-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--sh-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.sh-sidebar-nav a:hover,
.sh-sidebar-nav a.active {
  background: var(--sh-btn-bg);
  color: var(--sh-btn-text);
  border-left-color: var(--sh-border-color);
}

.form-control, .form-select {
  border: 2px solid var(--sh-border-color) !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  background-color: var(--sh-bg-card) !important;
  color: var(--sh-text) !important;
}

.form-label {
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

/* Responsive */
@media (max-width: 900px) {
  .sh-nav-links {
    display: none;
  }
  .sh-hamburger {
    display: block;
  }
  .sh-hero-title {
    font-size: 2.5rem;
  }
  .sh-client-layout {
    grid-template-columns: 1fr;
  }
}
