:root{
  /* Colors */
  --bg:#070A12;
  --panel:#0B1020;
  --card:rgba(255,255,255,.05);
  --text:#EAF2FF;
  --muted:rgba(234,242,255,.74);
  --line:rgba(234,242,255,.12);
  --primary:#22C55E;
  --accent:#06B6D4;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius:18px;
  
  /* Typography - Font Families */
  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  
  /* Typography - Font Sizes */
  --fs-h1: 3rem;        /* 48px - Hero headlines */
  --fs-h2: 2rem;        /* 32px - Section titles */
  --fs-h3: 1.25rem;     /* 20px - Card/subsection titles */
  --fs-h4: 1.125rem;    /* 18px - Small headings */
  --fs-base: 0.9375rem; /* 15px - Body text */
  --fs-small: 0.875rem; /* 14px - Small text */
  --fs-meta: 0.8125rem; /* 13px - Meta/fine text */
  --fs-tiny: 0.75rem;   /* 12px - Labels, badges */
  
  /* Typography - Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  
  /* Typography - Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-relaxed: 1.7;
  
  /* Typography - Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  line-height: var(--lh-normal);
}
/* Utility Classes */
.container{width:92%;max-width:1180px;margin:0 auto}
.muted{color:var(--muted);line-height: var(--lh-normal);}
.fine{font-size:var(--fs-meta);line-height: var(--lh-snug);}
.divider{height:1px;background:var(--line);margin:var(--space-lg) 0}
.badge{
  display:inline-flex;
  gap:var(--space-xs);
  align-items:center;
  padding:var(--space-xs) var(--space-sm);
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  font-weight:var(--fw-extrabold);
  font-size:var(--fs-tiny);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-wide);
  color:rgba(234,242,255,.92);
  text-transform: uppercase;
}
/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-xs);
  padding:var(--space-sm) var(--space-md);
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-family: var(--font-base);
  font-size: var(--fs-small);
  font-weight:var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-tight);
  cursor:pointer;
  transition: transform 0.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  border-color:rgba(34,197,94,.45);
  background:linear-gradient(135deg, rgba(34,197,94,.95), rgba(6,182,212,.45));
  box-shadow:0 12px 28px rgba(34,197,94,.18);
  font-weight:var(--fw-bold);
}
.btn-ghost{background:transparent}
.btn-block{width:100%}

/* Cards */
.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card.pad{padding:var(--space-lg)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-md)}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-md)}

/* Header & Navigation */
/* NOTE: Main navbar styles moved to navbar.css for better organization and maintainability */
/* Keep only these base styles here to avoid conflicts */

/* Hero Section */
.hero{
  position:relative;
  padding:var(--space-3xl) 0 var(--space-2xl);
  background:
    radial-gradient(900px 380px at 15% 10%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(900px 380px at 85% 15%, rgba(6,182,212,.14), transparent 60%),
    url("../img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  border-bottom:1px solid rgba(234,242,255,.10);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:var(--space-xl);
  align-items:center;
}
.hero h1{
  font-size:var(--fs-h1);
  line-height:var(--lh-tight);
  letter-spacing:var(--ls-tight);
  font-weight:var(--fw-extrabold);
}
.hero p{
  margin-top:var(--space-md);
  max-width:62ch;
  font-size:var(--fs-base);
  line-height:var(--lh-relaxed);
}
.hero .cta{
  display:flex;
  gap:var(--space-sm);
  flex-wrap:wrap;
  margin-top:var(--space-lg);
}
.hero .panel{
  background:rgba(11,16,32,.66);
  border:1px solid rgba(234,242,255,.12);
  border-radius:22px;
  padding:var(--space-lg);
  backdrop-filter: blur(10px);
}
.hero .panel h3{
  font-size:var(--fs-h4);
  font-weight:var(--fw-bold);
}
.hero .panel ul{
  list-style:none;
  display:grid;
  gap:var(--space-sm);
  margin-top:var(--space-md);
}
.hero .panel li{
  display:flex;
  gap:var(--space-sm);
  align-items:flex-start;
  color:var(--muted);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}
.hero .panel li:before{
  content:"✓";
  color:var(--accent);
  font-weight:var(--fw-extrabold);
}

/* Sections */
.section{padding:var(--space-2xl) 0}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--space-md);
  margin:var(--space-xl) 0 var(--space-lg);
}
.section-title h2{
  font-size:var(--fs-h2);
  font-weight:var(--fw-bold);
  line-height:var(--lh-tight);
}
.kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--space-md);
}
.kpi{padding:var(--space-lg)}
.kpi .n{
  font-size:2rem;
  font-weight:var(--fw-extrabold);
  line-height:var(--lh-tight);
}
.kpi .l{
  margin-top:var(--space-xs);
  color:var(--muted);
  font-weight:var(--fw-semibold);
  font-size:var(--fs-tiny);
  line-height:var(--lh-snug);
  text-transform:uppercase;
  letter-spacing:var(--ls-wide);
}

