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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fb;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2f7;
  --bg-elevated: #eef2f7;
  --border: #e3e8ef;
  --border-light: #cdd6e2;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-muted: #667085;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --gradient-1: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --gradient-2: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  --gradient-3: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
  --gradient-hero: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
  --shadow-accent: 0 10px 30px rgba(37, 99, 235, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1160px;
  --nav-gap: 28px;
  --nav-offset: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--nav-offset);
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 68px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-logo { display: flex; align-items: center; gap: 10px; }

.navbar-logo img {
  height: 36px !important;
  width: auto !important;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.navbar-logo span { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.navbar-logo span .accent { color: var(--accent); }

.navbar-links { display: flex; align-items: center; gap: 26px; }

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 6px 2px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-links a:hover { color: var(--text-primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-links .dropdown { position: relative; }

.navbar-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.navbar-links .dropdown:hover .dropdown-menu,
.navbar-links .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-links .dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
}

.dropdown-menu a:hover { background: var(--bg-elevated); color: var(--text-primary); }

.navbar-cta { display: flex; align-items: center; gap: 14px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-secondary); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-lg { padding: 14px 34px; font-size: 1rem; }

/* ===== MOBILE MENU ===== */
.mobile-toggle {
  display: none !important;
  padding: 0;
  margin: 0 0 0 12px;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block !important;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-offset));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 48px 0 64px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero-badge .dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }

.hero-stat h3 { font-size: 1.6rem; font-weight: 800; color: var(--accent); }

.hero-stat p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }

.hero-visual .glow-ring {
  position: absolute;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-visual .glow-ring:nth-child(1) { width: 340px; height: 220px; transform: rotate(-6deg); top: 10px; left: 10px; }
.hero-visual .glow-ring:nth-child(2) { width: 340px; height: 220px; transform: rotate(4deg); top: 40px; left: 30px; background: var(--bg-secondary); }
.hero-visual .glow-ring:nth-child(3) { width: 320px; height: 200px; transform: rotate(0deg); top: 24px; left: 20px; background: #fff; display: flex; align-items: center; justify-content: center; }

.hero-visual .center-icon {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  background: var(--gradient-1);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  color: #fff;
}

.hero-visual .center-icon svg { width: 54px; height: 54px; }

/* ===== SECTIONS ===== */
section { position: relative; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.section-header h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--text-primary); }

.section-header p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ===== SERVICES ===== */
.services { padding: 56px 0; background: var(--bg-secondary); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-1); transform: scaleX(0); transform-origin: left; transition: var(--transition); }

.service-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.service-card p { font-size: 0.925rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.65; }

.service-card .price { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; font-weight: 700; }

.service-card .price strong { font-size: 1.2rem; color: var(--text-primary); text-transform: none; letter-spacing: normal; }

.service-card .service-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--accent); margin-top: 10px; }

.service-card .service-link svg { transition: var(--transition); }
.service-card .service-link:hover svg { transform: translateX(4px); }

/* ===== APP GALLERY ===== */
.app-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }

.app-badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition); cursor: default;
}

.app-badge:hover { border-color: var(--border-light); background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.app-badge-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }

/* ===== PANEL SCREENSHOTS ===== */
.screenshot-grid { display: flex; flex-direction: column; gap: 40px; max-width: 1100px; margin: 0 auto; }

.screenshot-frame { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-md); }

.screenshot-frame:hover { border-color: var(--border-light); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.screenshot-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }

.screenshot-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.screenshot-dot.c-red { background: #ff5f57; }
.screenshot-dot.c-yellow { background: #febc2e; }
.screenshot-dot.c-green { background: #28c840; }

.screenshot-label { margin-left: 8px; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.screenshot-body { padding: 3px; background: var(--bg-primary); }
.screenshot-body img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { padding: 48px 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.feature-card { text-align: center; padding: 28px 20px; border-radius: var(--radius-lg); transition: var(--transition); }

.feature-card:hover { background: var(--bg-secondary); }

.feature-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { padding: 48px 0; background: var(--bg-secondary); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: var(--max-width); margin: 0 auto; }

.pricing-grid > * { opacity: 1 !important; transform: none !important; transition: none !important; }

.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: var(--transition); position: relative; }

.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-accent); }

.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient-1); padding: 4px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }

