:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f5f7fb;
  --ink: #333333;
  --muted: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --brand: #0056b3;
  --brand-strong: #003f8a;
  --brand-soft: rgba(0, 86, 179, 0.1);
  --accent: #3b82f6;
  --success: #11a37f;
  --danger: #d64545;
  --warning: #f59e0b;
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --radius-lg: 6px;
  --radius-md: 6px;
  --radius-sm: 6px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all .3s;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  justify-self: start;
}

.brand img,
.footer-brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
}

.site-nav a {
  color: var(--ink);
  font-weight: 600;
  transition: .3s ease;
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 20px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd;
  box-shadow: none;
}
.btn-dark {
  background: #0f172a;
  color: #fff;
}
.btn-danger {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);
}
.btn-block { width: 100%; }

.flash-wrap { padding-top: 20px; }
.flash {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}
.flash-success {
  background: rgba(17, 163, 127, 0.12);
  color: #0b7d61;
}
.flash-error {
  background: rgba(214, 69, 69, 0.12);
  color: #b42318;
}

.hero {
  background: var(--panel-soft);
  padding: 120px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy,
.hero-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  padding: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.2;
}

.hero-copy p,
.page-hero p,
.section-subtitle,
.card-text,
.empty-state p,
.admin-empty p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.metric-card,
.stat-card,
.service-card,
.process-card,
.price-card,
.interface-card,
.project-card,
.article-card,
.testimonial-card,
.faq-card,
.feature-card,
.admin-stat,
.admin-panel,
.content-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-md);
  border-radius: 6px;
}

.metric-card {
  padding: 22px 20px;
}

.metric-card strong,
.stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.hero-card {
  padding: 0;
  display: block;
}