/* Icons & Service Cards */
.iconline{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
}
.iconline > div {
  flex: 1;
}
.iconline > div > div:first-child {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
}
.iconline > div > div.muted {
  margin-top: var(--space-xs);
  font-size: var(--fs-meta);
}
.icon{
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  font-weight:var(--fw-extrabold);
  font-size:1.125rem;
}
.icon svg{width:20px;height:20px;stroke:rgba(234,242,255,.92)}
.service p{
  margin-top:var(--space-md);
  color:var(--muted);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}
.pill{
  display:inline-block;
  padding:var(--space-xs) var(--space-sm);
  border-radius:999px;
  border:1px solid var(--line);
  font-size:var(--fs-tiny);
  font-weight:var(--fw-semibold);
  letter-spacing:var(--ls-normal);
  line-height:var(--lh-tight);
  color:rgba(234,242,255,.88);
  background:rgba(255,255,255,.04);
}
.list{
  list-style:none;
  display:grid;
  gap:var(--space-sm);
  margin-top:var(--space-md);
}
.list li{
  color:var(--muted);
  display:flex;
  gap:var(--space-sm);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}
.list li:before{
  content:"•";
  color:var(--primary);
  font-weight:var(--fw-extrabold);
}

/* Forms */
.filters{display:flex;gap:var(--space-sm);flex-wrap:wrap}
input,select,textarea{
  width:100%;
  padding:var(--space-sm) var(--space-md);
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-family: var(--font-base);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  outline:none;
  transition: border-color 0.2s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(34,197,94,.45);
}
label{
  display:block;
  font-weight:var(--fw-semibold);
  font-size:var(--fs-tiny);
  letter-spacing:var(--ls-wide);
  text-transform:uppercase;
  color:rgba(234,242,255,.78);
  margin-bottom:var(--space-xs);
}
.field{display:grid;gap:var(--space-xs)}
.actions{
  display:flex;
  gap:var(--space-sm);
  flex-wrap:wrap;
  align-items:center;
  margin-top:var(--space-md);
}
.error{
  color:#ffb4b4;
  min-height:16px;
  display:block;
  font-size:var(--fs-meta);
  line-height:var(--lh-snug);
}

/* Footer */
.footer{
  border-top:1px solid rgba(234,242,255,.10);
  padding:var(--space-2xl) 0 var(--space-xl);
  color:rgba(234,242,255,.65);
  font-size:var(--fs-meta);
  line-height:var(--lh-normal);
  background:rgba(7,10,18,.6);
}
.footer .grid-3 > div > div:first-child {
  font-weight:var(--fw-bold);
  font-size:var(--fs-base);
  margin-bottom:var(--space-sm);
}
.reveal{
  opacity:0;
  transform:translateY(8px);
  transition:.55s ease;
}
.reveal.on{opacity:1;transform:none}

/* Responsive */
@media (max-width: 980px){
  :root {
    --fs-h1: 2.25rem;  /* 36px on mobile */
    --fs-h2: 1.5rem;   /* 24px on mobile */
    --fs-h3: 1.125rem; /* 18px on mobile */
  }
  .hero{padding:var(--space-xl) 0 var(--space-lg)}
  .hero-inner{grid-template-columns:1fr}
  .grid-3,.grid-2,.kpis{grid-template-columns:1fr}
  .section{padding:var(--space-xl) 0}
}

