:root{
  --blue:#2f7dd1;
  --blue2:#0b4a8b;
  --black:#070a12;
  --black2:#0b1020;
  --card:#0e152b;
  --text:#eaf2ff;
  --muted:#a9b7d0;
  --border:rgba(255,255,255,0.10);
  --shadow: 0px 18px 45px rgba(0,0,0,0.45);
  --radius: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*{ box-sizing:border-box; }

body{
  margin:0px;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(760px 460px at 120px 140px, rgba(47,125,209,0.22), transparent 60%),
    radial-gradient(760px 460px at 980px 160px, rgba(11,74,139,0.18), transparent 60%),
    linear-gradient(180deg, var(--black), var(--black2));
}

a{ color:inherit; text-decoration:none; }

.container{
  width:auto;
  max-width:1100px;
  margin:0px auto;
  padding:22px 16px 36px;
}

header{
  padding:18px;
  border-radius:var(--radius);
  background: linear-gradient(135deg, rgba(47,125,209,0.14), rgba(11,74,139,0.10));
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  width: 90px;
  height: auto;
  display: block;
}
.brand-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-title h1{
  margin:0px;
  font-size:26px;
  line-height:30px;
  letter-spacing:0.2px;
}

.brand-title p{
  margin:0px;
  font-size:13px;
  color:var(--muted);
}

.hero{
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius);
  background: rgba(14,21,43,0.82);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.hero h2{
  margin:0px 0px 8px;
  font-size:22px;
  line-height:28px;
}

.hero p{
  margin:0px;
  color:var(--muted);
  line-height:22px;
  font-size:14px;
}

.hero-badge{
  width:74px;
  height:74px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(47,125,209,0.18), rgba(11,74,139,0.14));
  border:1px solid var(--border);
}

.hero-badge i{
  font-size:36px;
  color: var(--blue);
}

.section{
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius);
  background: rgba(14,21,43,0.70);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.section h2{
  margin:0px 0px 14px;
  font-size:18px;
}

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

.card{
  width:330px;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,21,43,0.95), rgba(11,16,32,0.88));
  box-shadow: 0px 12px 26px rgba(0,0,0,0.40);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0px 18px 34px rgba(0,0,0,0.52);
  border-color: rgba(47,125,209,0.45);
}

.card:active{
  transform: translateY(1px) scale(0.99);
}

.card-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(47,125,209,0.14);
  border:1px solid rgba(47,125,209,0.22);
}

.card-icon i{
  font-size:22px;
  color: var(--blue);
}

.card h3{
  margin:0px;
  font-size:16px;
}

.card p{
  margin:0px;
  color:var(--muted);
  font-size:13px;
  line-height:18px;
}

.page-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}

.breadcrumb a{
  color: var(--blue);
  font-weight:700;
}

.back-home{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0px 10px 22px rgba(0,0,0,0.35);
  font-weight:800;
  font-size:13px;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.back-home:hover{
  transform: translateY(-1px);
  border-color: rgba(47,125,209,0.45);
}

footer{
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius);
  background: rgba(14,21,43,0.62);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.social-links p{
  margin:0px 0px 10px;
  color:var(--muted);
  font-size:13px;
}

.social-icons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.social-icon{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0px 10px 22px rgba(0,0,0,0.30);
  font-weight:700;
  font-size:13px;
}

.social-icon i{ color: var(--blue); }

.copyright{
  margin:12px 0px 0px;
  color:rgba(233,242,255,0.70);
  font-size:12px;
}

@media (max-width: 1200px){
  .container{ max-width:980px; }
}

@media (max-width: 1020px){
  .container{ max-width:720px; }
  .card{ width:340px; }
}

@media (max-width: 760px){
  .container{ max-width:360px; padding:16px 12px 28px; }
  .hero-badge{ display:none; }
  .cards{ gap:12px; }
  .card{ width:360px; }
  .footer-row{ flex-direction:column; }
}.templates-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
}

.tpl-cell{
  height:86px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(14,21,43,0.95), rgba(11,16,32,0.88));
  box-shadow: 0px 12px 26px rgba(0,0,0,0.40);
  cursor:pointer;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.tpl-cell:hover{
  transform: translateY(-2px);
  border-color: rgba(47,125,209,0.45);
}

.tpl-cell:active{
  transform: translateY(1px);
}

.tpl-cell-title{
  font-size:14px;
  font-weight:900;
  color:#eaf2ff;
  line-height:18px;
}

.tpl-cell-sub{
  margin-top:6px;
  font-size:12px;
  color:#a9b7d0;
  line-height:16px;
}

@media (max-width: 1020px){
  .templates-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px){
  .templates-grid{ grid-template-columns: repeat(2, 1fr); }
}