/* Scroll container */
.featured-scroll,
.featured-scroll * {
  font-family: Helvetica, Arial, sans-serif;
}

.domain-scroll {
  width: 100%;
  height: 100dvh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8fafc;
  padding-bottom: 40px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== TOPBAR ===== */
.topbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Left */
.topbar-left {
  min-width: 280px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #aa89e2;
}

.page-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search */
.search-box {
  width: 190px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.search-icon {
  font-size: 17px;
  width: 17px;
  height: 17px;
  color: #64748b;
  margin-right: 8px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #0f172a;
}

/* User */
.user-btn {
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.user-arrow {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #64748b;
}

/* ===== PAGE CONTENT ===== */
.page {
  width: 100%;
  padding:  20px 20px 40px;
}

/* Grid */
.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0;
}

/* Card */
.domain-card {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: box-shadow 0.15s ease, transform 0.15s ease,
    border-color 0.15s ease;
}

.domain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.12);
}

.domain-card:hover .card-title {
  color: #aa89e2;
}

.domain-card:active {
  transform: translateY(1px) scale(0.99);
}

/* Left section */
.left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Icon */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box mat-icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

/* Info */
.info {
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 400;
  color: #0f172a;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 6px;
  max-width: 520px;
}

/* Pills */
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.pill-gray {
  background: #e2e8f0;
  color: #0f172a;
}

.pill-white {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Right arrow */
.right {
  display: flex;
  align-items: center;
}

.arrow {
  color: #94a3b8;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

/* AUTO COLORS */
.icon-blue {
  background: #eaf2ff;
  color: #2563eb;
}

.icon-green {
  background: #e9fbef;
  color: #22c55e;
}

.icon-orange {
  background: #fff1e8;
  color: #f97316;
}

.icon-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.icon-red {
  background: #fee2e2;
  color: #ef4444;
}

.icon-teal {
  background: #e6fffa;
  color: #14b8a6;
}

.icon-default {
  background: #f1f5f9;
  color: #64748b;
}

/* Capability Section */
.capability-section {
  margin-top: 16px;
}

.capability-card {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cap-title {
  font-weight: 600;
}

.cap-desc {
  font-size: 13px;
  color: #64748b;
}

.cap-status {
  font-size: 12px;
  color: #22c55e;
}

/* ===== CAPABILITY PAGE ===== */
.domain-page {
  padding: 14px 8px;
}

/* breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.breadcrumb .link {
  cursor: pointer;
  color: #6366f1;
  font-weight: 500;
}

.sep {
  margin: 0 6px;
}

/* header */
.domain-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.domain-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.domain-header p {
  margin: 4px 0 0;
  color: #64748b;
}

.domain-header .icon-box {
  width: 48px;
  height: 48px;
  background: #e0e7ff;
  color: #4f46e5;
  border-radius: 12px;
}

/* section title */
.section-title {
  margin: 14px 0 10px;
  font-weight: 600;
}

/* capability grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* capability card */
.cap-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cap-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-count {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
    max-width: 420px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* LARGE SCREENS */
@media (min-width: 1600px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}