/* Media cards */
.media-card{overflow:hidden;position:relative}
.media-card .thumb{
  border-radius: 16px;
  border:1px solid rgba(234,242,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.media-card .thumb img{width:100%; height:180px; object-fit:cover}
.media-card h3{
  margin-top:var(--space-md);
  font-size:var(--fs-h3);
  font-weight:var(--fw-bold);
  line-height:var(--lh-tight);
}
.media-card .meta{
  margin-top:var(--space-xs);
  font-size:var(--fs-meta);
  line-height:var(--lh-snug);
}
.media-card p{
  margin-top:var(--space-sm);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}

/* Auth + Tools */
.auth-wrap{max-width:520px;margin:0 auto}
.notice{
  padding:var(--space-sm) var(--space-md);
  border-radius:14px;
  border:1px solid rgba(234,242,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(234,242,255,.86);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}
.kbd{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:var(--fs-meta);
}
.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-md)}
@media (max-width:980px){.tool-grid{grid-template-columns:1fr}}
.tool-output{
  min-height:44px;
  padding:var(--space-sm) var(--space-md);
  border-radius:14px;
  border:1px dashed rgba(234,242,255,.18);
  background:rgba(255,255,255,.03);
  color:rgba(234,242,255,.86);
  font-size:var(--fs-small);
  line-height:var(--lh-normal);
}
.smallrow{display:flex;gap:var(--space-sm);flex-wrap:wrap}
.smallrow > *{flex:1}

/* Scroll to top button */
.scroll-top{
  position:fixed;
  bottom:24px;
  right:24px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:linear-gradient(135deg, rgba(34,197,94,.95), rgba(6,182,212,.45));
  border:1px solid rgba(34,197,94,.45);
  box-shadow:0 12px 28px rgba(34,197,94,.18);
  color:var(--text);
  font-size:1.25rem;
  font-weight:var(--fw-bold);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:.3s ease;
  z-index:999;
}
.scroll-top.visible{opacity:1;visibility:visible}
.scroll-top:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(34,197,94,.24)}

/* Modal for certificate viewer */
.modal{
  position:fixed;
  inset:0;
  background:rgba(7,10,18,.94);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}
.modal.open{display:flex}
.modal-content{
  position:relative;
  max-width:90vw;
  max-height:90vh;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  overflow:hidden;
}
.modal-content img{max-width:100%;max-height:85vh;object-fit:contain;display:block}
.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(0,0,0,.7);
  border:1px solid var(--line);
  color:var(--text);
  font-size:1.25rem;
  font-weight:var(--fw-bold);
  display:grid;
  place-items:center;
  cursor:pointer;

}
.modal-close:hover{background:rgba(0,0,0,.9)}



/* Featured badge */
.featured-badge{
  position:absolute;
  top:12px;
  right:12px;
  padding:5px 10px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(34,197,94,.95), rgba(6,182,212,.45));
  border:1px solid rgba(34,197,94,.45);
  font-size:var(--fs-tiny);
  font-weight:var(--fw-extrabold);
  letter-spacing:var(--ls-wide);
  text-transform:uppercase;
  box-shadow:0 4px 12px rgba(34,197,94,.3);
}

/* Search and filter inputs */
.search-filter-bar{
  display:flex;
  gap:var(--space-sm);
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:var(--space-md);
}
.search-input{flex:1;min-width:240px}

/* Service packages */
.package-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-md);
  margin-top:var(--space-md);
}
@media (max-width:980px){.package-grid{grid-template-columns:1fr}}
.package-card{position:relative}
.package-card.recommended{border-color:rgba(34,197,94,.45)}
.package-card .package-badge{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  padding:4px 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(34,197,94,.95), rgba(6,182,212,.45));
  border:1px solid rgba(34,197,94,.45);
  font-size:var(--fs-tiny);
  font-weight:var(--fw-extrabold);
  letter-spacing:var(--ls-wide);
  text-transform:uppercase;
}
.price{
  font-size:2rem;
  font-weight:var(--fw-extrabold);
  margin:var(--space-md) 0;
  line-height:var(--lh-tight);
}
.price-period{
  font-size:var(--fs-small);
  color:var(--muted);
  font-weight:var(--fw-regular);
}

/* CTA Banner */
.cta-banner{
  background:linear-gradient(135deg, rgba(34,197,94,.12), rgba(6,182,212,.10));
  border:1px solid rgba(34,197,94,.30);
  border-radius:var(--radius);
  padding:var(--space-xl);
  margin-top:var(--space-xl);
  text-align:center;
}
.cta-banner h3{
  margin-bottom:var(--space-sm);
  font-size:var(--fs-h3);
  font-weight:var(--fw-bold);
}
.cta-banner .actions{justify-content:center;margin-top:var(--space-lg)}

/* Hidden class for filtering */
.hidden{display:none !important}

/* Utility spacing classes */
.mt-xs{margin-top:var(--space-xs)}
.mt-sm{margin-top:var(--space-sm)}
.mt-md{margin-top:var(--space-md)}
.mt-lg{margin-top:var(--space-lg)}

/* Utility typography classes */
.fw-bold{font-weight:var(--fw-bold)}
.fw-extrabold{font-weight:var(--fw-extrabold)}