.hero-visual {
  border-radius: 6px;
  overflow: hidden;
  min-height: 420px;
  background: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.hero-visual-card {
  width: 100%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 6px;
  padding: 20px;
}

.section {
  padding: 60px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.grid-4,
.grid-3,
.card-grid,
.admin-grid-4 {
  display: grid;
  gap: 22px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.logo-marquee {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 18px;
}

.partner-card img { max-height: 40px; object-fit: contain; opacity: .75; filter: grayscale(1); transition: all .3s; }
.partner-card img:hover { opacity: 1; filter: grayscale(0); }

.about-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.about-panel,
.detail-panel,
.sidebar-panel {
  padding: 30px;
}

.about-image,
.detail-cover,
.project-cover {
  border-radius: 6px;
  overflow: hidden;
  min-height: 100%;
  background: var(--panel-soft);
}

.about-image img,
.detail-cover img,
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card,
.service-card,
.process-card,
.price-card,
.interface-card,
.project-card,
.article-card,
.testimonial-card,
.faq-card,
.feature-card {
  padding: 24px;
}

.service-icon,
.process-number,
.price-icon,
.card-badge,
.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.process-number {
  width: auto;
  padding: 0 16px;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}

.price-card.featured {
  background: #fff;
  border: 2px solid var(--brand);
  transform: none;
}

.price-list,
.meta-list,
.tag-list,
.feature-list,
.doc-list,
.faq-list {
  display: grid;
  gap: 10px;
}

.tag-list {
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 600;
}

.interface-thumb,
.project-thumb,
.article-thumb,
.gallery-thumb,
.media-preview,
.list-thumb {
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-soft);
}

.interface-thumb img,
.project-thumb img,
.article-thumb img,
.gallery-thumb img,
.list-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-thumb img { height: 230px; }
.project-thumb img { height: 240px; }

.card-actions,
.inline-actions,
.tab-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-hero {
  padding: 110px 0 20px;
}

.page-hero-card {
  padding: 30px 36px;
  background: var(--panel-soft);
  border-radius: 6px;
  box-shadow: none;
}

.page-hero.center { text-align: center; }

.content-copy {
  line-height: 1.8;
  color: var(--muted);
}

.content-copy h2,
.content-copy h3 {
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tab-btn {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 16px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

[data-tab-panel] { display: none; }
[data-tab-panel].active { display: block; }

.docs-box,
.notice-box,
.faq-answer {
  padding: 16px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.site-footer {
  padding: 40px 0 20px;
  margin-top: auto;
  background: #111827;
  color: rgba(255,255,255,.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr .8fr;
  gap: 24px;
}

.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { padding-top: 22px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.admin-body {
  background: #f8fafc;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  padding: 18px;
  background: #0f172a;
  color: rgba(255,255,255,.76);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.admin-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.admin-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-size: .92rem;
}

.admin-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(59,130,246,.18);
  color: #fff;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 18px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  min-height: 64px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e2e8f0;
  padding: 0 18px;
}

.admin-topbar h1 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 900; }
.admin-topbar p { margin: 0; color: var(--muted); }
.admin-user {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font-weight: 700;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat {
  padding: 24px;
}

.admin-stat.blue .admin-stat-icon { background: rgba(59,130,246,.14); color: var(--brand-strong); }
.admin-stat.green .admin-stat-icon { background: rgba(17,163,127,.14); color: #0b7d61; }
.admin-stat.gold .admin-stat-icon { background: rgba(245,158,11,.14); color: #b7791f; }
.admin-stat.rose .admin-stat-icon { background: rgba(214,69,69,.14); color: #b42318; }

.admin-stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.admin-panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h2 { margin: 0 0 8px; }
.panel-header p { margin: 0; color: var(--muted); }

.list-stack {
  display: grid;
  gap: 12px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  display: block;
  padding: 14px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid transparent;
}

.list-item.active,
.list-item:hover {
  border-color: rgba(59,130,246,.35);
  background: #eff6ff;
}

.list-thumb img,
.media-preview img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.list-meta {
  margin-top: 12px;
}

.list-meta strong {
  display: block;
  margin-bottom: 4px;
}

.slug-text,
.muted {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.field.full {
  display: grid;
  gap: 8px;
}

.field.full { grid-column: 1 / -1; }

.field label,
.field > span,
.field strong {
  font-weight: 700;
}

.input,
.textarea,
.select,
.file-input {
  width: 100%;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 6px;
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.file-input {
  padding: 12px;
}

.media-preview {
  min-height: 210px;
}

.media-preview img {
  border-radius: 6px;
  min-height: 210px;
}

.inline-list,
.existing-files,
.existing-images,
.partner-grid,
.value-grid {
  display: grid;
  gap: 12px;
}

.existing-images,
.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.choice-box {
  padding: 14px;
  border-radius: 6px;
  background: #f8fafc;
}

.choice-box img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 520px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 6px;
  padding: 34px;
}

.login-card h1 { margin: 0 0 10px; }
.login-card p { margin: 0 0 22px; color: var(--muted); }

.section-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}

.sticky-sidebar {
  position: sticky;
  top: 110px;
}

.empty-state,
.admin-empty {
  padding: 32px;
  text-align: center;
  border-radius: 6px;
  background: #fff;
  border: 1px dashed rgba(15,23,42,.14);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.06);
  font-weight: 700;
}

.pagination .active span {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .detail-grid,
  .section-split,
  .admin-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .admin-stats,
  .logo-marquee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    left: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero-copy,
  .hero-card,
  .page-hero-card,
  .admin-main { padding: 22px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 20px; }
}

@media (max-width: 640px) {
  .grid-4,
  .logo-marquee,
  .admin-stats,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2rem;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav ul,
.menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-col h4,
.price-card h3,
.interface-card h3,
.project-card h3,
.article-card h3,
.testimonial-card h3,
.feature-card h3,
.faq-card h3 {
  margin: 0 0 12px;
}

.footer-text,
.footer-col,
.price-card p,
.interface-card p,
.project-card p,
.article-card p,
.testimonial-card p,
.feature-card p,
.faq-card p {
  margin: 0;
}

.content-card,
.tech-group-card {
  padding: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stack-list {
  display: grid;
  gap: 22px;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-list span,
.price-list span,
.docs-box,
.choice-box p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.choice-box strong,
.list-meta strong {
  color: var(--ink);
}

.notice-box,
.docs-box {
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: start;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,86,179,.25);
}

.timeline-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.timeline-content h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.timeline-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.card-actions img {
  flex: none;
}

.card-actions strong {
  margin-right: auto;
}

.article-card .chip,
.testimonial-card .chip {
  margin-bottom: 14px;
}

.partner-card .chip {
  background: #eff6ff;
}

.docs-box {
  border-radius: 6px;
}

.existing-files .choice-box,
.existing-images .choice-box,
.partner-grid .choice-box {
  padding: 14px;
}

.existing-files .choice-box strong {
  display: block;
  margin-bottom: 10px;
}

.field .media-preview {
  margin-bottom: 10px;
}

.tech-card .card-badge {
  background: #f5f7fb;
}

.testimonial-card {
  display: grid;
  gap: 16px;
}

.testimonial-card .card-actions {
  margin-top: 0;
  align-items: center;
}

.section-subtitle {
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info li i {
  color: #fff;
}

.admin-panel .card-actions {
  margin-top: 22px;
}

.admin-panel .btn-danger {
  border: 0;
}

@media (max-width: 1080px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .site-nav ul,
  .menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-icon {
    width: 72px;
    height: 72px;
    font-size: 1.3rem;
  }
}

/* Rebuilt legacy match: base, layout, home */
:root {
  --primary: #0056b3;
  --dark-blue: #003f8a;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --gray-light: #f5f7fb;
  --gradient: linear-gradient(135deg, #6366f1, #3b82f6);
  --footer-bg: #111827;
  --footer-text: #d1d5db;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: all 0.3s; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lg-container { max-width: 1280px; }
.section { padding: 60px 0; }
.subpage-layout { min-height: 80vh; padding-top: 80px; }
.subpage-layout .section:first-child { padding-top: 20px; }
.flash-wrap { padding-top: 0; }
.flash { margin-top: 18px; border-radius: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary,
.btn-secondary,
.btn-view-all,
.btn-pricing,
.cta-button,
.btn-demo-action,
.btn-download-docs {
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary,
.btn-cta { background: var(--primary); color: #fff; }
.btn-primary:hover,
.btn-cta:hover { background: var(--dark-blue); transform: translateY(-2px); }
.btn-secondary,
.btn-view-all { background: #fff; color: var(--text); border: 1px solid #ddd; }
.btn-secondary:hover,
.btn-view-all:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06); }
.hover-scale { transition: transform 0.3s, box-shadow 0.3s; }
.hover-scale:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.m-t-40 { margin-top: 40px; }
.m-t-50 { margin-top: 50px; }

.section-title,
.page-title { margin: 0 0 20px; color: var(--text); font-size: 28px; font-weight: 700; }
.page-title { font-weight: 800; }
.subtitle,
.section-subtitle { max-width: 800px; margin: 0 auto 30px; color: var(--text-light); font-size: 16px; line-height: 1.6; }
.section-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.content-card,
.faq-card,
.empty-state,
.choice-box,
.notice-box {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.content-card,
.empty-state,
.choice-box,
.notice-box { padding: 24px; }
.choice-box { display: grid; gap: 8px; }
.empty-state,
.notice-box { color: var(--text-light); }

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.tag { background: #eff6ff; color: var(--primary); border: 1px solid #dbeafe; }
.chip { background: var(--gray-light); color: var(--text); }

.site-shell { display: flex; min-height: 100vh; flex-direction: column; }
.main-layout { display: flex; min-height: calc(100vh - 80px); flex: 1 1 auto; flex-direction: column; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  transition: all 0.3s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner { display: grid; width: 100%; align-items: center; grid-template-columns: 1fr auto 1fr; }
.header .logo { display: flex; align-items: center; justify-self: start; }
.header .logo img { display: block; width: auto; height: 50px; object-fit: contain; }
.header .logo span {
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  padding: 4px 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.menu { display: flex; justify-content: center; justify-self: center; }
.menu ul { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.menu a { white-space: nowrap; color: var(--text); font-size: 16px; font-weight: 600; }
.menu a:hover,
.menu a.active { color: var(--primary); }
.actions { display: flex; align-items: center; gap: 15px; justify-self: end; }
.btn-cta { border-radius: 8px; padding: 10px 20px; font-size: 15px; font-weight: 700; }
.hamburger { display: none; border: none; background: transparent; color: var(--text); padding: 0; font-size: 20px; }
.hamburger span { display: block; width: 20px; height: 2px; margin: 4px 0; background: currentColor; }

.footer { margin-top: auto; background: var(--footer-bg); color: var(--footer-text); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { width: auto; height: 40px; object-fit: contain; }
.footer-logo span { color: #fff; font-size: 24px; font-weight: 800; }
.footer-desc { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.8; }
.footer-col h4 { margin: 0 0 20px; color: #fff; font-size: 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.contact-info li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.social-links { display: flex; gap: 15px; }
.social-links a {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.hero { position: relative; overflow: hidden; background: var(--gray-light); padding: 120px 0 60px; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; max-width: 55%; }
.hero-image { width: 40%; }
.hero .title { margin: 15px 0; color: var(--text); font-size: 38px; font-weight: 800; line-height: 1.2; }
.hero .slogan { margin: 0 0 30px; color: var(--text-light); font-size: 16px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; }
.hero-image img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); }

.clients-section { min-height: 210px; }
.marquee-wrap { width: 100%; min-height: 88px; overflow: hidden; padding: 10px 0; }
.marquee-track {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: partner-marquee 34s linear infinite;
  will-change: transform;
}

.client-logo-item { display: inline-flex; width: 160px; height: 72px; flex: 0 0 160px; align-items: center; justify-content: center; }
.client-logo-item img { display: block; width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.placeholder-track { display: inline-flex; min-width: max-content; align-items: center; gap: 24px; }
.placeholder-item {
  width: 160px;
  height: 72px;
  flex: 0 0 160px;
  border-radius: 14px;
  background: linear-gradient(90deg, #edf2f7 25%, #f8fafc 50%, #edf2f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.about-grid { display: grid; align-items: center; gap: 50px; grid-template-columns: 1fr 1fr; }
.about-content .title { margin: 0 0 20px; color: var(--text); font-size: 28px; font-weight: 700; }
.about-content p { margin: 0 0 15px; color: var(--text-light); font-size: 15px; }
.about-content strong { color: var(--primary); }
.about-image img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); }

.stats-section { background: var(--gradient); color: #fff; padding: 30px 0; }
.stat-card { border-radius: 6px; background: #fff; padding: 30px 20px; text-align: center; box-shadow: var(--shadow); }
.stat-num { margin-bottom: 5px; color: var(--primary); font-size: 32px; font-weight: 800; }
.stat-text { color: var(--text-light); font-size: 14px; font-weight: 600; }

.service-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.service-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.service-card p { margin: 0; color: var(--text-light); font-size: 14px; line-height: 1.5; }
.icon-wrap,
.feature-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 24px;
}

.process-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  background: #fff;
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-num { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 6px; background: var(--primary); color: #fff; margin: 0 auto 15px; font-weight: 700; }
.process-card h3,
.feature-card h3,
.pricing-header h3 { margin: 0 0 10px; font-weight: 700; }
.process-card p,
.feature-card p { margin: 0; color: var(--text-light); }
.view-all-wrap { margin-top: 30px; text-align: center; }

.pricing-grid { max-width: 1200px; margin: 0 auto; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fff;
  padding: 40px 30px;
  transition: all 0.3s;
}

.pricing-card:hover { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.pricing-card.featured { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1); }
.popular-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  border-radius: 6px;
  background: #ff4757;
  color: #fff;
  padding: 2px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-header { margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; text-align: center; }
.plan-icon { display: inline-block; margin-bottom: 10px; color: var(--primary); font-size: 36px; }
.pricing-header p { margin: 0 0 5px; color: var(--text-light); font-size: 14px; line-height: 1.5; }
.price { display: flex; align-items: baseline; justify-content: center; margin-bottom: 0; }
.currency { margin-right: 5px; color: var(--text-light); font-size: 16px; font-weight: 600; }
.amount { color: var(--primary); font-size: 32px; font-weight: 800; line-height: 1; }
.pricing-features { flex-grow: 1; list-style: none; margin: 0 0 30px; padding: 0; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text); font-size: 14px; }
.pricing-features i { color: #28a745; }
.btn-pricing { display: block; background: var(--gray-light); color: var(--primary); text-align: center; font-weight: 700; }
.btn-pricing:hover,
.btn-pricing.featured { background: var(--primary); color: #fff; }

/* Rebuilt legacy match: cards, public subpages, interface pages */
.interface-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.interface-img { position: relative; height: 180px; overflow: hidden; }
.interface-img img,
.project-img img,
.project-media img,
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.interface-card:hover .interface-img img,
.project-card:hover .project-img img,
.project-card:hover .project-media img,
.blog-card:hover .blog-image img { transform: scale(1.05); }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 179, 0.4);
  opacity: 0;
  transition: all 0.3s;
}

.interface-img:hover .overlay { opacity: 1; }
.overlay span { border-radius: 6px; background: #fff; color: var(--primary); padding: 8px 16px; font-size: 13px; font-weight: 700; }

.interface-info,
.project-info,
.blog-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.interface-info h3,
.project-info h3,
.project-details h3,
.blog-content h3,
.faq-card h3 { margin: 0 0 10px; font-weight: 700; }
.interface-info h3 { font-size: 17px; }

.interface-info p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3em;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.interface-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
}

.price,
.price-current { color: var(--primary); font-size: 16px; font-weight: 800; }

.btn-view,
.btn-detail,
.link-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.project-card,
.blog-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.project-card:hover,
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.project-img,
.project-media,
.blog-image { overflow: hidden; height: 180px; }
.project-info p,
.short-desc,
.blog-content p,
.faq-answer { color: var(--text-light); }
.project-info p,
.short-desc { flex: 1 1 auto; line-height: 1.5; }

.tech-tags,
.tags,
.i-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.features-grid { margin-bottom: 25px; }

.feature-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  background: var(--gray-light);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 65px; height: 65px; margin: 0 auto 25px; font-size: 26px; }
.subsection-title { margin: 0 0 15px; color: var(--text); text-align: center; font-size: 22px; font-weight: 700; }

.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tech-item {
  display: flex;
  min-width: 140px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  background: var(--gray-light);
  padding: 20px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tech-item i { font-size: 36px; }
.tech-item span { color: var(--text); font-size: 14px; font-weight: 700; }

.testi-card {
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.review,
.review-text { margin: 0 0 24px; color: var(--text); font-size: 16px; line-height: 1.7; font-style: italic; }
.user-info,
.client-info { display: flex; align-items: center; gap: 15px; }
.user-info img,
.client-info img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.user-info h4,
.client-details h4 { margin: 0 0 4px; color: var(--primary); font-size: 16px; }
.user-info span,
.client-details span { color: var(--text-light); font-size: 13px; }

.blog-content { gap: 10px; }
.blog-date { color: var(--primary); font-size: 12px; font-weight: 700; }

.contact-wrap {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-form label { color: #475569; font-size: 13px; font-weight: 700; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.project-details { display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; padding: 24px; }
.tech-sections { display: grid; gap: 30px; }

.tech-category { overflow: hidden; border: 1px solid #eee; border-radius: 6px; background: #fff; }
.category-header { border-bottom: 1px solid #eee; background: var(--gray-light); padding: 30px 40px; }
.category-header h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--text); font-size: 22px; }
.category-header h2 i { color: var(--primary); }
.category-header p { margin: 0; color: var(--text-light); font-size: 15px; }
.tech-category .tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px; }
.tech-card { border-radius: 6px; background: #fff; padding: 30px 15px; text-align: center; transition: all 0.3s; }
.tech-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }
.tech-card i { display: inline-block; margin-bottom: 20px; font-size: 45px; }
.tech-card h4 { margin: 0 0 10px; font-size: 18px; }
.tech-card p { margin: 0; color: var(--text-light); font-size: 13px; }

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.review-card {
  position: relative;
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  background: #fff;
  padding: 40px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.quote-icon { margin-bottom: 20px; color: rgba(0, 86, 179, 0.1); font-size: 30px; }
.partners-section { border-radius: 6px; background: #fff; padding: 60px 40px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); }
.partners-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; margin-top: 40px; }
.partner-logo img { max-height: 40px; opacity: 0.6; filter: grayscale(1); transition: all 0.3s; }
.partner-logo img:hover { opacity: 1; filter: grayscale(0); }

.process-timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-item { position: relative; display: flex; min-height: 160px; gap: 40px; margin-bottom: 70px; }
.timeline-connector {
  position: absolute;
  top: 95px;
  bottom: -50px;
  left: 40px;
  z-index: 1;
  width: 2px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 60%, transparent 60%, transparent 100%);
  background-size: 2px 20px;
  opacity: 0.3;
}

.timeline-item:last-child .timeline-connector { display: none; }
.timeline-icon {
  position: relative;
  z-index: 10;
  display: flex;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.35);
}

.timeline-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(0, 86, 179, 0.1);
  border-radius: 6px;
  animation: pulse 2s infinite;
}

.timeline-content {
  flex-grow: 1;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.timeline-item:hover .timeline-content { transform: translateX(10px); }
.timeline-content h3 { margin: 0 0 12px; font-size: 22px; }
.timeline-content p { margin: 0 0 15px; color: var(--text-light); }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--text); font-size: 14px; }
.process-list i { color: #28a745; }

.page-hero,
.page-hero.center { padding: 110px 0 30px; }
.page-hero-card { border-radius: 16px; background: #fff; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.page-hero-card h1 { margin: 14px 0; }
.faq-list { display: grid; gap: 18px; }
.faq-card { padding: 24px; }

.interface-content { background: #fff; }
.interface-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.sidebar-box { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 18px; box-shadow: var(--shadow); }
.sidebar-box h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.cat-list { display: grid; gap: 8px; }
.cat-item { border-radius: 10px; background: #f8fafc; padding: 10px 12px; color: #334155; font-size: 14px; font-weight: 700; }
.cat-item.active,
.cat-item:hover { background: #eff6ff; color: var(--primary); }
.interface-main { min-width: 0; }
.top-search-bar { margin-bottom: 24px; }
.search-and-sort { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.search-input { position: relative; flex: 1 1 auto; }
.search-input i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #94a3b8; }
.search-input input,
.sort-options { width: 100%; border: 1px solid #dbe3f0; border-radius: 12px; background: #fff; padding: 12px 14px; }
.search-input input { padding-left: 42px; }
.sort-options { max-width: 220px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.i-price { display: grid; gap: 4px; }
.price-old { color: #94a3b8; font-size: 13px; text-decoration: line-through; }
.no-results { border-radius: 16px; background: #fff; padding: 30px; color: var(--text-light); text-align: center; box-shadow: var(--shadow); }
.cta-section { background: #fff; padding: 40px 0; }
.cta-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 6px; background: #0f172a; padding: 30px 40px; }
.cta-content h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.cta-content p { margin: 0; color: #94a3b8; font-size: 14px; }
.cta-button { white-space: nowrap; background: #fff; color: #000; font-weight: 700; }

.interface-detail-section { padding-top: 20px; }
.detail-main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.product-gallery-container,
.detailed-info { min-width: 0; }
.product-gallery,
.featured-preview,
.detailed-info,
.sticky-card { border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.product-gallery,
.sticky-card,
.detailed-info { border: 1px solid #f1f5f9; }
.product-gallery,
.detailed-info,
.sticky-card { padding: 20px; }
.gallery-slider { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.slide-item { overflow: hidden; border-radius: 12px; }
.main-image { width: 100%; height: auto; border-radius: 12px; }
.gallery-footer { margin-top: 15px; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.btn-demo-action { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-weight: 700; }
.social-share { display: flex; align-items: center; gap: 10px; }
.s-title { color: #64748b; font-size: 12px; font-weight: 700; }
.s-icons { display: flex; gap: 8px; }
.s-link { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: #eff6ff; color: var(--primary); }
.sticky-card { position: sticky; top: 110px; }
.status-badge { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #10b981; font-size: 10px; font-weight: 800; }
.status-badge i { font-size: 6px; }
.sidebar-title { margin: 0 0 5px; font-size: 18px; font-weight: 800; }
.cat-label { display: inline-block; margin-bottom: 15px; border-radius: 6px; background: #f8fafc; color: #94a3b8; padding: 2px 10px; font-size: 10px; font-weight: 700; }
.price-box { margin-bottom: 20px; }
.price-original { color: #94a3b8; font-size: 13px; text-decoration: line-through; }
.price-now { display: flex; align-items: baseline; gap: 4px; color: var(--primary); font-size: 26px; font-weight: 900; }
.discount { margin-left: 5px; border-radius: 6px; background: #fee2e2; color: #ef4444; padding: 2px 6px; font-size: 9px; }
.benefit-list { display: grid; gap: 10px; margin-bottom: 25px; }
.benefit { display: flex; align-items: center; gap: 10px; color: #475569; font-size: 12px; font-weight: 600; }
.benefit i { color: var(--primary); font-size: 10px; }
.buy-button { display: block; width: 100%; border: none; border-radius: 6px; background: linear-gradient(135deg, #0056b3, #003f8a); color: #fff; padding: 14px; text-align: center; font-size: 13px; font-weight: 800; }
.buy-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3); }
.sidebar-contact { margin-top: 15px; color: #94a3b8; text-align: center; font-size: 11px; }
.sidebar-contact a { color: var(--primary); font-weight: 700; }
.info-tabs { display: flex; gap: 20px; margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; }
.tab-btn { position: relative; border: none; background: transparent; color: #64748b; padding: 0; font-weight: 700; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ""; position: absolute; bottom: -13px; left: 0; width: 100%; height: 2px; background: var(--primary); }
[data-tab-panel] { display: none; }
[data-tab-panel].active { display: block; }
.transition-in { animation: tin 0.5s ease forwards; }
.product-full-description { color: #475569; line-height: 1.6; }
.product-full-description p { margin-bottom: 12px; }
.docs-files { display: grid; gap: 10px; }
.file-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 20px;
}

.file-item { display: flex; align-items: center; gap: 12px; color: #1e293b; font-size: 13px; font-weight: 600; }
.file-item i { color: #ef4444; font-size: 16px; }
.btn-download-docs { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; }
.no-docs-message { opacity: 0.7; color: #64748b; }

/* Rebuilt legacy match: admin, login, responsive */
.admin-body .admin-shell { display: flex; height: 100vh; background: #f8fafc; color: #0f172a; }
.admin-body .admin-shell .sidebar {
  display: flex;
  width: 260px;
  flex: none;
  flex-direction: column;
  gap: 18px;
  background: #0f172a;
  color: #fff;
  padding: 18px;
}

.admin-body .admin-shell .brand { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 8px 6px 14px; }
.admin-body .admin-shell .logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  font-weight: 900;
}

.admin-body .brand-title { font-weight: 900; letter-spacing: 0.05em; line-height: 1.1; }
.admin-body .brand-sub { color: rgba(255, 255, 255, 0.65); font-size: 12px; }
.admin-body .nav { display: flex; flex-direction: column; gap: 6px; }
.admin-body .nav-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; color: rgba(255, 255, 255, 0.75); padding: 10px 12px; font-weight: 700; }
.admin-body .nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-body .nav-item.active { background: rgba(59, 130, 246, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35); }
.admin-body .nav-item .icon { width: 22px; text-align: center; opacity: 0.9; }
.admin-body .logout {
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  padding: 10px 12px;
  font-weight: 800;
}

.admin-body .logout:hover { background: rgba(239, 68, 68, 0.12); }
.admin-body .admin-shell .main { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.admin-body .topbar {
  display: flex;
  height: 64px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 18px;
  backdrop-filter: blur(10px);
}

.admin-body .topbar .title { margin: 0; font-size: 18px; font-weight: 900; }
.admin-body .admin-subtitle { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.admin-body .right { display: flex; align-items: center; gap: 10px; color: #64748b; font-weight: 700; }
.admin-body .content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px; }

.admin-body .login-page {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f0f4f8;
}

.admin-body .bg-decoration { position: absolute; inset: 0; z-index: 0; }
.admin-body .bubble { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 20s ease-in-out infinite alternate; }
.admin-body .bubble-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: #3b82f6; }
.admin-body .bubble-2 { right: -50px; bottom: -50px; width: 350px; height: 350px; background: #6366f1; animation-delay: -5s; }
.admin-body .bubble-3 { top: 40%; left: 60%; width: 300px; height: 300px; background: #a855f7; animation-delay: -10s; }

.admin-body .login-page .login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.85);
  padding: 50px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}

.admin-body .login-header { margin-bottom: 35px; text-align: center; }
.admin-body .logo-wrapper { display: flex; justify-content: center; margin-bottom: 20px; }
.admin-body .logo-circle {
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  font-size: 32px;
  transform: rotate(-5deg);
}

.admin-body .login-header h1 { margin: 0 0 8px; color: #0f172a; font-size: 26px; font-weight: 800; }
.admin-body .login-header p { margin: 0; color: #64748b; font-size: 14px; }
.admin-body .login-form .form-group { margin-bottom: 20px; }
.admin-body .login-form label { display: block; margin-bottom: 8px; padding-left: 2px; color: #475569; font-size: 13px; font-weight: 700; }
.admin-body .input-field { position: relative; display: flex; align-items: center; }
.admin-body .input-field i { position: absolute; left: 16px; color: #94a3b8; font-size: 16px; }
.admin-body .input-field input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 14px 16px 14px 48px; }

.admin-body .error-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  background: #fef2f2;
  padding: 12px 16px;
}

.admin-body .success-alert { border-color: #bbf7d0; background: #f0fdf4; }
.admin-body .alert-icon { color: #ef4444; font-size: 18px; }
.admin-body .success-alert .alert-icon { color: #16a34a; }
.admin-body .alert-text { color: #991b1b; font-size: 13px; font-weight: 600; }
.admin-body .success-alert .alert-text { color: #166534; }
.admin-body .login-note { margin-top: 18px; color: #64748b; text-align: center; font-size: 12px; line-height: 1.6; }
.admin-body .login-footer { margin-top: 30px; text-align: center; }
.admin-body .back-link { display: inline-flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; font-weight: 600; }
.admin-body .back-link:hover { color: #64748b; }

.admin-body .grid .stat {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.admin-body .grid .stat::before { content: ""; position: absolute; inset: 0; opacity: 0.08; }
.admin-body .grid .stat.blue::before { background: #3b82f6; }
.admin-body .grid .stat.green::before { background: #22c55e; }
.admin-body .grid .stat.purple::before { background: #a855f7; }
.admin-body .grid .stat.orange::before { background: #f97316; }
.admin-body .grid .label,
.admin-body .grid .value { position: relative; }
.admin-body .grid .label { color: #334155; font-weight: 800; }
.admin-body .grid .value { margin-top: 6px; font-size: 34px; font-weight: 900; }

.admin-body .panel { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; padding: 18px; }
.admin-body .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-body .panel-head h2 { margin: 0; font-size: 18px; font-weight: 900; }
.admin-body .panel-head p,
.admin-body .muted { color: #64748b; font-weight: 600; }
.admin-body .panel-body { display: grid; gap: 10px; }

.admin-body .admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.admin-body .panel .actions { gap: 8px; }
.admin-body .panel .btn,
.admin-body .mini { border: 1px solid #dbeafe; border-radius: 12px; background: #eff6ff; color: #0f172a; padding: 10px 14px; font-weight: 800; }
.admin-body .panel .btn.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.admin-body .panel .btn.danger,
.admin-body .mini.danger { border-color: #fecdd3; background: #fff1f2; color: #be123c; }

.admin-body .list { display: grid; gap: 10px; max-height: calc(100vh - 210px); overflow: auto; }
.admin-body .list-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 10px; }
.admin-body .list-item.active { border-color: #93c5fd; background: #f8fbff; }

.admin-body .thumb,
.admin-body .settings-preview,
.admin-body .settings-partner-image {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background-color: #f8fafc;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.admin-body .thumb { height: 72px; }
.admin-body .thumb.large { width: 180px; height: 120px; }
.admin-body .meta { display: grid; gap: 4px; min-width: 0; }
.admin-body .meta strong { font-size: 14px; }
.admin-body .meta span { color: #64748b; font-size: 12px; }

.admin-body .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-body .field { display: grid; gap: 8px; }
.admin-body .field.full { grid-column: 1 / -1; }
.admin-body .field span { color: #334155; font-weight: 800; }
.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select { width: 100%; border: 1px solid #dbe3f0; border-radius: 12px; padding: 12px 14px; }
.admin-body .upload-row { display: flex; align-items: center; gap: 14px; }
.admin-body .gallery,
.admin-body .doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.admin-body .gallery-item,
.admin-body .doc-item { display: grid; gap: 8px; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; }
.admin-body .doc-item span { word-break: break-word; color: #475569; font-size: 12px; }

.admin-body .settings-stack { display: grid; gap: 18px; }
.admin-body .settings-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-body .settings-media-card,
.admin-body .settings-partner-card { display: grid; gap: 10px; }
.admin-body .settings-media-card label { color: #334155; font-weight: 800; }
.admin-body .settings-preview { height: 160px; background-size: contain; }
.admin-body .settings-preview.settings-preview-small { background-size: 56px 56px, contain; }
.admin-body .settings-partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-body .settings-partner-image { height: 160px; background-size: contain; }
.admin-body .file-inline { max-width: 240px; }

.admin-body .contacts-stack { display: grid; gap: 18px; }
.admin-body .contacts-list { display: grid; gap: 14px; }
.admin-body .contact-card { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; padding: 18px; }
.admin-body .contact-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.admin-body .contact-person h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.admin-body .contact-person p { margin: 0; color: #64748b; font-size: 12px; font-weight: 700; }
.admin-body .contact-chip { display: inline-flex; align-items: center; border-radius: 999px; background: #eff6ff; color: #0056b3; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.admin-body .contact-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.admin-body .contact-meta span { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: 13px; font-weight: 700; }
.admin-body .contact-message { border-radius: 14px; background: #f8fafc; color: #0f172a; padding: 14px 16px; white-space: pre-wrap; line-height: 1.7; }
.admin-body .contact-agent { margin: 12px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.6; word-break: break-word; }

@keyframes partner-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes tin {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .review-grid,
  .tech-category .tech-grid,
  .items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .header { height: 70px; }
  .main-layout { min-height: calc(100vh - 70px); }
  .subpage-layout { padding-top: 70px; }
  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
  }

  .menu.is-active { visibility: visible; opacity: 1; transform: translateY(0); }
  .menu ul { flex-direction: column; align-items: center; gap: 15px; }
  .hamburger { display: block; }
  .hero-inner,
  .about-grid,
  .interface-layout { grid-template-columns: 1fr; flex-direction: column; }
  .admin-body .admin-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-image { width: 80%; margin-top: 30px; }
  .hero-actions { justify-content: center; }
  .section-heading,
  .search-and-sort,
  .action-bar,
  .cta-wrapper,
  .upload-row,
  .file-item-wrapper { flex-direction: column; align-items: stretch; }
  .cat-sidebar { display: none; }
  .sort-options { max-width: none; }
  .contact-form,
  .form-grid,
  .grid-3,
  .grid-4,
  .projects-grid,
  .items-grid,
  .tech-category .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body .settings-media-grid,
  .admin-body .settings-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body .contact-card-head { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-main-layout { grid-template-columns: 1fr; gap: 12px; }
  .sticky-card { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 24px 0; }
  .hero { padding: 100px 0 40px; }
  .hero-inner { text-align: center; }
  .hero .title { font-size: 32px; }
  .timeline-item { flex-direction: column; gap: 15px; margin-bottom: 50px; }
  .timeline-connector { top: 70px; bottom: -5px; left: 30px; }
  .timeline-icon { width: 60px; height: 60px; font-size: 24px; }
  .review-grid,
  .contact-form,
  .form-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .projects-grid,
  .items-grid,
  .tech-category .tech-grid { grid-template-columns: 1fr; }
  .admin-body .settings-media-grid,
  .admin-body .settings-partners-grid { grid-template-columns: 1fr; }
  .admin-body .contact-meta { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .partners-grid { justify-content: center; }
  .admin-body .login-page .login-card { margin: 0 18px; padding: 36px 24px; }
}

@media (max-width: 480px) {
  .btn-cta { display: none; }
  .hero .title,
  .page-title { font-size: 24px; }
  .product-gallery,
  .detailed-info,
  .sticky-card { padding: 16px; }
  .price-now { flex-wrap: wrap; font-size: 22px; }
}
