.ap-badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #06b6d4 !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
  background: rgba(6, 182, 212, 0.07);
}
.ap-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  animation: aiPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0   rgba(6, 182, 212, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0   rgba(6, 182, 212, 0); }
}

.proj-title span {
  background: linear-gradient(120deg, #06b6d4 0%, #8b5cf6 55%, #06b6d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.grad-cyber {
  background: linear-gradient(120deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ap-tabs-strip {
  padding: 0 0 40px;
}
.ap-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ap-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  transition: all .25s;
  cursor: default;
}
.ap-tab-icon {
  font-size: 15px;
}
.ap-tab-active {
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.12);
}
.ap-tab:not(.ap-tab-active):hover {
  color: var(--t1);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.ap-gallery {
  grid-template-columns: repeat(4, 1fr);
}
.ap-gallery .gallery-wide {
  grid-column: span 2;
}
@media (max-width: 1000px) {
  .ap-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-gallery .gallery-wide {
    grid-column: span 2;
  }
}
@media (max-width: 500px) {
  .ap-gallery {
    grid-template-columns: 1fr;
  }
  .ap-gallery .gallery-wide {
    grid-column: span 1;
  }
}

.ap-firestore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.fs-collection {
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s;
}
.fs-collection:hover {
  border-color: rgba(6, 182, 212, 0.3);
}
.fs-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--g-border);
  background: rgba(6, 182, 212, 0.05);
}
.fs-col-icon {
  font-size: 15px;
}
.fs-col-name {
  font-size: 12px;
  font-weight: 600;
  color: #06b6d4;
  font-family: var(--mono, 'Courier New', monospace);
  letter-spacing: 0.01em;
}
.fs-fields {
  padding: 10px 0;
}
.fs-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 16px;
  transition: background .15s;
}
.fs-field:hover {
  background: rgba(6, 182, 212, 0.04);
}
.fs-key {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t1);
  font-family: var(--mono, 'Courier New', monospace);
}
.fs-type {
  font-size: 11.5px;
  color: var(--t2);
  font-style: italic;
  text-align: right;
  max-width: 55%;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.deliv-card {
  padding: 26px 22px;
  background: var(--g-bg);
  border: 1px solid var(--g-border);
  border-radius: var(--radius-md);
  transition: border-color .25s, transform .25s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.deliv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
}
.deliv-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}
.deliv-icon  { font-size: 28px; margin-bottom: 12px; }
.deliv-title { font-size: 14px; font-weight: 600; color: var(--t1); margin-bottom: 8px; }
.deliv-desc  { font-size: 12.5px; color: var(--t2); line-height: 1.55; }

.arch-card:hover          { border-color: rgba(6, 182, 212, 0.3) !important; }
.arch-num                 { color: #06b6d4 !important; }
.tech-card:hover          { border-color: rgba(139, 92, 246, 0.3) !important; }
.feat-item:hover          { border-color: rgba(6, 182, 212, 0.3) !important; }
.section-label            { color: #06b6d4 !important; }
.proj-category            { color: #06b6d4 !important; }

.arch-card .code-block pre { color: rgba(103, 232, 249, 0.85); }