/* Card title - used in iconline contexts */
.card-title{
  font-weight:var(--fw-bold);
  font-size:var(--fs-h3);
  line-height:var(--lh-tight);
}

/* Footer brand */
.footer-brand{
  font-weight:var(--fw-bold);
  font-size:var(--fs-base);
  margin-bottom:var(--space-sm);
}

/* Icon variants */
.icon-success{
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.30);
}
.icon-info{
  background:rgba(6,182,212,.14);
  border-color:rgba(6,182,212,.30);
}

/* Social links in footer */
.social-links{
  display:flex;
  gap:var(--space-sm);
  margin-top:var(--space-sm);
}
.social-link{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  display:grid;
  place-items:center;
  font-size:var(--fs-base);
  transition: all 0.2s ease;
}
.social-link:hover{
  background:rgba(255,255,255,.10);
  transform:translateY(-2px);
}

/* Partners Section */
.partners-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:var(--space-lg);
  align-items:center;
  justify-items:center;
}
.partner-logo-item{
  width:100%;
  max-width:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.partner-logo-item:hover{
  opacity:1;
  transform:scale(1.05);
}
.partner-logo-item img{
  width:100%;
  height:auto;
  filter:brightness(0.9);
}
.partner-card .partner-logo{
  width:100%;
  max-width:200px;
  margin:0 auto var(--space-md);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:80px;
}
.partner-card .partner-logo img{
  width:100%;
  height:auto;
}
.partner-card{
  text-align:center;
}
.partner-card h4{
  margin-bottom:var(--space-xs);
}
.text-center{
  text-align:center;
}

/* ===== DEMO DASHBOARD STYLES ===== */

/* Dashboard Header */
.dashboard-header{
  background:rgba(11,16,32,.66);
  border-bottom:1px solid rgba(234,242,255,.10);
  padding:var(--space-lg) 0;
}
.dashboard-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-lg);
  flex-wrap:wrap;
}
.dashboard-title h1{
  font-size:var(--fs-h2);
  font-weight:var(--fw-bold);
  margin-bottom:var(--space-xs);
}
.dashboard-controls{
  display:flex;
  gap:var(--space-sm);
  flex-wrap:wrap;
}

/* KPI Cards */
.kpis-4{
  grid-template-columns:repeat(4,1fr);
}
.kpi-card{
  text-align:center;
}
.kpi-label{
  font-size:var(--fs-meta);
  color:var(--muted);
  font-weight:var(--fw-semibold);
  text-transform:uppercase;
  letter-spacing:var(--ls-wide);
  margin-bottom:var(--space-sm);
}
.kpi-value{
  margin:var(--space-md) 0;
}
.kpi-number{
  font-size:2.5rem;
  font-weight:var(--fw-extrabold);
  line-height:var(--lh-tight);
  color:var(--primary);
}
.threat-badge{
  display:inline-flex;
  padding:var(--space-xs) var(--space-lg);
  border-radius:999px;
  font-size:var(--fs-h4);
  font-weight:var(--fw-bold);
  text-transform:uppercase;
  letter-spacing:var(--ls-wide);
}
.threat-badge.low{
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.30);
  color:#22C55E;
}
.threat-badge.medium{
  background:rgba(251,191,36,.14);
  border:1px solid rgba(251,191,36,.30);
  color:#fbbf24;
}
.threat-badge.high{
  background:rgba(239,68,68,.14);
  border:1px solid rgba(239,68,68,.30);
  color:#ef4444;
}

/* Progress Bar */
.progress-bar{
  width:100%;
  height:8px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
  margin-top:var(--space-sm);
}
.progress-fill{
  height:100%;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  border-radius:999px;
  transition:width 0.5s ease;
}

/* Dashboard Main Row */
.dashboard-main-row{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:var(--space-md);
  align-items:start;
}