.pricing-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured:hover { border-color: var(--accent); box-shadow: var(--shadow-accent); }

.pricing-header { margin-bottom: 20px; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.pricing-header .subtitle { font-size: 0.8125rem; color: var(--text-muted); }

.pricing-amount { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.pricing-amount .period { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

.pricing-features { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); align-items: flex-start; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.testimonial-card .quote { font-size: 0.95rem; color: var(--text-secondary); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 48px 0; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: var(--transition); }

.portfolio-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.portfolio-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== BLOG ===== */
.blog { padding: 48px 0; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }

.blog-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card img { width: 100%; height: 190px; object-fit: cover; object-position: center; display: block; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.blog-card > a { display: block; line-height: 0; }

.blog-card .blog-body { padding: 22px; }

.blog-card .blog-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 12px; font-weight: 600; }

.blog-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
.blog-card .blog-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.blog-card .blog-link svg { transition: var(--transition); }
.blog-card .blog-link:hover svg { transform: translateX(4px); }

/* ===== CTA ===== */
.cta-section { padding: 56px 0; background: var(--bg-secondary); position: relative; overflow: hidden; }

.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.06) 0%, transparent 70%); pointer-events: none; }

.cta-content { text-align: center; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.cta-content p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; }
.cta-content .btn { font-size: 1rem; padding: 14px 36px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 52px 0 28px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }

.footer-brand p { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 12px; max-width: 320px; line-height: 1.6; }

.footer h4 { font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }

.footer-bottom p { font-size: 0.8125rem; color: var(--text-muted); }

.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }

.eu-petition-btn { display: inline-block; padding: 8px 18px; background: var(--accent); color: #fff; text-decoration: none; font-size: 0.8125rem; font-weight: 700; border-radius: 8px; border: 1px solid var(--accent); transition: var(--transition); }
.eu-petition-btn:hover { background: var(--accent-dark); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header { padding: 44px 0 52px; text-align: center; background: var(--gradient-hero); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }

.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }

.page-header p { font-size: 1.05rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }

/* ===== AUTH ===== */
.auth-page { min-height: calc(100vh - 300px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }

.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 44px; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }

.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 0.9375rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--bg-primary); color: var(--text-primary); font-size: 0.9375rem; box-sizing: border-box; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.auth-card .btn { width: 100%; text-align: center; margin-top: 8px; }
.auth-card .btn-primary { display: block; }

.auth-footer { text-align: center; margin-top: 22px; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-tabs { display: flex; margin-bottom: 28px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-secondary); }
.auth-tab { flex: 1; padding: 12px; text-align: center; cursor: pointer; color: var(--text-muted); font-weight: 600; border: none; background: transparent; transition: var(--transition); font-size: 0.9rem; }
.auth-tab.active { background: var(--accent); color: #fff; }

.hidden { display: none; }

.tos-row { margin-bottom: 18px; }
.tos-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); cursor: pointer; user-select: text; }
.tos-checkbox-label input[type="checkbox"] { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); cursor: pointer; }
.tos-error { display: none; color: #e11d48; font-size: 0.8125rem; margin-top: 6px; font-weight: 600; }

/* ===== ADMIN / PANEL GENERIC ===== */
.admin-wrap { padding: 44px 0 60px; }
.admin-page { padding: 44px 0 60px; min-height: 100vh; }
.admin-dashboard { padding: 44px 0 60px; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.9rem; font-weight: 800; margin: 0; }
.admin-stats { display: flex; gap: 12px; }
.admin-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.admin-stat .num { font-size: 1.5rem; font-weight: 800; }
.admin-stat .num.pending { color: #d97706; }
.admin-stat .num.active { color: #16a34a; }
.admin-stat .num.cancelled { color: #dc2626; }
.admin-stat .lbl { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

.dashboard-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.dashboard-header h1 { font-size: 1.9rem; font-weight: 800; margin: 0; }
.header-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.filter-bar label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-bar input, .filter-bar select { padding: 9px 12px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); font-size: 0.875rem; }
.filter-bar button { padding: 9px 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.filter-bar button:hover { background: var(--accent-dark); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; transition: var(--transition); position: relative; overflow: hidden; }
.metric-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.metric-card .metric-bg-icon { position: absolute; right: 16px; top: 16px; font-size: 2rem; opacity: 0.08; }
.metric-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-weight: 700; }
.metric-value { font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
.metric-change { font-size: 0.8rem; display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.metric-change.positive { color: #16a34a; }
.metric-change.negative { color: #dc2626; }

.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 20px; margin-bottom: 24px; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.chart-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.chart-card .chart-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.chart-container { position: relative; }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg-secondary); }

.btn-export { padding: 10px 20px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.btn-export:hover { background: var(--accent-dark); }
.btn-refresh { padding: 10px 20px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.btn-refresh:hover { border-color: var(--accent); color: var(--accent); }

.loading { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.loading .spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-elevated); padding: 4px; border-radius: 10px; }
.tab { flex: 1; padding: 10px 20px; border: none; background: none; color: var(--text-muted); font-size: 0.875rem; cursor: pointer; border-radius: 8px; font-weight: 700; transition: all .2s; }
.tab:hover { color: var(--text-primary); }
.tab.active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }

/* ===== STATUS BADGES ===== */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.status-badge .status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-badge.running { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.status-badge.running .status-dot { background: #16a34a; }
.status-badge.stopped { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.status-badge.stopped .status-dot { background: #64748b; }
.status-badge.pending { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.status-badge.pending .status-dot { background: #d97706; }
.status-badge.error { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.status-badge.error .status-dot { background: #dc2626; }
.status-badge.unknown { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.status-badge.unknown .status-dot { background: #64748b; }
.status-badge.active { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
.status-badge.cancelled { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

.badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 100px; font-weight: 700; }
.badge.pending { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.badge.active { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.badge.cancelled { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

/* ===== ORDER CARDS ===== */
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.order-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }
.order-card.pending { border-left: 3px solid #f59e0b; }
.order-card.active { border-left: 3px solid #22c55e; }
.order-card.cancelled { border-left: 3px solid #ef4444; opacity: 0.6; }

.order-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; }
.order-top:hover { background: var(--bg-card-hover); }
.order-left { display: flex; align-items: center; gap: 16px; }
.order-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(37, 99, 235, 0.1); }
.order-meta h4 { font-size: 0.9375rem; font-weight: 700; }
.order-meta .sub { font-size: 0.8125rem; color: var(--text-muted); }
.order-meta .email { font-size: 0.8125rem; color: var(--accent); font-weight: 600; }
.order-right { display: flex; align-items: center; gap: 12px; }
.order-expand { color: var(--text-muted); transition: transform 0.2s; }
.order-expand.open { transform: rotate(180deg); }

.order-details { padding: 0 20px 20px; display: none; border-top: 1px solid var(--border); }
.order-details.open { display: block; padding-top: 20px; }
.detail-section { margin-bottom: 16px; }
.detail-section h5 { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.detail-item { background: var(--bg-elevated); padding: 10px 12px; border-radius: 10px; }
.detail-item.highlight { border: 1px solid rgba(22, 163, 74, 0.35); }
.detail-item .lbl { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.detail-item .val { font-size: 0.875rem; margin-top: 2px; word-break: break-word; }

/* ===== SERVER CARDS (panel) ===== */
.servers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }

.server-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 4px; transition: var(--transition); }
.server-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }
.server-card.pending { border-left: 3px solid #f59e0b; }
.server-card.active { border-left: 3px solid #22c55e; }
.server-card.cancelled { border-left: 3px solid #ef4444; opacity: 0.6; }

.server-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; }
.server-info { display: flex; align-items: center; gap: 14px; }
.server-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(37, 99, 235, 0.1); flex-shrink: 0; }
.server-title h3 { font-size: 0.95rem; font-weight: 700; }
.server-plan { font-size: 0.75rem; color: var(--text-muted); }
.server-card-body { padding: 0 20px 20px; }
.server-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); }
.server-meta { font-size: 0.75rem; color: var(--text-muted); }

.power-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.power-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.power-btn:hover { border-color: var(--accent); color: var(--accent); }
.power-btn.start { color: #16a34a; }
.power-btn.stop { color: #dc2626; }
.power-btn.reboot { color: var(--accent); }
.power-btn.billing { color: var(--text-secondary); }
.power-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== EMPTY / LOADING STATES ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

.loading-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.loading-state .spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }

/* ===== TOAST / MISC ===== */
.toast { position: fixed; bottom: 24px; right: 24px; max-width: 420px; background: var(--text-primary); color: var(--bg-primary); padding: 14px 20px; border-radius: 12px; font-size: 0.875rem; transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 9999; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #16a34a; color: #fff; }
.toast.error { background: #dc2626; color: #fff; }

.modal-overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, 0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9998; padding: 20px; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 520px; position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: none; background: var(--bg-elevated); border-radius: 50%; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }

/* ===== CONNECTIONS PAGE ===== */
.conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conn-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.conn-card.full { grid-column: 1 / -1; }
.conn-card h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.conn-card .conn-desc { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 18px; }
.conn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.conn-form label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.conn-form input, .conn-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--bg-primary); color: var(--text-primary); font-size: 0.875rem; box-sizing: border-box; }
.conn-form input:focus, .conn-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.conn-form .form-group { display: flex; flex-direction: column; }
.conn-form .form-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.btn-primary-sm { padding: 11px 20px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.btn-primary-sm:hover { background: var(--accent-dark); }
.btn-ghost-sm { padding: 10px 18px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.btn-ghost-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger-sm { padding: 10px 18px; background: rgba(220, 38, 38, 0.08); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.25); border-radius: 10px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.btn-danger-sm:hover { background: rgba(220, 38, 38, 0.15); }
.node-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.node-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); flex-wrap: wrap; }
.node-item .node-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 200px; }
.node-item .node-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: rgba(37, 99, 235, 0.1); flex-shrink: 0; }
.node-item .node-name { font-weight: 700; font-size: 0.9375rem; }
.node-item .node-sub { font-size: 0.75rem; color: var(--text-muted); }
.node-item .node-actions { display: flex; gap: 8px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.chip.proxmox { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.chip.dedicated { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.chip.other { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.msg { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 0.8125rem; display: none; }
.msg.ok { display: block; background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); color: #16a34a; }
.msg.err { display: block; background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3); color: #dc2626; }
.msg.info { display: block; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25); color: var(--accent); }
.configured-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.configured-dot.on { background: #16a34a; }
.configured-dot.off { background: #cbd5e1; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }
.fade-in-right { opacity: 0; transform: translateX(30px); animation: fadeInRight 0.6s ease forwards; }
.stagger > * { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.19s; }
.stagger > *:nth-child(4) { animation-delay: 0.26s; }
.stagger > *:nth-child(5) { animation-delay: 0.33s; }
.stagger > *:nth-child(6) { animation-delay: 0.4s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ===== SUCCESS BANNER ===== */
.success-banner { display: none; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); border-radius: var(--radius-md); color: #16a34a; font-size: 0.9rem; margin-bottom: 24px; }
.billing-warning { background: rgba(220, 38, 38, 0.08); border-top: 1px solid rgba(220, 38, 38, 0.25); padding: 12px 24px; font-size: 0.8125rem; color: #dc2626; }
.incompat-banner { background: rgba(220, 38, 38, 0.08); border-top: 1px solid rgba(220, 38, 38, 0.25); padding: 12px 16px; font-size: 0.8125rem; color: #dc2626; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: flex !important; }
  .navbar-cta { margin-left: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .conn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .servers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .hero h1 { font-size: 1.8rem; }
}