/* Alerts Panel */
.alerts-panel{
  max-height:600px;
  display:flex;
  flex-direction:column;
}
.panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-md);
  margin-bottom:var(--space-md);
  flex-wrap:wrap;
}
.panel-header h3{
  font-size:var(--fs-h3);
  font-weight:var(--fw-bold);
}
.filter-chips{
  display:flex;
  gap:var(--space-xs);
  flex-wrap:wrap;
}
.chip{
  padding:var(--space-xs) var(--space-sm);
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  font-size:var(--fs-tiny);
  font-weight:var(--fw-semibold);
  cursor:pointer;
  transition:all 0.2s ease;
  color:var(--muted);
}
.chip:hover{
  background:rgba(255,255,255,.08);
}
.chip.active{
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.30);
  color:var(--primary);
}
.search-bar{
  margin-bottom:var(--space-md);
}
.search-bar input{
  width:100%;
  padding:var(--space-sm) var(--space-md);
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-size:var(--fs-small);
}
.alerts-list{
  flex:1;
  overflow-y:auto;
  max-height:400px;
}
.alert-item{
  padding:var(--space-sm);
  border-bottom:1px solid var(--line);
  transition:background 0.2s ease;
}
.alert-item:hover{
  background:rgba(255,255,255,.02);
}
.alert-item:last-child{
  border-bottom:none;
}
.alert-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-sm);
  margin-bottom:var(--space-xs);
}
.alert-time{
  font-size:var(--fs-meta);
  color:var(--muted);
}
.alert-severity{
  display:inline-flex;
  padding:2px 8px;
  border-radius:4px;
  font-size:var(--fs-tiny);
  font-weight:var(--fw-bold);
  text-transform:uppercase;
}
.alert-severity.info{
  background:rgba(6,182,212,.14);
  color:var(--accent);
}
.alert-severity.warn{
  background:rgba(251,191,36,.14);
  color:#fbbf24;
}
.alert-severity.critical{
  background:rgba(239,68,68,.14);
  color:#ef4444;
}
.alert-category{
  font-size:var(--fs-small);
  font-weight:var(--fw-semibold);
  color:var(--text);
}
.alert-message{
  font-size:var(--fs-small);
  color:var(--muted);
  line-height:var(--lh-snug);
}
.empty-state{
  padding:var(--space-xl);
  text-align:center;
  color:var(--muted);
  font-size:var(--fs-small);
}

/* Dashboard Sidebar */
.dashboard-sidebar{
  display:grid;
  gap:var(--space-md);
}
.status-panel h3,
.actions-panel h3{
  font-size:var(--fs-h4);
  font-weight:var(--fw-bold);
  margin-bottom:var(--space-md);
}
.status-list{
  display:grid;
  gap:var(--space-sm);
}
.status-item{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  padding:var(--space-xs) 0;
  font-size:var(--fs-small);
}
.status-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink:0;
}
.status-dot.status-online{
  background:#22C55E;
  box-shadow:0 0 8px rgba(34,197,94,.5);
}
.status-dot.status-warning{
  background:#fbbf24;
  box-shadow:0 0 8px rgba(251,191,36,.5);
}
.status-dot.status-down{
  background:#ef4444;
  box-shadow:0 0 8px rgba(239,68,68,.5);
}
.quick-actions{
  display:grid;
  gap:var(--space-sm);
}

/* Ecosystem Links */
.ecosystem-links{
  display:grid;
  gap:var(--space-sm);
  margin-top:var(--space-md);
}
.ecosystem-link{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  padding:var(--space-sm);
  border-radius:10px;
  border:1px solid rgba(234,242,255,.08);
  background:rgba(255,255,255,.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ecosystem-link:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(234,242,255,.15);
}

/* Dashboard Bottom Row */
.dashboard-bottom-row{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:var(--space-md);
}
.timeline-panel h3,
.categories-panel h3{
  font-size:var(--fs-h4);
  font-weight:var(--fw-bold);
  margin-bottom:var(--space-md);
}

/* Mini Chart - Redesigned */
.miniChart{
  margin-top:var(--space-md);
  padding:var(--space-md);
  background:rgba(255,255,255,.02);
  border-radius:12px;
  border:1px solid rgba(234,242,255,.08);
}
.miniChartLabels{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:var(--space-sm);
  font-size:var(--fs-tiny);
  font-weight:var(--fw-semibold);
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:var(--ls-wide);
}
.miniChartLabel-left,
.miniChartLabel-right{
  padding:0 var(--space-xs);
}
.miniChartBars{
  display:flex;
  align-items:flex-end;
  gap:var(--space-xs);
  height:140px;
  padding:var(--space-sm) 0;
  position:relative;
}
.miniBar{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  height:100%;
  cursor:pointer;
  transition:transform 0.2s ease;
  position:relative;
}
.miniBar:hover{
  transform:translateY(-2px);
}
.miniBarFill{
  width:100%;
  background:linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius:6px 6px 0 0;
  transition:height 0.5s ease, box-shadow 0.3s ease;
  min-height:3px;
  box-shadow:0 0 12px rgba(34,197,94,.3);
  position:relative;
}
.miniBar:hover .miniBarFill{
  box-shadow:0 0 20px rgba(34,197,94,.5);
}
.miniChartSummary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:var(--space-md);
  padding-top:var(--space-md);
  border-top:1px solid rgba(234,242,255,.08);
  flex-wrap:wrap;
  gap:var(--space-sm);
}
.miniChartStat{
  font-size:var(--fs-small);
  color:var(--muted);
  line-height:var(--lh-snug);
}
.miniChartStat strong{
  color:var(--primary);
  font-weight:var(--fw-bold);
}
.miniChartEmpty{
  text-align:center;
  padding:var(--space-xl) var(--space-md);
  color:var(--muted);
  font-size:var(--fs-small);
  font-style:italic;
}

/* Categories List */
.categories-list{
  display:grid;
  gap:var(--space-sm);
}
.category-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:var(--space-xs) 0;
  font-size:var(--fs-small);
}
.category-name{
  color:var(--text);
}
.category-percent{
  font-weight:var(--fw-bold);
  color:var(--primary);
}

/* Risk Panel */
.risk-panel h3{
  font-size:var(--fs-h3);
  font-weight:var(--fw-bold);
  margin-bottom:var(--space-xs);
}
.risk-controls{
  display:grid;
  gap:var(--space-md);
}

/* Toggle Control */
.toggle-control{
  display:flex;
  align-items:center;
  gap:var(--space-md);
  cursor:pointer;
  position:relative;
  padding:var(--space-sm) 0;
}
.toggle-control input[type="checkbox"]{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.toggle-slider{
  width:44px;
  height:24px;
  background:rgba(255,255,255,.1);
  border-radius:999px;
  position:relative;
  transition:background 0.3s ease;
  border:1px solid var(--line);
  flex-shrink:0;
}
.toggle-slider:before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  left:2px;
  top:2px;
  background:var(--text);
  border-radius:50%;
  transition:transform 0.3s ease;
}
.toggle-control input:checked + .toggle-slider{
  background:var(--primary);
  border-color:var(--primary);
}
.toggle-control input:checked + .toggle-slider:before{
  transform:translateX(20px);
}
.toggle-label{
  font-size:var(--fs-small);
  font-weight:var(--fw-medium);
  color:var(--text);
}

/* Responsive Dashboard */
@media (max-width: 980px){
  .dashboard-title{
    flex-direction:column;
    align-items:flex-start;
  }
  .dashboard-controls{
    width:100%;
  }
  .dashboard-controls .btn{
    flex:1;
    min-width:100px;
  }
  .kpis-4{
    grid-template-columns:repeat(2,1fr);
  }
  .dashboard-main-row{
    grid-template-columns:1fr;
  }
  .dashboard-bottom-row{
    grid-template-columns:1fr;
  }
  .miniChartBars{
    height:100px;
  }
  .miniChartSummary{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Community & Partners Section Enhancements */
.community-section {
  background: linear-gradient(135deg, rgba(8, 79, 153, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

.community-card {
  border: 2px solid rgba(8, 79, 153, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 79, 153, 0.4);
}

.community-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.community-btn {
  width: 100%;
}

/* === ONLY first certification card image === */
.cert-card:first-of-type .thumb {
  height: 310px;
  overflow: hidden;
  border-radius: 16px;
}

.cert-card:first-of-type .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* FULL MODE */
}

/* === 2nd + 3rd certification cards image === */
.cert-card:nth-of-type(2) .thumb,
.cert-card:nth-of-type(3) .thumb{
  height: 310px;
  overflow: hidden;
  border-radius: 16px;
}

.cert-card:nth-of-type(2) .thumb img,
.cert-card:nth-of-type(3) .thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cert-card:nth-of-type(4) .thumb,
.cert-card:nth-of-type(5) .thumb{
  height: 310px;
  overflow: hidden;
  border-radius: 16px;
}

.cert-card:nth-of-type(4) .thumb img,
.cert-card:nth-of-type(5) .thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cert-card:nth-of-type(5) .thumb,
.cert-card:nth-of-type(6) .thumb{
  height: 310px;
  overflow: hidden;
  border-radius: 16px;
}

.cert-card:nth-of-type(5) .thumb img,
.cert-card:nth-of-type(6) .thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cert-card:nth-of-type(7) .thumb,
.cert-card:nth-of-type(8) .thumb{
  height: 310px;
  overflow: hidden;
  border-radius: 16px;
}

.cert-card:nth-of-type(7) .thumb img,
.cert-card:nth-of-type(8) .thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
